/* markuskoenig.net — Design-System */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink: #15131a;
  --ink-2: #3c3845;
  --ink-3: #6b6675;
  --line: #e7e2df;
  --line-2: #f0ecea;
  --bg: #ffffff;
  --bg-warm: #f8f6f4;
  --brand: #961642;
  --brand-deep: #6d0d2f;
  --brand-tint: #fdf1f5;
  --brand-lift: #ff8ab4;
  --dark: #14121a;

  --wrap: 1140px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(21,19,26,.04), 0 12px 32px -12px rgba(21,19,26,.10);
  --shadow-lift: 0 2px 4px rgba(21,19,26,.05), 0 24px 48px -16px rgba(21,19,26,.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 { font-weight: 640; line-height: 1.14; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 2.9vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 620; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; opacity: .55; }

.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); line-height: 1.55; color: var(--ink-2); }

.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--brand); color: #fff;
  font-weight: 570; font-size: .98rem; letter-spacing: -.005em;
  padding: .82em 1.5em; border-radius: 999px; border: 1px solid var(--brand);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(150,22,66,.6); }
.btn-sm { padding: .6em 1.15em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-warm); color: var(--ink); border-color: var(--ink-3); box-shadow: none; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.arrow-link { font-weight: 570; display: inline-flex; align-items: center; gap: .4em; }
.arrow-link::after { content: '\2192'; transition: transform .18s ease; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.logo img { width: 152px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: var(--ink-2); font-size: .95rem; font-weight: 520; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a[aria-current='page'] { color: var(--ink); font-weight: 620; }
.site-nav .btn { color: #fff; }

.navtoggle, .burger { display: none; }

@media (max-width: 980px) {
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px;
  }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .site-nav {
    position: absolute; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 24px 1.5rem;
    box-shadow: var(--shadow);
  }
  .navtoggle:checked ~ .site-nav { display: flex; }
  .navtoggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  .site-nav .btn { justify-content: center; margin-top: 1.1rem; border-bottom: 0; }
}

/* ---------- Sections ---------- */

section { padding: clamp(4rem, 8vw, 7rem) 0; }
.sec-warm { background: var(--bg-warm); }
.sec-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.sec-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }

.on-dark { background: var(--dark); color: #e8e5ec; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lede { color: #b6b1c0; }
.on-dark .eyebrow { color: var(--brand-lift); }
.on-dark a:not(.btn) { color: var(--brand-lift); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 8vw, 7rem);
}
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto 30%; height: 130%;
  background: radial-gradient(closest-side, rgba(150,22,66,.42), rgba(150,22,66,0) 72%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 70% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .55em; }
.hero h1 .hl { color: var(--brand-lift); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.chip {
  font-size: .82rem; font-weight: 520;
  padding: .42em 1em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #cfc9d6;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { margin-top: .5rem; }
}

.hero-figure { width: 100%; margin: 0; }   /* figure hat vom Browser 40px Seitenrand */
.hero-figure svg { width: 100%; height: auto; }

/* ---------- Karten ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); font-size: .98rem; margin-bottom: 0; }
.card .arrow-link { margin-top: 1.25rem; display: inline-flex; font-size: .95rem; }
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lift); transform: translateY(-2px); text-decoration: none; }
a.card { display: block; color: inherit; }
a.card h3 { color: var(--ink); }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.card-icon svg { width: 22px; height: 22px; }

/* Säulen */
.pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: stretch; }
.pillar { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pillar .arrow-link { margin-top: auto; padding-top: 1.5rem; }
.pillar-main { background: linear-gradient(160deg, #1d1926 0%, #14121a 58%); border-color: transparent; color: #ddd9e2; }
.pillar-main::after {
  content: ''; position: absolute; width: 340px; height: 340px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150,22,66,.55), transparent 70%);
}
.pillar-main h3 { color: #fff; }
.pillar-main p { color: #b6b1c0; }
.pillar-main .card-icon { background: rgba(255,255,255,.08); color: var(--brand-lift); }
.pillar-main .arrow-link { color: var(--brand-lift); }
.pillar > * { position: relative; z-index: 1; }
a.pillar-main:hover { border-color: var(--brand-lift); }

/* Listen */
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.85rem; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23961642' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/.72rem no-repeat;
}
.pillar-main .ticks li { color: #b6b1c0; }
.pillar-main .ticks li::before { background-color: rgba(255,138,180,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff8ab4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E"); }

/* Schritte */
.steps { counter-reset: step; display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 3.3rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .85rem; font-weight: 680; letter-spacing: .05em; color: var(--brand);
  padding-bottom: .7rem; border-bottom: 2px solid var(--brand);
  width: 2.6rem;
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* Fakten */
.facts { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fact .num { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 660; letter-spacing: -.04em; color: var(--ink); line-height: 1.05; }
.on-dark .fact .num { color: #fff; }
.fact p { font-size: .95rem; color: var(--ink-3); margin: .35rem 0 0; }
.on-dark .fact p { color: #9b95a6; }

/* Zitat */
.quote { border-left: 3px solid var(--brand); padding-left: 1.6rem; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.45; letter-spacing: -.02em; font-weight: 500; color: var(--ink); }
.on-dark .quote { color: #fff; }

/* Split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split-sticky { position: sticky; top: 110px; }
@media (max-width: 760px) { .split-sticky { position: static; } }

/* Kontakt */
.contact-card { display: grid; gap: 1.4rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .card-icon { margin: 0; flex: none; width: 40px; height: 40px; }
.contact-item h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .2em; font-weight: 620; }
.contact-item p { margin: 0; font-size: 1.06rem; font-weight: 520; }
.on-dark .contact-item h3 { color: #9b95a6; }
.on-dark .contact-item .card-icon { background: rgba(255,255,255,.08); color: var(--brand-lift); }

/* CTA */
.cta-band { background: var(--dark); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: auto -5% -70% 20%; height: 120%;
  background: radial-gradient(closest-side, rgba(150,22,66,.4), transparent 70%);
}
.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- Fließtext-Seiten ---------- */

.doc-head { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.doc-head .wrap { max-width: 820px; }
.doc-body { padding: 2rem 0 clamp(4rem, 8vw, 6rem); }
.doc-body .wrap { max-width: 820px; }
.doc-body h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.doc-body h3 { margin-top: 1.8rem; }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: .99rem; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; }
.doc-body li { margin-bottom: .4rem; }

/* ---------- Footer ---------- */

.site-foot { background: var(--dark); color: #9b95a6; padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-foot h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 620; margin-bottom: 1rem; }
.site-foot a { color: #cfc9d6; }
.site-foot a:hover { color: #fff; }
.foot-logo { width: 150px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1.2rem; }
.foot-tag { max-width: 34ch; color: #9b95a6; }
.foot-nav { display: grid; gap: .55rem; justify-items: start; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: #7d7789;
}
.foot-base p { margin: 0; }

/* ---------- Unterseiten-Kopf ---------- */

.hero-sm { padding: clamp(3.25rem, 6vw, 5rem) 0 clamp(3.25rem, 5vw, 4.5rem); }
.hero-sm h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.hero-sm::before { inset: -60% -10% auto 45%; }

/* ---------- Formular ---------- */

.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: grid; gap: .4rem; margin: 0; }
.field label { font-size: .88rem; font-weight: 570; color: var(--ink-2); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .9rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(150,22,66,.12);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; margin: 0; }
.consent label { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.consent input { margin-top: .25rem; accent-color: var(--brand); width: 1.05rem; height: 1.05rem; flex: none; }
.form button { justify-self: start; }

/* ---------- Hinweise für den Redakteur ---------- */


/* ---------- Meldungen ---------- */

.notice {
  border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.5rem;
  border: 1px solid var(--line); background: var(--bg-warm); font-size: .96rem;
}
.notice-ok { border-color: #bfe3c7; background: #f1faf3; color: #1d5c2e; }
.notice-err { border-color: #f0c2cf; background: #fdf1f5; color: #7a1033; }

/* ---------- Hilfsklassen ---------- */

.h2-sm { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.6rem); }
.meta { color: var(--ink-3); font-size: .92rem; }
.mt { margin-top: 1.5rem; }
.card-narrow { max-width: 720px; }

/* ---------- Porträt ---------- */

.portrait-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.portrait {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 20px; aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  max-width: 360px; justify-self: end; width: 100%;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 14%; }
.portrait::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--dark) 0%, rgba(20,18,26,.82) 8%, rgba(20,18,26,0) 30%),
    linear-gradient(0deg, rgba(20,18,26,.55), transparent 28%),
    linear-gradient(200deg, rgba(150,22,66,.24), transparent 55%);
  pointer-events: none;
}
.no-portrait { grid-template-columns: 1fr; }

@media (max-width: 880px) {
  .portrait-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; justify-self: start; }
}

/* ---------- Hervorgehobenes Zitat ---------- */

.pullquote { margin: 2.25rem 0; padding: 0; }
.pullquote blockquote {
  margin: 0; padding: 1.5rem 1.6rem;
  background: var(--bg-warm); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 0 16px 16px 0;
  font-size: 1.06rem; line-height: 1.55; color: var(--ink);
}
.pullquote figcaption {
  margin-top: .7rem; padding-left: 1.6rem;
  font-size: .85rem; color: var(--ink-3);
}

/* ---------- Einwilligungsbanner ---------- */

.einwilligung {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 4px 8px rgba(21,19,26,.06), 0 30px 60px -20px rgba(21,19,26,.35);
  max-width: 780px; margin-inline: auto;
}
.einwilligung-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.15rem 1.4rem;
}
.einwilligung p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.einwilligung p + p { margin-top: .35rem; }
.einwilligung p strong { color: var(--ink); font-size: .98rem; }
.einwilligung-knoepfe { display: flex; flex-direction: column; gap: .5rem; flex: none; }
.einwilligung-knoepfe .btn { justify-content: center; white-space: nowrap; }

@media (max-width: 680px) {
  .einwilligung { left: 10px; right: 10px; bottom: 10px; }
  .einwilligung-inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem; }
  .einwilligung-knoepfe { flex-direction: row; }
  .einwilligung-knoepfe .btn { flex: 1; }
}
