/* ==========================================================================
   3J Software – Design-System "Frisch"
   Baloo 2 (Überschriften) + DM Sans (Text), Koralle/Grün/Gelb auf Mint/Aubergine
   ========================================================================== */

/* ── Fonts (selbst gehostet, static/fonts/) ── */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Baloo2-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/DMSans-Bold.woff2') format('woff2');
}

/* ── Tokens: Licht (Standard) ── */
:root {
  --bg: #f3fbf6;
  --surface: #ffffff;
  --ink: #221733;
  /* Eigene Tokens fuers cta-band statt --ink/--bg: die schwenken mit dem Theme
     und liessen das Band im Dark Mode zu einem hellen Fleck werden. Das Band
     traegt in beiden Themes helle Schrift, der Hintergrund wird im Dark-Mode-
     Block gezielt aufgehellt, damit es sich weiterhin von der Seite absetzt. */
  --band-bg: #221733;
  --band-ink: #f5f1ff;
  --ink-soft: #4a3d62;
  --muted: #766a8c;
  --muted-light: #9a8fb5;
  --border: #e3dcf0;
  --border-light: #eee8f7;

  /* coral/green am 2026-08-03 abgedunkelt (WCAG-AA-Kontrastfund, pa11y):
     #ff5a78/#34b27b lagen mit weissem Button-/Link-Text bei 3.01:1/2.69:1
     statt der geforderten 4.5:1. Neue Werte bestehen 4.5:1 sowohl als Text
     auf hellem Hintergrund als auch als Button-Hintergrund mit weisser
     Schrift, siehe project_landing_wcag_check_20260803. */
  --coral: #c81d47;
  --coral-ink: #ffffff;
  --green: #187a4f;
  --yellow: #ffc63a;
  --yellow-ink: #6b4a00;

  --accent: var(--coral);
  --accent-ink: var(--coral-ink);

  --success-bg: #e6f7ee; --success-border: #b9e8d1; --success-text: #16794f;
  --error-bg: #fdecee; --error-border: #f6c3cb; --error-text: #b3253e;

  --shadow: 0 10px 24px -12px rgba(34, 23, 51, 0.18);
  --shadow-sm: 0 2px 10px rgba(34, 23, 51, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
}

/* ── Tokens: Dunkel (OS-Einstellung) ── */
@media (prefers-color-scheme: dark) {
  :root {
    /* Band hier bewusst HELLER als die Seite, damit es sich absetzt - im
       Light Mode setzt es sich umgekehrt durch seine Dunkelheit ab. */
    --band-bg: #33244f;
    --bg: #1b1230;
    --surface: #241a3d;
    --ink: #f5f1ff;
    --ink-soft: #d9cff0;
    --muted: #ad9fce;
    --muted-light: #8a7dab;
    --border: #382a56;
    --border-light: #2e2148;

    --coral: #ff7891;
    --coral-ink: #241a3d;
    --green: #4cd199;
    --yellow: #ffd166;
    --yellow-ink: #3a2900;

    --success-bg: #16321f; --success-border: #245c3a; --success-text: #7ee6b0;
    --error-bg: #3a1620; --error-border: #6b2434; --error-text: #ff9fae;

    --shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
}
/* ── Tokens: manueller Toggle (fürs spätere Nachrüsten vorbereitet) ── */
:root[data-theme="dark"] {
  --band-bg: #33244f;
  --bg: #1b1230; --surface: #241a3d; --ink: #f5f1ff; --ink-soft: #d9cff0;
  --muted: #ad9fce; --muted-light: #8a7dab; --border: #382a56; --border-light: #2e2148;
  --coral: #ff7891; --coral-ink: #241a3d; --green: #4cd199; --yellow: #ffd166; --yellow-ink: #3a2900;
  --success-bg: #16321f; --success-border: #245c3a; --success-text: #7ee6b0;
  --error-bg: #3a1620; --error-border: #6b2434; --error-text: #ff9fae;
  --shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.5); --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] {
  --bg: #f3fbf6; --surface: #ffffff; --ink: #221733; --ink-soft: #4a3d62;
  --muted: #766a8c; --muted-light: #9a8fb5; --border: #e3dcf0; --border-light: #eee8f7;
  --coral: #c81d47; --coral-ink: #ffffff; --green: #187a4f; --yellow: #ffc63a; --yellow-ink: #6b4a00;
  --success-bg: #e6f7ee; --success-border: #b9e8d1; --success-text: #16794f;
  --error-bg: #fdecee; --error-border: #f6c3cb; --error-text: #b3253e;
  --shadow: 0 10px 24px -12px rgba(34, 23, 51, 0.18); --shadow-sm: 0 2px 10px rgba(34, 23, 51, 0.07);
}

/* ── Akzentfarbe je Produktseite ── */
body.theme-coral { --accent: var(--coral); --accent-ink: var(--coral-ink); }
body.theme-green { --accent: var(--green); --accent-ink: #ffffff; }
body.theme-yellow { --accent: var(--yellow); --accent-ink: var(--yellow-ink); }

/* ── Reset & Basis ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* Skip-Link fuer Tastatur-Nutzer (WCAG 2.4.1) - unsichtbar bis fokussiert,
   damit man nicht bei jeder Seite erst die komplette Navigation durchtabben
   muss, um zum Inhalt zu kommen. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }
::selection { background: var(--yellow); color: var(--yellow-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

h1, h2, h3 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
}

/* ── Nav ── */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.navbar-inner { max-width: 1120px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 700; padding: 9px 15px; border-radius: 999px; }
.nav-links a:hover { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); }
.nav-links a.is-active { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent); }
.nav-cta { background: var(--ink) !important; color: var(--bg) !important; padding: 10px 20px !important; border-radius: 999px; }
.nav-cta:hover, .nav-cta.is-active { background: var(--coral) !important; color: var(--coral-ink) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  font-family: 'DM Sans', sans-serif; box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); box-shadow: none; }
.btn-secondary:hover { background: var(--ink); color: var(--bg) !important; transform: none; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: transform .18s ease, box-shadow .18s ease, background-color .15s ease, color .15s ease; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Hero (mit Blob-Hintergrund) ── */
.hero { position: relative; padding: 64px 0 56px; text-align: center; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; filter: blur(1px);
}
.hero::before { width: 320px; height: 320px; background: var(--yellow); opacity: 0.28; top: -150px; right: -60px; }
.hero::after { width: 240px; height: 240px; background: var(--green); opacity: 0.22; bottom: -110px; left: -70px; }
.hero > .wrap { z-index: 1; }
.hero h1 { font-size: 1.9rem; margin-bottom: 16px; }
.hero p { font-size: 1.02rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
section { padding: 64px 0; position: relative; z-index: 1; }
section h2 { font-size: 1.6rem; text-align: center; margin-bottom: 10px; }
.section-intro { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; font-size: 0.96rem; }

/* ── Software-Karten ── */
.software-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) {
  .product-card { transition: transform .2s ease; }
  .product-card:hover { transform: translateY(-6px); }
}
.product-card .card-logo { height: 48px; width: auto; margin-bottom: 18px; align-self: flex-start; }
.product-card .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.product-card .card-top .card-logo { margin-bottom: 0; }
.pricing-badge {
  display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right;
  background: var(--accent); color: var(--accent-ink); border-radius: 12px;
  padding: 6px 12px; flex-shrink: 0; line-height: 1.25;
}
.pricing-badge .pricing-badge-label { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
.pricing-badge .pricing-badge-price { display: block; font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
.pricing-badge .pricing-badge-regular { display: block; font-size: 0.68rem; font-weight: 600; text-decoration: line-through; opacity: 0.75; white-space: nowrap; }
.pricing-note { color: var(--muted); font-size: 0.8rem; text-align: center; margin-top: 20px; line-height: 1.5; }
/* Im Hero (Produktseiten) folgt direkt der CTA-Button - ohne eigenen
   Abstand nach unten klebt das Kleingedruckte sonst am Button. */
.hero .pricing-badge { margin-bottom: 16px; }
.hero .pricing-note { max-width: 460px; margin: 0 auto 28px; }
.product-card .eyebrow { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.product-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.product-card p.desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.product-card ul { list-style: none; margin-bottom: 20px; }
.product-card ul li { font-size: 0.88rem; color: var(--ink-soft); padding: 5px 0 5px 24px; position: relative; }
.product-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; align-self: flex-start; justify-content: flex-start; }
.card-more { text-align: left; font-size: 0.88rem; font-weight: 700; margin-bottom: 16px; text-decoration: none; color: var(--coral); }
.software-grid .product-card:nth-child(1) { --accent: var(--coral); --accent-ink: var(--coral-ink); }
.software-grid .product-card:nth-child(1) .card-more,
.software-grid .product-card:nth-child(1) ul li::before { color: var(--coral); }
.software-grid .product-card:nth-child(2) { --accent: var(--green); --accent-ink: #ffffff; }
.software-grid .product-card:nth-child(2) .card-more,
.software-grid .product-card:nth-child(2) ul li::before { color: var(--green); }
.software-grid .product-card:nth-child(3) { --accent: var(--yellow); --accent-ink: var(--yellow-ink); }
.software-grid .product-card:nth-child(3) .card-more { color: var(--yellow-ink); }
.software-grid .product-card:nth-child(3) ul li::before { color: var(--yellow); }

/* ── Leistungen-Grid ── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.service-card .icon {
  margin-bottom: 12px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service-card p { font-size: 0.88rem; color: var(--muted); }

/* ── Über uns / Textblöcke ── */
.about-story {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 32px; font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 28px;
}
.about-story p + p { margin-top: 14px; }
.about-story strong { color: var(--ink); }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.value-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 22px; text-align: center;
}
.value-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: color-mix(in srgb, var(--coral) 14%, var(--surface));
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin: 0 auto 14px;
  color: var(--coral);
}
.value-icon svg { width: 24px; height: 24px; }
.value-card:nth-child(2) .value-icon { background: color-mix(in srgb, var(--green) 16%, var(--surface)); color: var(--green); }
.value-card:nth-child(3) .value-icon { background: color-mix(in srgb, var(--yellow) 26%, var(--surface)); color: var(--yellow-ink); }
.value-card:nth-child(4) .value-icon { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); color: var(--coral); }
.value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { font-size: 0.87rem; color: var(--muted); }

/* ── Bücher ── */
.books-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 780px; margin: 0 auto; }
.book-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; gap: 20px; align-items: flex-start;
}
.book-card .book-cover { width: 110px; height: auto; flex-shrink: 0; border-radius: 8px; box-shadow: var(--shadow-sm); }
.book-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.book-card .desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.book-card .book-author { font-size: 0.82rem; color: var(--muted); font-weight: 700; margin-bottom: 16px; }

/* Vertrauens-Badges (z.B. auf der Startseite ergänzt) */
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700;
  color: var(--ink-soft); background: var(--surface); border: 1.5px solid var(--border);
  padding: 8px 15px; border-radius: 999px;
}

/* ── Kontakt ── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 560px; margin: 0 auto; }
.contact-form { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.form-group input, .form-group textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 0.94rem;
  font-family: inherit; color: var(--ink); background: var(--bg); width: 100%; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.captcha-question { margin: 0; font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.captcha-group input[type="text"] { max-width: 170px; }
.captcha-hint { margin: 0; font-size: 0.78rem; color: var(--muted); }

.flash { padding: 13px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 0.9rem; font-weight: 600; }
.flash.success { background: var(--success-bg); color: var(--success-text); border: 1.5px solid var(--success-border); }
.flash.error { background: var(--error-bg); color: var(--error-text); border: 1.5px solid var(--error-border); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; font-size: 0.84rem; color: var(--muted); }
footer .footer-logo { height: 26px; width: auto; margin: 0 auto 14px; opacity: 0.8; }
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; font-weight: 600; }
footer a:hover { color: var(--coral); }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.footer-social a { display: inline-flex; margin: 0; color: var(--muted); }
.footer-social a:hover { color: var(--coral); }

/* ── Produktseiten ── */
.breadcrumb { font-size: 0.83rem; color: var(--muted-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.product-hero-logo { height: 60px; width: auto; margin: 0 auto 20px; }

.steps-list { list-style: none; counter-reset: step; display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.steps-list li {
  counter-increment: step; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px 16px 62px; position: relative; font-size: 0.92rem;
  color: var(--ink-soft);
}
.steps-list li::before {
  content: counter(step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
}
.steps-list strong { display: block; margin-bottom: 2px; color: var(--ink); }

.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.96rem; }
.faq-item summary::marker { color: var(--accent); }
.faq-item p { margin-top: 12px; font-size: 0.89rem; color: var(--muted); }

.cross-links { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cross-link-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; text-decoration: none; display: flex; align-items: center; gap: 16px;
}
@media (prefers-reduced-motion: no-preference) { .cross-link-card { transition: border-color .15s ease, transform .15s ease; } }
.cross-link-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cross-link-card img { height: 36px; width: auto; flex: none; }
.cross-link-card span.title { display: block; font-weight: 700; color: var(--ink); font-size: 0.96rem; }
.cross-link-card span.sub { display: block; color: var(--muted); font-size: 0.83rem; }

/* ── Abschluss-CTA-Band (Produktseiten) ──
   Hintergrund bewusst var(--ink) statt var(--accent): ein .btn traegt selbst
   background: var(--accent) und waere auf einer Accent-Flaeche unsichtbar.
   Die Themefarbe kommt stattdessen ueber die Oberkante herein. */
.cta-band { padding: 46px 0; border-top: 3px solid var(--accent); background: var(--band-bg); color: var(--band-ink); }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta-band-text { max-width: 560px; }
.cta-band h2 { color: var(--band-ink); font-size: 1.35rem; margin-bottom: 8px; }
.cta-band p { color: var(--band-ink); opacity: 0.82; font-size: 0.92rem; }
.cta-band-price { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; color: var(--band-ink); margin-top: 12px; }
.cta-band-price .price-old { font-family: 'DM Sans', sans-serif; text-decoration: line-through; opacity: 0.65; font-size: 0.82rem; margin-left: 8px; }
.cta-band-note { display: block; font-size: 0.78rem; opacity: 0.7; margin-top: 6px; }
.cta-band a:not(.btn) { color: var(--band-ink); text-decoration: underline; }

/* ── Bundle-Angebot (Startseite) ── */
.bundle-panel {
  max-width: 640px; margin: 34px auto 0; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px 28px; text-align: center;
}
.bundle-logos { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.bundle-logos img { height: 30px; width: auto; }
.bundle-panel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.bundle-price { font-family: 'Baloo 2', sans-serif; font-size: 1.7rem; color: var(--ink); line-height: 1.2; }
.bundle-price .price-old { font-family: 'DM Sans', sans-serif; text-decoration: line-through; color: var(--muted); font-size: 0.95rem; margin-left: 8px; }
.bundle-sub { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.bundle-list { list-style: none; margin: 20px 0 22px; text-align: left; display: inline-block; }
.bundle-list li { font-size: 0.89rem; color: var(--ink-soft); padding: 5px 0 5px 24px; position: relative; }
.bundle-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ── Legal-Seiten (Impressum/Datenschutz) ── */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; }
.legal-back { display: inline-block; margin-bottom: 20px; font-size: 0.86rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.legal-panel { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.legal-panel h1 { font-size: 1.6rem; margin-bottom: 22px; }
.legal-panel h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal-panel p { margin-bottom: 8px; font-size: 0.93rem; color: var(--ink-soft); }
.legal-panel ul { margin: 0 0 8px 20px; font-size: 0.93rem; color: var(--ink-soft); }
.legal-panel li { margin-bottom: 4px; }
.legal-panel a { font-weight: 600; }
.legal-hint { background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 0.86rem; margin-top: 26px; color: var(--ink-soft); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.blog-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; display: flex; flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) { .blog-card { transition: transform .2s ease, box-shadow .2s ease; } }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card .blog-cover {
  /* height:auto ist noetig, weil die width/height-Attribute am <img> sonst als
     Praesentations-Hinweis die Hoehe fixieren und aspect-ratio aushebeln - die
     Karte wuerde das Bild dann seitlich beschneiden. */
  aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
}
.blog-card .blog-cover.is-placeholder { display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-size: 2rem; color: #fff; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card .blog-date { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.blog-card .blog-excerpt { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; flex-grow: 1; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tag-pill {
  display: inline-block; font-size: 0.76rem; font-weight: 700; text-decoration: none;
  padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 14%, var(--surface));
  color: var(--coral); border: 1px solid transparent;
}
.tag-pill:hover { border-color: var(--coral); }
.tag-pill.is-active { background: var(--coral); color: var(--coral-ink); }

.blog-page .hero { padding-bottom: 20px; }
.blog-page section { padding-top: 20px; }

.blog-search { display: flex; gap: 8px; max-width: 360px; margin: 0 auto 24px; }
.blog-search input[type="search"] {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 0.9rem;
  font-family: inherit; color: var(--ink); background: var(--bg); outline: none;
}
.blog-search input[type="search"]:focus { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent); }
.blog-search button {
  padding: 10px 18px; border-radius: 999px; border: none; background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: 0.86rem; cursor: pointer; font-family: inherit;
}
.blog-search button:hover { background: var(--coral); color: var(--coral-ink); }

.blog-tag-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }

.blog-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: stretch; }
.blog-main { min-width: 0; }

.blog-title-index {
  padding: 20px 24px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  order: -1;
  display: flex; flex-direction: column;
}
.blog-title-index h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 12px; }
.blog-title-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.blog-title-index li { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.blog-title-index a { color: var(--ink); text-decoration: none; font-weight: 600; }
.blog-title-index a:hover { color: var(--coral); }
.blog-title-index-date { color: var(--muted); font-size: 0.78rem; }

@media (min-width: 1000px) {
  .blog-layout { grid-template-columns: 1fr 260px; }
  .blog-title-index { order: 0; height: 100%; }
  .blog-main .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 0.96rem; }
.blog-filter-notice { text-align: center; margin-bottom: 32px; font-size: 0.92rem; color: var(--muted); }
.blog-filter-notice a { font-weight: 700; }

.blog-post-header { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.blog-post-header .blog-date { display: block; margin-bottom: 10px; }
.blog-post-header h1 { font-size: 2rem; margin-bottom: 14px; }
.blog-post-cover { width: 100%; max-width: 880px; margin: 0 auto 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-post-cover.has-caption { margin-bottom: 8px; }
.blog-cover-caption { text-align: center; font-size: 0.78rem; color: var(--muted); margin: 0 0 36px; }
.blog-post-byline { font-size: 0.86rem; color: var(--muted); margin-top: 16px; }
.blog-back { display: inline-block; margin-top: 40px; font-weight: 700; text-decoration: none; color: var(--coral); }

/* Gerenderter Markdown-Inhalt */
.prose { max-width: 720px; margin: 0 auto; font-size: 1rem; color: var(--ink-soft); }
.prose h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 700; text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 20px 0;
  color: var(--muted); font-style: italic;
}
.prose code { background: var(--border-light); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
.prose pre { background: var(--ink); color: var(--bg); padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; margin: 20px 0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius-sm); margin: 20px 0; }
.prose table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.94rem;
}
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; white-space: normal; }
.prose th { background: var(--border-light); color: var(--ink); font-weight: 700; white-space: nowrap; }
.prose tbody tr:nth-child(even) td { background: var(--border-light); }

/* ── Responsive ── */
@media (min-width: 700px) {
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1.12rem; }
  .software-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .cross-links { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .cta-band-inner .btn { flex-shrink: 0; }
}

@media (min-width: 1000px) {
  .software-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Affiliate-Kennzeichnung (Anzeige-Label) */
.ad-label {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); background: var(--border-light);
  padding: 2px 9px; border-radius: 6px; margin-left: 6px; vertical-align: middle;
}

/* ── Footer-Newsletter ── */
.footer-newsletter { text-align: center; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-newsletter h2 { font-size: 1.15rem; margin-bottom: 6px; color: var(--ink); }
.footer-newsletter > p { max-width: 480px; margin: 0 auto 18px; }
.footer-flash { max-width: 480px; margin: 0 auto 16px; text-align: left; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type="email"] {
  flex: 1 1 240px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 0.92rem; font-family: inherit; color: var(--ink); background: var(--bg); outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent); }
.newsletter-form .btn { padding: 12px 22px; }
.newsletter-hint { max-width: 480px; margin: 12px auto 0; font-size: 0.76rem; color: var(--muted-light); }
