/* florianmuff.tech — Design 2026 "Werkstatt"
 * Gemeinsames Stylesheet für alle Seiten.
 * Farben aus 00 Kontext/Branding (Dunkelblau #1a2e5a, Hellblau #1e90ff, Rot #e63946),
 * Grund warmes Hellgrau wie der Portrait-Hintergrund.
 */
:root {
  --ground: #eceae5;
  --paper: #f8f7f4;
  --white: #ffffff;
  --ink: #1a2e5a;
  --ink-2: #2f3b57;
  --ink-3: #4a5670;
  --line: #d9d6cf;
  --line-strong: #cfcbc2;
  --blue: #1e90ff;
  --link: #0a5fb4;
  --red: #e63946;
  --red-ink: #d62839;
  --sev-high: #c1121f;
  --dark: #1a2e5a;
  --dark-deep: #0f1d3d;
  --on-dark: #ffffff;
  --on-dark-2: #e4e8f2;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.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: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ── Layout ─────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 760px) { .section { padding-top: 64px; padding-bottom: 64px; } }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band { border-top: 0; }
.dark { background: var(--dark); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark a { color: var(--on-dark); }
.dark p { color: var(--on-dark-2); }
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; }
.split > * { flex: 1 1 360px; min-width: 0; }
.split > .grow { flex: 2 1 520px; }
.split--center { align-items: center; }
.split--end { align-items: flex-end; }

/* ── Typografie ─────────────────────────────────────── */
.kicker { margin: 0 0 20px; font-size: 17px; color: var(--ink-3); }
.kicker a { color: var(--ink-3); }
.h-display {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(42px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.02em;
}
.h-sub {
  margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; color: #2c3f6b;
}
.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 24px; max-width: 18em;
}
.h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 20px; max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: 16px; }
.num {
  font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--blue);
  font-variant-numeric: lining-nums;
}
.note {
  font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1.05;
  color: var(--red-ink); display: inline-block; transform: rotate(-3deg);
}
.note--sm { font-size: 26px; }

/* ── Buttons & Links ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius);
  background: var(--ink); color: var(--white); border: 2px solid var(--ink);
  font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--dark-deep); border-color: var(--dark-deep); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--ground); border-color: var(--ground); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.link-strong { font-weight: 700; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 32px; }

/* ── Header ─────────────────────────────────────────── */
.site-header { position: relative; z-index: 50; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px 20px; font-size: 16px; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.nav .btn { color: var(--white); padding: 8px 18px; margin-left: 4px; }
.nav .btn:hover { text-decoration: none; }
.nav-toggle {
  display: none; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink);
  border-radius: var(--radius); background: transparent; color: var(--ink);
  font: 700 16px/1 var(--sans); cursor: pointer;
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: 0 16px 32px rgba(26, 46, 90, 0.10);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 2px solid var(--ink); }
}

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 40px 0 0; }
.hero .split { align-items: flex-end; }
.hero-text { padding-bottom: 72px; }
.hero--page { padding-top: 56px; padding-bottom: 88px; }
.hero-portrait { position: relative; max-width: 480px; }
.hero-portrait img {
  width: 100%;
  /* weicher Übergang vom kühlen Fotohintergrund in den warmen Seitengrund */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.hero-portrait .note { position: absolute; left: -12px; top: 56px; }
.hero-portrait .note svg { display: block; margin: 4px 0 0 56px; }
@media (max-width: 760px) {
  .hero-text { padding-bottom: 8px; }
  .hero-portrait { margin: 0 auto; max-width: 380px; }
  .hero-portrait .note { left: 0; top: 24px; font-size: 26px; }
}

/* ── Spalten mit Trennlinien ────────────────────────── */
.cols { display: flex; flex-wrap: wrap; gap: 48px 0; }
.cols > * { flex: 1 1 300px; min-width: 0; padding: 0 32px; border-left: 1px solid var(--line); }
.cols > *:first-child { padding-left: 0; border-left: 0; }
.cols--2 > * { flex-basis: 420px; }
@media (max-width: 760px) {
  .cols > * { padding: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .cols > *:first-child { border-top: 0; padding-top: 0; }
}
.cols h3 { margin-top: 16px; }
.cols ul { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 6px; }

/* ── Listen ─────────────────────────────────────────── */
.list-rule { list-style: none; margin: 0; padding: 0; font-size: 20px; }
.list-rule > li { padding: 18px 0; border-top: 1px solid var(--line); }
.list-rule > li:last-child { border-bottom: 1px solid var(--line); }
.list-plain { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 16px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; }

/* ── Zeilen (Blog, Termine, Medien) ─────────────────── */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 22px 0;
  border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.rows > .row:last-child { border-bottom: 1px solid var(--line); }
.row-meta { flex: 0 0 170px; color: var(--ink-3); font-size: 16px; padding-top: 4px; }
.row-main { flex: 1 1 420px; min-width: 0; }
.row-title { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
a.row:hover .row-title { text-decoration: underline; text-underline-offset: 5px; }
.row-desc { margin-top: 6px; color: var(--ink-2); font-size: 17px; }

/* Blog-Vorschau der Startseite: Markup kommt aus der Blog-Pipeline
   (.blog-grid > a.blog-card > .blog-emoji/.blog-date/.blog-title/.blog-more). Nicht umbenennen. */
.blog-grid { display: flex; flex-direction: column; }
.blog-card {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; padding: 22px 0;
  border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.blog-card:last-child { border-bottom: 1px solid var(--line); }
.blog-emoji, .blog-more { display: none; }
.blog-date { flex: 0 0 230px; color: var(--ink-3); font-size: 16px; }
.blog-title { flex: 1 1 420px; min-width: 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.blog-card:hover .blog-title { text-decoration: underline; text-underline-offset: 5px; }

/* Blog-Übersicht: Markup aus der Blog-Pipeline
   (.posts > a.post-card > .post-emoji + div > .post-date/.post-title/.post-desc/.post-more). Nicht umbenennen. */
.posts { display: flex; flex-direction: column; }
.post-card {
  display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-emoji, .post-more { display: none; }
.post-date { color: var(--ink-3); font-size: 16px; }
.post-title { margin-top: 4px; font-family: var(--serif); font-size: 28px; line-height: 1.22; }
.post-desc { margin-top: 8px; color: var(--ink-2); font-size: 17px; max-width: 46em; }
.post-card:hover .post-title { text-decoration: underline; text-underline-offset: 5px; }

/* ── Schritte ───────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px 24px; }
.steps > li { flex: 1 1 180px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 16px; }
.steps .num { font-size: 40px; }
.steps h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 700; font-family: var(--sans); }
.steps p { font-size: 17px; color: var(--ink-2); }

/* ── Papier-Elemente (Mail, Finding) ────────────────── */
.paper {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px rgba(26, 46, 90, 0.08); font-size: 16px;
}
.paper-head { padding: 16px 22px; border-bottom: 1px solid #e6e3dc; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: baseline; }
.paper-body { padding: 22px; display: grid; gap: 14px; }
.tilt { transform: rotate(-1deg); }
.mail .label { color: #5a6478; }
.mark-circle { border: 2px solid var(--red-ink); border-radius: 40% 60% 55% 45%; padding: 0 4px; }
.mark-wave { text-decoration: underline wavy var(--red-ink); text-underline-offset: 5px; }
.mark-box { outline: 2px solid var(--red-ink); outline-offset: 4px; }
.mark-num { font-family: var(--hand); font-size: 24px; font-weight: 700; color: var(--red-ink); }
.fake-btn { display: inline-block; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 4px; }
.notes-list { margin: 0; padding-left: 28px; font-family: var(--hand); font-size: 26px; line-height: 1.2; color: var(--red-ink); display: grid; gap: 14px; }
.finding-id { font-family: var(--mono); font-size: 14px; color: var(--ink-3); letter-spacing: .02em; }
.sev { font-weight: 700; color: var(--white); background: var(--sev-high); padding: 2px 10px; border-radius: 4px; font-size: 14px; }
.finding h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; }

/* ── Preise ─────────────────────────────────────────── */
.prices { width: 100%; border-collapse: collapse; font-size: 18px; }
.prices th, .prices td { text-align: left; padding: 16px 16px 16px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prices tr:last-child td { border-bottom: 1px solid var(--line); }
.prices th { font-weight: 700; }
.prices td.price { white-space: nowrap; font-family: var(--serif); font-size: 22px; text-align: right; padding-right: 0; }
.prices .desc { display: block; font-weight: 400; color: var(--ink-2); font-size: 16px; margin-top: 2px; }
.table-scroll { overflow-x: auto; }
.fineprint { margin-top: 16px; font-size: 15px; color: var(--ink-3); }

/* ── FAQ ────────────────────────────────────────────── */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--link); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }

/* ── Bilder & Galerie ───────────────────────────────── */
.figure { margin: 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 29, 61, 0.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--on-dark-2); text-align: center; margin-top: 12px; font-size: 16px; }
.lightbox button { position: absolute; min-width: 48px; min-height: 48px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,0.12); color: var(--white); font-size: 24px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,0.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Formulare ──────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--white); color: var(--ink); font: 400 17px/1.4 var(--sans);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.dark .field label { color: var(--on-dark); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; }
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius); font-size: 16px; }
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #e7f4ec; color: #14532d; border: 1px solid #b7dcc4; }
.form-msg--err { background: #fbe9ea; color: #7f1d1d; border: 1px solid #f0c2c5; }
.newsletter { display: flex; flex-wrap: wrap; gap: 12px; }
.newsletter input[type="email"] { flex: 1 1 260px; }

/* ── Fliesstext (Artikel, Rechtliches, Vorlagen-Intro) ─ */
.prose { max-width: 46em; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; margin: 48px 0 16px; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--link); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.prose thead th { border-top: 0; font-weight: 700; color: var(--ink); }
.prose tbody tr:last-child td { border-bottom: 1px solid var(--line); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { padding: 64px 0 40px; font-size: 16px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); }
.footer-brand img { height: 28px; width: auto; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}
