/* ───────── andreas-hemmeter.de · Startseite ───────── */
:root {
  --bg: #fbfaf7; --bg-2: #f2efe8; --ink: #1c1b18; --ink-2: #4a4843; --ink-3: #7c7972;
  --line: rgba(28,27,24,0.12); --accent: #1f4e79; --accent-soft: rgba(31,78,121,0.09); --accent-ink: #163a5c;
  --card: #ffffff; --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Charter", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 46rem;
}
:root[data-theme="dark"] {
  --bg: #16171a; --bg-2: #1e2024; --ink: #ebe8e1; --ink-2: #c3bfb6; --ink-3: #8c8981;
  --line: rgba(235,232,225,0.14); --accent: #8fb6de; --accent-soft: rgba(143,182,222,0.12); --accent-ink: #b7d2ee;
  --card: #1e2024; --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16171a; --bg-2: #1e2024; --ink: #ebe8e1; --ink-2: #c3bfb6; --ink-3: #8c8981;
    --line: rgba(235,232,225,0.14); --accent: #8fb6de; --accent-soft: rgba(143,182,222,0.12); --accent-ink: #b7d2ee;
    --card: #1e2024; --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.68; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { color: var(--accent); }
button { font: inherit; }

.kopf { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.kopf-inner { max-width: 72rem; margin: 0 auto; padding: 0.7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke { font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.kopf-nav { display: flex; align-items: center; gap: 1rem; font-family: var(--sans); font-size: 0.9rem; }
.kopf-nav a { text-decoration: none; color: var(--ink-2); }
.kopf-nav a:hover { color: var(--accent); }
.theme { background: none; border: 1px solid var(--line); border-radius: 999px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; }
.theme:hover { color: var(--accent); border-color: var(--accent); }

.seite { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem 4rem; width: 100%; flex: 1; }
.hero { margin: 3rem 0 3rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(120px, 22vw, 168px); height: auto; margin-bottom: 1.2rem; }
.hero-logo .logo { width: 100%; height: auto; }
.hero-name { font-weight: 600; font-size: clamp(2rem, 4.6vw, 2.9rem); letter-spacing: -0.012em; margin: 0 0 0.6rem; line-height: 1.1; }
.hero .kicker { margin-bottom: 1rem; }
.hero .untertitel { max-width: 38rem; }
.intro { margin: 3.5rem 0 3rem; }
.kicker { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1rem; }
h1 { font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 1.1rem; }
.seite { max-width: 62rem; }
.untertitel { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
h2 { font-weight: 600; font-size: 1.05rem; font-family: var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.25rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }

.beitrag { padding: 0.25rem 0 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.beitrag:last-of-type { border-bottom: 0; }
.beitrag-meta { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.5rem; }
.beitrag h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 600; margin: 0 0 0.8rem; letter-spacing: -0.005em; }
.beitrag h3 a { text-decoration: none; color: var(--ink); }
.beitrag h3 a:hover { color: var(--accent); }
.beitrag p { margin: 0 0 0.8rem; color: var(--ink-2); }
.beitrag-link { font-family: var(--sans); font-size: 0.95rem; }
.beitrag-link a { text-decoration: none; font-weight: 600; }

.ueber { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--bg-2); border-radius: 14px; padding: 1.4rem 1.5rem; margin-top: 3rem; font-size: 1rem; color: var(--ink-2); }
.ueber h2 { border: 0; padding: 0; margin: 0 0 0.5rem; }
.ueber p { margin: 0; }
.ueber-initialen { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: 0.04em; }

.fuss { border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.85rem; color: var(--ink-3); }
.fuss-inner { max-width: 72rem; margin: 0 auto; padding: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fuss a { color: inherit; }

/* Impressum-Seite */
.rechtlich h1 { font-size: 1.8rem; margin-top: 3rem; }
.rechtlich h2 { margin-top: 2.2rem; }
.rechtlich p, .rechtlich address { margin: 0 0 1rem; font-style: normal; }
.platzhalter { background: rgba(232,113,10,0.15); border-radius: 4px; padding: 0 0.3rem; }

/* Logo */
:root { --logo-a: #8fb6de; }
:root[data-theme="dark"] { --logo-a: #1f4e79; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-a: #1f4e79; } }
.logo { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.logo .h { fill: var(--accent); } .logo .a { stroke: var(--logo-a); }
.marke { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-kachel { width: 3rem; height: 3rem; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-kachel .logo { width: 2.3rem; height: 2.3rem; } .logo-kachel .logo .h { fill: #fff; } .logo-kachel .logo .a { stroke: #8fb6de; }

/* Beitrags-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.kachel { display: flex; flex-direction: column; gap: 0.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem 1.1rem; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; overflow: hidden; }
.kachel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.kachel:hover { transform: translateY(-2px); border-color: var(--accent); }
.kachel-meta { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3); display: flex; gap: 0.45rem; margin: 0; }
.kachel h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 600; margin: 0.15rem 0 0; letter-spacing: -0.005em; }
.kachel-unter { font-size: 1rem; line-height: 1.4; color: var(--ink-2); margin: 0 0 0.35rem; }
.kachel-text { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 0.6rem; flex: 1; }
.kachel-link { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.kachel-quelle { font-weight: 400; font-size: 0.78rem; color: var(--ink-3); }
.kachel:hover .kachel-link { color: var(--accent); }
.ueber { max-width: 46rem; margin-left: auto; margin-right: auto; }
