/* tehutstudio.com — style.css
   Papier, Tinte, schwarze Kästen. Reines CSS: keine Webfonts, kein JavaScript, keine Inline-Styles
   (die CSP erlaubt nur diese Datei). Kein Dark Mode – die Seite ist absichtlich immer hell.
   Kontraste nach WCAG 2.x gerechnet (tools/check-website.mjs prüft die Paare unten nach). */

:root {
  color-scheme: only light;

  --paper: #f5f1e8;      /* Hintergrund, warmes Off-White */
  --ink: #171614;        /* Text auf Papier: 16,0:1 */
  --ink-2: #4c4740;      /* zweitrangiger Text auf Papier: 8,2:1 */
  --ink-3: #635d54;      /* Kleingedrucktes auf Papier: 5,8:1 */
  --rule: rgba(23, 22, 20, 0.16);
  --rule-strong: rgba(23, 22, 20, 0.34);

  --box: #151412;        /* die schwarzen Kästen */
  --box-ink: #f3eee5;    /* Text im Kasten: 15,9:1 */
  --box-ink-2: #cdc5b7;  /* Fließtext im Kasten: 10,8:1 */
  --box-ink-3: #a8a092;  /* Status im Kasten: 7,1:1 */
  --box-rule: rgba(243, 238, 229, 0.16);
  --live: #8cc79a;       /* Punkt „veröffentlicht“ – nur Schmuck, der Text sagt es auch */
  --soon: #e6b25e;       /* Punkt „bald“ – nur Schmuck */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --max: 1180px;
  --measure: 42rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  /* Papier: feine Struktur (eigene Datei, CSP-tauglich) über einem hauchzarten Licht von oben. */
  background-image:
    url("/img/paper.svg"),
    radial-gradient(130% 70% at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(120, 92, 52, 0) 55%, rgba(120, 92, 52, 0.05) 100%);
  background-size: 320px 320px, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
}

main { flex: 1 0 auto; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Links und Fokus ---------- */

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(23, 22, 20, 0.45);
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-color: currentColor; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--box);
  color: var(--box-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--box); }

/* ---------- Kopfzeile ---------- */

.topbar { padding: 16px 0 6px; }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.125rem;
  text-decoration: none;
}
.brand img { width: 34px; height: 44px; display: block; }
a.brand:hover .brand__name { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

.topnav {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  font-size: 0.875rem;
  margin-left: auto;
}
.topnav > a {
  display: inline-block;
  padding: 10px 0;
  text-decoration-color: transparent;
}
.topnav > a:hover,
.topnav > a[aria-current] { text-decoration-color: currentColor; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.lang a,
.lang span {
  display: inline-block;
  min-width: 2.6rem;
  padding: 10px 14px;              /* Tippfläche 36 px hoch, mit dem Rahmen ≈ 44 px */
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.lang a:hover { background: rgba(23, 22, 20, 0.07); }
.lang [aria-current] { background: var(--box); color: var(--box-ink); }

/* ---------- Kopf der Startseite ---------- */

.hero { padding-top: 40px; padding-bottom: 44px; }

.eyebrow {
  margin: 0 0 14px;
  font: 600 0.75rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 15vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.018em;
}
.wordmark__studio { font-style: italic; letter-spacing: -0.01em; }

.lede {
  max-width: 36rem;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- Projekte ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font: 600 0.75rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  background: var(--box);
  color: var(--box-ink);
  border-radius: 3px;
  box-shadow:
    0 1px 1px rgba(30, 22, 10, 0.10),
    0 24px 44px -30px rgba(40, 28, 12, 0.60);
}

.tile__art {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 0 26px;
  image-rendering: pixelated;
}
.tile__art--wide { width: 64px; }

.tile__title {
  margin: 0 0 10px;
  font: 400 clamp(1.75rem, 1.4rem + 1.2vw, 2.15rem)/1.1 var(--serif);
  letter-spacing: -0.005em;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font: 600 0.72rem/1.35 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--box-ink-3);
}
.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}
.dot--soon { background: var(--soon); }

.tile__text {
  margin: 0 0 20px;
  font-size: 0.975rem;
  line-height: 1.62;
  color: var(--box-ink-2);
}

.tile__notes {
  margin: auto 0 22px;   /* Notizen und Knöpfe sitzen in allen Kästen unten auf einer Linie */
  padding-top: 16px;
  border-top: 1px solid var(--box-rule);
}
.motto {
  margin: 0 0 12px;
  font: italic 400 1.15rem/1.4 var(--serif);
  color: var(--box-ink);
}
.note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--box-ink-2);
}
.note__badge {
  flex: none;
  padding: 3px 5px 2px;
  border: 1px solid var(--box-ink-2);
  border-radius: 2px;
  font: 700 0.7rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--box-ink);
}

.tile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.tile__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(243, 238, 229, 0.42);
  border-radius: 999px;
  color: var(--box-ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tile__links a:hover {
  background: var(--box-ink);
  border-color: var(--box-ink);
  color: var(--box);
}
.tile__notes + .tile__links { margin-top: 0; }
.tile :focus-visible { outline-color: var(--box-ink); }

/* Der leere Rahmen: Platz für das nächste Stück. */
.tile--soon {
  justify-content: center;
  min-height: 150px;
  padding: 26px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  box-shadow: none;
  text-align: center;
}
.tile--soon .tile__title { margin-bottom: 6px; font-style: italic; }
.tile--soon .tile__text { margin: 0; color: var(--ink-2); }

/* ---------- Nächste Streams (Startseite) ---------- */

.schedule { padding-top: 48px; }
.schedule__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.schedule__item {
  display: grid;
  gap: 2px 28px;
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--rule);
}
.schedule__when { margin: 0; font: 600 0.92rem/1.45 var(--sans); color: var(--ink); }
.schedule__what { margin: 0; max-width: 46rem; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.schedule__what strong { font-weight: 600; color: var(--ink); }
.schedule__more { margin: 14px 0 0; font-size: 0.9rem; line-height: 1.9; color: var(--ink-2); }

/* ---------- Fußzeile ---------- */

.site-footer { padding: 64px 0 36px; font-size: 0.875rem; color: var(--ink-2); }
.site-footer .wrap > div {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}


.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;   /* Rechtliches + „Links“ unten rechts; auf dem Handy darunter */
  gap: 4px 22px;
}
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-row nav a { display: inline-block; padding: 10px 0; }

.marks {
  max-width: 46rem;
  margin: 14px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- Rechtsseiten ---------- */

.doc { padding-top: 28px; }

.doc__head { max-width: var(--measure); margin-bottom: 34px; }
.doc__head h1 {
  margin: 0 0 14px;
  font: 400 clamp(2.3rem, 1.7rem + 3vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -0.012em;
}
.doc__head p { margin: 0 0 8px; color: var(--ink-2); }

.doc section {
  max-width: var(--measure);
  padding: 22px 0 10px;
  border-top: 1px solid var(--rule);
}
.doc h2 {
  margin: 0 0 12px;
  font: 400 1.4rem/1.25 var(--serif);
}
/* Zwischenüberschriften in langen Abschnitten (Datenschutz § 8 Livestreams) */
.doc h3 {
  margin: 24px 0 8px;
  font: 600 1rem/1.35 var(--sans);
}
.doc h3 + p, .doc h3 + ul { margin-top: 0; }
.doc p,
.doc li { max-width: 40rem; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc address { font-style: normal; margin: 0 0 14px; }
.doc .updated { margin-top: 26px; font-size: 0.875rem; color: var(--ink-3); }

/* Der Widerspruch (Art. 21 DSGVO) muss getrennt und hervorgehoben stehen: im schwarzen Kasten. */
.doc .boxed {
  margin: 26px 0 24px;
  padding: 24px 22px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--box);
  color: var(--box-ink);
}
.doc .boxed h2 { color: var(--box-ink); }
.doc .boxed p { color: var(--box-ink); }
.doc .boxed a { color: var(--box-ink); text-decoration-color: rgba(243, 238, 229, 0.55); }
.doc .boxed :focus-visible { outline-color: var(--box-ink); }

/* Fehlerseiten */
.doc--short section { padding-bottom: 18px; }
.doc .links-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.doc .links-row a { display: inline-block; padding: 8px 0; }

/* Linkseite (/links/, /de/links/): große, gut tippbare Zeilen, nur einfache Links */
.doc .link-list { margin: 0 0 14px; padding: 0; list-style: none; }
.doc .link-list li { max-width: none; margin: 0; border-bottom: 1px solid var(--rule); }
.link-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  min-height: 48px;
  padding: 12px 0;
  text-decoration: none;
}
.link-list a:hover .link-list__name { text-decoration: underline; text-underline-offset: 0.2em; }
.link-list__name { font-weight: 600; }
.link-list__detail { font-size: 0.9rem; color: var(--ink-3); }
.doc .link-list__contact { margin-top: 4px; color: var(--ink-2); }

/* ---------- Nur für die Vorschau (node tools/build-website.mjs --draft) ---------- */

.placeholder {
  padding: 0 0.25em;
  border-radius: 2px;
  background: #ffe27a;
  color: #000;
  outline: 1px dashed #8a6500;
}
.draft-banner {
  padding: 10px var(--gutter);
  background: #ffe27a;
  color: #000;
  font-weight: 700;
  text-align: center;
}
/* Offene Owner-Prüfung im Text: blockiert den echten Bau (tools/build-website.mjs), bis sie von Hand entfernt ist. */
.draft-note {
  padding: 0 0.25em;
  border-radius: 2px;
  background: #ffd0a8;
  color: #000;
  outline: 1px dashed #8a3a00;
  font-weight: 600;
}
.draft-cond { outline: 2px dashed #9a5a00; outline-offset: 6px; margin: 10px 0; }
.draft-cond::before {
  content: attr(data-cond);
  display: block;
  margin-bottom: 6px;
  font: 700 0.72rem/1.3 var(--sans);
  color: #6f4100;
}

/* ---------- Breiten ---------- */

@media (max-width: 479px) {
  /* Kopf in einer Zeile: auf schmalen Handys nur das Monogramm, der Name bleibt für Screenreader. */
  .brand__name {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  /* Lange deutsche Wörter tragen weiche Trennstellen (&shy;) im HTML; automatisch getrennt wird nicht,
     sonst bräche der Browser auch „TehutStudio“. Zur Not bricht ein Wort ohne Strich um. */
  .doc { overflow-wrap: break-word; }
  .tile { overflow-wrap: break-word; }
}

@media (max-width: 399px) {
  .tile { padding-left: 18px; padding-right: 18px; }
  .tile__links { gap: 8px; }
  .tile__links a { padding: 10px 14px; }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .topbar { padding-top: 22px; }
  .hero { padding-top: 64px; padding-bottom: 60px; }
  .tile { padding: 30px 28px 28px; }
  .doc .boxed { padding: 28px 30px 16px; }
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .tile--soon { min-height: 0; padding: 26px 28px; }   /* zwei Spalten: neben „Interaktive Videos“ */
  .schedule__item { grid-template-columns: 12.5rem minmax(0, 1fr); }
}

@media (min-width: 1080px) {
  :root { --gutter: 48px; }
  .hero { padding-top: 96px; padding-bottom: 84px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .tile { padding: 34px 32px 32px; }
  .tile--soon { grid-column: 1 / -1; padding: 26px 32px; }   /* drei Kästen in einer Reihe, „Bald mehr“ darunter */
  /* Rechtsseiten: links der Titel (bleibt beim Scrollen stehen), rechts der Text. */
  .doc {
    display: grid;
    grid-template-columns: minmax(0, 19rem) minmax(0, var(--measure));
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
    padding-top: 56px;
  }
  .doc__head { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 32px; margin-bottom: 0; }
  .doc__head h1 { font-size: clamp(2.4rem, 1.4rem + 1.6vw, 3.2rem); hyphens: manual; }
  .doc > section,
  .doc > .draft-cond { grid-column: 2; }
  .doc > section:first-of-type { border-top: 0; padding-top: 6px; }
  .site-footer { padding-top: 96px; }
}

/* ---------- Ruhe, Druck ---------- */

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

@media print {
  body { background: #fff; }
  .skip, .topnav, .tile__art { display: none; }
  .tile, .doc .boxed { box-shadow: none; border: 1px solid #000; background: #fff; color: #000; }
  .tile *, .doc .boxed * { color: #000 !important; }
}
