/* Mark Linnamägi – Personalberater und Autor
   Schriften: Archivo (Überschriften, Navigation) und Literata (Fließtext),
   beide unter SIL Open Font License, lokal eingebunden. */

@font-face { font-family: "Archivo"; font-weight: 500; font-style: normal; font-display: block; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: block; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-style: normal; font-display: block; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-style: italic; font-display: block; src: url("../fonts/literata-latin-600-italic.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #19212e;      /* Nachtblau vom Buchcover */
  --ink-soft: #2b3443;
  --muted: #59616f;
  --rule: #dce0e6;
  --panel: #f1f3f6;
  --stamp: #a7342b;    /* Dunkelrot vom Buchcover */
  --stamp-light: #d0574c;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .15s ease; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.028em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.022em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 38rem; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 48rem) { .lead { font-size: 1.3rem; } }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; font-family: var(--sans); z-index: 50; }
.skip:focus { left: .5rem; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
@media (min-width: 64rem) { .brand img { height: 34px; } }

.nav { display: flex; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; display: inline-block; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--stamp); text-decoration: underline; text-decoration-color: var(--stamp); }
.nav a[aria-current="page"] { border-bottom-color: var(--stamp); }
/* Sprachumschalter DE | EN */
.lang { display: flex; align-items: center; gap: .2rem; font: 500 .85rem var(--sans); letter-spacing: .04em; }
.lang a, .lang span { display: inline-block; padding: .3rem .45rem; line-height: 1; border: 1px solid transparent; border-radius: 2px; text-decoration: none; }
.lang a { color: var(--muted, #5b6472); }
.lang a:hover { color: var(--stamp); border-color: var(--rule); }
.lang span[aria-current] { color: var(--ink); font-weight: 700; border-color: var(--rule); }
@media (min-width: 64rem) { .site-nav { margin-left: auto; } .lang { padding-left: 1.25rem; border-left: 1px solid var(--rule); } }
.menu-toggle { display: none; font: 700 .95rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: 2px; padding: .45rem .8rem; cursor: pointer; }

@media (max-width: 63.99rem) {
  .js .menu-toggle { display: inline-block; }
  .js .nav { display: none; }
  .js .nav-open .nav { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { width: auto; }
  .js .nav-open .site-nav { width: 100%; order: 3; }
  .lang { margin-left: auto; }
  .site-header .wrap { column-gap: .6rem; }
  .lang a, .lang span { padding: .3rem .35rem; }
  .site-nav { order: 3; }
  .js .site-nav { order: 3; }
  .nav { flex-direction: column; padding: .25rem 0 1rem; }
  .nav a { padding: .55rem 0; }
  .no-js-wrap .nav { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; font-family: var(--sans); font-weight: 700; font-size: 1rem; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: .85rem 1.4rem; border-radius: 2px; }
.button:hover { background: var(--stamp); color: #fff; }
.text-link { text-decoration: underline; }
.more { font-family: var(--sans); font-weight: 700; font-size: 1rem; }

/* ---------- Einstieg ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 var(--section); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 5rem; } }
.hero-home h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: .98; letter-spacing: -.032em; max-width: 13ch; }
.hero .lead { margin-top: 1.75rem; max-width: 34rem; }

.cover { margin: 0; justify-self: center; width: min(68%, 19rem); }
@media (min-width: 56rem) { .cover { width: min(100%, 19rem); } }
.cover img { box-shadow: 0 1px 2px rgba(25,33,46,.18), 0 18px 40px -12px rgba(25,33,46,.45); }
.cover figcaption { margin-top: 1rem; font-family: var(--sans); font-size: .875rem; color: var(--muted); text-align: center; }

.page-head { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head .lead { margin-top: 1.25rem; max-width: 40rem; }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.panel { background: var(--panel); border-top: 0; }
.section.panel + .section { border-top: 0; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
@media (min-width: 56rem) { .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4rem; align-items: start; } }
.section-head p { color: var(--ink-soft); }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4.5rem; } .split.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.split h2 { margin-bottom: 1.25rem; }

.dashes { list-style: none; margin: 0; padding: 0; }
.dashes li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.dashes li::before { content: ""; position: absolute; left: 0; top: .85em; width: .9rem; height: 2px; background: var(--stamp); }

/* Leistungen */
.services { display: grid; gap: 2.5rem 3.5rem; }
@media (min-width: 56rem) { .services { grid-template-columns: 1fr 1fr; } }
.service { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.service h3 { margin-bottom: .75rem; }
.service .q { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule); font-style: italic; font-size: 1rem; color: var(--ink-soft); }
.service .q p { margin-bottom: .35rem; }

/* Fragen-Liste */
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 56rem) { .questions { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.questions li { padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; font-size: 1.05rem; }
.questions li::before { content: ""; position: absolute; left: 0; top: 1.85em; width: .9rem; height: 2px; background: var(--stamp); }

/* Fakten */
.facts { margin: 0; font-family: var(--sans); font-size: .95rem; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; }

/* Hinweis-Kasten */
.box { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--paper); border-left: 3px solid var(--stamp); }
.panel .box { background: #fff; }
.box h3 { margin-bottom: .6rem; }
.box p { font-size: 1.02rem; }
.notice { padding: 1.1rem 1.3rem; border-left: 3px solid var(--stamp); background: var(--panel); font-size: 1rem; }

/* Zitat-Streifen */
.quote { background: var(--panel); padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.quote figure, .quote blockquote { margin: 0; }
.quote blockquote { max-width: 46rem; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.42; color: var(--ink); }
.quote figcaption { margin-top: 1.5rem; font-family: var(--sans); font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: .9rem; }
.quote figcaption::before { content: ""; width: 2.5rem; height: 2px; background: var(--stamp); flex: none; }

/* Ablauf: rote Linie mit Stationen */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.path li { position: relative; padding: 0 0 2rem 2.25rem; border-left: 2px solid var(--stamp); margin-left: .45rem; }
.path li:last-child { border-left-color: transparent; padding-bottom: 0; }
.path li::before { content: ""; position: absolute; left: -.5rem; top: .3rem; width: .9rem; height: .9rem; background: #fff; border: 2px solid var(--stamp); border-radius: 50%; }
.path h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.path p { font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .path { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .path li { border-left: 0; margin-left: 0; padding: 2.1rem 0 0; border-top: 2px solid var(--stamp); }
  .path li:last-child { border-top-color: var(--stamp); }
  .path li::before { left: 0; top: -.55rem; }
}

/* Case-Study-Kacheln */
.tiles { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.tile { text-decoration: none; display: block; }
.tile figure { margin: 0 0 1rem; overflow: hidden; background: var(--panel); aspect-ratio: 3 / 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }
.tile h3 { font-size: 1.15rem; transition: color .15s ease; }
.tile:hover h3 { color: var(--stamp); text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tile p { margin-top: .5rem; font-size: 1rem; color: var(--ink-soft); }
.tile .tag { display: block; margin-bottom: .4rem; font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); }

/* Porträt */
.portrait { margin: 0; }
.portrait img { width: 100%; max-width: 22rem; }
.portrait figcaption { margin-top: .75rem; font-family: var(--sans); font-size: .875rem; color: var(--muted); }

/* Heute / Früher */
.vita { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .vita { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.vita h3 { display: flex; align-items: center; gap: .75rem; font-size: 1.1rem; margin-bottom: 1rem; }
.vita h3::before { content: ""; width: 1.75rem; height: 2px; background: var(--stamp); }
.vita ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.vita li { padding: .75rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.vita li span { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .15rem; }

/* Langtexte (Über mich, Case Studies, Leseprobe) */
.prose { max-width: 38rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 3.25rem 0 1.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose .cols { columns: 2 12rem; column-gap: 2.5rem; list-style: none; padding: 0; font-family: var(--sans); font-size: .98rem; }
.prose .cols li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--rule); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--stamp); font-style: italic; }

.subnav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 2.5rem; padding: 0 0 1rem; list-style: none; font-family: var(--sans); font-size: .95rem; font-weight: 500; border-bottom: 1px solid var(--rule); }
.subnav a { text-decoration: none; }
.subnav a:hover { text-decoration: underline; }

.case-hero { margin: 0 0 2.5rem; max-width: 46rem; }
.case-hero img { width: 100%; aspect-ratio: 3 / 1.4; object-fit: cover; }
.case-hero figcaption { margin-top: .5rem; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.case-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-weight: 700; font-size: 1rem; }
.case-nav a { text-decoration: none; }
.case-nav a:hover { text-decoration: underline; }
.case-nav small { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }

.back { display: inline-block; margin-bottom: 1.5rem; font-family: var(--sans); font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--muted); }
.back:hover { text-decoration: underline; }

/* Leseprobe in Buchtypografie */
.book { max-width: 36rem; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; hyphens: auto; }
.book h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 4rem 0 1.5rem; }
.book h3 { font-size: 1.2rem; margin: 2.5rem 0 1rem; }
.book p { margin: 0; text-indent: 1.4em; }
.book h2 + p, .book h3 + p, .book .tipp + p, .book .noindent { text-indent: 0; }
.book .tipp { text-indent: 0; margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--panel); font-size: 1rem; line-height: 1.65; }
.book .tipp strong { font-family: var(--sans); font-size: .95rem; }
.book .place { margin-top: 1.5rem; text-indent: 0; font-style: italic; }
.toc { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 1rem; border-top: 2px solid var(--ink); }
.toc li { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.toc li.in-probe { font-weight: 700; }
.toc li.in-probe::after { content: " – in dieser Leseprobe"; font-weight: 500; color: var(--stamp); }
:lang(en) .toc .in-probe::after { content: " – included in this excerpt"; }
.book-end { max-width: 36rem; margin: 4rem auto 0; }

/* Kontakt */
.contact-lines { font-family: var(--sans); }
.contact-lines .mail { display: inline-block; font-weight: 800; font-size: clamp(1.25rem, 2.3vw, 1.85rem); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.contact-lines .phone { display: block; margin-top: .75rem; font-weight: 500; font-size: 1.15rem; text-decoration: none; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: #c9ced6; padding: 3rem 0 2.5rem; font-family: var(--sans); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.site-footer img { height: 34px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--stamp-light); }
.site-footer .legal-line { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid #333c4b; color: #9aa2ae; font-size: .85rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(2.75rem, 6vw, 4.5rem) 0 var(--section); }
.legal h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: 2.25rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.75rem 0 .9rem; }
.legal ul { padding-left: 1.2rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .stand { margin-top: 3rem; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.todo { background: #fff2b8; padding: 0 .25em; }

/* LinkedIn-Symbol (offizielles Logo, unverändert) */
/* LinkedIn-[in]: offizielle Datei, unverändert; Mindesthöhe laut LinkedIn 21px, Schutzraum ≥ 2x */
.li-icon { display: inline-block; height: 21px; width: auto; vertical-align: -5px; margin-right: 10px; }
.site-footer .li-icon { height: 21px; }

@media (max-width: 26rem) { .brand img { height: 25px; } .menu-toggle { padding: .4rem .6rem; } }
