/* ============================================================
   arouri-klimaservice – style.css
   SPA-Farbverlauf für ALLE Seiten (Startseite + Unterseiten)
   - 3-Stufen-Verlauf: #0A1628 → #0D2B52 → #0E3A6B
   - max-width: 1100px für Header und Hero
   - Mobile Optimierungen (Page-Titel Umbruch, Kontakt-Layout)
   ============================================================ */

/* ── FONTS: lokal eingebunden (AK-007 / REQ-NFR-004) ──────── */
/* Syne ExtraBold 800 */
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-v24-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Source Sans 3 Light 300 */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-v19-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Source Sans 3 Light Italic 300 */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-v19-latin-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Source Sans 3 Regular 400 */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Source Sans 3 Italic 400 */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-v19-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Source Sans 3 SemiBold 600 */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ── CI-VARIABLEN ─────────────────────────────────────────── */
:root {
  --bg:         #F4F6F8;
  --white:      #FFFFFF;
  --ink:        #12182B;
  --ink-light:  #4A5568;
  --navy:       #0A1628;
  --navy2:      #0D2B52;
  --navy3:      #0E3A6B;
  --blue:       #005F9E;
  --blue-mid:   #0077C2;
  --blue-light: #D6EAF8;
  --ice:        #EBF5FB;
  --accent:     #00A8CC;
  --ice-light:  #90E0EF;
  --border:     #DDE3EA;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --max-w:      1100px;
}


/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img  { max-width: 100%; display: block; }
a    { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ── TYPOGRAFIE ───────────────────────────────────────────── */
body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Syne', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.3;
}


/* ── HEADER / NAV ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
nav a {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
nav a:hover { color: var(--blue); background: var(--ice); text-decoration: none; }
nav a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; text-decoration: none !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue); }


/* ══════════════════════════════════════════════════════════════
   HERO – STARTSEITE (SPA-3-Stufen-Verlauf)
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, var(--navy3) 100%);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,168,204,0.2);
  border: 1px solid rgba(0,168,204,0.4);
  color: var(--ice-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.hero h1 span {
  color: var(--ice-light);
  display: block;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  flex: 1;
  min-width: 160px;
  backdrop-filter: blur(8px);
}
.hero-card-num {
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ice-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.hero-card-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.hero-manometer {
    position: absolute;

    top: 58%;                 /* höher */
    right: 110px;             /* weiter nach rechts */

    transform: translateY(-50%);

    width: min(420px, 92vw);

    opacity: 0.9;
    pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════
   PAGE HERO – UNTERSEITEN (gleicher 3-Stufen-Verlauf wie SPA)
   ══════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, var(--navy3) 100%);
  color: var(--white);
  padding: 3rem 0;
  min-height: 230px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(0,168,204,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 30% 60% at 5% 50%, rgba(0,95,158,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--ice-light);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.page-hero .breadcrumb a {
  color: rgba(144,224,239,0.7);
}
.page-hero .breadcrumb a:hover {
  color: var(--ice-light);
  text-decoration: underline;
}
.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--white);
  /* NEU: Verhindert abgeschnittene Titel auf Mobile */
  overflow-wrap: break-word;
  word-break: break-word;
}
.page-title-accent {
  color: var(--ice-light);
}
.page-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  font-weight: 300;
}


/* ── BUTTONS (allgemein) ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #0096B8; transform: translateY(-1px); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); color: var(--white); }
.btn-blue-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-blue-outline:hover { background: var(--blue); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--blue-light);
  font-weight: 700;
}
.btn-white:hover { background: var(--ice); border-color: var(--blue); color: var(--navy); }


/* ── INTRO STRIP ──────────────────────────────────────────── */
.intro-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.intro-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.intro-item {
  padding: 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.intro-item:last-child { border-right: none; }
.intro-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.intro-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.intro-item p {
  font-size: 0.875rem;
  color: var(--ink-light);
}


/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: 4.5rem 1.5rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ink);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.section-cta {
  margin-top: 2rem;
  text-align: center;
}


/* ── ABLAUF STEPS ─────────────────────────────────────────── */
.ablauf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.ablauf-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ablauf-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.ablauf-step p {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.5;
}


/* ── LEISTUNGEN CARDS (Homepage-Überblick) ────────────────── */
.leistungen-uebersicht {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.leistung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.leistung-card.inactive {
  background: var(--ice);
  border-color: var(--blue-light);
  opacity: 0.75;
}
.leistung-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.leistung-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.leistung-card p {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.5;
}
.leistung-card .card-note {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Leistungslisten */
.leistung-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.leistung-list li {
  font-size: 0.9rem;
  color: var(--ink-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.leistung-list li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}


/* ── TECHNIK – KOMPONENTEN GRID (für technik.html) ────────── */
.technik-komponenten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}


/* ── LEISTUNGEN PAGE (zusätzlich) ─────────────────────────── */
.leistungen-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, var(--navy3) 100%);
  color: white;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.leistungen-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.leistungen-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}


/* ── STANDORT ─────────────────────────────────────────────── */
.standort-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}
.standort-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.standort-text { flex: 1; }
.standort-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.standort-text span {
  font-size: 0.875rem;
  color: var(--ink-light);
}
.standort-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.standort-link:hover { text-decoration: underline; }


/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.footer-addr {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}


/* ── UTILITY ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE (Mobile & Tablet)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: auto; }
  .hero-inner { padding: 3.5rem 1rem 2.5rem; }
  .hero-cards { display: none; }
  .hero-manometer { display: none; }

  .intro-grid { grid-template-columns: 1fr; }
  .intro-item { border-right: none; border-bottom: 1px solid var(--border); }
  .intro-item:last-child { border-bottom: none; }

  .ablauf-steps { grid-template-columns: 1fr; }
  .ablauf-step { flex-direction: row; gap: 1rem; }

  .leistungen-uebersicht { grid-template-columns: 1fr; }

  .standort-box { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .section { padding: 2.5rem 1rem; }
  .page-hero { padding: 2.5rem 1rem 2rem; }
  
  /* KONTAKT-SEITE: zweispaltiges Layout auf Mobile verhindern */
  .kontakt-layout {
    grid-template-columns: 1fr !important;
  }
  
  /* TECHNIK-SEITE: Komponenten-Grid auf eine Spalte umstellen */
  .technik-komponenten-grid {
    grid-template-columns: 1fr;
  }
  
  /* Page-Titel zusätzlich absichern */
  .page-title {
    font-size: 1.5rem;
    word-break: break-word;
    hyphens: auto;
    padding-right: 0.5rem;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
    padding-right: 0.5rem;
  }
  
  /* Formular-Zeilen auf Mobile */
  .form-row { grid-template-columns: 1fr; }
  .kontakt-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; }
  .hero-inner { padding: 3rem 1rem 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .logo-img { height: 36px; }
  .page-title { font-size: 1.3rem; }
  .section-title { font-size: 1.3rem; }
}


/* ══════════════════════════════════════════════════════════════
   BETA-BANNER
   ══════════════════════════════════════════════════════════════ */
.beta-banner {
  background: #FFD700;
  color: #1A1A1A;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.beta-banner-close {
  background: none;
  border: none;
  color: #1A1A1A;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.beta-banner-close:hover { opacity: 1; }
.beta-banner.hidden { display: none; }


/* ── FORMULAR-KOMPONENTEN (AK-003) ───────────────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hinweis-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.hinweis-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.hinweis-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.hinweis-text p {
  font-size: 0.875rem;
  color: var(--ink-light);
  margin: 0;
}

.hsn-hilfe {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hsn-hilfe-toggle {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-align: left;
  transition: background 0.15s;
}
.hsn-hilfe-toggle:hover { background: var(--ice); }
.hsn-hilfe-icon { font-size: 1rem; }
.hsn-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-light);
}
.hsn-hilfe-body {
  padding: 1rem 1.25rem 1.25rem;
  background: var(--ice);
  border-top: 1px solid var(--border);
}
.hsn-hilfe-body p {
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}
.hsn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}
.hsn-list li {
  font-size: 0.875rem;
  color: var(--ink);
}
.hsn-note {
  font-size: 0.8rem !important;
  color: var(--ink-light) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}
.hsn-eu-info {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.hsn-eu-info strong {
  font-size: 0.875rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.4rem;
}
.hsn-eu-info p {
  font-size: 0.825rem !important;
  color: var(--ink-light) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.5;
}
.hsn-eu-info em { font-style: italic; }

.form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue-light);
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.form-legend {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: block;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.form-required { color: var(--blue); }
.form-optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-light);
}
.form-hint {
  font-size: 0.75rem;
  color: var(--ink-light);
}

.form-input {
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,95,158,0.1);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: #F26A21;
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2rem; }
.form-textarea { resize: vertical; min-height: 100px; }

.form-group-checkbox { margin: 1rem 0 1.5rem; }
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-checkbox {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-checkbox-text {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.5;
}
.form-checkbox-text a { color: var(--blue); }

.form-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #991B1B;
  margin-bottom: 1rem;
}
.form-error[hidden] { display: none !important; }
.form-error-icon { flex-shrink: 0; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-submit {
  min-width: 220px;
  justify-content: center;
  position: relative;
}
.form-required-note {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.form-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-spinner[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #065F46;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.form-success-text {
  font-size: 0.95rem;
  color: var(--ink-light);
  max-width: 480px;
  margin: 0 auto 0.75rem;
}
.form-success-note {
  font-size: 0.875rem;
  color: var(--ink-light);
}

.allg-anfrage-hint {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.allg-anfrage-text {
  font-size: 0.85rem;
  color: var(--ink-light);
}
.allg-anfrage-btn {
  background: none;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.75rem;
  margin-left: 0.35rem;
  transition: background 0.15s, color 0.15s;
  vertical-align: middle;
}
.allg-anfrage-btn:hover {
  background: var(--blue);
  color: #fff;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0;
}
.symptom-help-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.symptom-help-btn:hover { background: var(--ice); }
.symptom-help {
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.symptom-help-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
}
.symptom-example {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.symptom-example:last-of-type { border-bottom: none; margin-bottom: 0.5rem; }
.symptom-example strong { font-size: 0.825rem; color: var(--ink); display: block; margin-bottom: 0.25rem; }
.symptom-example p { font-size: 0.825rem; color: var(--ink-light); margin: 0; font-style: italic; }
.symptom-help-note { font-size: 0.78rem; color: var(--ink-light); margin-top: 0.5rem; }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .form-wrapper { padding: 1.25rem; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn-submit { min-width: auto; }
  .kontakt-layout { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   AK-004 – DATENSCHUTZ-OVERLAY
   ══════════════════════════════════════════════════════════════ */
.ds-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.ds-overlay[hidden] { display: none !important; }

.ds-overlay-inner {
  background: #fff;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 4rem);
  overflow: hidden;
}

.ds-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ds-overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.ds-overlay-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  flex: 1 1 auto;
}
.ds-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ds-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.ds-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.ds-section p,
.ds-section ul {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.ds-section ul {
  padding-left: 1.5rem;
}
.ds-section p:last-child { margin-bottom: 0; }

.ds-overlay-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.ds-overlay-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--ink-light);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.ds-overlay-close-btn:hover { color: var(--ink); background: var(--ice); }

.ds-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ds-link-btn:hover { color: var(--blue-mid); }

@media (max-width: 480px) {
  .ds-overlay { padding: 0.75rem 0.5rem; }
  .ds-overlay-inner { max-height: calc(100vh - 1.5rem); border-radius: var(--radius); }
  .ds-overlay-header { padding: 1rem 1rem 0.75rem; }
  .ds-overlay-body { padding: 1rem; }
  .ds-overlay-footer { padding: 0.75rem 1rem; }
}


/* ══════════════════════════════════════════════════════════════
   AK-004 – KONTAKTFORMULAR-MODAL
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 95dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease;
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--ice);
  border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink-light);
  line-height: 1;
  transition: color 0.2s;
  padding: 0;
}

.modal-close:hover {
  color: var(--blue);
}

.modal-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

#modal-kontakt-form .form-group {
  margin-bottom: 0.6rem;
}

#modal-kontakt-form label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  display: block;
}

#modal-kontakt-form input,
#modal-kontakt-form textarea,
#modal-kontakt-form select {
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
}

#modal-kontakt-form .form-row {
  gap: 0.6rem;
  margin-bottom: 0;
}

#modal-kontakt-form .dsgvo-check {
  margin: 0.6rem 0;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

#modal-kontakt-form .btn-submit {
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  width: 100%;
}

.modal-success {
  text-align: center;
  padding: 1.5rem 1rem;
}

.modal-success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.modal-success h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.modal-success p {
  color: var(--ink-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@media (max-width: 550px) {
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .modal-container {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .modal-body {
    padding: 0.75rem 1rem;
  }
  #modal-kontakt-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}

body.modal-open { overflow: hidden; }
#modal-form-error[hidden] { display: none !important; }


/* ═══ HERO BADGE PIN: PREMIUM MAP PIN ═══ */
.hero-badge {
  position: relative;
  overflow: visible;
  padding-right: 3.25rem;
}

.hero-badge-pin {
  position: absolute;
  right: 0.35rem;
  top: 54%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.hero-badge-pin svg {
  width: 29px;
  height: 38px;
  position: relative;
  z-index: 3;
  transform: translateY(-2px);
  filter: drop-shadow(0 5px 7px rgba(0,0,0,0.38));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-badge-pin::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 42px;
  height: 25px;
  transform: translateX(-50%) perspective(90px) rotateX(48deg) rotateZ(-8deg);
  background:
    linear-gradient(35deg, transparent 42%, rgba(126, 217, 87, 0.5) 43%, rgba(126, 217, 87, 0.5) 49%, transparent 50%),
    linear-gradient(115deg, transparent 40%, rgba(57, 255, 136, 0.38) 41%, rgba(57, 255, 136, 0.38) 47%, transparent 48%),
    linear-gradient(20deg, transparent 52%, rgba(144, 224, 239, 0.24) 53%, rgba(144, 224, 239, 0.24) 58%, transparent 59%),
    linear-gradient(135deg, #0E3A6B, #071B33);
  border: 1px solid rgba(126, 217, 87, 0.42);
  border-radius: 5px;
  box-shadow:
    0 8px 14px rgba(0,0,0,0.42),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 1;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-badge-pin:hover {
  transform: translateY(-54%);
}

.hero-badge-pin:hover svg {
  transform: translateY(-6px) scale(1.08);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.5));
}

.hero-badge-pin:hover::before {
  transform: translateX(-50%) perspective(90px) rotateX(48deg) rotateZ(-8deg) scale(1.1);
  opacity: 1;
}

.hero-badge-pin:focus-visible {
  outline: 2px solid #90E0EF;
  outline-offset: 4px;
}


/* ═══ MOBILE FIX: HERO BADGE MAP SICHTBAR ═══ */
@media (max-width: 768px) {
  .hero-badge {
    padding-right: 3.5rem;
    overflow: visible;
  }

  .hero-badge-pin {
    right: 0.25rem;
    top: 52%;
    width: 48px;
    height: 48px;
  }

  .hero-badge-pin svg {
    width: 26px;
    height: 35px;
    transform: translateY(-3px);
  }

  .hero-badge-pin::before {
    bottom: 3px;
    width: 38px;
    height: 22px;
    transform: translateX(-50%) perspective(90px) rotateX(45deg) rotateZ(-8deg);
  }

  .hero-badge-pin:hover::before {
    transform: translateX(-50%) perspective(90px) rotateX(45deg) rotateZ(-8deg) scale(1.05);
  }
}

/* [2026-05-04] AK-004 Kontaktformular-Modal: .modal-backdrop/.modal-dialog
   fehlten in CSS; vorhandenes System nutzt .modal-overlay/.modal-container */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 22, 40, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none !important; }

.modal-dialog {
  background: #fff;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.24);
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal-backdrop { padding: 0.5rem; align-items: flex-start; }
  .modal-dialog { max-height: calc(100vh - 1rem); border-radius: var(--radius); overflow-y: auto; }
}

/* [2026-05-05] Spinner-Fix Mobile: stärkere Spezifität */
span.form-spinner[hidden] { display: none !important; }

/* Erfolgs-Button zentriert: Mobile Terminanfrage + Kontaktmodal */
.success-close-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.success-close-wrap .btn {
  width: auto;
  min-width: 160px;
  max-width: 240px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  gap: 0;
}