/* =========================================================
   service-tool.css · Egger Communications Web-Baukasten 2026
   Styles für Consent-Banner, Consent-Modal, Embed-Platzhalter,
   Maps-Platzhalter, Honeypot und Formular-Status.

   Nutzt die Projekt-Tokens. Falls nicht vorhanden, greifen
   die Fallback-Werte hinter dem Komma.
   ========================================================= */

:root {
  --st-bg:        var(--surface, #ffffff);
  --st-fg:        var(--text, #14181b);
  --st-muted:     var(--text-muted, #5b6f75);
  --st-line:      var(--border, #e3e8ea);
  --st-accent:    var(--brand, #0f4c5c);
  --st-dark:      var(--brand-dark, #0e1a1f);
  --st-radius:    var(--radius, 12px);
  --st-shadow:    0 4px 15px rgba(0, 0, 0, .10);
}

/* ---------- Utility ---------- */
.hide { display: none !important; }

/* ---------- Embed-Karte (Termin / Newsletter) ---------- */
.embed-card {
  background: var(--st-bg);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--st-shadow);
}
.embed-title { margin: 0 0 .5rem; font-size: 1.125rem; }
.embed-note  { color: var(--st-muted); font-size: .9375rem; line-height: 1.55; margin: 0 0 1rem; max-width: 60ch; }
.embed-slot  { margin-top: 1.25rem; }
.embed-slot iframe { display: block; }
.embed-sig   { margin: .875rem 0 0; font-size: .8125rem; color: var(--st-muted); }
.embed-unsub { margin: 1.25rem 0 0; font-size: .875rem; }
.embed-unsub a { color: var(--st-muted); text-decoration: underline; }

/* ---------- Google-Maps-Platzhalter ---------- */
.mapbox {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  overflow: hidden;
  background: #f3f5f6;
}
.mapbox iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .875rem; text-align: center; padding: 2rem; min-height: 320px;
}
.map-ph p { margin: 0; max-width: 44ch; color: var(--st-muted); font-size: .9375rem; line-height: 1.55; }
.map-icon { font-size: 2rem; }

/* ---------- Cookie-Banner (unten) ---------- */
.cookiebar {
  position: fixed; inset: auto 0 0 0; z-index: 2147483100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--st-dark); color: #eaf1f2;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}
.cookiebar p { margin: 0; font-size: .9375rem; line-height: 1.55; max-width: 70ch; }
.cookiebar .actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- PROJEKT HOHN: Balken-Palette ----------
   Zwei Korrekturen gegenüber dem Baukasten, beide gemessen:

   1. Der Link war petrolblau (#bfe9ef). Das ist die Farbwelt des
      Baukastens, nicht die von Hohn. Terrakotta-licht schafft
      4,84:1 auf dem Balken und gehört zur Marke.
   2. "Alle akzeptieren" war grün auf dunkelgrünem Balken: 1,51:1.
      Der Knopf war praktisch unsichtbar. Jetzt weiß auf dunkel,
      11,95:1 — und damit auch klar die primäre Aktion.
   -------------------------------------------------- */
.cookiebar a { color: var(--hohn-erde-licht, #F2C0B0); text-decoration: underline; }

.cookiebar .btn-outline {
  border-color: rgba(255,255,255,.45);
  color: #eaf1f2;
  background: transparent;
}
.cookiebar .btn-outline:hover,
.cookiebar .btn-outline:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

.cookiebar .btn-primary {
  background: #fff;
  color: var(--hohn-gruen-tief, #2B3A34);
  border-color: #fff;
}
.cookiebar .btn-primary:hover,
.cookiebar .btn-primary:focus-visible {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ---------- Consent-Modal ---------- */
.cc-modal {
  position: fixed; inset: 0; z-index: 2147483200;
  display: none; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, .55);
}
.cc-modal.open { display: flex; }
.cc-box {
  width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--st-bg); color: var(--st-fg);
  border-radius: var(--st-radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.cc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--st-line);
}
.cc-head h3 { margin: 0; font-size: 1.125rem; }
.cc-x { background: none; border: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; color: var(--st-muted); }
.cc-x:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 2px; }

.cc-body  { padding: 1.25rem 1.5rem; overflow-y: auto; }
.cc-intro { margin: 0 0 1.25rem; font-size: .9375rem; line-height: 1.6; color: var(--st-muted); }
.cc-intro a { color: var(--st-accent); }

.cc-cat { border: 1px solid var(--st-line); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.cc-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-badge {
  margin-left: .5rem; padding: .125rem .5rem; border-radius: 999px;
  background: #eef3f4; color: var(--st-muted); font-size: .75rem; font-weight: 600;
}
.cc-desc { margin: .625rem 0 0; font-size: .875rem; line-height: 1.55; color: var(--st-muted); }
.cc-svc  { margin: .75rem 0 0; padding-left: 1.125rem; font-size: .8125rem; line-height: 1.6; color: var(--st-muted); }
.cc-svc li { margin-bottom: .375rem; }

/* Schalter */
.cc-sw {
  flex: 0 0 auto; width: 48px; height: 27px; border-radius: 999px;
  background: #cfd8da; border: 0; position: relative; cursor: pointer;
  transition: background .2s;
}
.cc-sw::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.cc-sw.on { background: var(--st-accent); }
.cc-sw.on::after { transform: translateX(21px); }
.cc-sw.fixed { background: var(--st-accent); opacity: .55; cursor: not-allowed; }
.cc-sw.fixed::after { transform: translateX(21px); }
.cc-sw:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 2px; }

.cc-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--st-line);
}
.cc-links { font-size: .875rem; color: var(--st-muted); }
.cc-links a { color: var(--st-accent); }
.cc-btns { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Reopen-Button (Pflicht: Consent jederzeit erreichbar) ---------- */
.cookie-reopen {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 2147482900;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--st-bg); color: var(--st-accent);
  border: 1px solid var(--st-line); box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.cookie-reopen svg { width: 22px; height: 22px; }
.cookie-reopen:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 2px; }
/* links unten, damit die Chat-Bubble rechts unten frei bleibt */

/* ---------- Formular ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .75rem 0 0; font-size: .9375rem; min-height: 1.4em; }
.form-status.ok  { color: #1a7f43; }
.form-status.err { color: #b3261e; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .cc-sw, .cc-sw::after { transition: none; }
}

/* ---------------------------------------------------------
   CONSENT-GATE – Hinweis, wenn ohne Einwilligung geladen
   werden soll. Pflicht in jedem Projekt.
   --------------------------------------------------------- */
.cc-hint{
  display:flex;gap:.9rem;align-items:flex-start;
  margin-top:1.15rem;padding:1rem 1.15rem;
  background:#FFF8E6;border:1px solid #E8C766;border-left:4px solid #C8940B;
  border-radius:var(--st-radius);color:#5A4409;
  animation:hintIn .35s ease;
}
.cc-hint svg{width:22px;height:22px;flex:0 0 auto;margin-top:.15rem;color:#C8940B}
.cc-hint strong{display:block;font-size:.9375rem;color:#3F2F06;margin-bottom:.2rem}
.cc-hint p{margin:0 0 .9rem;font-size:.875rem;line-height:1.55;max-width:60ch;color:#5A4409}
.cc-hint em{font-style:normal;font-weight:700;color:#3F2F06}
.cc-hint .btn{padding:.6rem 1.1rem;min-height:44px;font-size:.9375rem}

@keyframes hintIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cc-hint{animation:none}}
.map-ph .cc-hint{margin-top:1rem;text-align:left}
