/* ==========================================================================
   SWAIPR – Website Stylesheet
   Zwei Design-Varianten über [data-theme] auf <html>:
     • "warm"  – warm, einladend (Default)
     • "bold"  – modern, kräftige Verläufe
   ========================================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { padding-left: 1.2em; }

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 22px;
  --radius-sm: 14px;
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --shadow: 0 18px 50px -24px rgba(30, 10, 20, .35);
  --shadow-sm: 0 8px 26px -18px rgba(30, 10, 20, .4);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- WARM (Default) ---------- */
:root, :root[data-theme="warm"] {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bg: #fdf6f1;
  --bg-alt: #f7e9e0;
  --surface: #ffffff;
  --ink: #2c1c18;
  --ink-soft: #6c5a54;
  --line: #ecdcd2;
  --brand: #e8603c;
  --brand-strong: #d24a2a;
  --brand-soft: #fce4da;
  --accent: #f2a65a;
  --on-brand: #ffffff;
  --hero-bg: radial-gradient(120% 120% at 15% 0%, #ffe9de 0%, #fdf6f1 55%, #fdf6f1 100%);
  --footer-bg: #2c1c18;
  --footer-ink: #f4e6de;
  --footer-soft: #b99e93;
  --display-weight: 560;
  --display-spacing: -0.01em;
}

/* ---------- BOLD ---------- */
:root[data-theme="bold"] {
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --bg: #0e0b1a;
  --bg-alt: #16112b;
  --surface: #1b1533;
  --ink: #f4f1ff;
  --ink-soft: #b3aad4;
  --line: #2c2450;
  --brand: #b16cff;
  --brand-strong: #d16bff;
  --brand-soft: #241a44;
  --accent: #ff5fa2;
  --on-brand: #ffffff;
  --hero-bg: radial-gradient(130% 120% at 80% -10%, #3a1d6e 0%, #1a1030 45%, #0e0b1a 100%);
  --footer-bg: #080611;
  --footer-ink: #e9e4ff;
  --footer-soft: #8a80b5;
  --display-weight: 600;
  --display-spacing: -0.02em;
  --shadow: 0 24px 60px -26px rgba(120, 60, 255, .5);
  --shadow-sm: 0 12px 30px -20px rgba(120, 60, 255, .55);
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.08;
  color: var(--ink);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--space-section); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--brand-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-strong); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 640; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand .logo-dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 1rem; box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
.nav-links a.btn-primary { color: var(--on-brand); }
.nav-links a.btn-primary:hover { color: var(--on-brand); background: var(--brand-strong); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: .4rem; }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.4rem;
    transform: translateY(-140%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem .8rem; font-size: 1.05rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--hero-bg); position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }

/* Phone mockup */
.phone {
  justify-self: center;
  width: min(300px, 78vw); aspect-ratio: 300 / 610;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface) 80%, var(--brand-soft)));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; transform: rotate(2deg);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 6px; border-radius: 99px; background: var(--line); }
.phone-screen {
  height: 100%; border-radius: 32px; background: var(--hero-bg);
  border: 1px solid var(--line); padding: 2.4rem 1.3rem 1.3rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.chat-bubble { padding: .8rem 1rem; border-radius: 18px; font-size: .9rem; max-width: 85%; box-shadow: var(--shadow-sm); }
.chat-bubble.ai { background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; }
.chat-bubble.me { background: var(--brand); color: var(--on-brand); align-self: flex-end; border-bottom-right-radius: 6px; }
.dri-card { margin-top: auto; background: var(--surface); border-radius: 18px; padding: 1rem; border: 1px solid var(--line); }
.dri-card .label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.dri-card .score { font-family: var(--font-display); font-size: 1.9rem; font-weight: 640; color: var(--brand-strong); line-height: 1; margin-top: .2rem; }
.dri-bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: .6rem; overflow: hidden; }
.dri-bar > i { display: block; height: 100%; width: 82%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .phone { grid-row: 1; margin-bottom: .5rem; transform: rotate(0); }
}

/* ==========================================================================
   Feature / Steps
   ========================================================================== */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 1.1rem;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; background: var(--bg-alt); border-radius: var(--radius); padding: 2.2rem 1.7rem 1.7rem;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 640; font-size: 1.05rem;
  color: var(--on-brand); background: var(--brand);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  position: absolute; top: -18px; left: 1.7rem; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* Contrast band (bold theme shines here) */
.band {
  background: linear-gradient(130deg, var(--brand), var(--accent));
  color: var(--on-brand); border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
  box-shadow: var(--shadow);
}
:root[data-theme="bold"] .band { background: linear-gradient(130deg, #6f2ec7, #c33f9e 55%, #ff5fa2); }
.band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.band p { color: rgba(255,255,255,.9); max-width: 58ch; margin: 1rem auto 0; }
.band .btn-primary { background: #fff; color: var(--brand-strong); margin-top: 2rem; }
.band .btn-primary:hover { background: #fff; transform: translateY(-2px) scale(1.02); }

.quote { text-align: center; max-width: 34ch; margin-inline: auto; }
.quote blockquote { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; letter-spacing: var(--display-spacing); text-wrap: balance; }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; color: var(--brand-strong); font-weight: 600; letter-spacing: .04em; }

/* ==========================================================================
   Legal / Content pages
   ========================================================================== */
.page-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { margin-top: 1rem; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; color: var(--brand-strong); }

.content { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .92rem; }
.toc h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.toc a { text-decoration: none; color: var(--ink-soft); display: block; padding: .4rem .7rem; border-radius: 8px; border-left: 2px solid transparent; transition: .2s; }
.toc a:hover { color: var(--brand-strong); background: var(--brand-soft); }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.6rem 0 .9rem; scroll-margin-top: 92px; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: .85rem 0; color: var(--ink); }
.prose ul, .prose ol { margin: .85rem 0; color: var(--ink); }
.prose li { margin: .35rem 0; }
.prose a { color: var(--brand-strong); }
.prose a.btn-primary { color: var(--on-brand); }
.prose a.btn-ghost { color: var(--ink); }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin: 1.6rem 0; box-shadow: var(--shadow-sm);
}
.callout h3 { margin-top: 0; }
.summary-box {
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 1.5rem 0 2rem;
}
.summary-box dl { display: grid; gap: .7rem; margin: 0; }
.summary-box dt { font-weight: 600; }
.summary-box dd { margin: 0 0 .4rem; color: var(--ink-soft); }

.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem; margin: 1.2rem 0;
}
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }

@media (max-width: 900px) {
  .content { grid-template-columns: 1fr; }
  .toc { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
form.swp { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check input { width: auto; margin-top: .25rem; }
.form-note { font-size: .82rem; color: var(--ink-soft); }

.contact-aside { display: grid; gap: 1rem; align-content: start; }
.contact-aside .info-card h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.contact-aside a { color: var(--brand-strong); text-decoration: none; }

@media (max-width: 820px) { .form-wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.blog-thumb svg { width: 54px; height: 54px; color: #fff; opacity: .96; }
.blog-grid .blog-card:nth-child(3n+2) .blog-thumb { background: linear-gradient(135deg, var(--accent), var(--brand)); }
.blog-grid .blog-card:nth-child(3n) .blog-thumb { background: linear-gradient(135deg, var(--brand-strong), var(--accent)); }
.blog-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-meta { font-size: .8rem; color: var(--ink-soft); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.post-meta .cat { color: var(--brand-strong); font-weight: 600; }
.blog-card h3 { font-size: 1.28rem; line-height: 1.2; }
.blog-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.blog-card .more { margin-top: auto; color: var(--brand-strong); font-weight: 600; font-size: .92rem; }

/* Article */
.article { max-width: 74ch; margin-inline: auto; }
.article .post-meta { margin-bottom: 1.2rem; font-size: .9rem; }
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 0; }
.share-back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: var(--footer-ink); }
.site-footer p { color: var(--footer-soft); font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-soft); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--footer-ink); text-decoration: none; font-size: .95rem; opacity: .85; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--brand); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--footer-soft); font-size: .85rem; }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================================
   Theme switcher (nur für die Design-Entscheidung – später entfernbar)
   ========================================================================== */
.theme-switch {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; gap: .25rem; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); font-size: .85rem;
}
.theme-switch button { border: 0; background: transparent; color: var(--ink-soft); padding: .5rem .95rem; border-radius: 999px; font-weight: 600; }
.theme-switch button.active { background: var(--brand); color: var(--on-brand); }
.theme-switch .ts-label { align-self: center; padding-left: .6rem; color: var(--ink-soft); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
