/* SichtbarKI – Stylesheet
   Mobile first. Farben als Variablen. Immer helle Darstellung (kein Dunkelmodus). */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12264a;
  --tuerkis: #0fb5a6;
  --bernstein: #f5a524;

  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --surface: #ffffff;
  --text: #1d2733;
  --text-muted: #4a5868;
  --heading: #12264a;
  --border: #dbe3ec;
  /* Türkis ist auf Weiß als Schrift zu hell (2,6:1) – dunklere Variante für Links/Text */
  --accent-text: #0a7a70;
  --accent: var(--tuerkis);
  --on-accent: var(--navy);
  --btn-bg: var(--tuerkis);
  --btn-bg-hover: #13c9b9;
  --btn-text: var(--navy);
  --note-bg: #fff4dd;
  --note-border: var(--bernstein);
  --note-text: #1d2733;
  --shadow: 0 1px 2px rgb(18 38 74 / 6%), 0 6px 20px rgb(18 38 74 / 8%);
  --radius: 12px;
  --focus: #12264a;

  --maxw: 72rem;
  --gutter: 1rem;

  /* Die Seite sieht immer gleich aus, auch wenn das System auf Dunkelmodus steht */
  color-scheme: only light;
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 46rem;
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------- Entwicklungs-Warnleiste ---------- */

.dev-warning {
  background: var(--bernstein);
  color: #12264a;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.6rem var(--gutter);
  text-align: center;
}

.dev-warning code {
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--btn-bg-hover);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-lg {
  font-size: 1.15rem;
  padding: 1rem 1.75rem;
  min-height: 56px;
}

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo svg {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

/* Auf Weiß minimal dunkleres Türkis, damit der Schriftzug 3:1 Kontrast erreicht */
.logo .accent {
  color: #0c9e91;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
}

.site-nav a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.header-cta .long {
  display: none;
}

@media (min-width: 420px) {
  .header-cta .long {
    display: inline;
  }

  .header-cta .short {
    display: none;
  }
}

@media (min-width: 860px) {
  .site-nav {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
  }
}

/* ---------- Abschnitte ---------- */

.section {
  padding-block: 4rem;
}

.section-soft {
  background: var(--bg-soft);
}

@media (min-width: 768px) {
  .section {
    padding-block: 5.5rem;
  }
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 3rem 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero .lead {
  max-width: 38rem;
}

.hero-actions {
  margin-top: 1.75rem;
}

.trust-line {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (min-width: 1000px) {
  .hero {
    padding-block: 5rem 6rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}

/* Hero-Illustration: Chatfenster */

.chat-figure {
  margin: 0;
}

.chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.chat-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.chat-bar .chat-title {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chat-body {
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.msg {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.msg-user {
  justify-self: end;
  max-width: 88%;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-ai {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0;
}

.msg-ai .avatar {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
}

.msg-ai p {
  margin: 0 0 0.5rem;
}

.answer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.answer-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.answer-list .num {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.answer-list .bar {
  display: block;
  height: 0.55rem;
  border-radius: 99px;
  background: var(--border);
}

.answer-list .w1 { width: 62%; }
.answer-list .w2 { width: 48%; }
.answer-list .w3 { width: 55%; }

.answer-list li.highlight {
  border: 2px solid var(--tuerkis);
  background: color-mix(in srgb, var(--tuerkis) 12%, var(--bg));
  font-weight: 700;
  color: var(--heading);
}

.answer-list li.highlight .num {
  background: var(--tuerkis);
  color: var(--navy);
}

.chat-caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Karten ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2,
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

/* Inhalt: Mockup + Karten */

.contents-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.mockup {
  margin: 0 auto;
  max-width: 26rem;
  width: 100%;
}

@media (min-width: 1000px) {
  .contents-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
  }
}

/* ---------- Vorschau ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toc > summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--heading);
}

.toc ol {
  margin: 0;
  padding: 0 1.4rem 1.3rem 3rem;
}

.toc li {
  padding-block: 0.35rem;
  border-top: 1px solid var(--border);
}

.toc li:first-child {
  border-top: 0;
}

.toc strong {
  display: block;
  color: var(--heading);
}

.toc-desc {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.toc .appendix {
  list-style: none;
  margin-left: -1.6rem;
}

summary {
  cursor: pointer;
}

.preview-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.preview-grid figure {
  margin: 0;
}

.preview-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.preview-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Listen ---------- */

.check-list,
.x-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 2.1rem;
}

.check-list li::before,
.x-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.9rem;
}

.check-list li::before {
  background-color: var(--tuerkis);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%2312264A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.x-list li::before {
  background-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%2312264A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.check-list.big li {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Preisbox ---------- */

.price-box {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px solid var(--tuerkis);
}

.price {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--heading);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}

.price-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-box .check-list {
  text-align: left;
  margin: 1.75rem 0;
}

.fine-print {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

/* ---------- Hinweise ---------- */

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-border);
  color: var(--note-text);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.placeholder-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  margin: 0;
  font-size: 1.08rem;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-text);
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 1.3rem 1.1rem;
}

.faq .answer p {
  margin: 0;
}

/* ---------- Autor ---------- */

.author {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.author-photo {
  display: block;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tuerkis);
  background: var(--bg-soft);
}

@media (min-width: 640px) {
  .author {
    grid-template-columns: 8rem 1fr;
    gap: 2rem;
  }
}

/* ---------- Schluss-CTA ---------- */

.final-cta {
  background: var(--navy);
  color: #e6edf5;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: #d3dce8;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  padding-block: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

@media (min-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- Mobiler Kauf-Button ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgb(18 38 74 / 12%);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0.2s;
}

.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .btn {
    transition: none;
  }
}

@media (max-width: 767px) {
  body.has-sticky {
    padding-bottom: 5rem;
  }
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Rechtsseiten / einfache Seiten ---------- */

.page {
  padding-block: 3rem 4rem;
}

.page h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
}

.page h3 {
  margin-top: 1.5rem;
}

.draft-banner {
  background: var(--bernstein);
  color: #12264a;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.ph {
  background: var(--note-bg);
  color: var(--note-text);
  padding: 0 0.25em;
  border-radius: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.center-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  text-align: center;
}

@media print {
  .site-header,
  .sticky-cta,
  .dev-warning {
    display: none;
  }
}
