/* ==========================================================================
   KlarAntwort – Stylesheet
   Design: ruhig, klar, warm · Mobile-first · WCAG AA
   Farben: #FAF8F4 (Hintergrund) · #1F2421 (Text) · #1E6E6B (Petrol) · #D08C60 (Terrakotta)
   Fonts: Fraunces (Headlines) · Inter (Fließtext)
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #FAF8F4;
  --text: #1F2421;
  --petrol: #1E6E6B;
  --petrol-dark: #175755;      /* für Hover, AA-Kontrast */
  --terracotta: #D08C60;
  --terracotta-dark: #B06A3C;  /* AA-Kontrast auf hellem Grund */
  --surface: #FFFFFF;
  --line: #E8E2D8;
  --muted: #55605B;            /* Sekundärtext, AA auf #FAF8F4 */

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --maxw: 68rem;
  --maxw-text: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px – gut lesbar */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-dark); }

/* Sichtbarer Fokus-Ring für Tastaturnutzung (WCAG) */
:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip-Link: erst bei Fokus sichtbar */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Layout-Helfer ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.narrow { max-width: var(--maxw-text); }

section { padding-block: var(--space-5); }

/* Kicker: kleine Zeile über Überschriften */
.kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: var(--space-1);
}

/* „Antwort zuerst"-Absatz: die direkte Antwort am Sektionsanfang */
.answer-first {
  font-size: 1.15rem;
  max-width: var(--maxw-text);
}

.section-alt { background: var(--surface); }

/* ---------- Header & Navigation ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.9rem;
}

/* Logo = Wortmarke mit Terrakotta-Punkt */
.logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.logo .dot { color: var(--terracotta); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(31, 36, 33, 0.07);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.site-nav a:hover { color: var(--petrol); }
.site-nav a[aria-current="page"] {
  color: var(--petrol);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
}

.nav-cta {
  display: inline-block;
  background: var(--petrol);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--petrol-dark); }

/* Desktop-Navigation */
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; box-shadow: none; border: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--space-3); padding: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--petrol);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--petrol-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--petrol);
  border: 2px solid var(--petrol);
}
.btn-ghost:hover { background: var(--petrol); color: #fff; }

.text-link { font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-5) var(--space-4); }

.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.hero .sub {
  font-size: 1.2rem;
  max-width: var(--maxw-text);
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Beweis-Streifen ---------- */
.proof-strip {
  background: var(--petrol);
  color: #fff;
  padding-block: var(--space-2);
  text-align: center;
  font-size: 0.98rem;
}
.proof-strip p { margin: 0; }
.proof-strip a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(255,255,255,0.6);
  transition: text-decoration-color .15s ease;
}
.proof-strip a:hover, .proof-strip a:focus { text-decoration-color: #fff; }

/* ---------- Karten ---------- */
.card-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
@media (min-width: 800px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card h3 { margin-bottom: var(--space-1); color: var(--petrol); }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Nummerierte Prozess-Schritte */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

/* ---------- Vorher / Nachher ---------- */
.before-after {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
@media (min-width: 800px) { .before-after { grid-template-columns: 1fr 1fr; } }

.ba-col {
  border-radius: var(--radius);
  padding: var(--space-3);
}
.ba-before { background: var(--surface); border: 1px solid var(--line); }
.ba-after { background: var(--petrol); color: #fff; }
.ba-after h3 { color: #fff; }
.ba-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-1);
}
.ba-before .ba-label { color: var(--terracotta-dark); }
.ba-after .ba-label { color: #F2D3BC; }

/* ---------- FAQ-Akkordeon ---------- */
.faq-list {
  max-width: var(--maxw-text);
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 1.1rem 0.2rem;
  cursor: pointer;
}
.faq-question:hover { color: var(--petrol); }

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer { padding: 0 0.2rem 1.2rem; color: var(--muted); }
.faq-answer[hidden] { display: none; }

/* ---------- Bilder / Platzhalter ---------- */
.img-slot { border-radius: var(--radius); overflow: hidden; }

figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-1); }

/* ---------- Zwei-Spalten (Über mich, Referenz) ---------- */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 850px) {
  .split { grid-template-columns: 2fr 1fr; }
  .split.reverse { grid-template-columns: 1fr 2fr; }
}

/* Kompetenz-Leiste */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}
.chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.values-line {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--petrol);
  margin-top: var(--space-3);
}

/* ---------- Ergebnis-Liste (Referenz) ---------- */
.result-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: var(--space-2);
}
.result-list li {
  background: var(--surface);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-2) var(--space-3);
}

/* Stat-Hervorhebung */
.stat {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--petrol);
  line-height: 1;
  display: block;
}

/* ---------- Preiskarten (Leistungen) ---------- */
.package {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  margin-top: var(--space-3);
}
.package.featured { border: 2px solid var(--petrol); position: relative; }

.package-badge {
  position: absolute;
  top: -0.85rem;
  left: var(--space-3);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
}

.package .price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--petrol);
  margin-top: var(--space-2);
}

.package h3 { font-family: var(--font-head); font-size: 1.45rem; }

/* ---------- CTA-Abschluss ---------- */
.cta-final {
  background: var(--petrol);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-3);
}
.cta-final h2 { color: #fff; }
.cta-final p { max-width: var(--maxw-text); margin-inline: auto; }
.cta-final .btn {
  background: var(--terracotta);
  margin-top: var(--space-3);
}
.cta-final .btn:hover { background: var(--terracotta-dark); }

/* ---------- Formular ---------- */
.contact-form {
  display: grid;
  gap: var(--space-2);
  max-width: var(--maxw-text);
  margin-top: var(--space-3);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--petrol);
  outline-offset: 1px;
  border-color: var(--petrol);
}

.contact-form .btn { justify-self: start; margin-top: var(--space-1); }

.form-hint { font-size: 0.88rem; color: var(--muted); }

/* Nächste-Schritte-Liste (Kontakt) */
.steps-ol {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: var(--space-2);
}
.steps-ol li {
  counter-increment: steps;
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.steps-ol li::before {
  content: counter(steps);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #E7E4DE;
  padding-block: var(--space-4);
  margin-top: var(--space-5);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--terracotta); }

.site-footer .logo { color: #fff; font-size: 1.2rem; }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-meta { font-size: 0.85rem; color: #B8B4AC; margin-top: var(--space-2); }

/* ---------- Social-Icons (Footer) ---------- */
.social-links {
  display: flex;
  gap: 0.65rem;
  margin: var(--space-2) 0 0;
}
.social-links a { color: var(--muted); opacity: 0.75; transition: opacity .15s ease, color .15s ease; }
.social-links a:hover, .social-links a:focus { opacity: 1; color: var(--terracotta); }
.social-links svg { width: 16px; height: 16px; display: block; }

/* ---------- Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* --- Mockups: Google-SERP vs. KI-Chat (Wandel-Sektion) --- */
.mock {
  margin-top: var(--space-3);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.8rem;
  line-height: 1.35;
}
.l {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #DDD6CA;
  margin-top: 6px;
}
.l-name { width: 38%; height: 9px; background: #C9C1B2; margin-top: 0; }
.l-ad { background: #E9D9A6; }
.l-55 { width: 55%; } .l-60 { width: 60%; } .l-65 { width: 65%; }
.l-70 { width: 70%; } .l-75 { width: 75%; } .l-80 { width: 80%; }
.mock-serp {
  background: var(--bg);
  border: 1px solid var(--line);
}
.serp-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.serp-bar svg { flex: none; color: var(--petrol); }
.serp-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.6rem 0 0.2rem;
}
.serp-tag-organic { color: var(--terracotta-dark); margin-top: 0.9rem; }
.serp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.4rem;
  position: relative;
}
.serp-item + .serp-item { border-top: 1px solid var(--line); }
.serp-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #DDD6CA;
  margin-top: 1px;
}
.serp-dot-you { background: var(--terracotta); }
.serp-lines { flex: 1; min-width: 0; }
.serp-you {
  background: #FBF0E7;
  border-radius: 8px;
  border: 1px solid #EAD3BF;
}
.serp-you + .serp-item { border-top: 0; }
.serp-you-name {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--terracotta-dark);
}
.l-you { background: #E5C3A6; }
.serp-note {
  flex: none;
  align-self: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  white-space: nowrap;
}
.serp-note::before { content: "\2190  "; }
.mock-chat { background: rgba(255, 255, 255, 0.08); }
.chat-q {
  background: #FAF8F4;
  color: var(--text);
  border-radius: 12px 12px 3px 12px;
  padding: 0.6rem 0.8rem;
  max-width: 88%;
  margin-left: auto;
  font-weight: 500;
}
.chat-a { margin-top: 0.9rem; }
.chat-a > p { margin: 0 0 0.5rem; font-size: 0.8rem; color: #EAF2F1; }
.chat-a ul { list-style: none; margin: 0; padding: 0; }
.chat-a li { padding: 0.45rem 0.5rem; }
.chat-a li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.chat-a .l { background: rgba(255, 255, 255, 0.28); }
.l-name-c { width: 34%; height: 9px; background: rgba(255, 255, 255, 0.45); margin-top: 0; }
.chat-hit {
  background: rgba(250, 248, 244, 0.14);
  border-radius: 8px;
  border: 1px solid rgba(242, 211, 188, 0.5);
  color: #fff;
}
.chat-hit + li { border-top: 0 !important; }
.chat-hit strong { color: #F2D3BC; }
.chat-chip {
  display: inline-block;
  background: var(--terracotta);
  color: #2B1A0E;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}
.chat-send {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #2B1A0E;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
