.ttk-catalog {
    --ttk-black: var(--scinet-black, #0d0d0d);
    --ttk-white: var(--scinet-white, #fdfdfd);
    --ttk-accent: var(--scinet-accent, #cb1517);
    --ttk-accent-dark: var(--scinet-accent-dark, #a80f12);
    --ttk-surface: var(--scinet-surface, #151515);
    --ttk-surface-2: var(--scinet-surface-2, #1d1d1d);
    --ttk-surface-3: var(--scinet-surface-3, #242424);
    --ttk-text: var(--scinet-text, #fdfdfd);
    --ttk-muted: var(--scinet-muted, rgba(253, 253, 253, 0.68));
    --ttk-border: var(--scinet-border, rgba(253, 253, 253, 0.12));
    --ttk-shadow: var(--scinet-shadow, 0 28px 70px rgba(0, 0, 0, 0.45));

    position: relative;
    overflow: hidden;
    background:
            radial-gradient(circle at 15% 8%, rgba(203, 21, 23, 0.18), transparent 34rem),
            linear-gradient(135deg, var(--ttk-black), var(--ttk-surface));
    color: var(--ttk-text);
}

.ttk-catalog *,
.ttk-catalog *::before,
.ttk-catalog *::after {
    box-sizing: border-box;
}

.ttk-catalog a {
    color: inherit;
    text-decoration: none;
}

.ttk-catalog a:hover {
    color: var(--ttk-accent);
}

.ttk-container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

.ttk-page-header,
.ttk-detail-hero {
    position: relative;
    padding: clamp(64px, 8vw, 120px) 0 44px;
}

.ttk-page-header::after,
.ttk-detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(253, 253, 253, 0.18), transparent);
}

.ttk-page-header h1,
.ttk-detail-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.ttk-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ttk-accent);
}

.ttk-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.ttk-page-description {
    max-width: 760px;
    margin-top: 22px;
    color: var(--ttk-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.ttk-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin: 0 0 34px;
    padding: 18px;
    border: 1px solid var(--ttk-border);
    background: rgba(253, 253, 253, 0.045);
    box-shadow: var(--ttk-shadow);
    backdrop-filter: blur(10px);
}

.ttk-filter-form label,
.ttk-filter-form span {
    display: block;
}

.ttk-filter-form span {
    margin-bottom: 7px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ttk-muted);
}

.ttk-filter-form input,
.ttk-filter-form select,
.ttk-filter-form button {
    width: 100%;
    min-height: 48px;
    border-radius: 0;
    font: inherit;
}

.ttk-filter-form input,
.ttk-filter-form select {
    border: 1px solid var(--ttk-border);
    background: var(--ttk-black);
    color: var(--ttk-text);
    padding: 0 14px;
}

.ttk-filter-form input::placeholder {
    color: rgba(253, 253, 253, 0.42);
}

.ttk-filter-form input:focus,
.ttk-filter-form select:focus {
    outline: 2px solid rgba(203, 21, 23, 0.55);
    outline-offset: 2px;
    border-color: var(--ttk-accent);
}

.ttk-filter-form button,
.ttk-card__link,
.ttk-downloads a,
.ttk-term-list a,
.ttk-related-list a,
.ttk-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border: 1px solid var(--ttk-accent);
    background: var(--ttk-accent);
    color: var(--ttk-white);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ttk-filter-form button:hover,
.ttk-card__link:hover,
.ttk-downloads a:hover,
.ttk-term-list a:hover,
.ttk-related-list a:hover,
.ttk-pagination .page-numbers:hover,
.ttk-pagination .page-numbers.current {
    background: var(--ttk-white);
    border-color: var(--ttk-white);
    color: var(--ttk-black);
    transform: translateY(-2px);
}

.ttk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 56px;
}

.ttk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--ttk-border);
    background: linear-gradient(180deg, var(--ttk-surface-2), var(--ttk-surface));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttk-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ttk-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.ttk-card:hover {
    transform: translateY(-5px);
    border-color: rgba(203, 21, 23, 0.55);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.ttk-card:hover::before {
    transform: scaleX(1);
}

.ttk-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background:
            linear-gradient(135deg, rgba(255,255,255,0.06), transparent),
            var(--ttk-surface-3);
    overflow: hidden;
}

.ttk-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 18px;
    transition: transform 0.25s ease;
}

.ttk-card:hover .ttk-card__image img {
    transform: scale(1.04);
}

.ttk-card__image span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--ttk-muted);
    font-weight: 700;
}

.ttk-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.ttk-card__category,
.ttk-card__article {
    margin: 0 0 8px;
    color: var(--ttk-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttk-card__category {
    color: var(--ttk-accent);
}

.ttk-card__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.ttk-card__title a:hover {
    color: var(--ttk-white);
}

.ttk-card__text {
    margin: 0 0 20px;
    color: var(--ttk-muted);
    line-height: 1.6;
}

.ttk-card__link {
    width: fit-content;
    margin-top: auto;
    font-size: 0.78rem;
}

.ttk-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.ttk-detail-hero__image {
    display: grid;
    min-height: 320px;
    place-items: center;
    border: 1px solid var(--ttk-border);
    background: linear-gradient(135deg, var(--ttk-surface-3), var(--ttk-surface));
    box-shadow: var(--ttk-shadow);
}

.ttk-detail-hero__image:empty::before {
    content: "Kein Bild";
    color: var(--ttk-muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttk-detail-hero__image img {
    width: 100%;
    height: auto;
    display: block;
    padding: 22px;
}

.ttk-article-number,
.ttk-lead {
    max-width: 720px;
    font-size: 1.08rem;
}

.ttk-article-number {
    display: inline-flex;
    margin: 18px 0 0;
    padding: 8px 12px;
    border-left: 3px solid var(--ttk-accent);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ttk-white);
    font-weight: 800;
}

.ttk-lead {
    margin: 22px 0 0;
    color: var(--ttk-muted);
    line-height: 1.7;
}

.ttk-detail-layout {
    display: grid;
    gap: 28px;
    padding: 44px 0 72px;
}

.ttk-section {
    position: relative;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--ttk-border);
    background: rgba(253, 253, 253, 0.045);
    color: var(--ttk-text);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.ttk-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--ttk-accent);
}

.ttk-section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.ttk-section h3 {
    margin: 24px 0 8px;
    color: var(--ttk-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ttk-section p,
.ttk-section li {
    color: var(--ttk-muted);
    line-height: 1.7;
}

.ttk-long-description > :first-child {
    margin-top: 0;
}

.ttk-long-description > :last-child,
.ttk-section > :last-child {
    margin-bottom: 0;
}

.ttk-tech-table {
    width: 100%;
    overflow: hidden;
    border-collapse: collapse;
    border: 1px solid var(--ttk-border);
    background: var(--ttk-black);
}

.ttk-tech-table th,
.ttk-tech-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--ttk-border);
    text-align: left;
    vertical-align: top;
}

.ttk-tech-table tr:last-child th,
.ttk-tech-table tr:last-child td {
    border-bottom: 0;
}

.ttk-tech-table th {
    width: 34%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ttk-white);
    font-weight: 800;
}

.ttk-tech-table td {
    color: var(--ttk-muted);
}

.ttk-downloads,
.ttk-term-list,
.ttk-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ttk-downloads {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttk-downloads a,
.ttk-term-list a,
.ttk-related-list a {
    min-height: 40px;
    background: transparent;
    border-color: var(--ttk-border);
    color: var(--ttk-white);
    font-size: 0.78rem;
}

.ttk-faq-list {
    display: grid;
    gap: 12px;
}

.ttk-faq-item {
    border: 1px solid var(--ttk-border);
    background: var(--ttk-black);
}

.ttk-faq-item summary {
    position: relative;
    cursor: pointer;
    padding: 16px 48px 16px 16px;
    color: var(--ttk-white);
    font-weight: 800;
    list-style: none;
}

.ttk-faq-item summary::-webkit-details-marker {
    display: none;
}

.ttk-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    translate: 0 -50%;
    color: var(--ttk-accent);
    font-size: 1.35rem;
    line-height: 1;
}

.ttk-faq-item[open] summary::after {
    content: "–";
}

.ttk-faq-answer {
    padding: 0 16px 16px;
}

.ttk-faq-answer p {
    margin-top: 0;
}

.ttk-pagination {
    padding: 8px 0 64px;
}

.ttk-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ttk-pagination .page-numbers {
    min-width: 44px;
    background: transparent;
    border-color: var(--ttk-border);
}

.ttk-empty {
    margin: 0 0 56px;
    padding: 20px;
    border: 1px solid var(--ttk-border);
    background: rgba(253, 253, 253, 0.045);
    color: var(--ttk-muted);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .ttk-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ttk-filter-form button {
        grid-column: 1 / -1;
    }

    .ttk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ttk-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .ttk-detail-hero__image {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .ttk-container {
        width: min(100% - 24px, 1180px);
    }

    .ttk-page-header,
    .ttk-detail-hero {
        padding-top: 56px;
    }

    .ttk-filter-form,
    .ttk-grid {
        grid-template-columns: 1fr;
    }

    .ttk-card__body {
        padding: 18px;
    }

    .ttk-tech-table,
    .ttk-tech-table tbody,
    .ttk-tech-table tr,
    .ttk-tech-table th,
    .ttk-tech-table td {
        display: block;
        width: 100%;
    }

    .ttk-tech-table th {
        padding-bottom: 6px;
    }

    .ttk-tech-table td {
        padding-top: 6px;
    }

    .ttk-tech-table tr {
        border-bottom: 1px solid var(--ttk-border);
    }

    .ttk-tech-table tr:last-child {
        border-bottom: 0;
    }

    .ttk-tech-table th,
    .ttk-tech-table td {
        border-bottom: 0;
    }
}
