/* =============================
   Zahnarzt Florstadt – Main CSS
   ============================= */

:root{
  --bg:#ffffff;
  --card:#ffffff;
  --muted:#475569;   /* slate-600 */
  --text:#0f172a;    /* slate-900 */
  --brand:#1e40af;   /* legacy blue (kept for reference) */
  --accent:#0284c7;  /* legacy accent */
  --ok:#16a34a;
  --warn:#b45309;
  --danger:#dc2626;
  --shadow: 0 8px 24px rgba(0,0,0,.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --gap: clamp(14px, 2vw, 22px);
  --max: 1200px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; text-size-adjust:100%}
html,body{
  margin:0; font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text); background:var(--bg);
}
body{
  background:radial-gradient(1200px 600px at 75% -100px, rgba(56,189,248,.15), transparent 70%),
             radial-gradient(800px 400px at 15% -150px, rgba(34,211,238,.18), transparent 70%),
             var(--bg);
}

/* Links */
a{color:#02284f; text-decoration:none}
a:hover{color:#02284f}

/* Layout helpers */
.container{max-width:var(--max); margin-inline:auto; padding: 0 20px}

/* Header / Navigation */
header{position:sticky; top:0; z-index:50; backdrop-filter:saturate(160%) blur(8px); background:rgba(255,255,255,.8); border-bottom:1px solid rgba(15,23,42,.08)}
.nav{display:flex; align-items:center; justify-content:space-between; padding:12px 0}
.brand{display:flex; align-items:center; gap:12px}
.brand__mark{width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:#ffffff; box-shadow:var(--shadow)}
/* Logo-Link gezielt ausnehmen: keine Nav-Link-Polsterung/Hover-Effekte */
.nav a.brand__mark{padding:0; background:#ffffff}
.nav a.brand__mark:hover{background:#ffffff}
.brand__title{font-weight:700; letter-spacing:.2px}

.nav ul{display:flex; gap:18px; list-style:none; padding:0; margin:0; align-items:center}
.nav a:not(.brand__mark){padding:8px 10px; border-radius:10px}
.nav a:not(.brand__mark):hover{background:rgba(255,255,255,.06)}

/* Header CTA */
.nav .cta{background:#b9984b; color:#ffffff; font-weight:700; padding:9px 14px; border-radius:12px}
.nav .cta:hover{background:#b9984b; filter:none; color:#000; box-shadow: 0 8px 24px rgba(0,0,0,.18)}

/* Global CTA button */
.cta{display:inline-flex; align-items:center; gap:10px; background:#b9984b; color:#ffffff; font-weight:700; padding:9px 14px; border-radius:12px; transition: background .2s ease, color .2s ease, box-shadow .2s ease}
.cta:hover{filter:none; color:#000; box-shadow: 0 8px 24px rgba(0,0,0,.18)}
.cta:focus-visible{outline:3px solid rgba(22,163,74,.45); outline-offset:2px}

.menu-btn{display:none}

/* Hero */
.hero{isolation:isolate; position:relative; padding: clamp(46px, 8vw, 90px) 0}
.hero .grid{display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 3vw, 36px); align-items:center}

/* Tag/Breadcrumb chip */
.tag{display:inline-flex; gap:8px; align-items:center; padding:6px 10px; border-radius:999px; background:rgba(186,153,75,.19); border:1px solid rgba(186,153,75,.35); color:#02284f; font-weight:600}

/* Typography */
h1{font-size: clamp(28px, 4vw, 44px); line-height:1.2; margin:10px 0 12px}
.section-title{font-size: clamp(22px, 3vw, 32px); margin:0 0 8px}
.section-lead{color:var(--muted); margin:0 0 24px}
.lead{font-size: clamp(16px, 2.2vw, 19px); color:var(--muted)}

/* Global heading color */
h1,h2,h3,h4,h5,h6{color:#02284f}
/* Elements with aria-label get the same color (unless overridden) */
[aria-label]{color:#02284f}
/* Keep CTAs readable even if aria-label present */
.cta[aria-label]{color:#ffffff}
.cta[aria-label]:hover{color:#000}

/* Buttons */
.actions{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap}
.btn{display:inline-flex; align-items:center; gap:10px; border:1px solid rgba(255,255,255,.12); padding:10px 14px; border-radius:12px; font-weight:700}
.btn.primary{border:none; background:linear-gradient(135deg, var(--brand), var(--accent)); color:#0b122b}
.btn.call{border-color:rgba(128,128,128,.6)}

/* Cards / grids */
.card{background:#ffffff; border:1px solid #e5e7eb; border-radius:var(--radius); box-shadow:var(--shadow)}
section{padding: clamp(40px, 7vw, 80px) 0}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap)}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:var(--gap)}
.service{padding:20px}
.service h3{margin:0 0 6px}

/* Notices */
.notice{display:flex; gap:14px; align-items:flex-start; padding:14px 16px; border-radius:14px; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3)}
.notice strong{color:#fde68a}

/* Team */
.team{display:grid; grid-template-columns: 1fr 1fr; gap:var(--gap)}
.team .member{display:flex; gap:14px; align-items:flex-start; padding:18px}
.team .avatar{width:56px; height:56px; aspect-ratio:1 / 1; flex:0 0 56px; border-radius:50%; background:#ba994b; overflow:hidden}
.team .avatar img{width:100%; height:100%; object-fit:cover; display:block}

/* Contact */
.contact .cols{display:grid; grid-template-columns:1.1fr .9fr; gap:var(--gap)}
.contact .map{height:340px; border-radius:var(--radius); background:linear-gradient(135deg, rgba(56,189,248,.15), rgba(34,211,238,.15)); border:1px dashed rgba(255,255,255,.2); display:grid; place-items:center; color:var(--muted)}

/* Footer */
.footer{padding:28px 0; border-top:1px solid rgba(255,255,255,.08); color:#94a3b8}
.footer a{color:#02284f}

/* Modal */
.modal{position:fixed; inset:0; display:none; place-items:center; background:rgba(15,23,42,.55); padding:20px; z-index:70}
.modal.open{display:grid}
.modal__card{position:relative; width:min(920px,96vw); max-height:90vh; overflow:hidden; background:rgba(186,153,75,.95); border:1px solid #e5e7eb; border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:clamp(16px,2.5vw,24px); display:flex; flex-direction:column}
.modal__close{position:absolute; top:10px; right:12px; font-size:22px; line-height:1; background:transparent; border:none; cursor:pointer}
#termin-widget{flex:1 1 auto; overflow:auto; -webkit-overflow-scrolling:touch; min-height:0}

/* Consent-Gate styles */
.consent{background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px; box-shadow:var(--shadow); color:var(--text)}
.consent p{margin:.5rem 0}
.consent__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.consent small, .consent__legal{color:var(--muted)}

/* Mobile header helpers (ensure phone left of CTA and both visible) */
.cta--mobile{display:none}
.call--mobile{display:none}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 980px){.nav a:not(.brand__mark){padding:12px}

  /* Hero image fixes */
  .hero{padding-bottom: clamp(28px, 8vw, 56px)}
  .hero .grid{gap: clamp(12px, 4vw, 18px)}
  .hero .grid > .card{aspect-ratio:auto; min-height:0; overflow:hidden}
  .hero .grid > .card img{width:100%; height:auto; object-fit:contain; display:block}

  /* Mobile-only header CTAs */
  .call--mobile{display:inline-flex; order:3; margin-right:12px}
  .cta--mobile{display:inline-flex; order:4; margin-left:0}
}

/* Desktop reset for nav */
@media (min-width:981px){.nav a:not(.brand__mark){padding:8px 10px}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:repeat(2,1fr)}
}

/* Fullscreen modal on very small screens */
@media (max-width:680px){
  .modal{align-items:stretch; padding:0}
  .modal__card{width:100vw; height:100vh; height:100dvh; height:100svh; max-height:none; border-radius:0}
}


/* Team: auf Smartphones einspaltig, damit nichts gequetscht/oval wird */
@media (max-width: 980px){
  .team{grid-template-columns:1fr}
}

/* Cookiebanner / Overlay */
.cookiebar{
  position: fixed;
  inset: 0;
  z-index: 120;                 /* über Header (50) & Modal (70) */
  display: none;
  align-items: flex-end;        /* Box unten andocken */
  background: rgba(15,23,42,.35);
}
.cookiebar.open{ display: flex; }

.cookiebar__content{
  background:#fff; border:1px solid #e5e7eb; border-radius:16px;
  box-shadow:var(--shadow);
  width:min(920px,96vw);
  margin:0 auto 16px; padding:16px;
  max-height:90vh; overflow:auto;
}
.cookiebar__group{display:grid; gap:8px; margin:12px 0}
.cookiebar__row{display:flex; align-items:center; gap:8px}
.cookiebar__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.cookiebar [type="checkbox"]{width:16px; height:16px}

@media (max-width:680px){
  .cookiebar__content{ width:100vw; border-radius:0; margin:0; max-height:100vh; }
}


/* ===== Mobile menu (overlay) – ensures menu works on smartphones ===== */
@media (max-width: 980px){
  /* show and style the menu button */
  .menu-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius:10px;
    border:1px solid rgba(0,0,0,.12);
    background:#fff;
    cursor:pointer;
  }
  /* overlay menu (hidden by default, opened via .open) */
  .nav ul{
    position:fixed;
    inset:64px 10px auto 10px;
    background:rgba(186,153,75,.94);
    border:1px solid rgba(186,153,75,.98);
    border-radius:14px;
    padding:10px;
    display:none;
    flex-direction:column;
    gap:12px;
    z-index:60; /* over header */
  }
  .nav ul.open{display:flex}
}

/* Desktop reset (ensure normal inline nav) */
@media (min-width:981px){
  .menu-btn{display:none}
  .nav ul{
    position:static; inset:auto;
    background:transparent; border:none; border-radius:0; padding:0;
    display:flex; flex-direction:row;
  }
}


/* Fix: Services-Cards auf schmalen Screens untereinander */
@media (max-width:980px){
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}

