:root {
  --ground: #FCFAF4;
  --surface: #FFFDF7;
  --butter: #F7E7B5;
  --blue: #34465C;
  --text: #3B3B3B;
  --muted: #6E6A61;
  --line: #E6DFCE;
  --accent: #0081FD;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo { width: 2.35rem; height: 2.35rem; object-fit: contain; }

.home-link { color: var(--muted); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; }
.home-link:hover { color: var(--blue); }

.page { max-width: 45rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 1.5rem 3.5rem; }
.eyebrow { margin: 0 0 0.75rem; color: var(--blue); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { color: var(--blue); line-height: 1.16; }
h1 { max-width: 17ch; margin: 0; color: var(--accent); font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.055em; }
h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.035em; }
h3 { margin: 0; font-size: 1.05rem; }
.lead { max-width: 39rem; margin: 1.25rem 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; }
.author-hero { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; align-items: start; gap: 1.5rem; }
.author-hero .lead { margin-bottom: 0; }
.portrait { width: 9rem; height: 9rem; border: 0.35rem solid var(--surface); border-radius: 1.15rem; object-fit: cover; box-shadow: 0 0.5rem 1.5rem rgba(52, 70, 92, 0.16); }

.section { margin-top: clamp(2.75rem, 7vw, 4.75rem); }
.section > p { max-width: 42rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.card { padding: 1.1rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
.card p { margin: 0.4rem 0 0; font-size: 0.93rem; line-height: 1.5; }
.tag { display: inline-block; margin-bottom: 0.5rem; padding: 0.14rem 0.45rem; border-radius: 999px; background: var(--butter); color: var(--blue); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.quote { margin: 1.25rem 0 0; padding: 1.2rem 1.3rem; border-left: 0.3rem solid var(--butter); border-radius: 0 0.75rem 0.75rem 0; background: var(--surface); color: var(--blue); font-size: 1.05rem; font-weight: 650; line-height: 1.45; }
.plain-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.plain-list li { position: relative; padding-left: 1.45rem; }
.plain-list li::before { position: absolute; left: 0; color: var(--blue); content: '•'; font-weight: 900; }

.optin { margin-top: clamp(2.75rem, 7vw, 4.75rem); padding: clamp(1.35rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 1.1rem; background: var(--butter); }
.optin h2 { max-width: 22ch; }
.optin > p { margin: 0.55rem 0 0; }
.optin form { margin-top: 1.2rem; }
.field { display: flex; gap: 0.6rem; }
.field input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--blue);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
button { font: inherit; }
.field button, .consent button {
  border: 1.5px solid var(--blue);
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: 800;
}
.field button { padding: 0.8rem 1rem; background: var(--blue); color: var(--ground); }
.field button:hover, .consent .ja:hover { opacity: 0.88; }
.note, .ok, .fehler { margin: 0.65rem 0 0; font-size: 0.78rem; line-height: 1.45; }
.note { color: var(--muted); }
.ok, .fehler { display: none; }
.ok { color: #2c6340; font-weight: 700; }
.fehler.an { display: block; color: #9a2d2d; font-weight: 700; }
form.done .field, form.done .note, form.done .fehler { display: none; }
form.done .ok { display: block; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

footer { padding: 2rem 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; text-align: center; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.1rem; }
footer a, footer .consent-settings { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
footer .consent-settings { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
footer .disclaimer { max-width: 44rem; margin: 0.85rem auto 0; font-size: 0.68rem; line-height: 1.5; }

.consent { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: min(28rem, calc(100% - 2rem)); padding: 1.125rem 1.2rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); box-shadow: 0 6px 24px rgba(52, 70, 92, 0.16); }
.consent[hidden] { display: none; }
.consent h2 { margin: 0; font-size: 1.1rem; }
.consent p { margin: 0.45rem 0 0.85rem; font-size: 0.78rem; line-height: 1.45; }
.optionen { display: grid; gap: 0.5rem; }
.option { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem; border: 1px solid var(--line); border-radius: 0.6rem; cursor: pointer; }
.option input { flex: none; margin: 0.22rem 0 0; }
.option strong, .option span { display: block; }
.option strong { font-size: 0.78rem; }
.option span { margin-top: 0.1rem; font-size: 0.72rem; line-height: 1.4; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.consent button { flex: 1 1 7rem; padding: 0.55rem 0.65rem; font-size: 0.75rem; }
.consent .nein { background: transparent; color: var(--blue); }
.consent .speichern { background: var(--butter); color: var(--blue); }
.consent .ja { background: var(--blue); color: var(--ground); }

@media (max-width: 37rem) {
  .author-hero { grid-template-columns: 1fr; }
  .portrait { width: 7rem; height: 7rem; }
  .site-header { padding: 1rem; }
  .page { padding: 2.25rem 1rem 3rem; }
  .grid { grid-template-columns: 1fr; }
  .field { flex-direction: column; }
  .field button { width: 100%; }
  .consent { right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
