/*
Theme Name: Koffein
Theme URI: https://koffein.tv
Author: Martin / fnerds
Description: Espresso-Noir Newsroom — dunkles Magazin-Theme für die tägliche Sendung auf koffein.tv. Kaffee, Nachrichten, kein Filter.
Version: 1.0.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: koffein
*/

/* ========== Fonts (selbst gehostet, DSGVO) ========== */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/BebasNeue-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/BebasNeue-400-normal-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: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/Karla-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/Karla-400-normal-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: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/Karla-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/Karla-500-normal-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: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/Karla-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/Karla-700-normal-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: 'Lobster Two';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/LobsterTwo-700-italic-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;
}

/* ========== Tokens ========== */
:root {
  color-scheme: dark;
  --espresso-0: #100b07;
  --espresso-1: #17100a;
  --espresso-2: #201710;
  --espresso-3: #2c1f14;
  --line: rgba(222, 168, 100, 0.16);
  --line-strong: rgba(222, 168, 100, 0.38);
  --crema: #d9a25f;
  --crema-hi: #f2bc72;
  --foam: #f4ead9;
  --muted: #a78f72;
  --cherry: #e04f30;
  --head-ink: #fff;              /* Überschriften */
  --ink-dark: #100b07;           /* dunkle Schrift auf Crema-Flächen, themenunabhängig */
  --grain-opacity: 0.05;
  /* Bühnenlicht: sanfter Lichtkegel mittig + Vignette an den Rändern */
  --stage-halo: rgba(222, 168, 100, 0.36);
  --stage-light: radial-gradient(1100px 620px at 50% 300px, rgba(244, 222, 180, 0.13), transparent 70%);
  --stage-vignette: radial-gradient(150% 125% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.58) 100%);
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-script: 'Lobster Two', cursive;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;
  --radius: 14px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --wrap: 1200px;
}

/* ========== Helles Theme: „Latte" ========== */
:root[data-theme="light"] {
  color-scheme: light;
  --espresso-0: #e9dcc2;   /* Milchkaffee-Papier */
  --espresso-1: #e0d1b1;
  --espresso-2: #f7efdd;
  --espresso-3: #d6c29c;
  --line: rgba(93, 58, 20, 0.18);
  --line-strong: rgba(93, 58, 20, 0.42);
  --crema: #c98b3f;
  --crema-hi: #a66d24;     /* Hover wird dunkler statt heller */
  --foam: #2b1d0f;
  --muted: #7d6a52;
  --cherry: #c9421f;
  --head-ink: #1d1206;
  --grain-opacity: 0.035;
  --shadow-card: 0 18px 40px -18px rgba(87, 55, 20, 0.35);
  --stage-halo: rgba(150, 96, 32, 0.4);
  --stage-light: radial-gradient(1100px 620px at 50% 300px, rgba(255, 250, 238, 0.85), transparent 68%);
  --stage-vignette: radial-gradient(150% 125% at 50% 42%, transparent 52%, rgba(110, 78, 36, 0.28) 100%);
}
:root[data-theme="light"] .yt-facade,
:root[data-theme="light"] .yt-player {
  box-shadow:
    0 26px 50px -18px rgba(87, 55, 20, 0.4),
    0 8px 22px rgba(87, 55, 20, 0.2),
    0 0 110px -18px var(--stage-halo);
}
:root[data-theme="light"] .kform-ok { color: #2e5d2e; }
:root[data-theme="light"] .kform-err { color: #8c2f1b; }
:root[data-theme="light"] .nl-msg.ok { color: #2e7d32; }
:root[data-theme="light"] a:hover { color: var(--head-ink); }

/* Theme-Umschalter */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--foam);
  flex: 0 0 auto;
  transition: border-color 0.2s, transform 0.15s;
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; line-height: 0; }
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -120px, rgba(217, 162, 95, 0.09), transparent 60%),
    radial-gradient(900px 600px at -180px 30%, rgba(224, 79, 48, 0.05), transparent 55%),
    var(--espresso-0);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
}
/* Bühnenlicht + Vignette (liegt über dem Grund, unter dem Inhalt) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--stage-light), var(--stage-vignette);
}
/* Kaffeesatz-Körnung über allem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crema-hi); text-decoration: none; }
a:hover { color: var(--foam); }
::selection { background: var(--crema); color: var(--ink-dark); }
:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--espresso-0); }
::-webkit-scrollbar-thumb { background: var(--espresso-3); border-radius: 8px; border: 3px solid var(--espresso-0); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.04;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

.script { font-family: var(--font-script); font-style: italic; color: var(--crema); }

/* ========== Ticker ========== */
.ticker {
  background: var(--crema);
  color: var(--ink-dark);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: stretch;
}
.ticker__label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  padding: 7px 14px 5px;
  background: var(--ink-dark);
  color: var(--crema);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cherry);
  animation: blink 1.3s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.ticker__belt { flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; }
.ticker__track {
  display: inline-flex;
  padding-left: 100%;
  animation: ticker 90s linear infinite;
}
.ticker__belt:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__track a {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.09em;
  color: var(--ink-dark);
  padding: 7px 0 5px;
  text-transform: uppercase;
}
.ticker__track a:hover { color: var(--cherry); }
.ticker__track .sep { margin: 0 18px; opacity: 0.5; padding-top: 6px; }

/* ========== Header ========== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--espresso-0) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.brand img { max-height: 58px; width: auto; }
.brand__word {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.65), 0 6px 18px rgba(0, 0, 0, 0.5);
  line-height: 1;
}
.brand__cup { align-self: center; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.brand__tv {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--crema);
  letter-spacing: 0.12em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 7px 0;
  transform: translateY(-4px);
}
.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.09em;
  color: var(--foam);
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 3px;
  background: var(--crema);
  transform: skewX(-18deg);
  transition: right 0.22s ease;
}
.nav a:hover::after, .nav .current-menu-item a::after { right: 0; }
.nav a:hover { color: var(--crema-hi); }

.head-search { position: relative; }
.head-search form { display: flex; }
.head-search input[type="search"] {
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: 999px 0 0 999px;
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 14px;
  width: 170px;
  transition: width 0.25s ease, border-color 0.2s;
}
.head-search input[type="search"]:focus { width: 240px; border-color: var(--line-strong); outline: none; }
.head-search button {
  background: var(--crema);
  color: var(--ink-dark);
  border: 0;
  border-radius: 0 999px 999px 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 0 16px;
  cursor: pointer;
}
.head-search button:hover { background: var(--crema-hi); }

.burger { display: none; }

/* ========== Hero ========== */
.hero { padding: 52px 0 26px; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  animation: riseIn 0.6s ease both;
}
.hero__kicker .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--cherry);
  border: 1px solid color-mix(in srgb, var(--cherry) 55%, transparent);
  padding: 4px 12px 2px;
  border-radius: 999px;
  text-transform: uppercase;
}
.hero__kicker .live::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 0 0 0 rgba(224, 79, 48, 0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(224, 79, 48, 0); } }
.hero__kicker .script { font-size: 24px; transform: rotate(-2deg); }
.hero__title {
  font-size: clamp(38px, 5.4vw, 68px);
  color: var(--head-ink);
  max-width: 20ch;
  animation: riseIn 0.6s 0.08s ease both;
}
.hero__title a { color: inherit; }
.hero__title a:hover { color: var(--crema-hi); }
.hero__meta { animation: riseIn 0.6s 0.14s ease both; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
  margin-top: 26px;
}
.hero__player { animation: riseIn 0.7s 0.18s ease both; position: relative; }
/* Lichthof hinter dem großen Player */
.hero__player::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 56% at 50% 46%, var(--stage-halo), transparent 72%);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Seitenleiste „Zuletzt serviert" */
.sidecup h3 {
  font-size: 24px;
  color: var(--crema);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.sidecup__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}
.sidecup__item img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.sidecup__item .t {
  font-family: var(--font-display);
  font-size: 17.5px;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--foam);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidecup__item:hover .t { color: var(--crema-hi); }
.sidecup__item .d { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ========== Video-Fassade (Klick lädt YouTube) ========== */
.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso-2);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 30px 60px -18px rgba(0, 0, 0, 0.75),
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 110px -18px var(--stage-halo);
  cursor: pointer;
  width: 100%;
  padding: 0;
  display: block;
  text-align: inherit;
}
.yt-facade img.poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.yt-facade:hover img.poster { transform: scale(1.035); }
.yt-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 11, 7, 0) 40%, rgba(16, 11, 7, 0.78));
}
.yt-facade .play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--crema);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, background 0.2s;
}
.yt-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--crema-hi); }
.yt-facade .play svg { margin-left: 5px; }
/* Dampf über dem Play-Button */
.yt-facade .steam { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; }
.yt-facade .steam i {
  position: absolute;
  bottom: 52px;
  left: -4px;
  width: 9px; height: 26px;
  border-radius: 50%;
  background: rgba(244, 234, 217, 0.85);
  filter: blur(5px);
  opacity: 0;
  animation: steam 2.8s ease-out infinite;
}
.yt-facade .steam i:nth-child(2) { left: -18px; animation-delay: 0.9s; height: 20px; }
.yt-facade .steam i:nth-child(3) { left: 10px; animation-delay: 1.7s; height: 22px; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(0) scaleX(1); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-46px) scaleX(2.1); }
}
.yt-facade .hint {
  position: absolute;
  left: 16px; bottom: 12px;
  z-index: 2;
  font-size: 12px;
  color: var(--muted);
}
.yt-facade iframe, .yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.yt-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.75),
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 110px -18px var(--stage-halo);
  background: #000;
}

/* ========== Sektionen ========== */
.sec { padding: 44px 0; }
.sec--tint { background: var(--espresso-1); border-block: 1px solid var(--line); }
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
}
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--head-ink); margin: 0; }
.sec-head .script { font-size: 22px; transform: rotate(-2deg) translateY(-2px); }
.sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.sec-head .more {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--crema);
  white-space: nowrap;
}
.sec-head .more:hover { color: var(--crema-hi); }

/* ========== Karten-Grid ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 26px;
}
.card {
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--espresso-3); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.card:hover .card__thumb img { transform: scale(1.06); }
.card__dur {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(16, 11, 7, 0.85);
  border: 1px solid var(--line);
  color: var(--foam);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__title {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--foam);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card__title { color: var(--crema-hi); }

/* ========== Buttons / Pills ========== */
.btn {
  display: inline-block;
  background: var(--crema);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px 9px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s;
}
.btn:hover { background: var(--crema-hi); color: var(--ink-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--crema);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--espresso-2); color: var(--crema-hi); }

/* ========== Archiv-Toolbar ========== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}
.toolbar form.searchform { display: flex; flex: 1 1 300px; max-width: 460px; }
.toolbar input[type="search"] {
  flex: 1;
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 18px;
}
.toolbar input[type="search"]:focus { outline: none; border-color: var(--line-strong); }
.toolbar button[type="submit"] {
  background: var(--crema);
  color: var(--ink-dark);
  border: 0;
  border-radius: 0 999px 999px 0;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 0 20px;
  cursor: pointer;
}
.toolbar select {
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--foam);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 10px 38px 8px 18px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d9a25f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.result-count { color: var(--muted); font-size: 14px; }

/* ========== Pagination ========== */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  min-width: 44px;
  text-align: center;
  padding: 9px 14px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--espresso-2);
  color: var(--foam);
}
.pagination .page-numbers.current { background: var(--crema); color: var(--ink-dark); border-color: var(--crema); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--line-strong); color: var(--crema-hi); }

/* ========== Einzelne Folge ========== */
.single-hero { padding: 44px 0 0; }
.single-hero .backlink {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.single-hero .backlink:hover { color: var(--crema); }
.single-hero h1 { font-size: clamp(34px, 4.6vw, 58px); color: var(--head-ink); margin: 12px 0 14px; }
.metaline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.metaline .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.metaline .chip svg { flex: 0 0 auto; }
.metaline a { color: var(--crema); }
.metaline a:hover { color: var(--crema-hi); }

.prose { max-width: 760px; margin: 34px auto 0; font-size: 17px; }
.prose p { margin: 0 0 1.2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); word-break: break-word; }
.prose a:hover { text-decoration-color: var(--crema); }

.eponav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 50px 0 10px;
}
.eponav a {
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.eponav a:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.eponav .dir {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.eponav .t {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--foam);
  line-height: 1.12;
}
.eponav a:hover .t { color: var(--crema-hi); }
.eponav .next { text-align: right; }

/* ========== Über-Streifen (Startseite) ========== */
.aboutstrip { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.aboutstrip .cup { flex: 0 0 auto; }
.aboutstrip h2 { font-size: clamp(26px, 3vw, 36px); color: var(--head-ink); margin-bottom: 8px; }
.aboutstrip p { margin: 0; color: var(--muted); max-width: 62ch; }
.aboutstrip p strong { color: var(--foam); }

/* ========== Footer ========== */
.site-foot {
  margin-top: 60px;
  background: var(--espresso-1);
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-foot h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--crema);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.site-foot p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; max-width: 44ch; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot li a { color: var(--foam); font-size: 15px; }
.site-foot li a:hover { color: var(--crema-hi); }
.site-foot__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 13.5px;
}
.site-foot__bottom .script { font-size: 19px; }

/* ========== Formular-Basics ========== */
input[type="text"], input[type="email"], input[type="search"], textarea {
  font-family: var(--font-body);
}
.kform input[type="text"], .kform input[type="email"], .kform textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
  width: 100%;
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--foam);
  font-size: 15.5px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.kform input:focus, .kform textarea:focus,
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--line-strong);
}
.kform label, .comment-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--crema);
  margin-bottom: 6px;
}
.kform label .hint, .comment-form label .hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
/* Honeypot: für Menschen unsichtbar */
.kf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ========== Kommentare ========== */
.comments { max-width: 760px; margin: 56px auto 0; }
.comments .sec-head h2 { font-size: 30px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 14px 0 0; padding-left: 26px; border-left: 2px solid var(--line); }
.comment-body {
  background: var(--espresso-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: #f4ead9;
  flex: 0 0 auto;
}
.comment-author { font-weight: 700; color: var(--foam); }
.comment-date { font-size: 12.5px; color: var(--muted); }
.comment-date:hover { color: var(--crema); }
.comment-pending {
  font-size: 13px;
  color: var(--crema);
  background: color-mix(in srgb, var(--crema) 10%, transparent);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 10px 0 0;
}
.comment-text { font-size: 15.5px; margin-top: 8px; overflow-wrap: anywhere; }
.comment-text p { margin: 0 0 0.7em; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-foot .comment-reply-link {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.comment-foot .comment-reply-link:hover { color: var(--crema-hi); }
.comment-form-wrap {
  background: var(--espresso-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  margin-top: 30px;
}
.comment-reply-title { font-size: 26px; color: var(--head-ink); margin: 0 0 4px; }
.comment-reply-title .script { font-size: 18px; }
.comment-policy { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
.comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.comment-form-author { margin-right: 12px; }
.comment-form .form-submit { margin: 6px 0 0; }
.comment-form .logged-in-as { font-size: 13px; color: var(--muted); }
#cancel-comment-reply-link { font-size: 13px; margin-left: 10px; color: var(--cherry); }

/* ========== Newsletter ========== */
.nl-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px;
}
.nl-strip h2 { font-size: clamp(26px, 3vw, 36px); color: var(--head-ink); margin-bottom: 8px; }
.nl-strip p { color: var(--muted); margin: 0; }
.nl-row { display: flex; gap: 10px; }
.nl-row input[type="email"] {
  flex: 1;
  background: var(--espresso-0);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--foam);
  font-size: 15px;
  padding: 13px 20px;
  min-width: 0;
}
.nl-row input[type="email"]:focus { outline: none; border-color: var(--line-strong); }
.nl-row .btn { white-space: nowrap; padding-inline: 22px; }
.nl-consent { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.nl-msg { font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.nl-msg.ok { color: #7fc47f; }
.nl-msg.err { color: var(--cherry); }
.site-foot .nl-row .btn { font-size: 15px; padding: 9px 18px 7px; }
.site-foot .nl-row input[type="email"] { padding: 9px 16px; font-size: 14px; }

/* ========== Kontaktformular ========== */
.kform-wrap { max-width: 680px; margin: 30px auto 0; }
.kform {
  background: var(--espresso-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.kform p { margin: 0 0 16px; }
.kform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.kform-ok, .kform-err {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  border: 1px solid;
}
.kform-ok { background: rgba(90, 160, 90, 0.12); border-color: rgba(127, 196, 127, 0.4); color: #b9e0b9; }
.kform-err { background: rgba(224, 79, 48, 0.1); border-color: rgba(224, 79, 48, 0.4); color: #f0a795; }

/* ========== Spendenseite ========== */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin: 38px 0 26px;
}
.donate-card {
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s;
}
.donate-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.donate-icon { font-size: 42px; line-height: 1; }
.donate-card h3 { font-size: 24px; color: var(--crema); margin: 0; }
.donate-card p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.donate-iban { font-size: 15px !important; color: var(--foam) !important; line-height: 1.8; }

/* ========== 404 ========== */
.empty-cup { text-align: center; padding: 90px 0; }
.empty-cup h1 { font-size: clamp(52px, 8vw, 110px); color: var(--head-ink); }
.empty-cup p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto 30px; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .nl-strip { grid-template-columns: 1fr; gap: 22px; padding: 30px 26px; }
  .kform-grid { grid-template-columns: 1fr; }
  .comment-form-author, .comment-form-email { display: block; width: 100%; margin-right: 0; }
  .sidecup { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .sidecup h3 { grid-column: 1 / -1; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .aboutstrip { grid-template-columns: 1fr; text-align: left; }
  .aboutstrip .cup { display: none; }
}
@media (max-width: 820px) {
  .head-search { display: none; }
  .theme-toggle { order: 2; margin-left: auto; }
  .burger { order: 3; }
  .burger {
    display: grid;
    place-items: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 46px; height: 46px;
    cursor: pointer;
    color: var(--foam);
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--espresso-1);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav a { font-size: 24px; padding: 8px 0; }
  .brand__word { font-size: 34px; }
  .eponav { grid-template-columns: 1fr; }
  .eponav .next { text-align: left; }
  .sidecup { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .ticker__belt { overflow-x: auto; }
  .ticker__track { padding-left: 0; }
  html { scroll-behavior: auto; }
}
