/* APE Digital – weiches Design für Unterseiten (Leistungen, Danke, Rechtliches).
   Tokens und Bausteine entsprechen dem Inline-CSS der index.html. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #1E2347;
  --ink-soft: #5A5F7E;
  --paper: #F2F1ED;
  --white: #FFFFFF;
  --accent: #D9563A;
  --accent-deep: #B8442B;
  --accent-soft: #F6DED6;
  --mint: #DCEDE3;
  --sky: #E2EAF4;
  --butter: #F5E7B8;
  --fix: #2E7D5B;
  --line: rgba(30, 35, 71, .12);
  --shadow: 0 24px 60px -24px rgba(30, 35, 71, .28), 0 2px 6px rgba(30, 35, 71, .05);
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --max: 1240px;
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 32px; }
.section { padding-block: 88px; }
.h2 { margin: 0 0 16px; font-weight: 500; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.04em; max-width: 22ch; }
.lead { margin: 0 0 48px; max-width: 58ch; color: var(--ink-soft); }
.kicker { margin: 0 0 10px; font-weight: 600; font-size: 15px; color: var(--accent); }

/* ===== Bausteine ===== */
.soft-card { position: relative; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px; border: 0; min-height: 48px; cursor: pointer; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { color: var(--white); background: #2A3160; }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 6px 20px -10px rgba(30, 35, 71, .25); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { color: var(--white); background: #C94A2F; }

/* ===== Header / Footer (wie Startseite) ===== */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.logo { text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px -10px rgba(30, 35, 71, .25); }
.logo::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; padding: 5px; box-shadow: 0 6px 20px -10px rgba(30, 35, 71, .25); }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: var(--white); }
.nav .nav-cta:hover { background: var(--ink); color: var(--white); }

.site-footer { margin-top: 48px; background: var(--accent-deep); color: #FFF4EF; }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-block: 32px; font-size: 16px; font-weight: 500; }
.site-footer a { color: #FFF4EF; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-link-btn { background: none; border: 0; padding: 0; color: #FFF4EF; font-weight: 500; cursor: pointer; }
.footer-link-btn:hover { color: var(--white); text-decoration: underline; }

/* ===== Brotkrumen ===== */
.crumbs { margin: 0 0 20px; font-size: 15px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--ink-soft); }
.crumbs li + li::before { content: '›'; margin-right: 8px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ===== Hero ===== */
.hero { padding-top: 32px; }
.eyebrow { display: inline-block; margin: 0 0 24px; background: var(--butter); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 15px; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(38px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.05em; max-width: 18ch; }
.hero h1 .mark { color: var(--accent); }
.hero-text { margin: 32px 0 0; font-size: 21px; max-width: 52ch; color: var(--ink-soft); }
.hero-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; font-size: 16px; font-weight: 500; }
.hero-list li { background: var(--white); border-radius: 999px; padding: 8px 16px; box-shadow: 0 6px 20px -12px rgba(30, 35, 71, .25); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Inhalte ===== */
.band { background: var(--white); border-radius: var(--r); margin-inline: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.card { padding: 34px 28px 28px; }
.card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.card p { margin: 0; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px 40px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .no { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.feature h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.feature p { margin: 0; color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.steps li { padding: 28px; }
.steps li:last-child { background: var(--butter); }
.steps .num { margin: 0 0 8px; font-weight: 500; font-size: 48px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.steps li:last-child .num { color: var(--ink); }
.steps h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.steps p:last-child { margin: 0; font-size: 16px; color: var(--ink-soft); }

.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.faq-item { padding: 22px 24px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-size: 20px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--accent); font-size: 28px; line-height: 1; transition: transform .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; max-width: 62ch; color: var(--ink-soft); }

.contact-card { max-width: 720px; padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-card p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Verteilerseite Leistungen ===== */
.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.hub-card { padding: 32px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.hub-card .kicker { margin: 0; }
.hub-card h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.hub-card p { margin: 0; color: var(--ink-soft); }
.hub-card ul { margin: 4px 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.hub-card li { padding-left: 26px; position: relative; }
.hub-card li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 7px; height: 12px; border: solid var(--fix); border-width: 0 2.5px 2.5px 0; transform: translateY(-50%) rotate(45deg); }
.hub-link { margin-top: auto; align-self: flex-start; font-weight: 600; text-decoration: none; padding-top: 6px; }
.hub-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.hub-link span { border-bottom: 2px solid var(--accent); }
.hub-card:hover .hub-link span { color: var(--accent); }
.hub-link:focus-visible { outline: none; }
.hub-card:has(.hub-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Preis / Paket ===== */
.price-card { padding: 36px 40px; display: grid; grid-template-columns: auto 1fr; gap: 24px 56px; align-items: center; max-width: 860px; }
.price-amount { margin: 0; font-size: clamp(48px, 7vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.price-amount small { display: block; margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.check-list { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 5px; top: .6em; width: 7px; height: 12px; border: solid var(--fix); border-width: 0 2.5px 2.5px 0; transform: translateY(-50%) rotate(45deg); }
@media (max-width: 700px) { .price-card { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ===== Danke ===== */
.thanks { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding-block: 64px; }
.thanks-card { max-width: 640px; padding: 48px 36px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.thanks-card h1 { margin: 0; font-weight: 500; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.thanks-card h1 em { font-style: normal; color: var(--accent); }
.thanks-card p { margin: 0; color: var(--ink-soft); }
.thanks-meta { background: var(--mint); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; color: var(--fix) !important; }

/* ===== Rechtliches ===== */
.legal-hero h1 { margin: 0 0 8px; font-weight: 500; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.045em; }
.legal-hero p { margin: 0; color: var(--ink-soft); }
.legal-body { padding-block: 40px 96px; }
.legal-tabs, .legal-panel, .legal-back-wrap { max-width: 860px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.legal-tab { cursor: pointer; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 48px; font-weight: 600; font-size: 17px; background: var(--white); color: var(--ink); box-shadow: 0 6px 20px -12px rgba(30, 35, 71, .25); }
.legal-tab.active { background: var(--ink); color: var(--white); }
.legal-panel { display: none; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 36px 32px; }
.legal-panel.active { display: block; }
.legal-panel h2 { margin: 0 0 24px; font-weight: 500; letter-spacing: -0.035em; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.legal-panel h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.legal-panel h4 { margin: 20px 0 6px; font-size: 17px; font-weight: 600; }
.legal-panel p, .legal-panel li { font-size: 16px; }
.legal-panel p { margin: 0 0 12px; }
.legal-panel ul { margin: 0 0 12px; padding-left: 22px; }
.legal-block { margin-bottom: 28px; overflow-wrap: anywhere; }
.legal-divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.legal-info-box, .legal-contact-card { background: var(--sky); border-radius: 20px; padding: 20px 24px; margin-block: 20px; }
.legal-contact-card h3 { margin-bottom: 6px; }
.legal-contact-card p:last-child, .legal-info-box p:last-child { margin-bottom: 0; }
.legal-back-wrap { margin-top: 32px; }

/* ===== Mobil ===== */
@media (max-width: 860px) {
  .wrap { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .hero-text { font-size: 19px; }
  .legal-panel, .contact-card, .thanks-card { padding-inline: 20px; }
  .band { margin-inline: 0; border-radius: 0; }
  .nav a { padding: 8px 12px; }
}
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .site-header { flex-wrap: nowrap; padding-block: 12px; }
  .logo { white-space: nowrap; font-size: 18px; padding: 8px 14px 8px 12px; }
  .nav { flex-wrap: nowrap; }
  .nav a { white-space: nowrap; font-size: 14px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-plus { transition: none; }
}

/* Kontaktformular auf Leistungsseiten (gleiche Felder wie auf der Startseite) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.contact-left { display: flex; flex-direction: column; gap: 24px; }
.contact-left p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.me { display: flex; align-items: center; gap: 18px; }
.me-photo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--sky); box-shadow: 0 10px 30px -14px rgba(30, 35, 71, .45); }
.me-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.form { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.form h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.field input, .field select { font: inherit; padding: 13px 16px; border: 1px solid transparent; border-radius: 14px; background: var(--paper); color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.form .btn { align-self: flex-start; }
.form small { color: var(--ink-soft); font-size: 14px; }
.form .privacy-note { font-size: 13px; line-height: 1.45; }
.form .privacy-note a { color: var(--ink-soft); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form { padding-inline: 20px; }
}
