/* ============================================================
   Hofmann Digital — gemeinsames Stylesheet (alle Seiten)
   Design-System: Konzept Kap. 7 — dunkles Tannengrün + Salbei
   ============================================================ */

/* ============ Design-Tokens ============ */
:root {
  --bg:         #0E1712;
  --bg-2:       #14201A;
  --surface:    #1A2820;
  --text:       #EAF0EA;
  --text-soft:  #8FA394;
  --line:       rgba(180, 208, 184, 0.14);
  --accent:     #B4D0B8;
  --accent-ink: #0E1712;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container:  1140px;
  --nav-h:      76px;
  --radius:     18px;
}

/* ============ Reset & Basis ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Wichtig: KEIN css scroll-behavior:smooth — kollidiert mit Lenis
   (Browser glättet dann jede Lenis-Frame-Position erneut → Scroll hängt).
   Sanftes Anker-Scrollen übernimmt Lenis bzw. scrollIntoView per JS. */
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Links im Fließtext müssen ohne Farbe erkennbar sein (WCAG) */
p a { text-decoration: underline; text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ============ Typografie ============ */
h1, h2, h3.serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 em, h2 em, .serif em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.section-head p  { color: var(--text-soft); max-width: 56ch; }

/* ============ Buttons (Pill) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #C6DCC9; }

.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }

/* ============ Header / Pill-Nav ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: padding 0.3s ease;
}
.site-header.scrolled { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 23, 18, 0.75);
  backdrop-filter: blur(12px);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.brand-pill strong { font-weight: 600; }
.brand-pill span   { font-weight: 400; color: var(--accent); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 23, 18, 0.75);
  backdrop-filter: blur(12px);
}
.nav-pill a {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-pill a:hover { background: var(--surface); }
.nav-pill a[aria-current="page"] { background: var(--surface); color: var(--accent); }
.nav-pill a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav-pill a.nav-cta:hover { background: #C6DCC9; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 23, 18, 0.75);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-burger { display: none; }
.nav-open .nav-toggle .icon-close  { display: block; }

.header-right { display: flex; align-items: center; gap: 0.6rem; }
.header-cta { min-height: 48px; padding: 0.55rem 1.4rem; font-size: 0.95rem; }

@media (max-width: 920px) {
  .nav-pill {
    position: fixed;
    top: calc(var(--nav-h) + 0.25rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(14, 23, 18, 0.96);
    display: none;
  }
  .nav-open .nav-pill { display: flex; }
  .nav-pill a { padding: 0.85rem 1.15rem; text-align: center; }
  .nav-pill a.nav-cta { display: none; } /* CTA bleibt außerhalb des Menüs sichtbar */
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 921px) {
  .header-cta { display: none; } /* Desktop: CTA sitzt in der Nav-Pill */
}
/* Sehr schmale Bildschirme: Header kompakter, damit nichts über den Rand ragt */
@media (max-width: 430px) {
  .site-header { padding-inline: 0.75rem; gap: 0.5rem; }
  .brand-pill { padding: 0.55rem 1rem; font-size: 0.92rem; }
  .header-cta { padding: 0.55rem 1rem; font-size: 0.9rem; }
  .header-right { gap: 0.4rem; }
}

/* ============ Hero (Startseite) ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  overflow: hidden;
}
.hero { --glow-s: 1; --glow-o: 1; }
.hero::before {
  /* Radialer Glow hinter der Headline — Skalierung/Ausblenden per Scroll (CSS-Variablen) */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) scale(var(--glow-s));
  opacity: var(--glow-o);
  width: min(1100px, 130vw);
  aspect-ratio: 1.4 / 1;
  background: radial-gradient(ellipse at center, rgba(180, 208, 184, 0.13) 0%, rgba(180, 208, 184, 0.05) 38%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero .sub {
  max-width: 54ch;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: 2.5rem;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ============ Page-Hero (Unterseiten) ============ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  aspect-ratio: 1.6 / 1;
  background: radial-gradient(ellipse at center, rgba(180, 208, 184, 0.10) 0%, rgba(180, 208, 184, 0.04) 40%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}
.page-hero .sub {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

/* ============ Marquee-Trustband ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.4rem 0;
}
.marquee__inner { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text-soft);
  white-space: nowrap;
}
.marquee__track span { padding-inline: 1.25rem; }
.marquee__track .dot { color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Übernimmt GSAP das Marquee (scroll-reaktiv), wird die CSS-Animation abgeschaltet */
.marquee__inner.js-marquee { animation: none; }

/* ============ Sektionen allgemein ============ */
section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-alt { background: var(--bg-2); }

/* ============ Karten (allgemein + Problem-Grid) ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.section-alt .card { background: var(--surface); }
.card:hover { background: var(--surface); border-color: rgba(180, 208, 184, 0.3); }
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.card p { color: var(--text-soft); font-size: 0.98rem; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Klickbare Karte (z. B. Lösungs-Übersicht) */
a.card { display: block; }
a.card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
}
a.card:hover .card-arrow { text-decoration: underline; }

/* ============ Statement-Reveal ============ */
.statement { text-align: center; }
.statement .statement-text {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
  margin-inline: auto;
}
.statement .word { display: inline-block; }
.statement em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ============ Lösungs-Karten (Startseite, Stapel) ============ */
.solution {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2);
  margin-bottom: 1.5rem;
}
@media (min-width: 820px) {
  .solution { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.solution--minor { background: transparent; }
.solution__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.solution h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.solution h3 em { font-style: italic; font-weight: 400; color: var(--accent); }
.solution .problem { color: var(--text-soft); margin-bottom: 1.5rem; }

.solution__facts { display: grid; gap: 1.1rem; }
.fact { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.fact .marker {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.fact strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.fact p { color: var(--text-soft); font-size: 0.95rem; }

.solution .btn { justify-self: start; margin-top: 1.6rem; }

/* Mobil: Lösungs-Karte als eine Spalte, Button ANS ENDE (erst Argumente, dann Klick) */
@media (max-width: 819px) {
  .solution { display: flex; flex-direction: column; gap: 0; }
  .solution > div { display: contents; }
  .solution > div > .btn { order: 10; align-self: flex-start; margin-top: 1.6rem; }
  .solution .solution__facts { margin-top: 0.25rem; }
}

/* Mobil: kompaktere Abstände — weniger „Textwand", gleiche Inhalte */
@media (max-width: 640px) {
  section { padding-block: 3.25rem; }
  .section-head { margin-bottom: 1.75rem; }
  .problem-grid { gap: 1rem; }
  .card { padding: 1.35rem 1.25rem; }
  .solution { padding: 1.5rem 1.25rem; margin-bottom: 1rem; }
  .solution .problem { margin-bottom: 1.1rem; }
  .solution__facts { gap: 0.9rem; }
  .steps { gap: 1rem; }
}

/* Karten-Stapel: Lösungen kleben beim Scrollen oben und schieben sich übereinander.
   Nur auf großen Screens und nur, wenn JS + Animationen aktiv sind (.js-stack). */
@media (min-width: 900px) {
  .js-stack #loesungen .solution {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    transform-origin: center top;
  }
  .js-stack #loesungen .solution--minor { background: var(--bg); }
}

/* ============ „Wie's funktioniert"-Ausklapp (alle Seiten) ============ */
details.howto {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
details.howto summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.92rem;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
details.howto summary::-webkit-details-marker { display: none; }
details.howto summary::before { content: "+"; color: var(--accent); font-size: 1.1rem; }
details.howto[open] summary::before { content: "–"; }
details.howto p { color: var(--text-soft); font-size: 0.95rem; padding-top: 0.5rem; max-width: 62ch; }

/* FAQ-Akkordeon (Startseite) */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  min-height: 44px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 0 1.25rem; }
.faq-item .faq-answer p { color: var(--text-soft); max-width: 68ch; }

/* ============ Terminbuchung ============ */
.booking {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.booking__grid { display: grid; gap: 1.75rem; }
@media (min-width: 720px) { .booking__grid { grid-template-columns: 250px 1fr; gap: 2.5rem; } }
.booking__label { display: block; font-weight: 600; margin-bottom: 0.7rem; color: var(--text); }
/* Eigener Kalender */
.cal {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  padding: 1rem 1.1rem 1.15rem;
  max-width: 330px;
}
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.cal__title { font-weight: 600; font-size: 1.02rem; }
.cal__nav {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.cal__nav:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__dow span {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-soft);
  padding: 0.3rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal__day {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.cal__day:hover:not(:disabled) { background: var(--surface); }
.cal__day:disabled { color: var(--text-soft); opacity: 0.28; cursor: default; }
.cal__day--empty { visibility: hidden; }
.cal__day--sel { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cal__day--sel:hover { background: var(--accent); }
.booking__hint { color: var(--text-soft); font-size: 0.85rem; margin-top: 0.5rem; }
.booking__slots { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: flex-start; }
.booking__placeholder { color: var(--text-soft); font-size: 0.92rem; }
.slot-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.slot-btn--busy {
  color: var(--text-soft);
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}
.booking__form { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.booking__chosen { color: var(--accent); font-weight: 600; margin-bottom: 1.1rem; }
.booking__fields { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) {
  .booking__fields { grid-template-columns: 1fr 1fr; }
  .booking__fields .field:last-child { grid-column: 1 / -1; }
}

/* ============ Vertrauen / Fakten ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
}
/* Zitat-Layout für später: sobald echte Kundenstimmen vorliegen, wird eine
   .card--quote (blockquote + Name/Betrieb) in dieses Grid eingesetzt. */

/* ============ Ablauf ============ */
.steps-line {
  height: 1px;
  background: var(--line);
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.steps-line i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: reduce) {
  .steps-line i { transform: none; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p  { color: var(--text-soft); font-size: 0.95rem; }

/* ============ Konfigurator-Teaser / CTA-Band ============ */
.teaser {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180, 208, 184, 0.08), transparent 60%),
    var(--bg-2);
}
.teaser h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.teaser p  { color: var(--text-soft); max-width: 52ch; margin: 0 auto 2rem; }

/* ============ Kontakt (Startseite) ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) {
  .contact-wrap { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-form { display: grid; gap: 1.1rem; }
/* Spamschutz-Honeypot: für Menschen unsichtbar, für Bots als echtes Feld sichtbar */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
}
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.form-note { font-size: 0.85rem; color: var(--text-soft); }
.form-status { font-size: 0.92rem; color: var(--accent); min-height: 1.4em; }

.contact-alt { display: grid; gap: 1.5rem; align-content: start; }
.contact-alt .alt-item { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.contact-alt .alt-item strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.contact-alt .alt-item a { color: var(--accent); }
.contact-alt .alt-item a:hover { text-decoration: underline; }
.contact-alt .alt-item p { color: var(--text-soft); font-size: 0.95rem; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-grid a { padding-block: 0.4rem; display: inline-block; }
.footer-grid a:hover { color: var(--text); }
.footer-region { color: var(--text-soft); font-size: 0.9rem; margin: 1.5rem 0 0.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ============ Rechts-Views (Impressum / Datenschutz, Startseite) ============ */
.legal-view {
  display: none;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}
body.show-legal .legal-view.active { display: block; }
body.show-legal .home-view { display: none; }

/* Eigenständige Rechtsseiten (impressum.html / datenschutz.html) */
.legal-page { padding: calc(var(--nav-h) + 3rem) 0 5rem; }

.legal-view .container, .legal-page .container { max-width: 780px; }
.legal-view h1, .legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.legal-view h2, .legal-page h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
.legal-view h3, .legal-page h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; color: var(--text); }
.legal-view p, .legal-view li, .legal-page p, .legal-page li { color: var(--text-soft); margin-bottom: 0.75rem; }
.legal-view ul, .legal-page ul { padding-left: 1.25rem; }
.legal-view .placeholder, .legal-page .placeholder {
  color: var(--accent);
  background: rgba(180, 208, 184, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.95em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* ============================================================
   Phase 2 — Komponenten für Unterseiten
   ============================================================ */

/* ---------- Lösungs-Detail-Sektionen (loesungen.html) ---------- */
.detail { border-top: 1px solid var(--line); }
.detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 880px) {
  .detail__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: start; }
}
.detail h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 1.25rem;
}
.detail .problem { color: var(--text-soft); margin-bottom: 1.5rem; max-width: 54ch; }
.detail__sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.detail .btn { margin-top: 1.75rem; }

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(180, 208, 184, 0.35);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.result-chip::before { content: "→"; }

/* ---------- Live-Demo: Anruf → erfasste Anfrage ---------- */
.demo {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.demo__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.demo__head p { color: var(--text-soft); font-size: 0.95rem; }
.demo__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo__tab {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.demo__tab:hover { border-color: var(--accent); }
.demo__tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.demo__stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .demo__stage { grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 260px;
}
.chat__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}
.bubble {
  max-width: 85%;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  font-size: 0.97rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.bubble.in { opacity: 1; transform: none; }
.bubble--caller {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble--assistant {
  align-self: flex-end;
  background: rgba(180, 208, 184, 0.12);
  border: 1px solid rgba(180, 208, 184, 0.25);
  border-bottom-right-radius: 4px;
}
.bubble .who {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.ticket {
  border: 1px solid rgba(180, 208, 184, 0.3);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ticket.in { opacity: 1; transform: none; }
.ticket__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.ticket__head .marker {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.ticket__head strong { display: block; font-size: 0.98rem; }
.ticket__head span { display: block; font-size: 0.82rem; color: var(--text-soft); }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; }
.ticket dt { color: var(--text-soft); font-size: 0.88rem; padding-top: 0.1rem; white-space: nowrap; }
.ticket dd { font-size: 0.95rem; }

.demo__replay {
  margin-top: 1.5rem;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.demo__replay:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Referenz-Karten (referenzen.html) ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.ref-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}
.ref-card:hover, .ref-card.is-hover {
  border-color: rgba(180, 208, 184, 0.45);
  transform: scale(1.035);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Live-Vorschau: echtes iframe der Demo, per JS auf Desktop-Breite skaliert und scrollbar */
.ref-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ref-preview__iframe {
  border: 0;
  width: 1280px;
  height: 800px;
  transform-origin: top left;
  background: #fff;
  /* transform: scale(...) wird per JS gesetzt (main.js) */
}
.ref-preview__open {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(14, 23, 18, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 208, 184, 0.4);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ref-preview__open svg { width: 15px; height: 15px; }
.ref-preview__open:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ref-card__body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.ref-card__body .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.ref-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.ref-card__body p { color: var(--text-soft); font-size: 0.95rem; flex: 1; }
.ref-card__body .btn { margin-top: 1.4rem; align-self: flex-start; }

.demo-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
}
.demo-note::before { content: "ⓘ"; color: var(--accent); }

/* ---------- Case-Study-Skelett (referenzen.html) ---------- */
.case-skeleton {
  border: 1px dashed rgba(180, 208, 184, 0.25);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3rem);
}
.case-skeleton__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.case-skeleton__steps .step { border-style: dashed; }

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4.5rem; align-items: center; }
}
/* Portrait als kompakte, zentrierte Karte — nie halb abgeschnitten */
.about-grid .portrait--photo { max-width: 360px; width: 100%; margin-inline: auto; justify-self: center; }
.about-prose h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
.about-prose p { color: var(--text-soft); margin-bottom: 1.1rem; max-width: 60ch; }
.about-prose p strong { color: var(--text); font-weight: 600; }

.portrait {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(180, 208, 184, 0.08), transparent 65%),
    var(--bg-2);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.portrait .monogram {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3.5rem, 7vw, 5rem);
  color: var(--accent);
  line-height: 1;
}
.portrait strong { font-size: 1.05rem; }
.portrait span { color: var(--text-soft); font-size: 0.88rem; }

/* Portrait mit echtem Foto (Über mich) — Bild bestimmt die Höhe (Safari-sicher, kein aspect-ratio-Container) */
.portrait--photo {
  display: block;
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: auto;
}
.portrait--photo picture { display: block; }
.portrait--photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.portrait--photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.4rem 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: linear-gradient(to top, rgba(14, 23, 18, 0.94), rgba(14, 23, 18, 0.55) 55%, transparent);
}
.portrait--photo figcaption strong { font-size: 1.05rem; color: var(--text); }
.portrait--photo figcaption span { color: var(--text-soft); font-size: 0.88rem; }

/* ============================================================
   Phase 3 — Konfigurator & Blog
   ============================================================ */

/* ---------- Konfigurator ---------- */
.konfig { max-width: 860px; }
.konfig__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}
.konfig__progress .bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.konfig__progress .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.33);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.konfig__step h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
.konfig__step > p { color: var(--text-soft); max-width: 56ch; }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1rem;
  margin-block: 1.75rem;
}
.opt {
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.opt:hover { border-color: rgba(180, 208, 184, 0.35); }
.opt .check {
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--surface); }
.opt[aria-pressed="true"] .check { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.opt .desc { color: var(--text-soft); font-size: 0.9rem; }

.konfig__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.konfig__error { color: #E8B4B4; font-size: 0.92rem; min-height: 1.4em; margin-top: 0.75rem; }

.summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 1.5rem 1.6rem;
  margin-block: 1.75rem;
}
.summary-box h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}
.summary-box ul { list-style: none; display: grid; gap: 0.5rem; padding: 0; }
.summary-box li { color: var(--text); font-size: 0.98rem; }
.summary-box li::before { content: "✓ "; color: var(--accent); }
.summary-box li .to { color: var(--text-soft); }
.summary-box .meta { color: var(--text-soft); font-size: 0.9rem; margin-top: 1rem; }

.konfig .contact-form { margin-top: 0.5rem; }
.konfig__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ---------- Blog ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.article-meta .dot { color: var(--accent); }

.article-body { max-width: 720px; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body .lead { font-size: 1.15rem; color: var(--text); }
.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-top: 2.75rem;
}
.article-body h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.article-body p, .article-body li { color: var(--text-soft); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
}
.article-cta { margin-top: 3.5rem; }

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .bubble, .ticket { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============================================================
   KI-Chat-Widget (auf allen Seiten, per main.js eingefügt)
   ============================================================ */
.hd-chat-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.hd-chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,0.45); }
.hd-chat-bubble:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hd-chat-bubble svg { width: 22px; height: 22px; flex: none; }
.hd-chat-bubble--hidden { opacity: 0; visibility: hidden; transform: scale(0.8); pointer-events: none; }

.hd-chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 901;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  font-family: var(--font-sans);
}
.hd-chat-panel--open { opacity: 1; visibility: visible; transform: none; }

.hd-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hd-chat-head__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px rgba(180,208,184,0.18); }
.hd-chat-head__title { font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.hd-chat-head__sub { display: block; font-size: 0.76rem; color: var(--text-soft); font-weight: 400; }
.hd-chat-head__close {
  margin-left: auto; background: none; border: none; color: var(--text-soft);
  cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 4px 6px; border-radius: 8px;
}
.hd-chat-head__close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.hd-chat-head__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hd-chat-log { position: relative; flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.hd-chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.hd-chat-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.hd-chat-msg--user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.hd-chat-msg a { color: inherit; text-decoration: underline; }

.hd-chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; }
.hd-chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-soft); animation: hdBlink 1.2s infinite ease-in-out; }
.hd-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.hd-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hdBlink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.hd-chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.hd-chat-quick button {
  background: transparent; border: 1px solid var(--line); color: var(--text-soft);
  font-family: var(--font-sans); font-size: 0.82rem; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.hd-chat-quick button:hover { color: var(--text); border-color: var(--accent); }

.hd-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.hd-chat-form input {
  flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-sans); font-size: 0.9rem; padding: 11px 13px; border-radius: 12px;
}
.hd-chat-form input::placeholder { color: var(--text-soft); }
.hd-chat-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hd-chat-form button {
  flex: none; width: 44px; background: var(--accent); color: var(--accent-ink); border: none;
  border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hd-chat-form button:disabled { opacity: 0.5; cursor: default; }
.hd-chat-form button svg { width: 20px; height: 20px; }
.hd-chat-note { padding: 0 12px 10px; font-size: 0.68rem; color: var(--text-soft); text-align: center; background: var(--bg); }

@media (max-width: 480px) {
  .hd-chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(80vh, 560px); }
  .hd-chat-bubble { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-chat-bubble, .hd-chat-panel { transition: none; }
  .hd-chat-typing span { animation: none; }
}

/* ---- Kontaktformular: Einwilligungs-Häkchen (KI-Anruf) ---- */
.field--consent { margin-top: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.consent-check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.consent-check input[type="checkbox"] { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--accent); cursor: pointer; }
.consent-text { font-size: 0.82rem; line-height: 1.55; color: var(--text-soft); }
.consent-hint { margin: 9px 0 0 31px; font-size: 0.8rem; line-height: 1.45; color: var(--accent); }
@media (max-width: 480px) { .consent-hint { margin-left: 0; } }

/* ---- Flaggschiff-Badge (Lösungen) ---- */
.badge-flagship { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
