/* Zeile nach Animation ausblenden */
.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
/* ===== SEHTEST PAGE ===== */

/* Hero */
.sehtest-hero {
    min-height: 100vh;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
}

.sehtest-hero__inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
}

/* ===== BUCHSTABENTAFEL ===== */
.sehtest-letters,
.sehtest-rings {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sehtest-letters {
    width: 100%;
    max-width: 540px;
     gap: 35px;
}

.sehtest-rings {
    width: 100%;
    max-width: 540px;
    gap: 40px;
}

.sehtest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    line-height: 1;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: 0;
    color: #000000;
    white-space: nowrap;
    background: none;
}

.sehtest-row span {
    display: inline-block;
    min-width: 0.6em;
    text-align: center;
    background: none;
}

/* ===== SEITENANIMATION (nur Sehtest) ===== */
.sehtest-letters .sehtest-row,
.sehtest-rings .ring-row {
    transition: opacity 0.85s ease-out, transform 0.85s ease-out, filter 0.85s ease-out;
}

.sehtest-letters .sehtest-row.is-visible,
.sehtest-rings .ring-row.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.sehtest-letters .row-1,
.sehtest-rings .row-1 {
    opacity: 1;
    transform: none;
    filter: blur(0.8px);
}

.sehtest-letters .row-2,
.sehtest-rings .row-2 {
    opacity: 0.96;
    transform: none;
    filter: blur(1.2px);
}

.sehtest-letters .row-3,
.sehtest-rings .row-3 {
    opacity: 0.92;
    transform: none;
    filter: blur(1.7px);
}

.sehtest-letters .row-4,
.sehtest-rings .row-4 {
    opacity: 0.88;
    transform: none;
    filter: blur(2.2px);
}

.sehtest-letters .row-5,
.sehtest-rings .row-5 {
    opacity: 0.84;
    transform: none;
    filter: blur(2.7px);
}

.sehtest-letters .row-6,
.sehtest-rings .row-6 {
    opacity: 0.8;
    transform: none;
    filter: blur(3.2px);
}

.sehtest-letters .row-7,
.sehtest-rings .row-7 {
    opacity: 0.76;
    transform: none;
    filter: blur(3.8px);
}

.sehtest-letters .row-8,
.sehtest-rings .row-8 {
    opacity: 0.72;
    transform: none;
    filter: blur(4.4px);
}

/* Buchstabenzeilen – Schriftgrößen */
.sehtest-letters .row-1 { font-size: 72px; }
.sehtest-letters .row-2 { font-size: 56px; }
.sehtest-letters .row-3 { font-size: 44px; }
.sehtest-letters .row-4 { font-size: 34px; }
.sehtest-letters .row-5 { font-size: 26px; }
.sehtest-letters .row-6 { font-size: 20px; }
.sehtest-letters .row-7 { font-size: 15px; }
.sehtest-letters .row-8 { font-size: 11px; }

/* ===== LANDOLT-C-RINGE ===== */
.ring-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.ring {
    border-radius: 50%;
    flex-shrink: 0;
    /* 15-Grad-Öffnung, zentriert auf der rechten Seite */
    background: conic-gradient(
        from 82.5deg,
        transparent 0deg 15deg,
        #000000    15deg 360deg
    );
    /* Ring-Loch ausblenden → Strichstärke ca. 46% des Radius */
    -webkit-mask: radial-gradient(circle, transparent 54%, #000 54.5%);
    mask:         radial-gradient(circle, transparent 54%, #000 54.5%);
}

/* Öffnungsrichtungen – nur Rotation */
.ring.open-right  { transform: rotate(0deg);   }
.ring.open-bottom { transform: rotate(90deg);  }
.ring.open-left   { transform: rotate(180deg); }
.ring.open-top    { transform: rotate(270deg); }

/* Ringgrößen pro Zeile */
.sehtest-rings .row-1 .ring { width: 64px;  height: 64px; }
.sehtest-rings .row-2 .ring { width: 50px;  height: 50px; }
.sehtest-rings .row-3 .ring { width: 38px;  height: 38px; }
.sehtest-rings .row-4 .ring { width: 30px;  height: 30px; }
.sehtest-rings .row-5 .ring { width: 23px;  height: 23px; }
.sehtest-rings .row-6 .ring { width: 17px;  height: 17px; }
.sehtest-rings .row-7 .ring { width: 13px;  height: 13px; }
.sehtest-rings .row-8 .ring { width: 9px;   height: 9px;  }

/* Trennlinie zwischen den Blöcken */
.sehtest-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.sehtest-divider.is-animated {
    opacity: 0;
    
}

/* Responsive */
@media (max-width: 768px) {
    .sehtest-hero__inner {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .sehtest-divider { display: none; }
    .sehtest-rings { display: none; }

    .sehtest-letters {
        max-width: 100%;
    }

    .sehtest-letters .row-1 { font-size: 52px; }
    .sehtest-letters .row-2 { font-size: 40px; }
    .sehtest-letters .row-3 { font-size: 32px; }
    .sehtest-letters .row-4 { font-size: 24px; }
    .sehtest-letters .row-5 { font-size: 18px; }
    .sehtest-letters .row-6 { font-size: 14px; }
    .sehtest-letters .row-7 { font-size: 11px; }
    .sehtest-letters .row-8 { font-size: 9px;  }
}

@media (prefers-reduced-motion: reduce) {
    .sehtest-letters .sehtest-row,
    .sehtest-rings .ring-row {
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.section-header {
    max-width: 820px;
    margin-bottom: 2.75rem;
}

.section-header .eyebrow,
.content-grid .eyebrow,
.cta-box .eyebrow {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-header h1,
.section-header h2,
.content-grid h2,
.cta-box h2 {
    font-family: var(--font-serif);
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.section-header h1,
.section-header h2 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.section-header p {
    max-width: 70ch;
    margin: 0;
    color: var(--mid);
    font-size: 1.05rem;
    line-height: 1.8;
}

#hero-fassungen ~ .section {
    padding: clamp(4.5rem, 7vw, 7.5rem) 0;
}

.cards-grid-2x2,
.cards-grid-3 {
    gap: clamp(1.1rem, 2vw, 1.7rem);
    margin-bottom: 0;
}

.sehtest-room-photo {
    aspect-ratio: 2 / 1;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    overflow: hidden;
    border-radius: 22px;
    background: #e8eef0;
    box-shadow: 0 16px 42px rgba(10, 30, 47, 0.12);
}

.sehtest-room-photo picture {
    display: block;
    width: 100%;
    height: 100%;
}

.sehtest-room-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-2x2 > .card,
.cards-grid-3 > .card,
.highlight-card {
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2.3rem);
    background: #fff;
    border: 1px solid rgba(16, 48, 74, 0.14);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(10, 30, 47, 0.06);
}

.cards-grid-2x2 > .card:hover,
.cards-grid-3 > .card:hover,
.highlight-card:hover {
    border-color: var(--accent);
}

.cards-grid-2x2 > .card h2 {
    margin-bottom: 0.85rem;
    color: var(--dark);
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.cards-grid-2x2 > .card p,
.cards-grid-3 > .card p {
    margin: 0;
    color: var(--mid);
    line-height: 1.75;
}

.section-muted {
    background: var(--light-gray);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.content-grid h2 {
    margin-bottom: 1.2rem;
    color: var(--dark);
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.content-grid > div:first-child > p {
    max-width: 68ch;
    color: var(--mid);
    line-height: 1.8;
}

.highlight-card {
    margin: 0;
}

.highlight-card h3 {
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.highlight-card p {
    margin: 0;
    color: var(--mid);
    line-height: 1.75;
}

.cta-section {
    background: var(--light-gray);
}

.cta-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid rgba(95, 201, 194, 0.25);
    border-radius: 28px;
    background: linear-gradient(138deg, var(--brand-dark), var(--brand-primary));
    box-shadow: 0 20px 56px rgba(10, 30, 47, 0.2);
}

.cta-box .eyebrow {
    color: var(--accent-light);
}

.cta-box h2 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-box p {
    max-width: 62ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.cta-box .btn {
    white-space: nowrap;
}

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

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

    .cta-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-header {
        margin-bottom: 2rem;
    }

    .sehtest-room-photo {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .cta-box {
        gap: 1.4rem;
        padding: 1.6rem;
    }
}
