/* =====================================================
   BRILLE + MODE
   style.css
   Farben:
   Blau       #00B8D3
   Hellblau   #DEF1FF
   Hellblau 2 #C7E7F0
   Text       #707070
===================================================== */

:root {
    --blue: #00B8D3;
    --blue-dark: #009eb7;
    --light-blue: #DEF1FF;
    --light-blue-2: #C7E7F0;
    --text: #707070;
    --dark: #4f4f4f;
    --white: #ffffff;

    --content-width: 1280px;
    --nav-height: 76px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: "Nunito", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

h1,
h2,
h3 {
    color: var(--dark);
    line-height: 1.15;
}

h1 {
    max-width: 650px;
    font-size: clamp(2.3rem, 4vw, 4.3rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
}

p {
    font-size: 1rem;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 42px;
    padding: 10px 22px;
    border: 0;
    border-radius: 30px;
    background: var(--blue);
    color: var(--white);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.small-text {
    font-size: .88rem;
}


/* =====================================================
   FESTE NAVIGATION
===================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .04);
}

.nav-inner {
    width: min(var(--content-width), calc(100% - 40px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.logo {
    flex: 0 0 auto;
    width: 125px;
}

.logo img {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 30px);
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width .2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--blue);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =====================================================
   SCHWEBENDE TELEFON / MAIL BUTTONS
===================================================== */

.quick-contact {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 950;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
}

.quick-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 52px;
    min-height: 50px;
    padding: 8px;
    background: var(--blue);
    color: var(--white);
    font-size: .65rem;
    font-weight: 800;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    transition: width .2s ease, background .2s ease;
}

.quick-contact a:hover {
    background: var(--blue-dark);
}

.quick-contact a span:first-child {
    font-size: 1rem;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    min-height: 80vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
}

.hero-image {
    position: absolute;
    inset: var(--nav-height) 0 0 0;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, .97) 25%,
            rgba(255, 255, 255, .70) 47%,
            rgba(255, 255, 255, .08) 72%,
            rgba(255, 255, 255, 0) 100%),
        url("../img/header.png") right center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--content-width), calc(100% - 40px));
    margin: auto;
    padding: 70px 0;
}

.hero-content p {
    max-width: 510px;
    margin: 20px 0 25px;
    font-size: .95rem;
}

.hero-content h1 strong {
    display: block;
    font-weight: 800;
}


/* =====================================================
   TRUST-BANNER
===================================================== */

.trust-banner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--blue);
    color: var(--white);
}

.trust-banner div {
    padding: 40px 20px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border-right: 1px solid rgba(255, 255, 255, .25);
}

.trust-banner div:last-child {
    border-right: 0;
}


/* =====================================================
   SPLIT-BEREICHE: BRILLEN / KONTAKTLINSEN / SERVICE
===================================================== */

.split-section {
    position: relative;
    width: 100%;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8rem;
    align-items: center;
    overflow: hidden;
    padding: 120px 0;
}

#brillen .split-content,
#kontaktlinsen .split-content,
#service .split-content {
    margin-left: max(30px, calc((100vw - var(--content-width)) / 2 + 30px));

}

.split-content {
    width: min(590px, calc(100% - 60px));
    padding: 80px 0;
}

.split-reverse .split-content {
    margin-left: 0;
    margin-right: max(30px, calc((100vw - var(--content-width)) / 2 + 30px));
    justify-self: end;
}

.split-content>p {
    max-width: 580px;
    margin: 18px 0;
}

.split-image {
    align-self: stretch;
    min-height: 610px;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.image-right img {
    border-radius: 20px 0 0 20px;
    margin-top: 50px;
}

.image-left img {
    border-radius: 0 20px 20px 0;
    margin-top: 50px;
}

.feature-list {
    max-width: 600px;
    margin: 25px 0 28px;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
}

.feature-list li>span {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: .65rem;
    font-weight: 800;
}

.feature-list li>span img {
    padding: 4px;
}

.feature-list strong,
.feature-list small {
    display: block;
}

.feature-list strong {
    color: var(--dark);
    font-size: 1rem;
}

.feature-list small {
    color: var(--text);
    font-size: 1rem;
}

.decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.decor-a {
    left: -200px;
    top: 10px;
    width: 500px;
    height: 500px;
    opacity: 0.5;

}

.decor-a::after {
    width: 170px;
    height: 170px;
    right: -70px;
    bottom: 40px;
}

.decor-b {
    right: -270px;
    top: -100px;
    width: 500px;
    height: 500px;
    z-index: 1;
    position: absolute;
    opacity: 0.5;
}

.decor-b::after {
    width: 140px;
    height: 140px;
    left: -40px;
    bottom: -25px;
}

.decor-c {
    left: -100px;
    top: 0px;
    width: 500px;
    height: 500px;
    opacity: 0.5;

}

.decor-c::after {
    width: 130px;
    height: 130px;
    right: -30px;
    top: 20px;
}

.decor-d {
    right: -180px;
    bottom: -300px;
    width: 500px;
    height: 500px;
    opacity: 0.5;

}

.decor-d::after {
    width: 150px;
    height: 150px;
    left: -50px;
    top: 35px;
}

.decor-f {
    right: -80px;
    top: 30px;
    width: 230px;
    height: 230px;
}

.decor-f::after {
    width: 140px;
    height: 140px;
    left: -45px;
    bottom: -25px;
}

.decor-g {
    left: -100px;
    bottom: -100px;
    width: 260px;
    height: 260px;
}

.decor-g::after {
    width: 160px;
    height: 160px;
    right: -45px;
    top: 20px;
}


/* =====================================================
   MODE & ACCESSOIRES / ÜBER UNS
===================================================== */

.cards-section {
    position: relative;
    padding: 85px 20px;
    overflow: hidden;
    text-align: center;
}

.section-heading {
    position: relative;
    z-index: 2;
    width: min(700px, 100%);
    margin: 0 auto 40px;
}

.section-heading p {
    margin-top: 12px;
    font-size: .9rem;
}

.blue-section {
    background: var(--blue);
    color: var(--white);
}

.blue-section h2,
.blue-section .section-heading p {
    color: var(--white);
}

.blue-section .eyebrow {
    color: var(--white);
}

.card-grid,
.team-grid {
    position: relative;
    z-index: 2;
    width: min(var(--content-width), 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.image-card {
    position: relative;
}

.image-card img {
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.card-button {
    position: relative;
    z-index: 2;
    width: 130px;
    min-height: 28px;
    margin-top: 8px;
    border: 0;
    border-radius: 30px;
    background: var(--white);
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.card-button:hover {
    transform: translateY(-2px);
    background: var(--light-blue);
}

.decor-e {
    right: -110px;
    bottom: -170px;
    width: 330px;
    height: 330px;
    border-color: rgba(255, 255, 255, .5);
}

.decor-e::after {
    width: 220px;
    height: 220px;
    left: -60px;
    top: 45px;
    background: var(--light-blue-2);
}


/* =====================================================
   POPUPS
===================================================== */

.popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(40, 60, 65, .7);
}

.popup.open {
    display: flex;
}

.popup-inner {
    position: relative;
    width: min(1100px, 100%);
    height: min(720px, 90vh);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--white);
    border-radius: 4px;
}

.popup-text {
    align-self: center;
    padding: 60px;
}

.popup-text p {
    max-width: 500px;
    margin-top: 20px;
}

.popup-image {
    min-height: 100%;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}


/* =====================================================
   TEAM / ÜBER UNS
===================================================== */

.team-grid {
    margin-bottom: 25px;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
}

.team-card img {
    height: 330px;
    object-fit: cover;
}

.team-label {
    position: absolute;
    width: 100%;
    bottom: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .9);
    text-align: left;
}

.team-label strong,
.team-label span {
    display: block;
}

.team-label strong {
    color: var(--dark);
    font-size: 1.2rem;
    text-align: center;
}

.team-label span {
    font-size: 1rem;
    text-align: center;
}

.centered-button {
    position: relative;
    z-index: 2;
}


/* =====================================================
   BEWERTUNGEN
===================================================== */

.reviews-section {
    background: var(--blue);
    color: var(--white);
}

.reviews-section h2,
.reviews-section .split-content>p {
    color: var(--white);
}

.reviews-section .eyebrow {
    color: var(--white);
}

.rating-content {
    margin: 120px 80px;
}

#bewertungen a {
    background-color: #fff;
    color: var(--blue);
    margin-bottom: 20px;
}


/* =====================================================
   KONTAKT
===================================================== */

.contact-section {
    width: min(var(--content-width), calc(100% - 40px));
    margin: auto;
    min-height: 500px;
    padding: 90px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-content h2 {
    max-width: 520px;
    margin-bottom: 18px;
}

.contact-content p {
    margin: 0 0 22px;
}

.contact-content h3 {
    margin-top: 30px;
}

.contact-content a {
    color: var(--blue-dark);
    font-weight: 700;
}

.contact-form {
    height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
    background: var(--light-blue);
    color: var(--blue-dark);
    text-align: center;
}

.contact-form div {
    font-size: 1.2rem;
    font-weight: 800;
}

.contact-form span {
    margin-top: 8px;
    font-size: .75rem;
}

.form {
    border: none;
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    background: var(--light-blue-2);
}

.footer-content {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: 300px;
    margin: auto;
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.footer-text h3 {
    color: var(--blue-dark);
    font-size: 1.7rem;
}

.footer-text p {
    max-width: 430px;
    margin-top: 12px;
}

.footer-iframe-placeholder {
    min-height: 220px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
}

.footer-subnav {
    min-height: 55px;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: var(--white);
    font-size: .7rem;
    font-weight: 800;
}

.footer-subnav a:hover {
    text-decoration: underline;
}

iframe {
    width: 100%;
    height: 85vh;
    padding: 20px;
}

.border{
    height: 40px;
    background-color: var(--blue);
}
/* =====================================================
   RESPONSIVE: BURGER AB 900 PX
===================================================== */

@media (max-width: 900px) {

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        width: min(360px, 100%);
        height: calc(100vh - var(--nav-height));
        padding: 25px 30px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0, 0, 0, .08);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 17px 0;
        border-bottom: 1px solid var(--light-blue-2);
        font-size: .8rem;
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-image {
        background:
            linear-gradient(90deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, .92) 38%,
                rgba(255, 255, 255, .25) 72%,
                rgba(255, 255, 255, 0) 100%),
            url("../img/header.png") 80% center / cover no-repeat;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 40px 0;
    }

    #brillen .split-content,
    #kontaktlinsen .split-content,
    #service .split-content {
        width: min(760px, calc(100% - 40px));
        margin: auto;
        justify-self: center;
        padding: 70px 0;
        z-index: 2;
    }
    .split-image {
    height: 450px;
    min-height: 0;
    order: 2;
}

.split-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-top: 0;
    object-fit: cover;
    border-radius: 0px;
}

    #kontaktlinsen .image-left {
        display: none;
    }

    #bewertungen .image-left {
        display: none;
    }

      #bewertungen {
        display: block !important;
        width: 100% !important;
        min-height: auto;
        margin: 0 !important;
        padding: 40px 0;
        overflow: visible;
    }

    #bewertungen .image-left {
        display: none !important;
    }

    #bewertungen .split-content {
        display: block !important;
        width: calc(100% - 40px) !important;
        max-width: 760px;
        margin: 0 auto !important;
        padding: 50px 0 !important;
        box-sizing: border-box;
    }

    #bewertungen #dsa-rating-view {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        margin: 20px 0 0;
        overflow: visible;
    }

    .split-reverse .split-image {
        order: 1;
    }

    .split-reverse .split-content {
        order: 2;
    }

    .card-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        width: min(760px, 100%);
    }

    .image-card:last-child,
    .team-card:last-child {
        grid-column: span 2;
        width: calc(50% - 9px);
        margin: auto;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 70px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .resp-pic img {
        object-position: center 80%;
    }
}

.decor-d {
    display: none;
}

.ki-bild {
    position: relative;
}

.ki-bild::after {
    content: "KI-generiert";
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;

    padding: 5px 11px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);
    color: #009eb7;

    font-family: "Nunito", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}



/* =====================================================
   RESPONSIVE: TABLET / MOBILE
===================================================== */

@media (max-width: 650px) {

    :root {
        --nav-height: 68px;
    }

    .nav-inner {
        width: calc(100% - 30px);
    }

    .logo {
        width: 105px;
    }

    .hero {
        min-height: 610px;
        align-items: flex-end;
    }

    .quick-contact {
        top: 150px;
    }

    .hero-image {
        inset: var(--nav-height) 0 0 0;
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, .20) 0%,
                rgba(255, 255, 255, .50) 45%,
                rgba(255, 255, 255, .98) 78%,
                rgba(255, 255, 255, 1) 100%),
            url("../img/header.png") 80% center / cover no-repeat;
    }

    .hero-content {
        width: calc(100% - 30px);
        padding: 350px 0 45px;
    }

    .hero-content h1 {
        top: 400px;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .trust-banner {
        grid-template-columns: 1fr;
    }

    .trust-banner div {
        padding: 11px 15px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .25);
    }

    .trust-banner div:last-child {
        border-bottom: 0;
    }


    .split-image,
    .split-image img {
        height: 330px;
        height: 330px;
        border-radius: 0;
    }

    .feature-list li {
        margin-bottom: 15px;
    }

    .cards-section {
        padding: 65px 15px;
    }

    .card-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .image-card:last-child,
    .team-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .image-card img {
        height: 250px;
    }

    .team-card img {
        height: 300px;
    }

    .popup {
        padding: 15px;
    }

    .popup-inner {
        height: min(720px, 94vh);
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        overflow-y: auto;
    }

    .popup-text {
        padding: 45px 25px 25px;
    }

    .popup-image {
        min-height: 280px;
    }

    .rating-content {
        margin: 120px 30px;
    }

    #bewertungen {
        padding: 30px 0;
    }

    #bewertungen .split-content {
        width: calc(100% - 30px) !important;
        padding: 40px 0 !important;
    }s

    .contact-section,
    .footer-content {
        width: calc(100% - 30px);
    }

    .contact-form-placeholder {
        min-height: 300px;
    }

    .footer-content {
        padding: 50px 0;
    }

    .footer-iframe-placeholder {
        min-height: 250px;
    }
    
    .ki-bild::after {
        right: 8px;
        bottom: 8px;
        padding: 4px 9px;
        font-size: 9px;
    }
}


/* =====================================================
   SEHR KLEINE MOBILE GERÄTE
===================================================== */

@media (max-width: 420px) {

    .button {
        width: 100%;
    }

    .hero-content {
        padding-bottom: 35px;
    }

    .split-image,
    .split-image img {
        min-height: 280px;
        height: 280px;
    }

    .feature-list strong {
        font-size: 1.2rem;
    }

    .feature-list small {
        font-size: 1rem;
    }

    .popup-text h2 {
        font-size: 1.8rem;
    }
}