/* =========================================================
   Fuenfstueck Theme – Augenarztpraxis
   Mobile-first, helles medizinisches Layout
   ========================================================= */

:root {
    --color-primary: #2a8fbd;          /* helles medizinisches Blau */
    --color-primary-dark: #1f6e93;
    --color-secondary: #4caf78;        /* sanftes Grün */
    --color-secondary-dark: #3a8c5e;
    --color-accent: #f29200;           /* Akzentfarbe für CTAs / Notfall */
    --color-text: #2c3e50;
    --color-text-soft: #5d6d7e;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f9fb;
    --color-bg-card: #ffffff;
    --color-border: #e2e8ee;
    --color-success: #2e7d32;
    --color-error: #c0392b;

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: var(--font-base);

    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    --container-max: 1180px;
    --container-narrow: 820px;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { color: var(--color-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-text); line-height: 1.2; margin-top: 0; }
h1 { font-size: 2.25rem; margin-bottom: var(--space-3); font-weight: 600; }
h2 { font-size: 1.75rem; margin-bottom: var(--space-2); font-weight: 600; }
h3 { font-size: 1.25rem; margin-bottom: var(--space-1); font-weight: 600; }

p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-2) 1.25rem; padding: 0; }
li { margin-bottom: 0.35rem; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-3); }
.container--narrow { max-width: var(--container-narrow); }

/* =========================================================
   Topbar + Header
   ========================================================= */
.topbar {
    background: var(--color-primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.4rem 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-inner {
    display: flex; flex-direction: column; gap: 0.25rem;
    align-items: flex-start;
}
.topbar .sep { margin: 0 0.5rem; opacity: 0.6; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-2) var(--space-3);
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-size: 1.15rem; font-weight: 700; color: var(--color-primary-dark); }
.brand-sub   { font-size: 0.8rem; color: var(--color-text-soft); }

.nav-toggle {
    background: transparent; border: 0; padding: 0.4rem;
    display: flex; flex-direction: column; gap: 4px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--color-primary-dark);
    transition: transform .25s;
}

.main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}
.main-nav.is-open { display: block; }
.main-nav ul {
    list-style: none; margin: 0; padding: var(--space-2) var(--space-3);
    display: flex; flex-direction: column; gap: var(--space-1);
}
.main-nav a {
    display: block; padding: 0.5rem 0; color: var(--color-text);
    font-weight: 500;
}

@media (min-width: 900px) {
    .topbar-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-3); }
    .nav-toggle { display: none; }
    .main-nav { display: block; position: static; border: 0; }
    .main-nav ul { flex-direction: row; padding: 0; gap: var(--space-3); align-items: center; }
    .main-nav a:hover { color: var(--color-primary); }
}

/* Standort-Umschalter (oben, über der Topbar) – hebt den aktiven Standort hervor */
.standort-switch-bar {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.standort-switch {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}
.standort-switch__label {
    color: var(--color-text-soft);
    margin-right: 0.15rem;
}
.standort-switch__item {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    color: var(--color-text-soft);
    font-weight: 600;
    line-height: 1.6;
}
.standort-switch__item:hover {
    color: var(--color-primary-dark);
    background: #e7eef3;
    text-decoration: none;
}
.standort-switch__item.is-active {
    background: var(--color-primary);
    color: #fff;
}
.standort-switch__item.is-active:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* Dauerhaft sichtbares Standort-Hinweisband unterhalb des Menüs */
.standort-hinweis {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.6rem 0;
    color: #5a4100;
    background: #fff4d6;
    border-top: 1px solid #f1d27a;
    border-bottom: 1px solid #f1d27a;
}
.standort-hinweis .container {
    display: flex; align-items: baseline; gap: 0.5rem;
}
.standort-hinweis__icon { flex: 0 0 auto; }
.standort-hinweis--warnung {
    color: #7a2e00;
    background: #ffe7d1;
    border-color: #f0b27a;
}

/* Deaktiviertes Formular – Schließungshinweis */
.form-deaktiviert {
    background: #ffe7d1;
    border: 1px solid #f0b27a;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    color: #7a2e00;
}
.form-deaktiviert h2 { margin-top: 0; color: #7a2e00; }
.form-deaktiviert a { color: var(--color-primary-dark); font-weight: 600; }

/* =========================================================
   Module – allgemein
   ========================================================= */
.module { padding: var(--space-5) 0; }
.module:nth-child(even) { background: var(--color-bg-alt); }

.section-title { text-align: center; position: relative; }
.section-title::after {
    content: ""; display: block; width: 60px; height: 3px;
    background: var(--color-primary); margin: var(--space-1) auto var(--space-3);
    border-radius: 3px;
}
.section-sub {
    text-align: center; color: var(--color-text-soft);
    max-width: 700px; margin: 0 auto var(--space-4);
}

/* Image placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #e7eef3 0%, #cfdde6 100%);
    color: var(--color-text-soft);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    border-radius: var(--radius);
    min-height: 220px;
}

/* =========================================================
   Hero / Slider
   ========================================================= */
.module-hero { padding: 0; background: #000; }
.hero-slider { width: 100%; }
.hero-slide {
    min-height: 70vh;
    background-size: cover; background-position: center top;
    position: relative;
    display: flex; align-items: flex-end;
    background-color: #1f6e93;
}
.hero-slide--placeholder {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}
.hero-overlay {
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    padding: var(--space-5) 0 var(--space-4);
    color: #fff;
}
.hero-overlay h2 { color: #fff; font-size: 2rem; margin-bottom: var(--space-1); }
.hero-overlay p { font-size: 1.1rem; max-width: 640px; }
@media (min-width: 900px) {
    .hero-slide { min-height: 70vh; }
    .hero-overlay h2 { font-size: 2.75rem; }
}

/* =========================================================
   Aktuelles
   ========================================================= */
.news-grid {
    display: grid; gap: var(--space-3);
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
.news-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
}
.news-card--highlight { border-left-color: var(--color-accent); background: #fff8ed; }
.news-date {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--color-text-soft); margin-bottom: 0.25rem;
}

/* =========================================================
   Über
   ========================================================= */
.ueber-grid {
    display: grid; gap: var(--space-4);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) {
    .ueber-grid { grid-template-columns: 1fr 1.4fr; }
}
.ueber-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ueber-text .lead { font-size: 1.1rem; color: var(--color-text-soft); }

/* =========================================================
   Leistungen
   ========================================================= */
.leistungen-grid {
    display: grid; gap: var(--space-3);
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .leistungen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .leistungen-grid { grid-template-columns: repeat(3, 1fr); } }
.leistungen-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.leistungen-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.leistungen-icon {
    width: 48px; height: 48px;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.4rem;
    margin-bottom: var(--space-1);
}
.leistungen-card ul { margin-left: 1.1rem; }
.leistungen-card li { color: var(--color-text-soft); }

/* =========================================================
   Team
   ========================================================= */
.team-gruppe { margin-bottom: var(--space-4); }
.team-gruppe-titel { text-align: center; color: var(--color-primary-dark); margin-bottom: var(--space-3); }
.team-grid {
    display: flex; flex-wrap: wrap; gap: var(--space-3);
    justify-content: center;
}
.team-card {
    margin: 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex: 0 1 220px;
    max-width: 240px;
}
@media (min-width: 1000px) {
    .team-card { flex-basis: 200px; }
}

/* Größere Cards für Ärztinnen-Gruppe */
.team-gruppe--gross .team-card {
    flex: 1 1 280px;
    max-width: 480px;
}
@media (min-width: 1000px) {
    .team-gruppe--gross .team-card { flex-basis: 380px; max-width: 520px; }
}
.team-image { aspect-ratio: 1 / 1; background: var(--color-bg-alt); }
.team-image img { width: 100%; height: 100%; object-fit: cover; }
.team-image .image-placeholder {
    width: 100%; height: 100%; min-height: 0; border-radius: 0;
    font-size: 2.5rem;
}
.team-card figcaption { padding: var(--space-2); }
.team-rolle { display: block; color: var(--color-text-soft); font-size: 0.9rem; }

/* =========================================================
   Praxis-Slider
   ========================================================= */
.praxis-slider .splide__slide {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}
.praxis-slider img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
}
.praxis-slider .placeholder-tile { aspect-ratio: 16/10; min-height: 0; }

/* Bild als Lightbox-Auslöser */
.praxis-slide-btn {
    display: block; width: 100%; padding: 0; margin: 0;
    border: 0; background: none; cursor: zoom-in;
    border-radius: var(--radius); overflow: hidden;
}
.praxis-slide-btn img { transition: transform .35s ease; }
.praxis-slide-btn:hover img,
.praxis-slide-btn:focus-visible img { transform: scale(1.04); }
.praxis-slide-btn:focus-visible {
    outline: 3px solid var(--color-primary); outline-offset: 2px;
}

/* =========================================================
   Lightbox
   ========================================================= */
body.lightbox-open { overflow: hidden; }

.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1rem, 5vw, 3rem);
    background: rgba(26, 38, 48, 0.88);
    animation: lightbox-fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
    margin: 0; display: flex; align-items: center; justify-content: center;
    max-width: 92vw; max-height: 88vh;
}
.lightbox__img {
    max-width: 92vw; max-height: 88vh; width: auto; height: auto;
    display: block; border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    background: var(--color-bg);
}

.lightbox__close,
.lightbox__arrow {
    position: absolute; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover,
.lightbox__arrow:hover { background: var(--color-primary-dark); }
.lightbox__close:focus-visible,
.lightbox__arrow:focus-visible {
    outline: 3px solid #fff; outline-offset: 2px;
}
/* SVG-Icons nicht vom Flex-Container stauchen lassen */
.lightbox__close svg,
.lightbox__arrow svg { flex: 0 0 auto; display: block; }

.lightbox__close {
    top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
    width: 48px; height: 48px;
}
.lightbox__close svg { width: 26px; height: 26px; }

.lightbox__arrow {
    top: 50%; transform: translateY(-50%);
    width: 104px; height: 104px;
}
.lightbox__arrow svg { width: 52px; height: 52px; }
.lightbox__arrow:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__arrow--prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox__arrow--next { right: clamp(0.5rem, 3vw, 2rem); }

@media (max-width: 600px) {
    .lightbox__arrow { width: 72px; height: 72px; }
    .lightbox__arrow svg { width: 36px; height: 36px; }
}

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt-grid {
    display: grid; gap: var(--space-3);
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .kontakt-grid { grid-template-columns: repeat(3, 1fr); }
}
.kontakt-block {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
}
.kontakt-block h3 {
    color: var(--color-primary-dark);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem; margin-bottom: var(--space-2);
}
.kontakt-info address { font-style: normal; }
.kontakt-notfall { background: #fff8ed; border-color: #f5cf99; }
.kontakt-notfall .big-num {
    display: block; font-size: 2rem; font-weight: 700;
    color: var(--color-accent); margin-top: var(--space-1);
}
.sprechzeiten { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sprechzeiten th, .sprechzeiten td {
    text-align: left; padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.sprechzeiten th { font-weight: 600; width: 30%; color: var(--color-primary-dark); }
.sprechzeiten-zusatz { font-size: 0.85rem; color: var(--color-text-soft); }
.sprechzeiten-hinweis {
    margin-top: var(--space-2); font-size: 0.9rem; color: var(--color-text-soft);
}
.kontakt-map { margin-top: var(--space-4); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* =========================================================
   Map Consent (Two-Click-Lösung für Google Maps)
   ========================================================= */
.map-consent {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    display: flex; flex-direction: column;
}
.map-consent__notice {
    padding: var(--space-4) var(--space-3);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.map-consent__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-1);
    line-height: 1;
}
.map-consent__title {
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2);
}
.map-consent__notice p {
    font-size: 0.95rem;
    color: var(--color-text-soft);
    margin-bottom: var(--space-2);
    text-align: left;
}
.map-consent__hint {
    font-size: 0.85rem !important;
    font-style: italic;
    color: var(--color-text-soft);
}
.map-consent__actions {
    display: flex; flex-wrap: wrap; gap: var(--space-2);
    justify-content: center; align-items: center;
    margin-top: var(--space-3);
}
.map-consent__alt {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: underline;
}
.map-consent__loaded {
    position: relative;
    display: flex; flex-direction: column;
}
.map-consent__loaded iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}
.map-consent__revoke-wrap {
    background: var(--color-bg-alt);
    padding: var(--space-1) var(--space-2);
    text-align: right;
    border-top: 1px solid var(--color-border);
}
.map-consent__revoke {
    background: transparent;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius);
    cursor: pointer;
}
.map-consent__revoke:hover {
    background: var(--color-bg);
    color: var(--color-error);
    border-color: var(--color-error);
}

/* =========================================================
   Sub-Pages
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: var(--space-5) 0;
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-1); }
.page-hero .lead { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.page-content { padding: var(--space-5) 0; }

/* =========================================================
   Operationen-Unterseite (im Startseiten-Stil)
   ========================================================= */
/* Abschnitte wie die Startseiten-Module: gleiche Polsterung + abwechselnder Hintergrund */
.op-section { padding: var(--space-5) 0; }
.op-section--alt { background: var(--color-bg-alt); }

/* Gespiegeltes „Über"-Layout (Text links, Foto rechts) */
@media (min-width: 900px) {
    .ueber-grid--reverse { grid-template-columns: 1.4fr 1fr; }
}

/* OP-Fotos füllen ihre Spalte gleichmäßig */
.op-section .ueber-image img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
}

/* Fließtext in den Eingriffs-Karten */
.op-card-text { color: var(--color-text-soft); }
.op-card-text p:last-child { margin-bottom: 0; }

/* =========================================================
   Forms
   ========================================================= */
.form-page form { background: #fff; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: var(--space-2); }
.form-input-wrapper { display: block; }
.form-label, label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--color-text); }
.required > .form-label::after { content: " *"; color: var(--color-error); }
input[type="text"], input[type="email"], input[type="date"], input[type="tel"], input[type="number"], textarea, select {
    width: 100%; padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit; font-size: 1rem;
    background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }

.form-checkbox-wrapper { display: flex; gap: 0.5rem; align-items: flex-start; }
.form-checkbox-wrapper input { margin-top: 0.25rem; }

.form-row { display: grid; gap: var(--space-2); }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }

button, .button {
    display: inline-block; cursor: pointer;
    background: var(--color-primary); color: #fff;
    padding: 0.7rem 1.4rem; border: 0;
    border-radius: var(--radius); font-weight: 600; font-size: 1rem;
    transition: background-color .2s;
}
button:hover, .button:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }

.form-messages { margin-bottom: var(--space-2); }
.notices.green, .notices.note { padding: var(--space-2); border-radius: var(--radius); }
.notices.green { background: #e8f5e9; color: var(--color-success); border: 1px solid #c8e6c9; }
.notices.red, .notices.error { background: #fdecea; color: var(--color-error); border: 1px solid #f5c6c1; }

/* Honeypot field – per CSS unsichtbar */
.form-hidden, .honeypot-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #1f2933; color: #cbd2d9; margin-top: var(--space-6); padding-top: var(--space-5); }
.site-footer h4 { color: #fff; margin-bottom: var(--space-2); font-size: 1.05rem; }
.site-footer a { color: #cbd2d9; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid; gap: var(--space-4);
    grid-template-columns: 1fr;
    padding-bottom: var(--space-4);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.big-num { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); }
.footer-bottom {
    background: #161d24;
    padding: var(--space-2) 0;
    font-size: 0.85rem;
    text-align: center;
}

/* =========================================================
   Utility
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
