/* =========================================================
   selbststaendige-seo.de — Stylesheet
   Fonts lokal eingebunden (DSGVO: keine externen Requests)
   ========================================================= */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14181d;
  --ink-soft: #2b333b;
  --mute: #5f6a72;
  --paper: #f1f3ef;
  --surface: #ffffff;
  --line: #dfe3dd;
  --pine: #12574a;
  --pine-dark: #0d4238;
  --marker: #ffd84d;

  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --r: 18px;
  --band: clamp(68px, 9vw, 124px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.band { padding-block: var(--band); }
.band-tight { padding-block: clamp(48px, 6vw, 84px); }
.band-line { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 14px;
}

.h2 { font-size: clamp(30px, 4.2vw, 46px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); }
.small { font-size: 14px; color: var(--mute); }

/* Textmarker — Signature-Element */
.mark {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0% 34%;
  animation: sweep 900ms cubic-bezier(.22,.8,.24,1) 420ms forwards;
  padding-inline: 2px;
}
@keyframes sweep { to { background-size: 100% 34%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-ghost { border-color: #c9d0c8; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241,243,239,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img { width: 28px; height: 28px; }
.nav { display: none; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--marker); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: clamp(52px, 7vw, 96px); padding-bottom: clamp(36px, 5vw, 60px); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); max-width: 17ch; margin-inline: auto; }
.hero .lead { max-width: 60ch; margin: 22px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 30px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--mute);
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; flex: none; }

/* ---------- SERP-Karte (Signature) ---------- */
.serp {
  max-width: 660px;
  margin: clamp(38px, 5vw, 58px) auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -38px rgba(20,24,29,.45);
  overflow: hidden;
}
.serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}
.serp-bar svg { width: 16px; height: 16px; flex: none; color: var(--mute); }
.serp-query { font-size: 14px; color: var(--ink-soft); }
.serp-list { padding: 10px 8px 16px; }
.serp-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
}
.serp-rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--mute);
  text-align: center;
}
.serp-line { display: block; height: 9px; border-radius: 6px; background: #e7eae4; }
.serp-line + .serp-line { margin-top: 8px; width: 62%; height: 7px; background: #eef0ec; }
.serp-row.is-you {
  background: #fffbe9;
  outline: 1px solid rgba(255,216,77,.9);
}
.is-you .serp-rank { color: var(--ink); font-size: 16px; }
.serp-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.serp-url { font-size: 13px; color: var(--pine); }
.serp-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
  background: #fbfcfa;
}
.serp-note b { color: var(--ink); font-weight: 600; }

/* Rang-Zähler 14 → 2, rein per CSS */
.flip { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: -0.2em; }
.flip-strip {
  display: flex;
  flex-direction: column;
  animation: flip 2000ms cubic-bezier(.3,.8,.2,1) 900ms both;
}
.flip-strip span { height: 1.15em; line-height: 1.15em; }
@keyframes flip {
  0%   { transform: translateY(0); }
  32%  { transform: translateY(-25%); }
  64%  { transform: translateY(-50%); }
  100% { transform: translateY(-75%); }
}

/* ---------- Karten / Raster ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card-icon { width: 34px; height: 34px; margin-bottom: 16px; color: var(--pine); }

.head-block { max-width: 62ch; margin-bottom: clamp(34px, 4vw, 52px); }
.head-block p { margin-top: 16px; }

/* Zielgruppen */
.who { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .who { grid-template-columns: 1fr 1fr; } }
.who .card { padding: 32px; }
.who ul { margin: 16px 0 0; padding-left: 0; list-style: none; }
.who li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
}
.who li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg);
}

/* Zahlen */
.stats { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { font-size: 14px; color: var(--mute); margin-top: 4px; }

/* Ablauf */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  counter-increment: s;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pine);
  padding-top: 3px;
}
.step-no::before { content: "0" counter(s); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); max-width: 62ch; }

/* Preise */
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.price-name { font-family: var(--display); font-weight: 700; font-size: 19px; }
.price-for { font-size: 14px; color: var(--mute); margin-top: 4px; }
.price-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 20px 0 2px;
}
.price-unit { font-size: 14px; color: var(--mute); }
.price ul { list-style: none; margin: 22px 0 26px; padding: 0; }
.price li {
  position: relative;
  padding-left: 24px;
  margin-top: 11px;
  font-size: 15px;
  color: var(--ink-soft);
}
.price li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg);
}
.price .btn { margin-top: auto; }
.price-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.price-featured .price-for,
.price-featured .price-unit { color: #a9b3ba; }
.price-featured li { color: #d7dde1; }
.price-featured li::before { border-color: var(--marker); }
.badge {
  display: inline-block;
  background: var(--marker);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Über mich */
.about { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 260px 1fr; gap: 56px; } }
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.about-card dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 16px; }
.about-card dt:first-of-type { margin-top: 0; }
.about-card dd { margin: 4px 0 0; font-size: 15px; }
.about-card a { color: var(--pine); }
.about p + p { margin-top: 16px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 30px;
  width: 11px; height: 11px;
  border-right: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq p { color: var(--ink-soft); padding-bottom: 22px; max-width: 68ch; }

/* Abschluss-CTA */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: clamp(40px, 6vw, 74px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #b8c1c7; max-width: 58ch; margin: 20px auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }
.cta-band .mark { color: var(--ink); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 44px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 34px; justify-content: space-between; align-items: center; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--mute); text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-meta { font-size: 14px; color: var(--mute); }

/* Rechtstexte */
.prose { max-width: 74ch; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 26px; }
.prose h2 { font-size: 23px; margin-top: 42px; margin-bottom: 12px; }
.prose h3 { font-size: 18px; margin-top: 26px; margin-bottom: 8px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-top: 6px; }
.prose a { color: var(--pine); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--mute);
  text-decoration: none; margin-bottom: 28px;
}
.back:hover { color: var(--ink); }

/* Bedienbarkeit */
:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 50;
}
.skip:focus { left: 10px; top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark { animation: none; background-size: 100% 34%; }
  .flip-strip { animation: none; transform: translateY(-75%); }
  .btn:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* Kleine Displays */
@media (max-width: 480px) {
  .brand { font-size: 14px; white-space: nowrap; }
  .brand img { width: 24px; height: 24px; }
  .head-in { min-height: 60px; gap: 12px; }
  .btn-sm { padding: 10px 16px; font-size: 14px; }
  .serp-row { grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 8px; }
  .serp-note { flex-direction: column; gap: 6px; }
}
