/* heimwerkbuch.de – Gestaltung. Schriften lokal (assets/fonts), keine externen Quellen. */

@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/noto-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("/assets/fonts/noto-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("/assets/fonts/noto-serif-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("/assets/fonts/noto-serif-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --papier: #F6F0E4;
  --papier-tief: #ECE3D0;
  --tinte: #17233F;
  --tinte-tief: #0E1730;
  --rot: #B1262C;
  --rot-dunkel: #8E1D22;
  --text: #1D2433;
  --text-leise: #4B5366;
  --hell: #F6F0E4;
  --hell-leise: #C7CEDD;
  --linie: rgba(23, 35, 63, 0.18);
  --fokus: #E0A526;
  --radius: 6px;
  --max: 1120px;
  --sans: "Noto Sans", system-ui, sans-serif;
  --serif: "Noto Serif", Georgia, serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --korn: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinte); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rot-dunkel); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.45em; }
h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }

.innen { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.nur-bildschirm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprunglink {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--tinte); color: var(--hell); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.sprunglink:focus { top: 12px; }

/* Kopf */
.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf .innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.wortmarke { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tinte); text-decoration: none; }
.wortmarke span { color: var(--rot); }
.hauptnav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hauptnav a { color: var(--tinte); text-decoration: none; font-size: 0.95rem; font-weight: 700; padding: 6px 2px; border-bottom: 2px solid transparent; }
.hauptnav a:hover { border-bottom-color: var(--rot); color: var(--tinte); }
.hauptnav a[aria-current="page"] { border-bottom-color: var(--rot); }

/* Buttons */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 6px; }
.knopf {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px;
  padding: 0.8em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.knopf.primaer { background: var(--rot); color: #fff; }
.knopf.primaer:hover { background: var(--rot-dunkel); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.55); }
.knopf.auf-tinte { border-color: var(--hell); color: var(--hell); background: transparent; }
.knopf.auf-tinte:hover { background: var(--hell); color: var(--tinte); transform: translateY(-2px); }
.knopf.umriss { border-color: var(--tinte); color: var(--tinte); background: transparent; }
.knopf.umriss:hover { background: var(--tinte); color: var(--hell); }
.hinweis-klein { font-size: 0.86rem; margin: 10px 0 0; }

/* Hero */
.hero { position: relative; background: var(--tinte); color: var(--hell); padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--korn); pointer-events: none; }
.hero .innen { position: relative; }
.hero-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.kicker { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1rem; margin: 0 0 10px; color: var(--hell-leise); }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.2rem); line-height: 0.9; margin: 0 0 14px; color: var(--hell); }
.untertitel { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; margin: 0 0 18px; color: var(--hell); }
.hero .autorzeile { font-weight: 700; margin: 0 0 22px; color: var(--hell-leise); }
.regel { display: block; width: 72px; height: 4px; background: var(--rot); margin: 0 0 22px; border: 0; }
.nutzen { font-size: 1.12rem; max-width: 34rem; margin: 0 0 28px; color: var(--hell); }
.hero .preis-zeile { font-size: 0.86rem; color: var(--hell-leise); margin: 12px 0 0; }
.hörbuch { display: inline-block; margin-top: 18px; padding: 6px 12px; border: 1px dashed var(--hell-leise); border-radius: var(--radius); color: var(--hell-leise); font-size: 0.95rem; }
.hero figure { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.cover { position: relative; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.35); transform: rotate(-1.5deg); transition: transform 0.4s ease; }
.cover img { width: 100%; height: auto; border-radius: 4px; }
.cover:hover { transform: rotate(0deg) translateY(-4px); }

/* KI-Etikett auf jedem KI-Bild */
.bildrahmen { position: relative; display: block; }
.ki-etikett {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-family: var(--sans); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; padding: 4px 6px; border-radius: 3px;
}

/* Abschnitte */
.abschnitt { padding: 80px 0; }
.abschnitt.tief { background: var(--papier-tief); }
.abschnitt.navy { background: var(--tinte); color: var(--hell); }
.abschnitt.navy h2, .abschnitt.navy h3 { color: var(--hell); }
.abschnitt.navy a { color: var(--hell); }
.kopf-abschnitt { max-width: 46rem; margin: 0 0 40px; }
.kicker-rot { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1rem; color: var(--rot-dunkel); margin: 0 0 8px; }
.abschnitt.navy .kicker-rot { color: var(--hell-leise); }
.lead { font-size: 1.14rem; color: var(--text); max-width: 46rem; }

/* Was dich erwartet */
.punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.punkte li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 2px solid var(--tinte); }
.punkte .zahl { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--rot); }
.punkte h3 { margin-bottom: 6px; }
.punkte p { margin: 0; color: var(--text-leise); }

/* Drei Fragen */
.drei-fragen { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 8px 0 0; }
.frage { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.frage:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(23, 35, 63, 0.45); }
.frage .nummer { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rot-dunkel); }
.frage h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.frage p { margin: 0; color: var(--text-leise); }

/* Steckbrief */
.steckbrief { margin-top: 36px; border: 2px solid var(--tinte); border-radius: var(--radius); padding: 26px 24px; background: var(--papier); }
.steckbrief h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.25rem; margin-bottom: 14px; }
.steckbrief dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.steckbrief dt { font-weight: 700; color: var(--tinte); padding-top: 12px; }
.steckbrief dd { margin: 2px 0 0; color: var(--text-leise); padding-bottom: 12px; border-bottom: 1px solid var(--linie); }

/* Inhaltsverzeichnis */
.inhalt { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; column-gap: 48px; }
.inhalt li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.inhalt .nr { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--rot-dunkel); grid-row: span 2; }
.inhalt strong { font-family: var(--serif); font-size: 1.08rem; color: var(--tinte); }
.inhalt span.satz { color: var(--text-leise); font-size: 0.97rem; }

/* Leseprobe */
.zitat { margin: 0; max-width: 46rem; padding: 6px 0 6px 26px; border-left: 6px solid var(--rot); }
.zitat p { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.3rem); line-height: 1.7; color: var(--text); margin-bottom: 1.1em; }
.zitat footer { font-family: var(--sans); font-size: 0.92rem; color: var(--text-leise); }

/* Galerie */
.galerie { display: grid; grid-template-columns: 1fr; gap: 36px 28px; margin: 0; padding: 0; list-style: none; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }
.galerie figcaption { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.5; margin-top: 12px; color: var(--text); }

/* Autor */
.autor-raster { display: grid; grid-template-columns: 1fr; gap: 24px; }
.autor-raster p { max-width: 46rem; }

/* Montageteam */
.hinweis-box { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; padding: 26px 24px; border-radius: var(--radius); background: var(--papier); border: 1px solid var(--linie); }
.hinweis-box p { margin: 0; }

/* FAQ */
.faq { border-top: 2px solid var(--tinte); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-family: var(--sans); font-weight: 700; font-size: 1.08rem; color: var(--tinte); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--rot); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--text-leise); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Sicherheitshinweis */
.achtung { border-left: 6px solid var(--rot); background: var(--papier); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 52rem; }
.achtung p { margin: 0 0 0.8em; }
.achtung p:last-child { margin-bottom: 0; }
.achtung strong { color: var(--tinte); }

/* Mehr von Maik */
.mehr-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.mehr-liste a { display: block; padding: 18px 20px; border: 2px solid var(--tinte); border-radius: var(--radius); text-decoration: none; color: var(--tinte); font-weight: 700; transition: background-color 0.2s ease, color 0.2s ease; }
.mehr-liste a span { display: block; font-weight: 400; color: var(--text-leise); font-size: 0.94rem; }
.mehr-liste a:hover { background: var(--tinte); color: var(--hell); }
.mehr-liste a:hover span { color: var(--hell-leise); }

/* Fuß */
.fuß { background: var(--tinte-tief); color: var(--hell-leise); padding: 56px 0 48px; font-size: 0.95rem; }
.fuß a { color: var(--hell); text-underline-offset: 0.2em; }
.fuß a:hover { color: #fff; }
.fuß-raster { display: grid; grid-template-columns: 1fr; gap: 28px; }
.fuß h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; color: var(--hell); margin-bottom: 10px; }
.fuß ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuß .rechte { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(199, 206, 221, 0.25); font-size: 0.88rem; }
.fuß a[aria-current="page"] { color: #fff; font-weight: 700; }

/* Unterseiten */
.seite { padding: 56px 0 80px; }
.seite .inhalt-text { max-width: 46rem; }
.seite h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); color: var(--tinte); margin-bottom: 18px; }
.seite h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 40px; }
.seite h3 { font-size: 1.12rem; margin-top: 24px; }
.stand { color: var(--text-leise); font-size: 0.95rem; }
.seite dl { margin: 0 0 1em; }
.seite dt { font-weight: 700; color: var(--tinte); margin-top: 12px; }
.seite dd { margin: 2px 0 0; }
.seite table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.96rem; }
.seite th, .seite td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--linie); }
.seite th { color: var(--tinte); }
.tabellen-umbruch { overflow-x: auto; }
.fehler-kopf { font-family: var(--display); font-size: clamp(4.5rem, 16vw, 8rem); line-height: 0.9; color: var(--rot); margin: 0 0 8px; font-weight: 700; }

/* Gestaltung ab Tablet und Desktop */
@media (min-width: 700px) {
  .drei-fragen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .punkte { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .mehr-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuß-raster { grid-template-columns: 2fr 1fr; }
  .hinweis-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
}
@media (min-width: 860px) {
  .inhalt { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steckbrief dl { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (max-width: 859px) {
  .hero { padding: 40px 0 56px; }
  .hero-raster { grid-template-columns: 1fr; gap: 36px; }
  .hero figure { order: -1; max-width: 230px; }
  .hero .knopfreihe .knopf { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .wortmarke { font-size: 1.15rem; }
}

@media (hover: none) {
  .cover:hover { transform: rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .cover:hover, .knopf.primaer:hover, .frage:hover { transform: none !important; }
}
