/* M&G Augenoptik – Redesign angelehnt an den bestehenden Auftritt:
   grauer Header/Footer, weißer Content-Block (max 1040px) mit Schatten
   auf hellgrauem Grund, Serifen-Überschriften, Lila #632c91 nur als Akzent,
   diagonale Schnitte als Wiedererkennungsmerkmal.
   Keine externen Fonts/CDNs → DSGVO-minimal.
   Grauton gegenüber Alt-Seite (#868b91) auf #6b7076 abgedunkelt:
   Weiß darauf erreicht 4,99:1 und besteht WCAG AA (#868b91 nur 3,43:1). */

:root {
    --grey: #6b7076;
    --grey-dark: #565b60;
    --grey-border: #868b91;
    --grey-page: #dcdddf;
    --grey-line: #d8d9db;
    --grey-soft: #ecedef;
    --purple: #632c91;
    --purple-dark: #4a2070;
    --magenta: #b5106d;
    --ink: #333333;
    --ink-soft: #5f6367;
    --white: #ffffff;
    --serif: Georgia, "Times New Roman", Times, serif;
    --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --radius: 8px;
    /* Zwei Lagen: feine Kontaktlage + breite Umgebungslage = wahrnehmbare Höhe ohne Rahmen */
    --shadow-soft:
        0 1px 2px rgba(43, 39, 51, .06),
        0 8px 20px -6px rgba(43, 39, 51, .16);
}

/* Design-Varianten: Diese Datei ist das Basis-Layout UND die Variante "Klassik".
   Die Varianten "motion", "warm" und "elegant" liegen als eigene CSS-Pakete
   (theme-motion.css usw.) und werden per Inline-Script im <head> nachgeladen.
   Nach Brittas Entscheidung: gewähltes Paket fest einbinden, Rest löschen. */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 1.0625rem; /* 17px – Zielgruppe 60+, rem damit Browser-Zoom greift */
}

/* Anker-Sprünge nicht unter dem Sticky-Header landen lassen */
section[id], main[id] { scroll-margin-top: 90px; }

/* Tastatur-Fokus deutlich sichtbar */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}
.site-header a:focus-visible, .site-footer a:focus-visible, .call-bar:focus-visible {
    outline-color: var(--white);
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--purple); color: var(--white);
    padding: .7rem 1.2rem; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Vollbreites Layout – Inhalte laufen über die ganze Seite,
   Textbreite wird nur über .container begrenzt */
.wrapper { width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
h2::after {
    content: ""; display: block; width: 44px; height: 3px;
    margin-top: .55rem;
    background: linear-gradient(to right, var(--purple) 0 50%, var(--magenta) 50% 100%);
}
a { color: var(--purple); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--grey);
    border-bottom: 3px solid var(--purple);
}
.header-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
    padding: .55rem 40px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
/* Neues Logo (Druckerei-Original, graue Zeichnung auf transparent):
   auf dunklen Headern/Footern als weiße Silhouette, helle Varianten
   überschreiben mit filter:none für die Original-Grautöne */
.logo img { height: 62px; width: auto; display: block; }
.logo img, .footer-inner img { filter: brightness(0) invert(1); }

/* Telefonnummer: immer sichtbar, auch auf Mobil (außerhalb des einklappbaren Menüs) */
.header-phone {
    background: var(--white); color: var(--purple);
    padding: .5rem 1.1rem; font-weight: 700; font-size: 1rem;
    border-radius: 999px;
    text-decoration: none; white-space: nowrap;
    margin-left: auto;
}
.header-phone:hover { background: var(--grey-soft); }

.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
    text-decoration: none; color: var(--white);
    font-size: .92rem; letter-spacing: .09em; text-transform: uppercase;
    padding: .3rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .6rem; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--white); margin: 5px 0; transition: .2s; }

/* Mobile Anrufleiste (fixiert am unteren Rand, nur klein) */
.call-bar { display: none; }

/* ---------- Hero: Split-Layout, Text links, Bild rechts (nichts wird verdeckt) ---------- */
.hero {
    display: grid; grid-template-columns: 1.05fr 1fr;
    align-items: center; min-height: 480px;
}
.hero-content {
    padding: 3rem 2.5rem 3.5rem max(40px, calc((100vw - 1080px) / 2 + 40px));
}
.hero-content .eyebrow {
    text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
    font-weight: 700; color: var(--magenta); margin-bottom: .5rem;
}
.hero-content h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.hero-sub { color: var(--ink); max-width: 32rem; margin-bottom: 1.3rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

.hero-media { height: 100%; min-height: 480px; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.btn {
    display: inline-block; text-decoration: none; font-weight: 600;
    font-size: 1rem; padding: .75rem 1.6rem; transition: .15s;
    border-radius: 999px;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); }

/* Ruhige Textlinks statt umrandeter Buttons */
.link-cta {
    display: inline-block; font-weight: 600; color: var(--purple);
    text-decoration: none; padding: .3rem 0;
}
.link-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

.img-placeholder {
    background: repeating-linear-gradient(45deg, #e9e9ea, #e9e9ea 12px, #dededf 12px, #dededf 24px);
    border-radius: var(--radius);
    border: 1px dashed var(--grey);
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--grey-dark); font-weight: 600;
}

/* Kleines Infopanel, keine Button-Kapsel → Kartenfamilie */
.rating-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.1rem; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow-soft);
    text-decoration: none; color: var(--ink); font-size: .95rem;
}
.rating-badge:hover { background: var(--grey-soft); }
.stars { color: var(--magenta); letter-spacing: .12em; }

/* ---------- Fakten-Leiste ---------- */
.usp-strip {
    background: var(--grey-soft); color: var(--ink);
}
.usp-grid {
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
    padding: 1.9rem 40px;
}
.usp h3 { color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.usp p { color: var(--ink); font-size: 1rem; line-height: 1.5; }
.usp a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--grey-soft); }
.section-intro { color: var(--ink-soft); max-width: 40rem; margin-bottom: 1.8rem; }

/* Über uns */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.about-img { aspect-ratio: 4/3; width: 100%; height: auto; object-fit: cover; }
.about-text p { margin-bottom: .9rem; color: var(--ink); }

/* Gap deutlich größer als das Karten-Padding, sonst verschwimmen rahmenlose Karten */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card {
    background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.5rem 1.4rem;
    transition: box-shadow .25s ease;
}
/* Klassik bleibt ruhig: beim Überfahren nur ein etwas tieferer Schatten */
.card:hover {
    box-shadow:
        0 2px 4px rgba(43, 39, 51, .07),
        0 14px 30px -8px rgba(43, 39, 51, .22);
}
.card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.card p { color: var(--ink); font-size: 1rem; line-height: 1.55; }

.section-cta { text-align: center; margin-top: 2rem; }

/* ---------- Marken: Logo-Raster wie bei der Referenz ---------- */
/* 14 Logos; Raster greift nur als Fallback bei reduzierter Bewegung */
.brand-grid {
    list-style: none;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem 2.8rem; align-items: center; justify-items: center;
    margin-top: 2.2rem;
}
.brand-grid li { display: flex; align-items: center; justify-content: center; }

/* Marken als endlos laufende Leiste – Brittas Wunsch, gilt in allen Varianten.
   Zwei identische Tracks, exakt -100% verschoben (kein calc, iOS-sicher). */
.brand-marquee {
    display: flex; overflow: hidden;
    margin-top: 2.2rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
    display: flex; flex-wrap: nowrap; align-items: center;
    gap: 2.4rem; padding-right: 2.4rem;
    flex-shrink: 0; min-width: 100%; justify-content: space-around;
    margin-top: 0;
    animation: mg-brand-scroll 28s linear infinite;
}
.brand-track[aria-hidden="true"] { display: flex; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes mg-brand-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .brand-marquee { display: block; mask-image: none; -webkit-mask-image: none; }
    .brand-track { display: grid; grid-template-columns: repeat(4, 1fr); animation: none; }
    .brand-track[aria-hidden="true"] { display: none; }
}
.brand-grid img {
    max-width: 130px; max-height: 60px; width: auto; height: auto;
    filter: grayscale(1); mix-blend-mode: multiply;
    transition: .2s;
}
/* inface ist weiße Schrift auf schwarzem Kasten – invertiert fügt es
   sich ins helle Wortmarken-Raster ein (Multiply macht nur Weiß transparent) */
.brand-grid img[src*="inface"] { filter: grayscale(1) invert(1); }
.brand-grid li:hover img { filter: none; }

/* Kinderbrillen: statische, farbige Logo-Reihe unter dem Laufband */
.kids-brands { margin-top: 3rem; text-align: center; }
.kids-brands h3 { font-size: 1.15rem; margin-bottom: 1.4rem; }
.kids-grid {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 1.6rem 2.4rem;
}
.kids-grid li { display: flex; align-items: center; justify-content: center; }
.kids-grid img { max-height: 42px; max-width: 110px; width: auto; height: auto; }

/* ---------- Bewertungen ---------- */
.rating-summary {
    display: grid; grid-template-columns: auto 1fr; gap: 3rem;
    align-items: start; margin: 1.4rem 0 0;
}
.rating-score { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.rating-number { font-family: var(--serif); font-size: 3.6rem; color: var(--purple); line-height: 1; }
.rating-score .stars { font-size: 1.35rem; }
.rating-count { color: var(--ink-soft); font-size: .95rem; white-space: nowrap; }
.review-card {
    font-style: normal; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.6rem;
}
.review-card p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-bottom: .8rem; }
.review-card footer { color: var(--ink-soft); font-size: .95rem; }
.review-card .stars { font-size: .95rem; display: block; margin-bottom: .5rem; }
/* Langes Zitat aufrecht setzen – 1400 Zeichen Kursiv-Serif sind für 60+ schwer lesbar;
   Anführungszeichen und Karte kennzeichnen es ausreichend als Zitat */
.review-ref p { font-size: 1.12rem; line-height: 1.7; font-style: normal; }
.review-teasers { margin-top: 1.1rem; grid-template-columns: repeat(2, 1fr); }

/* ---------- FAQ: offen sichtbar, kein Aufklappen ---------- */
.faq-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem 3.5rem;
}
.faq-item h3 {
    font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
    margin-bottom: .35rem; padding-left: .9rem;
    border-left: 3px solid var(--purple);
}
.faq-item p { color: var(--ink); font-size: 1rem; padding-left: calc(.9rem + 3px); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-details { font-style: normal; margin: 1rem 0; }
.contact-details p { margin-bottom: .8rem; }
.contact-line {
    display: inline-block; margin: .1rem 0; padding: .35rem 0;
    font-weight: 700; font-size: 1.1rem; text-decoration: none;
}
.contact-line:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Telefon als klarer Anruf-Button: ein Tipp am Handy genügt */
.btn-call {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .7rem 1.4rem;
    border: 1.5px solid var(--purple); border-radius: var(--radius);
    color: var(--purple); background: var(--white);
    font-weight: 700; font-size: 1.15rem; text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.btn-call:hover { background: var(--purple); color: var(--white); }
.hours { border-collapse: collapse; margin: 1rem 0; width: 100%; max-width: 22rem; }
.hours td { padding: .5rem .2rem; border-bottom: 1px solid var(--grey-line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.note { color: var(--ink-soft); font-size: .95rem; margin-top: .8rem; }

/* Lageplan (Grafik vom Grafiker), Klick öffnet Google Maps */
.lageplan {
    display: block; margin-top: 1.4rem; max-width: 26rem;
    text-decoration: none;
}
.lageplan img {
    width: 100%; height: auto; display: block;
    border: 1px solid var(--grey-line); border-radius: var(--radius);
    transition: box-shadow .25s ease, transform .25s ease;
}
.lageplan:hover img {
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .25);
    transform: translateY(-2px);
}
.lageplan-hint {
    display: block; margin-top: .4rem;
    color: var(--ink-soft); font-size: .88rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--grey); color: var(--white); border-top: 3px solid var(--purple); }
.footer-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .8rem; padding: 1.3rem 40px; font-size: .95rem;
}
.footer-inner img { height: 44px; width: auto; }
.site-footer a { color: var(--white); text-decoration: none; margin-left: 1.2rem; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 3rem 40px; max-width: 46rem; }
.legal h1 { margin-bottom: 1.5rem; font-size: 1.8rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.legal h2::after { display: none; }
.legal p { margin-bottom: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .container, .header-inner, .usp-grid, .footer-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-media { order: -1; min-height: 0; }
    .hero-media img { height: 260px; }
    .hero-content { padding: 1.4rem 1.25rem 2rem; }
    /* Mobil: 3 Spalten, inface + Visibilia ausgeblendet → 12 Logos = 4x3 */
    .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.4rem; }
    .brand-grid .mobile-hide { display: none; }
    .usp-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .rating-summary { grid-template-columns: 1fr; gap: 1.2rem; justify-items: center; text-align: center; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* Kontakt mobil zentriert: wirkt luftiger, Buttons liegen mittig im Daumenbereich */
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .contact-grid h2::after { margin-left: auto; margin-right: auto; }
    .hours { margin-left: auto; margin-right: auto; }
    .hours td:first-child { text-align: left; }
    .lageplan { margin-left: auto; margin-right: auto; }
    .legal { padding: 2rem 1.25rem; }

    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--grey);
        border-bottom: 3px solid var(--purple); padding: 1rem 1.25rem; gap: 1rem;
    }
    .main-nav.open { display: flex; }

}

@media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
    .header-phone { font-size: .95rem; padding: .45rem .7rem; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-grid img { max-width: 92px; max-height: 46px; }
}
