/* ---------------------------------------------------------------
   Gestaltung — KUNDENNEUTRAL.

   Die Werte unten sind neutrale Vorgaben. app.js überschreibt sie
   beim Start mit CONFIG.brand.farben aus kunden/<kunde>.js. Hier
   steht bewusst KEINE Kundenfarbe: wer die Vorgaben sieht, sieht
   eine markenlose Graustufen-Variante.
   --------------------------------------------------------------- */
:root {
  /* Grundfarben */
  --primaer:        #333a44;   /* dunkle Markenfarbe */
  --akzent:         #6b7785;   /* Akzentfarbe */
  --akzent-dunkel:  #55606d;   /* Akzent im Hover-Zustand */
  --akzent-hell:    #e4e8ec;   /* helle Akzentfläche (Infobox) */
  --hintergrund:    #f4f6f8;   /* Seitenhintergrund */
  --erfolg:         #4a7c59;   /* Telefon-Button, abgehakter Punkt */
  --warnung:        #a4453a;   /* reserviert für Warnhinweise */

  /* Feinabstimmung — leiten sich optisch aus den Grundfarben ab */
  --erfolg-dunkel:  #3b6347;   /* Hover des Erfolg-Buttons */
  --erfolg-hell:    #eef3ef;   /* Fläche eines abgehakten Punktes */
  --auswahl-hell:   #eef1f5;   /* Fläche einer gewählten Option */
  --linie:          #e6e9ec;   /* Trennlinie im Kartenfuß */
  --schatten:       rgba(0,0,0,.13);
  --schatten-aktiv: rgba(0,0,0,.22);

  /* Farbverläufe der Kartenköpfe. Die Slides wählen einen Slot über
     `grad: 'grad-<name>'`; jeder Slot ist einzeln überschreibbar. */
  --grad-blue:   linear-gradient(150deg, var(--akzent) 0%, var(--primaer) 100%);
  --grad-green:  linear-gradient(150deg, #5a7d63 0%, #26332a 100%);
  --grad-gold:   linear-gradient(150deg, #8a7f5c 0%, #4a4230 100%);
  --grad-red:    linear-gradient(150deg, #8a5a55 0%, #3a2020 100%);
  --grad-teal:   linear-gradient(150deg, #5c7d78 0%, #23332f 100%);
  --grad-navy2:  linear-gradient(150deg, #4a5163 0%, #1c1f2a 100%);
  --grad-ocean:  linear-gradient(150deg, #55677d 0%, #1e2733 100%);
  --grad-sunset: linear-gradient(150deg, #937a5f 0%, #453424 100%);
  --grad-finish: linear-gradient(150deg, #6d6178 0%, #241d2b 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--hintergrund);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 52px;
}

/* ── CAROUSEL ── */
.carousel-wrapper {
  width: 100%; max-width: 500px;
  position: relative;
  display: flex; align-items: center;
  margin-top: 18px;
}
.carousel-track-outer { width: 100%; overflow: hidden; padding: 10px 0 14px; }
.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── CARD ── */
.card {
  /* Feste Breite statt min-width/max-width. Vorher bekam die Karte als
     Flex-Element ihre INHALTSbreite, geklammert auf [78vw, 300px]. Beim
     ersten Kunden lag der Inhalt immer über der Klammer, also waren
     alle Karten zufällig gleich breit. Ein Kunde mit knapperen
     Texten hätte dagegen unterschiedlich breite Karten bekommen — und
     getOffset() in app.js rechnet mit einer einheitlichen Breite, ab
     Karte 2 hätte dann keine mehr mittig gesessen.
     max() ergibt genau die bisher gerenderte Breite, aber unabhängig vom
     Inhalt: 78 % der Fensterbreite, mindestens 300 px. */
  width: max(78vw, 300px);
  flex: 0 0 auto;
  margin: 0 9px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--schatten);
  background: #fff;
  transition: transform .4s, opacity .4s, box-shadow .4s;
  opacity: .4; transform: scale(.91);
}
.card.active {
  opacity: 1; transform: scale(1);
  box-shadow: 0 10px 36px var(--schatten-aktiv);
}

/* Card visual header */
.card-visual {
  position: relative;
  min-height: 170px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 18px 28px;
}
.grad-blue  { background: var(--grad-blue); }
.grad-green { background: var(--grad-green); }
.grad-gold  { background: var(--grad-gold); }
.grad-red   { background: var(--grad-red); }
.grad-teal  { background: var(--grad-teal); }
.grad-navy2 { background: var(--grad-navy2); }
.grad-ocean { background: var(--grad-ocean); }
.grad-sunset{ background: var(--grad-sunset); }
.grad-finish{ background: var(--grad-finish); }

/* torn paper edges */
.card-visual::before {
  content:''; position:absolute; top:0; left:0; right:0; height:24px;
  background:#fff;
  clip-path: polygon(0 0,100% 0,100% 35%,93% 100%,86% 35%,79% 100%,72% 35%,65% 100%,58% 35%,51% 100%,44% 35%,37% 100%,30% 35%,23% 100%,16% 35%,9% 100%,2% 35%,0 100%);
}
.card-visual::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:24px;
  background:#fff;
  clip-path: polygon(0 100%,100% 100%,100% 65%,93% 0,86% 65%,79% 0,72% 65%,65% 0,58% 65%,51% 0,44% 65%,37% 0,30% 65%,23% 0,16% 65%,9% 0,2% 65%,0 0);
}

.card-icon  { font-size: 2.4rem; margin-bottom: 7px; z-index: 1; }
.card-title {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.28);
  z-index: 1; line-height: 1.25;
}
.card-visual-logo {
  position: absolute; top: 28px; left: 12px;
  width: 40px; height: 40px;
  object-fit: contain;
  z-index: 2;
  opacity: 0.92;
}
.card-num {
  position: absolute; top: 30px; right: 12px;
  background: rgba(255,255,255,.2); color: #fff;
  font-size: .7rem; font-weight: 700;
  border-radius: 20px; padding: 2px 8px; z-index: 2;
}

/* Card body */
.card-body { padding: 18px 16px 12px; }
.card-body p { font-size: .88rem; color: #333; line-height: 1.6; margin-bottom: 8px; }
.card-body p:last-of-type { margin-bottom: 0; }
.card-body p.mt { margin-top: 10px; }
.hl  { font-weight: 700; color: var(--akzent-dunkel); }
.hl2 { font-weight: 700; color: var(--primaer); }

/* CTA Button */
.card-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 12px 0 4px;
  background: var(--primaer); color: #fff;
  font-weight: 700; font-size: .86rem;
  padding: 11px 14px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s; width: 100%;
}
.card-btn:hover { background: var(--akzent-dunkel); }
.card-btn.green { background: var(--erfolg); }
.card-btn.green:hover { background: var(--erfolg-dunkel); }
.card-btn.teal  { background: var(--akzent); }
.card-btn.teal:hover  { background: var(--akzent-dunkel); }

/* Checklist items */
.checklist { list-style: none; margin-top: 10px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--hintergrund);
  cursor: pointer;
  transition: background .2s;
  font-size: .88rem; font-weight: 600; color: var(--primaer);
  user-select: none;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist li .chk {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #bbb; display: flex;
  align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
  transition: all .2s;
}
.checklist li.checked { background: var(--erfolg-hell); }
.checklist li.checked .chk { background: var(--erfolg); border-color: var(--erfolg); color: #fff; }

/* Radio-style options */
.options-list { list-style: none; margin-top: 10px; }
.options-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  margin-bottom: 8px; background: var(--hintergrund);
  cursor: pointer;
  transition: background .2s, border .2s;
  font-size: .88rem; font-weight: 600; color: var(--primaer);
  border: 2px solid transparent;
  user-select: none;
}
.options-list li:last-child { margin-bottom: 0; }
.options-list li .radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #bbb; flex-shrink: 0;
  transition: all .2s; display: flex;
  align-items: center; justify-content: center;
}
.options-list li.selected { background: var(--auswahl-hell); border-color: var(--akzent); }
.options-list li.selected .radio { background: var(--akzent); border-color: var(--akzent); }
.options-list li.selected .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Card footer */
.card-footer {
  background: #ffffff; padding: 6px 14px 9px;
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
  border-top: 1px solid var(--linie);
}
.footer-logo { font-weight: 900; font-size: .82rem; color: var(--primaer); letter-spacing: .5px; }
.footer-img { width: 100px; height: 42px; object-fit: contain; }

/* ── NAV ARROWS ── */
.nav-btn {
  background: #fff; border: none; border-radius: 50%;
  width: 34px; height: 34px;
  box-shadow: 0 2px 10px rgba(0,0,0,.13);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primaer);
  transition: background .2s;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
}
.nav-btn:hover { background: var(--akzent-hell); }
.nav-btn.prev { left: 4px; }
.nav-btn.next { right: 4px; }

/* ── DOTS ── */
.dots {
  display: flex; gap: 6px;
  justify-content: center; margin-top: 12px;
  flex-wrap: wrap; padding: 0 12px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ccc; transition: background .3s, transform .3s; cursor: pointer;
}
.dot.active { background: var(--akzent); transform: scale(1.4); }

/* ── PROGRESS ── */
.progress-wrap {
  width: calc(100% - 40px); max-width: 280px;
  height: 4px; background: #dde;
  border-radius: 4px; margin-top: 10px; overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--akzent), var(--primaer));
  border-radius: 4px; transition: width .4s;
}
.progress-label {
  font-size: .75rem; color: #888;
  margin-top: 5px; text-align: center;
}

/* ── CONTACT FOOTER ── */
.contact-bar {
  margin-top: 26px;
  background: var(--primaer); border-radius: 14px;
  padding: 16px 20px; width: calc(100% - 32px); max-width: 420px;
  text-align: center; color: var(--akzent-hell); font-size: .84rem;
}
.contact-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-bar .cta {
  display: inline-block; margin-top: 10px;
  background: var(--akzent); color: #fff;
  font-weight: 700; padding: 9px 22px;
  border-radius: 10px; text-decoration: none; font-size: .88rem;
}

/* info box */
.info-box {
  background: var(--akzent-hell); border-radius: 10px;
  padding: 10px 12px; margin-top: 10px;
  font-size: .84rem; color: var(--primaer); line-height: 1.5;
}
.info-box strong { display: block; margin-bottom: 2px; }
/* ersetzt die früheren style="..."-Attribute an den Links in der Infobox */
.info-box a { color: var(--akzent-dunkel); font-weight: 700; }

/* big phone link */
.phone-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--erfolg); color: #fff;
  font-size: 1rem; font-weight: 800; text-decoration: none;
  letter-spacing: .5px;
}
.phone-link:hover { background: var(--erfolg-dunkel); }
.phone-link.blue { background: var(--akzent); }
.phone-link.blue:hover { background: var(--akzent-dunkel); }
