/* ═══════════════════════════════════════════════
   Am Rhein Daheim – Shared Design System
   ═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Tokens ── */
:root {
  --teal:        #00af9e;
  --teal-dark:   #008f80;
  --teal-mid:    #00c4b2;
  --teal-light:  #e6f8f7;
  --navy:        #1b2443;
  --navy-mid:    #243060;
  --white:       #ffffff;
  --off-white:   #f7f9fb;
  --gray-100:    #f0f4f8;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --text:        #1b2443;
  --text-muted:  #4a5a72;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 2px 8px rgba(27,36,67,.07);
  --shadow-md:   0 6px 24px rgba(27,36,67,.11);
  --shadow-lg:   0 16px 48px rgba(27,36,67,.16);
  --t:           all .22s cubic-bezier(.4,0,.2,1);
  --z-skip:      1100;
  --z-nav:       900;
  --z-topbar:    800;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { transition: var(--t); }

/* ── Scroll reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal       { opacity:0; transform:translateY(28px); transition:opacity .6s ease,transform .6s ease; }
  .reveal-left  { opacity:0; transform:translateX(-32px); transition:opacity .65s ease,transform .65s ease; }
  .reveal-right { opacity:0; transform:translateX(32px);  transition:opacity .65s ease,transform .65s ease; }
  .reveal.visible,.reveal-left.visible,.reveal-right.visible { opacity:1; transform:translate(0); }
  .d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}
}

/* ── Layout ── */
.container { max-width:1160px; margin:0 auto; padding:0 24px; }

/* ─────────────────────────────────────────
   TOP BAR
───────────────────────────────────────── */
.topbar { background:var(--navy); padding:9px 0; font-size:13px; font-weight:500; }
.topbar-inner { display:flex; justify-content:flex-end; align-items:center; gap:28px; }
.topbar-item { display:flex; align-items:center; gap:7px; color:rgba(255,255,255,.8); }
.topbar-item a { color:rgba(255,255,255,.8); text-decoration:none; }
.topbar-item a:hover,.topbar-item a:focus { color:var(--teal); }
.topbar-item svg { width:14px; height:14px; fill:var(--teal); flex-shrink:0; }
.topbar-badge { background:var(--teal); color:white; font-size:11px; font-weight:700; padding:2px 10px; border-radius:20px; letter-spacing:.5px; }
@media(max-width:640px){ .topbar-item:not(:first-child):not(:last-child){display:none;} }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  position:sticky; top:0; z-index:var(--z-nav);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--gray-200);
  transition:box-shadow .25s;
}
header.scrolled { box-shadow:var(--shadow-md); }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:68px; }
.logo img { height:46px; width:auto; }

/* Nav */
nav { display:flex; align-items:center; gap:2px; }
nav > a, .nav-drop > a {
  font-size:14px; font-weight:600; color:var(--text);
  text-decoration:none; padding:8px 13px; border-radius:var(--radius-sm); cursor:pointer;
}
nav > a:hover,.nav-drop > a:hover { background:var(--gray-100); color:var(--teal); }
nav > a.active { color:var(--teal); }
.nav-drop { position:relative; align-self:stretch; display:flex; align-items:center; }
.nav-drop > a { display:flex; align-items:center; gap:4px; }
.nav-drop > a svg { width:14px; height:14px; fill:currentColor; transition:transform .2s; }
.nav-drop:hover > a svg { transform:rotate(180deg); }
.drop-menu {
  display:none; position:absolute; top:100%; left:0;
  min-width:260px; background:white; border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg); padding:8px; padding-top:14px; z-index:200;
  border:1px solid var(--gray-200);
}
.nav-drop.open .drop-menu { display:block; }
.drop-menu a { display:flex; align-items:center; gap:10px; padding:10px 14px; font-size:13.5px; font-weight:500; color:var(--text-muted); text-decoration:none; border-radius:var(--radius-sm); }
.drop-menu a:hover { background:var(--teal-light); color:var(--teal); }
.drop-menu a svg { width:16px; height:16px; fill:var(--teal); flex-shrink:0; }
.nav-cta { background:var(--teal)!important; color:white!important; border-radius:var(--radius-sm)!important; padding:9px 20px!important; margin-left:8px; font-weight:700!important; }
.nav-cta:hover { background:var(--teal-dark)!important; transform:translateY(-1px); box-shadow:0 4px 16px rgba(0,175,158,.3)!important; }
.menu-btn { display:none; background:none; border:none; cursor:pointer; padding:8px; border-radius:var(--radius-sm); }
.menu-btn svg { width:24px; height:24px; fill:var(--navy); pointer-events:none; }
.menu-btn:hover { background:var(--gray-100); }
@media(max-width:940px){
  .menu-btn{display:flex;align-items:center;justify-content:center;}
  /* backdrop-filter erzeugt sonst einen containing block für das fixed-Menü
     -> auf Mobile entfernen, damit das Menü viewport-relativ in voller Höhe öffnet */
  #header{ -webkit-backdrop-filter:none; backdrop-filter:none; background:#fff; }
  /* Logo + Menü-Button über das geöffnete Panel heben (klickbar halten) */
  .logo,.menu-btn{ position:relative; z-index:810; }
  /* Wenn Menü offen: Body-Scroll sperren (verhindert iOS-Bouncing & Hintergrund-Scroll) */
  body.menu-open{ overflow:hidden; }
  nav { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:white; flex-direction:column; align-items:stretch; padding:116px 16px 32px; gap:4px; overflow-y:auto; -webkit-overflow-scrolling:touch; z-index:800; }
  nav.open{display:flex;}
  nav > a,.nav-drop > a{font-size:15px;padding:12px 16px;border-radius:var(--radius-sm);}
  .drop-menu{position:static;box-shadow:none;border:none;background:var(--gray-100);border-radius:var(--radius-sm);padding:4px;display:none;}
  .nav-drop:hover .drop-menu{display:none;}
  .nav-drop.open .drop-menu{display:block;}
  .nav-cta{margin:8px 0 0;text-align:center;padding:14px!important;border-radius:var(--radius-md)!important;}
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px; padding:13px 28px;
  border-radius:var(--radius-sm); font-family:'Montserrat',sans-serif;
  font-weight:700; font-size:15px; text-decoration:none;
  cursor:pointer; border:2px solid transparent; box-sizing:border-box;
  transition:var(--t); white-space:nowrap;
}
.btn svg { width:18px; height:18px; flex-shrink:0; }
.btn:active { transform:scale(0.98) translateY(0) !important; box-shadow:none !important; }
.btn-teal { background:var(--teal); color:white; }
.btn-teal:hover { background:var(--teal-dark); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,175,158,.35); }
.btn-navy { background:var(--navy); color:white; }
.btn-navy:hover { background:var(--navy-mid); transform:translateY(-2px); }
.btn-ghost-navy { background:transparent; color:var(--navy); border:2px solid var(--gray-200); }
.btn-ghost-navy:hover { border-color:var(--teal); color:var(--teal); }
.btn-white { background:white; color:var(--teal); }
.btn-white:hover { background:var(--teal-light); transform:translateY(-2px); }
.btn-outline-white { background:transparent; color:white; border:2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background:rgba(255,255,255,.12); border-color:white; }
.btn-full { width:100%; justify-content:center; }

/* ─────────────────────────────────────────
   SECTION DEFAULTS
───────────────────────────────────────── */
section { padding:88px 0; }
.section-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:2px;
  color:var(--teal); margin-bottom:14px;
}
.section-eyebrow::before { content:''; display:block; width:24px; height:2px; background:var(--teal); border-radius:2px; }
.section-title { font-size:clamp(26px,3.5vw,42px); font-weight:800; color:var(--navy); line-height:1.17; margin-bottom:16px; text-wrap:balance; }
.section-title span { color:var(--teal); }
.section-lead { font-size:17px; color:var(--text-muted); line-height:1.75; max-width:600px; text-wrap:pretty; }
.text-center { text-align:center; }
.text-center .section-lead,.text-center .section-eyebrow { margin-left:auto; margin-right:auto; }
.text-center .section-eyebrow { justify-content:center; }
.text-center .section-eyebrow::before { display:none; }

/* ─────────────────────────────────────────
   PAGE HERO (subpages)
───────────────────────────────────────── */
.page-hero {
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);
  padding:72px 0 80px;
  position:relative; overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; top:-80px; right:-80px;
  width:360px; height:360px; background:rgba(0,175,158,.07); border-radius:50%;
}
.page-hero::after {
  content:''; position:absolute; bottom:-60px; left:-40px;
  width:240px; height:240px; background:rgba(0,175,158,.05); border-radius:50%;
}
.page-hero-inner { position:relative; z-index:1; }
.page-hero-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:2px;
  color:rgba(0,175,158,.9); margin-bottom:16px;
}
.page-hero h1 { font-size:clamp(30px,5vw,54px); font-weight:900; color:white; line-height:1.08; margin-bottom:18px; letter-spacing:-1px; text-wrap:balance; }
.page-hero h1 span { color:var(--teal); }
.page-hero-lead { font-size:17px; color:rgba(255,255,255,.78); max-width:560px; line-height:1.75; margin-bottom:32px; text-wrap:pretty; }
.page-hero-sub  { font-size:17px; color:rgba(255,255,255,.78); max-width:640px; line-height:1.75; margin-bottom:0; text-wrap:pretty; }
.page-hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.breadcrumb { display:flex; align-items:center; gap:6px; font-size:13px; color:rgba(255,255,255,.5); margin-bottom:24px; flex-wrap:wrap; }
.breadcrumb a { color:rgba(255,255,255,.6); text-decoration:none; }
.breadcrumb a:hover { color:var(--teal); }
.breadcrumb-sep { color:rgba(255,255,255,.3); font-size:10px; }

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.card {
  background:white; border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm);
  transition:var(--t);
}
.card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.card-body { padding:32px 28px; }

/* Icon box */
.icon-box {
  width:54px; height:54px; border-radius:var(--radius-md);
  background:var(--teal-light); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.icon-box svg { width:26px; height:26px; fill:var(--teal); }
.icon-box.navy { background:rgba(27,36,67,.08); }
.icon-box.navy svg { fill:var(--navy); }
.icon-box.teal-solid { background:var(--teal); }
.icon-box.teal-solid svg { fill:white; }

/* Feature list */
.feature-list { list-style:none; }
.feature-list li { display:flex; align-items:flex-start; gap:10px; padding:6px 0; font-size:15px; color:var(--text-muted); }
.feature-list li svg { width:18px; height:18px; fill:var(--teal); flex-shrink:0; margin-top:1px; }

/* Info box */
.info-box {
  background:var(--teal-light);
  border:1.5px solid rgba(0,175,158,0.3);
  border-radius:var(--radius-md);
  padding:18px 22px; font-size:14.5px; color:var(--navy); font-weight:500; line-height:1.6;
}
.info-box strong { color:var(--teal); }

/* ─────────────────────────────────────────
   SERVICE AREAS (mini strip)
───────────────────────────────────────── */
.areas-strip { background:var(--navy); padding:52px 0; }
.areas-strip-grid { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:32px; }
.area-pill {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  border-radius:30px; padding:10px 20px; color:rgba(255,255,255,.85);
  font-size:14px; font-weight:600; transition:var(--t);
}
.area-pill svg { width:14px; height:14px; fill:var(--teal); }
.area-pill:hover { background:rgba(0,175,158,.15); border-color:var(--teal); color:white; }

/* ─────────────────────────────────────────
   CTA STRIP
───────────────────────────────────────── */
.cta-strip { background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%); padding:80px 0; text-align:center; position:relative; overflow:hidden; }
.cta-strip::before { content:''; position:absolute; top:-60px; right:-60px; width:300px; height:300px; background:rgba(0,175,158,.08); border-radius:50%; }
.cta-strip::after  { content:''; position:absolute; bottom:-80px; left:-40px; width:250px; height:250px; background:rgba(0,175,158,.06); border-radius:50%; }
.cta-inner { position:relative; z-index:1; }
.cta-strip h2 { font-size:clamp(22px,3.5vw,38px); font-weight:900; color:white; margin-bottom:12px; text-wrap:balance; }
.cta-strip p  { font-size:17px; color:rgba(255,255,255,.72); margin-bottom:36px; max-width:480px; margin-left:auto; margin-right:auto; line-height:1.7; text-wrap:pretty; }
.cta-actions, .cta-strip-btns { display:flex; align-items:center; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ─────────────────────────────────────────
   AVAIL BANNER
───────────────────────────────────────── */
.avail-banner { background:linear-gradient(90deg,var(--teal) 0%,var(--teal-mid) 100%); padding:14px 0; }
.avail-inner { display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; }
.avail-dot { width:8px; height:8px; background:white; border-radius:50%; opacity:.7; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
.avail-text { font-size:15px; font-weight:700; color:white; }
.avail-cta { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.2); color:white; font-weight:700; font-size:14px; text-decoration:none; padding:7px 18px; border-radius:20px; border:1px solid rgba(255,255,255,.4); }
.avail-cta:hover { background:rgba(255,255,255,.3); }
.avail-cta svg { width:15px; height:15px; fill:white; }

/* ─────────────────────────────────────────
   CONTACT FORM (shared)
───────────────────────────────────────── */
.form-group { margin-bottom:16px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:480px){.form-row{grid-template-columns:1fr;}}
.form-group label { display:block; font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:7px; text-transform:uppercase; letter-spacing:.5px; }
.form-group input,.form-group textarea,.form-group select {
  width:100%; padding:13px 16px; border:2px solid var(--gray-200);
  border-radius:var(--radius-sm); font-family:'Montserrat',sans-serif;
  font-size:15px; color:var(--text); background:white; outline:none;
  transition:border-color .2s,box-shadow .2s;
}
.form-group input:focus,.form-group textarea:focus { border-color:var(--teal); box-shadow:0 0 0 4px rgba(0,175,158,.12); }
.form-group textarea { height:120px; resize:vertical; }
.form-check { display:flex; align-items:flex-start; gap:12px; margin:16px 0; }
.form-check input[type="checkbox"] { width:18px; height:18px; margin-top:1px; accent-color:var(--teal); flex-shrink:0; cursor:pointer; }
.form-check label { font-size:13px; color:var(--text-muted); line-height:1.6; cursor:pointer; }
.form-check a { color:var(--teal); text-decoration:none; font-weight:600; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer { background:#111827; color:rgba(255,255,255,.65); padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:2.2fr 1fr 1fr 1.4fr; gap:52px; padding-bottom:52px; }
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;gap:36px;}}
@media(max-width:540px) {.footer-grid{grid-template-columns:1fr;gap:28px;}}
.footer-brand img { height:64px; margin-bottom:18px; }
.footer-brand p { font-size:14px; line-height:1.8; max-width:260px; }
.footer-socials { display:flex; gap:10px; margin-top:22px; }
.social-link { width:40px; height:40px; background:rgba(255,255,255,.07); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:var(--t); text-decoration:none; }
.social-link:hover { background:var(--teal); transform:translateY(-2px); }
.social-link svg { width:18px; height:18px; fill:white; }
.footer-col h5 { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:white; margin-bottom:18px; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a { font-size:14px; color:rgba(255,255,255,.6); text-decoration:none; transition:color .2s; }
.footer-col ul li a:hover { color:var(--teal); }
.footer-cr { display:flex; gap:10px; margin-bottom:12px; font-size:14px; align-items:flex-start; }
.footer-cr svg { width:15px; height:15px; fill:var(--teal); flex-shrink:0; margin-top:2px; }
.footer-cr a { color:rgba(255,255,255,.65); text-decoration:none; }
.footer-cr a:hover { color:var(--teal); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:22px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; }
.footer-legal { display:flex; gap:22px; }
.footer-legal a { color:rgba(255,255,255,.5); text-decoration:none; }
.footer-legal a:hover { color:var(--teal); }

/* ─────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────── */
:focus-visible { outline:3px solid var(--teal); outline-offset:3px; border-radius:4px; }
.skip-link { position:absolute; top:-999px; left:0; background:var(--teal); color:white; padding:10px 18px; font-weight:700; z-index:var(--z-skip); border-radius:0 0 8px 0; text-decoration:none; }
.skip-link:focus { top:0; }

/* ─────────────────────────────────────────
   PROSE (Impressum / Datenschutz)
───────────────────────────────────────── */
.prose { max-width:780px; }
.prose h2 { font-size:22px; font-weight:800; color:var(--navy); margin:40px 0 12px; }
.prose h3 { font-size:18px; font-weight:700; color:var(--navy); margin:28px 0 10px; }
.prose p  { font-size:15.5px; color:var(--text-muted); line-height:1.8; margin-bottom:14px; }
.prose ul { list-style:disc; padding-left:22px; margin-bottom:14px; }
.prose ul li { font-size:15.5px; color:var(--text-muted); line-height:1.8; margin-bottom:6px; }
.prose a  { color:var(--teal); text-decoration:none; font-weight:600; }
.prose a:hover { text-decoration:underline; }
.prose strong { color:var(--navy); font-weight:700; }
.prose .legal-box { background:var(--gray-100); border-radius:var(--radius-md); padding:22px 24px; margin:20px 0; }

/* ─────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────── */
.faq { background: var(--white); padding: 88px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer; gap: 20px;
  font-size: 16px; font-weight: 700; color: var(--navy);
  background: none; border: none; width: 100%; text-align: left;
  font-family: 'Montserrat', sans-serif; transition: color .2s;
}
.faq-q:hover { color: var(--teal); }
.faq-q svg { width: 22px; height: 22px; fill: var(--teal); flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .38s ease, padding-bottom .38s ease;
  font-size: 15px; color: var(--text-muted); line-height: 1.8;
  padding-bottom: 0;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 22px; }
