/* ==========================================================================
   Otelo Villach – Design-System „hell & minimal“
   basiert auf carinthianlinuxday.at (cld.css), GPL-2.0-or-later – Aufbau, Klassennamen und
   Komponenten wie dort, die Optik ist neu: weiß und luftig, Farbspiel wie netsnek.com.
   Villach-Gelb #fcee33 ist die Markenfarbe (Brief §11): immer als FLÄCHE mit --ink darauf – Primär-Knöpfe,
   „Kontakt“-Pille, Balken unter dem aktiven Menüpunkt, Schild „Freiraum Otelo“, „villach“-Block, Marker,
   Abschnitts-Marken, „nächster“-Pille. Otelo-Grün ist der TEXT-Akzent (farbiger Schlusspunkt, Akzentzeile,
   Links, Umriss-Knöpfe) und das O-Zeichen. Handgezeichnete Doodles (schwarze Striche) im Stil des
   Schaufensters „Freiraum Otelo“, einige zeichnen sich selbst. Fira Sans (Hausschrift von otelo.or.at),
   Fira Mono nur für kleine Metadaten (Uhrzeiten, Befehle).
   Aufbau: Tokens · Basis · Bausteine (Header … Footer) · Hintergrundbilder · Doodles · Abschnitts-Marken ·
   Seitenteile (Startseite st-/zm-, Termine te-, Textseiten ts-/ch-/im-/ds-, Hintergrundbilder-Seite hg-) ·
   Bewegung · Druck.
   Mobile first · getestet auf iPhone 15 (393 × 852 CSS-px, WebKit) · keine externen Requests.
   Komponenten-Übersicht mit HTML-Beispielen: okf/design-system/

   Kontraste (WCAG 2.1, relative Leuchtdichte, berechnet) – AA verlangt 4,5:1 für Text,
   3:1 für großen Text (≥ 24 px bzw. ≥ 18,7 px fett) und Bedienelement-Grenzen:
     Text auf Weiß #fff         --ink 15,42 · --text-2 9,18 · --muted 5,30 · --green 5,29 · --green-dark 8,06
     Text auf --bg-soft #f5f8f6 --ink 14,43 · --text-2 8,59 · --muted 4,95 · --green 4,95 · --green-dark 7,54
     Text auf --green-tint      --ink 13,57 · --text-2 8,08 · --green 4,66 · --muted 4,66
     --ink auf --yellow         12,79   (Primär-Button, „Kontakt“-Pille; --green auf Gelb nur 4,39 → nie verwenden)
     --ink auf --yellow-dark    11,9    (Hover der gelben Knöpfe)
     Weiß auf --green           5,29    (Ziffern-Punkte, aktiver Filter) · Weiß auf --green-dark 8,06
     auf --ink #1c262b          Weiß 15,42 · --dunkel-text 12,21 · --dunkel-muted 8,36 · --green-light 6,41
     auf --slate #374850        Weiß 9,52 · --dunkel-text 7,54 · --dunkel-muted 5,16
                                --green-light 3,96 → auf Schiefer nur groß/dekorativ (Schlusspunkt in Überschriften)
     Grenzen/Fokus              --line-input 3,39 auf Weiß, 3,17 auf --bg-soft · Fokus --green 5,29 (hell),
                                Fokus Gelb auf --ink 12,79 / auf --slate 7,90 (dunkle Flächen)
     --green-light auf Weiß 2,41 → nur Deko (Punkte, Verlauf), nie Text.
   ========================================================================== */

/* ---------- Schriften (self-hosted, OFL – kein Google-Fonts-Request) ----------
   Je Schnitt zwei Dateien: latin (Deutsch komplett inkl. „ “ – …) und latin-ext (z. B. ő, č, ł in Namen).
   Der Browser lädt latin-ext nur, wenn ein Zeichen daraus auf der Seite vorkommt. */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-400.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: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/fira-sans-latin-400.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: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-400-italic.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: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/fira-sans-latin-400-italic.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: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-500.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: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/fira-sans-latin-500.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: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-600.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: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/fira-sans-latin-600.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: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-700.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: "Fira Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/fira-sans-latin-700.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: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/fira-sans-latin-ext-800.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: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/fira-sans-latin-800.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: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/fira-mono-latin-ext-400.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: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/fira-mono-latin-400.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: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/fira-mono-latin-ext-500.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: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/fira-mono-latin-500.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 {
  /* Flächen und Text (Werte aus dem Brief, Kontraste oben) */
  --bg: #ffffff;              /* Seite */
  --bg-soft: #f5f8f6;         /* abwechselnde Sektionen, Code, Eingaben */
  --line: #e3e9e6;            /* Kartenränder, Linien */
  --line-strong: #cfd9d5;     /* neutrale Button-Ränder, Hover-Ränder */
  --line-input: #7f8e93;      /* Eingabefelder: ≥ 3:1, damit das Feld als Feld erkennbar ist */
  --ink: #1c262b;             /* Überschriften + Text (Fast-Schwarz mit Schiefer-Ton) */
  --text-2: #3c4a50;          /* Fließtext */
  --muted: #5f6e73;           /* Nebeninfos (≥ 4,5:1 auf Weiß) */
  --slate: #374850;           /* Otelo-Schiefer (Hintergrund des Villach-Logos) – Footer */

  /* Otelo-Farben */
  --green: #007b56;           /* Otelo-Grün dunkel: Akzent-TEXT, Schlusspunkt, Links, Primär-Button */
  --green-dark: #005c40;      /* Hover von Links und Buttons */
  --green-light: #75b84e;     /* Otelo-Grün hell: Verlaufsbeginn, kleine Punkte – nie Text auf Weiß */
  --green-grad: linear-gradient(135deg, #75b84e, #007b56);   /* wie das offizielle O-Zeichen */
  --green-tint: #e8f3ed;      /* zarte grüne Fläche (Chips, „nächster“-Zeile) */
  --yellow: #fcee33;          /* Villach-Gelb (Villach-Logo) = Markenfarbe: nur als FLÄCHE, Text darauf immer --ink */
  --yellow-dark: #f1e01f;     /* Hover der gelben Knöpfe */
  --yellow-tint: #fefbd6;     /* zarte gelbe Fläche („nächster Termin“) */
  --focus: #007b56;

  /* auf dunklen Flächen (.block-dunkel = --ink, Footer = --slate) */
  --dunkel-text: #dfe6e8;
  --dunkel-muted: #b4c1c6;
  --dunkel-line: rgba(255, 255, 255, 0.16);

  /* Typografie */
  --font-sans: "Fira Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-display: var(--font-sans);

  /* Maße */
  --gutter: 16px;
  --maxw: 70rem;              /* = 1120 px; in rem, damit große Bildschirme mitwachsen (html, unten) */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --header-h: 64px;
  --shadow-sm: 0 1px 2px rgba(28, 38, 43, 0.06);
  --shadow: 0 1px 2px rgba(28, 38, 43, 0.04), 0 12px 32px -18px rgba(28, 38, 43, 0.22);
  --shadow-hover: 0 1px 2px rgba(28, 38, 43, 0.05), 0 18px 40px -18px rgba(28, 38, 43, 0.3);
  --shadow-lg: 0 30px 80px -30px rgba(28, 38, 43, 0.45);

  /* Kompatibilität mit portiertem Code aus cld.css (nur diese Namen, keine neuen verwenden) */
  --text: var(--ink);
  --accent: var(--green);
  --glass: var(--bg);
  --glass-2: var(--bg-soft);
  --panel-line: var(--line);
  color-scheme: light;
}
@media (min-width: 720px) {
  :root { --gutter: 28px; --header-h: 4.75rem; }
}
/* Große Bildschirme (wie cld.css): ab 1440 px wächst die Grundschrift mit der Fensterbreite
   (1440 → 16 px, 1920 → 21,3 px, 2560 → 28,4 px, bis 3600 px → 40 px). Alles ist in rem angegeben,
   darum sieht die Seite auf 2K/4K aus wie das 1440-px-Layout, nur größer. */
@media (min-width: 1440px) {
  html { font-size: clamp(100%, calc(100vw / 90), 250%); }
  :root { --gutter: 1.75rem; }
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;           /* Fallback */
  overflow-x: clip;             /* verhindert Seitwärts-Scrollen ohne Sticky zu brechen */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
}
/* hidden gilt immer – auch für Elemente mit eigenem display (z. B. .btn ist inline-flex) */
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
@media (max-width: 359px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.75rem; }
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.25em 0; }
li::marker { color: var(--green); }
strong, b { color: var(--ink); font-weight: 700; }
em, i { font-style: italic; }
small { font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--yellow); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  margin: 0 0 1em;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 400 0.88rem/1.6 var(--font-mono);
  color: var(--ink);
}
pre code { padding: 0; border: 0; background: none; font-size: inherit; overflow-wrap: normal; }
address { font-style: normal; }

/* ---------- Utilities ---------- */
.wrap, .container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap--narrow, .container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.accent { color: var(--green); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.sr-only, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -10rem;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:hover { color: #fff; background: var(--green-dark); }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top)); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Header / Navigation ----------
   Weiß, sticky; die feine Linie und der Schatten erscheinen erst beim Scrollen (otelo.js setzt .is-scrolled).
   Logo links (otelo-villach.svg, Höhe fix, Breite aus der Datei), Navigation rechts, „Kontakt“ als gelbe Pille,
   die aktuelle Seite mit einem gelben Balken darunter (wie der „villach“-Block im Logo). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(28, 38, 43, 0.45); }
.no-js .site-header { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}
.brand:hover { color: var(--ink); }
/* otelo-villach.svg ist 6,55 : 1 – 30 px hoch = 197 px breit, passt neben „Menü“ ab 320 px */
.brand__logo { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
@media (min-width: 720px) {
  .brand__logo { height: 2.375rem; }
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: 600 0.9rem/1 var(--font-sans);
  cursor: pointer;
  flex: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-toggle:hover { border-color: var(--green); }
.nav-toggle__icon { width: 18px; height: 12px; position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease, top .2s ease;
}
.nav-toggle__icon::before { top: 1px; }
.nav-toggle__icon::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 5px; transform: rotate(-45deg); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.site-nav li { margin: 0; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--green); }
/* Aktuelle Seite: Tinte, darunter ein gelber Balken (Villach-Gelb, freigegebenes Mockup) */
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
}
/* „Kontakt“ als gelbe Pille (wie „Jetzt anfragen“ auf netsnek.com) */
.site-nav a.site-nav__cta {
  margin-left: 8px;
  padding: 0 20px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}
.site-nav a.site-nav__cta:hover { background: var(--yellow-dark); color: var(--ink); }

/* Sehr schmale Handys (< 360 px): Menü-Button nur als Symbol (Name „Menü“ bleibt für Screenreader). */
@media (max-width: 359px) {
  .nav-toggle { font-size: 0; gap: 0; padding: 0 13px; min-width: 44px; justify-content: center; }
}

/* Mobil: Menü-Button (nur wenn JS läuft; ohne JS bleibt die Liste sichtbar) */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .no-js .site-nav { padding-bottom: 10px; }
  .no-js .site-nav a.site-nav__cta { margin-left: 0; }
  /* Mit JS: Menü klappt als weißes Panel UNTER der Kopfzeile auf (überlagert die Seite), die Kopfzeile
     selbst behält ihre Höhe. Geschlossen ist es visibility:hidden – also nicht fokussierbar. */
  .js .site-header__inner { flex-wrap: nowrap; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    padding: 6px max(var(--gutter), env(safe-area-inset-right)) 22px max(var(--gutter), env(safe-area-inset-left));
    max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(28, 38, 43, 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
  }
  .js .site-header:has(.site-nav.is-open) { background: var(--bg); border-bottom-color: var(--line); }
  /* Abdunkelung der Seite unter dem offenen Menü: eigene fixe Ebene unter der Kopfzeile (z-index 50).
     Kein riesiger box-shadow am Panel – WebKit (iPhone) rechnete ihn in die Seitenhöhe ein (cld.css-Erfahrung).
     Tipp darauf schließt (otelo.js). */
  .js body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(28, 38, 43, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.28s;
  }
  .js body:has(.site-nav.is-open)::after { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.22s ease, visibility 0s; }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
  }
  .js .site-nav li { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js .site-nav.is-open li { opacity: 1; transform: none; }
  .js .site-nav.is-open li:nth-child(2) { transition-delay: 0.03s; }
  .js .site-nav.is-open li:nth-child(3) { transition-delay: 0.06s; }
  .js .site-nav.is-open li:nth-child(4) { transition-delay: 0.09s; }
  .js .site-nav.is-open li:nth-child(n+5) { transition-delay: 0.12s; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a {
    display: flex;
    min-height: 54px;
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 600;
  }
  /* im aufgeklappten Menü: Balken links neben dem Eintrag */
  .js .site-nav a[aria-current="page"]::after { position: static; order: -1; flex: none; width: 4px; height: 1.4em; margin: 0 12px 0 0; }
  .js .site-nav a.site-nav__cta {
    justify-content: center;
    margin: 18px 0 0;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
  }
  .no-js-hint { display: none; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(52px, 9vw, 96px) 0; }
.section--tight { padding: clamp(32px, 6vw, 56px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { margin-bottom: clamp(24px, 5vw, 44px); max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head .lead { margin: 0; }
.lead { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--text-2); line-height: 1.55; text-wrap: pretty; }

/* Eyebrow: Zeile in gesperrten Versalien über einer Überschrift – die Punkte sind farbig:
   <p class="eyebrow">Offen<span class="punkt">.</span> Kostenfrei<span class="punkt">.</span> Für alle<span class="punkt">.</span></p>
   Sparsam einsetzen (Hero, höchstens einzelne Sektionen), nicht über jeder Überschrift. */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
@media (max-width: 380px) {
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; }
}
/* Kleines Etikett (Fakten-Kacheln, Formularfelder) */
.label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

/* ---------- Farbspiel in Überschriften ----------
   .punkt  farbiger Schlusspunkt:   <h2>Termine<span class="punkt">.</span></h2>
   .akzent eine Zeile/ein Teil grün: <h2>Wir machen nichts – <span class="akzent">wir machen möglich.</span></h2>
   .zeile  eigene Zeile (mit .akzent kombinierbar, wie „nicht Monaten.“ auf netsnek.com)
   .marker Otelo-Gelb hinter dem Text (wie der „villach“-Block im Logo), Text bleibt --ink */
.punkt { color: var(--green); }
.akzent { color: var(--green); }
.zeile { display: block; }
.marker {
  color: var(--ink);
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.86em;
  background-position: 0 72%;
  padding: 0 0.14em;
  margin: 0 -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Terminal-Zeile (Kompatibilität mit portierten Seiten, z. B. Download-Fenster) ---------- */
.term {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.term__prompt { color: var(--green); margin-right: 0.5ch; }
.term--muted { color: var(--muted); }

/* ---------- Hero ----------
   Text links (Eyebrow, Überschrift mit Schlusspunkt, Lead, Buttons), Bild rechts (.hero__visual).
   .hero__muster: das Otelo-Muster (assets/img/muster.svg) ganz hell oben rechts, nach links unten
   ausgeblendet – wie das Pfeilmuster auf netsnek.com. Immer aria-hidden, liegt hinter dem Inhalt. */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 8vw, 96px) 0 clamp(52px, 9vw, 104px);
  overflow-x: hidden;   /* Fallback iOS < 16 */
  overflow-x: clip;
}
.hero__muster {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* muster.svg (1200 × 800) blendet selbst nach links unten aus; am Handy breiter als der Bildschirm */
  background: url("../img/muster.svg") right top / min(75rem, 160vw) auto no-repeat;
  pointer-events: none;
}
/* Handy/Tablet: Text steht im Muster – leiser, damit Eyebrow und Überschrift ruhig bleiben */
@media (max-width: 899px) {
  .hero__muster { opacity: 0.55; }
}
.hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(16px, 4vw, 28px);
}
.hero__topline > * { margin: 0; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero__text > :last-child { margin-bottom: 0; }
.hero h1, .hero__title { margin-bottom: clamp(16px, 3vw, 24px); }
.hero__lead { max-width: 36rem; color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(24px, 4vw, 32px) 0 0; }
.hero__visual { position: relative; margin: 0; min-width: 0; }
.hero__visual img { width: 100%; height: auto; }
/* Handy: Buttons gleich breit untereinander (≥ 48 px), ab 480 px nebeneinander */
@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
/* Große Überschrift (Kompatibilität .display aus cld.css) */
.display {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(16px, 4vw, 28px);
  -webkit-hyphens: manual;
  hyphens: manual;
}
.display__line { display: block; }
.display__line--accent { color: var(--green); }

/* Fakten-Kacheln (z. B. Mitgliedschaft · kostenfrei) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 12px;
  margin: 0 0 clamp(20px, 5vw, 32px);
}
.fact {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.fact__value {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.fact__value--sm { font-size: clamp(1.05rem, 3.2vw, 1.3rem); }
.fact__note { display: block; margin-top: 6px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

/* ---------- Motto  („Wir machen nichts – wir machen möglich.“) ----------
   <figure class="motto"><blockquote class="motto__text"><p>…</p></blockquote><figcaption class="motto__comment">…</figcaption></figure> */
.motto { margin: 0; }
.motto__text {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.motto__text p { margin: 0; }
.motto__comment { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.95rem; }
.motto--center { text-align: center; }

/* ---------- Karten ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 3vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.25rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21.25rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.125rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.75rem), 1fr)); }
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.card p, .card li { color: var(--muted); }
/* Bild oben in der Karte, mit Innenabstand und eigener Rundung wie auf netsnek.com */
.card__bild {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 0 18px;
  border-radius: calc(var(--radius) - 6px);
  background: var(--bg-soft);
}
.card__bild--contain { object-fit: contain; padding: 8%; }
/* Zeichen/Symbol oben in der Karte (z. B. das O-Zeichen oder ein Icon) */
.card__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin: 0 0 16px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  flex: none;
}
.card__icon img, .card__icon svg { width: 60%; height: 60%; }
.card__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.01em; }
/* Link am Kartenende („Weiterlesen“); mit .card--flex sitzt er in gleich hohen Karten immer unten */
.card__mehr { margin: 0; padding-top: 12px; font-weight: 600; font-size: 0.95rem; }
.card--flex { display: flex; flex-direction: column; }
.card--flex > .card__mehr { margin-top: auto; }
.card__mehr a { text-decoration: none; }
.card__mehr a:hover { text-decoration: underline; }
.card--accent { border-color: #bcdccb; background: linear-gradient(180deg, var(--green-tint), var(--bg) 70%); }
.card--soft { background: var(--bg-soft); box-shadow: none; }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card--link:hover { border-color: var(--line-strong); color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card--link:hover h3 { color: var(--green); }

/* Weißes Panel (Kompatibilität .panel-light aus cld.css: dort hell auf dunkel, hier erhöhte Fläche) */
.panel-light {
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 5vw, 44px);
  box-shadow: var(--shadow);
}

/* ---------- Dunkler Kontrastblock (einmal pro Seite, z. B. Kontakt: „Erzähl uns von deiner Idee.“) ----------
   Abgerundet, Fast-Schwarz (--ink) wie der Block auf netsnek.com. .block-dunkel--schiefer = Otelo-Schiefer.
   Optional .block-dunkel__deko: großes Otelo-Zeichen ganz leise im Hintergrund (img mit alt=""). */
.block-dunkel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--dunkel-text);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 64px);
}
.block-dunkel--schiefer { background: var(--slate); }
.block-dunkel h2, .block-dunkel h3, .block-dunkel h4, .block-dunkel strong, .block-dunkel b { color: #fff; }
.block-dunkel h2 { font-weight: 700; }
.block-dunkel p, .block-dunkel li { color: var(--dunkel-text); }
.block-dunkel .muted, .block-dunkel .label { color: var(--dunkel-muted); }
.block-dunkel .eyebrow { color: #fff; }
.block-dunkel .punkt, .block-dunkel .akzent { color: var(--green-light); }   /* 6,41 auf --ink */
.block-dunkel--schiefer .akzent { color: #fff; }                             /* hellgrün auf Schiefer nur 3,96 */
.block-dunkel a:not(.btn) { color: #fff; text-decoration-color: var(--green-light); }
.block-dunkel a:not(.btn):hover { color: #fff; text-decoration-color: var(--yellow); }
.block-dunkel :focus-visible { outline-color: var(--yellow); }
.block-dunkel li::marker { color: var(--green-light); }
.block-dunkel__grid { display: grid; gap: clamp(28px, 5vw, 48px); align-items: start; }
@media (min-width: 860px) {
  .block-dunkel__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.block-dunkel__deko {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -18%;
  width: min(62%, 26rem);
  opacity: 0.1;
  pointer-events: none;
}
/* Kontaktdaten wie auf netsnek.com: fettes Etikett, darunter der Link */
.kontakt-liste { display: grid; gap: 18px; margin: 0; }
.kontakt-liste dt { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.3; }
.kontakt-liste dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.block-dunkel .kontakt-liste dt { color: #fff; }

/* ---------- Logos: feste Kachel + object-fit (Fix für verzerrte Logos auf iOS, wie cld.css) ---------- */
.logo-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
@supports not (aspect-ratio: 1 / 1) {
  .logo-tile { height: 0; padding-top: 56.25%; }
}
.logo-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 12% 10%;
  object-fit: contain;
  object-position: center;
}
.logo-tile--square { aspect-ratio: 1 / 1; }
.logo-tile--wide { aspect-ratio: 3 / 1; }
.logo-tile--wide > img { padding: 8% 6%; }
.logo-tile--tall { aspect-ratio: 4 / 5; }
.logo-tile--flush > img { padding: 6%; }
.logo-tile--dunkel { background: var(--slate); border-color: var(--slate); }   /* für die weißen Logos */
.logo-tile--gelb { background: var(--yellow); border-color: var(--yellow); }
a.logo-tile { transition: transform .15s ease, box-shadow .15s ease; }
a.logo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Namensleiste (wie die Kundenlogos auf netsnek.com): z. B. die Otelo-Standorte aus der Charta als ruhige Textzeile,
   getrennt durch kleine grüne Punkte. Der eigene Standort mit .logo-leiste__hier (gelber Marker). */
.logo-leiste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.logo-leiste li { margin: 0; display: inline-flex; align-items: center; white-space: nowrap; }
.logo-leiste li + li::before {
  content: "";
  width: 7px; height: 7px;
  margin: 0 clamp(12px, 2.4vw, 22px);
  border-radius: 50%;
  background: var(--green-grad);
  flex: none;
}
.logo-leiste__hier {
  color: var(--ink);
  background: var(--yellow);
  padding: 0 0.3em;
  border-radius: 3px;
}
.logo-leiste--links { justify-content: flex-start; }

/* ---------- Chips (Tags, Inhaltsverzeichnis) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
  white-space: nowrap;
}
.chip--accent { background: var(--green-tint); border-color: var(--green-tint); color: var(--green); }
.chip--gelb { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip--mono { font-family: var(--font-mono); font-size: 0.76rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc li { margin: 0; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.toc a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--accent { background: var(--yellow); color: var(--ink); }
.badge--gruen { background: var(--green); color: #fff; }
.badge--ghost { background: transparent; color: var(--text-2); border-color: var(--line-strong); }

/* ---------- Buttons (Pillen) ----------
   .btn          neutral: weiß mit grauem Rand
   .btn--primary gefüllt Villach-Gelb, Schrift --ink (Brief §11)
   .btn--outline grüner Rand, grüne Schrift (Paar zu --primary, wie „Kontakt“ / „Projekte ansehen“)
   .btn--hell    auf dunklen Flächen: weiß, Hover Otelo-Gelb */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--ink); box-shadow: 0 10px 22px -14px rgba(28, 38, 43, 0.5); }
.btn--outline { background: var(--bg); border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green-tint); border-color: var(--green-dark); color: var(--green-dark); }
.btn--hell { background: #fff; border-color: #fff; color: var(--ink); }
.btn--hell:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--outline-hell { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline-hell:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--klein { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.block-dunkel .btn:not(.btn--primary):not(.btn--hell):not(.btn--outline-hell) { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* ---------- Termine ----------
   Einzelliste:  <ul class="termine"><li class="termin" data-date="2026-10-24">
                   <span class="termin__date"><time datetime="2026-10-24T18:00">Sa 24.10. · 18:00</time></span>
                   <span class="termin__title">Board Game Night</span><span class="termin__meta">Otelo Villach</span></li></ul>
   Tagesgruppen: <div class="termine-tage"><section class="termine-tag" data-date="2026-10-24" aria-labelledby="…">
                   <h3 class="termine-tag__datum">…</h3><ul class="termine">…</ul></section></div>
   otelo.js setzt .is-past (vor heute, Europe/Vienna), .is-heute und beim ersten kommenden Termin .is-next.
   Vergangene Tagesgruppen werden ausgeblendet; einzelne vergangene Termine grau durchgestrichen –
   mit .termine--nur-kommende ebenfalls ausgeblendet. */
.termine {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  --termin-datum-w: 9.5rem;
}
.termin {
  display: grid;
  grid-template-columns: var(--termin-datum-w) minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 18px;
  margin: 0;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.termin__date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
}
.termin__title { color: var(--ink); font-weight: 600; line-height: 1.35; min-width: 0; overflow-wrap: break-word; }
.termin__title a { color: var(--ink); text-decoration-color: var(--green-light); }
.termin__title a:hover { color: var(--green); }
.termin__meta { grid-column: 2; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.termin.is-past { opacity: 0.6; }
.termin.is-past .termin__date { color: var(--muted); }
.termin.is-past .termin__date, .termin.is-past .termin__title { text-decoration: line-through; text-decoration-thickness: 1px; }
.termine--nur-kommende .termin.is-past { display: none; }
.termin.is-next { background: linear-gradient(90deg, var(--yellow-tint), rgba(254, 251, 214, 0) 80%); }
.termin.is-next .termin__date::after,
.termine-tag.is-heute .termine-tag__datum::after {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: 2px;
}
.termin.is-next .termin__date::after { content: "nächster"; display: table; margin: 6px 0 0; background: var(--yellow); color: var(--ink); }   /* unter dem Datum: die Datumsspalte ist fix breit */
.termine-tag.is-heute .termine-tag__datum::after { content: "heute"; display: table; margin: 6px 0 0; background: var(--yellow); color: var(--ink); }
/* Tagesgruppen: Datum links, Termine des Tages rechts (ab 760 px). Ruhig: eine Linie je Tag statt Linien um
   jeden Termin, der Termin selbst nur mit runden Ecken (für die „nächster“-Fläche). */
.termine-tage { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.termine-tag { display: grid; gap: 10px; min-width: 0; padding: 14px 0 12px; border-top: 1px solid var(--line); }
.termine-tag.is-past { display: none; }
.termine-tag__datum { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.termine-tag__datum small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.termine-tag .termine { --termin-datum-w: 7.25rem; }
.termine-tage .termine { border-top: 0; }
.termine-tage .termin { padding: 8px 6px; border-bottom: 0; border-radius: var(--radius-sm); }
/* Leer-Hinweis unter der letzten (ausgeblendeten) Tagesgruppe */
.termine-tage > .termine-leer { margin: 16px 0; }
@media (min-width: 760px) {
  .termine-tag { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; align-items: start; }
  .termine-tag__datum { padding-top: 6px; }
}
/* Fallback-Hinweis, wenn alle Termine vorbei sind (otelo.js entfernt hidden): <p class="termine-leer" data-termine-leer hidden>…</p> */
.termine-leer { margin: 16px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); color: var(--text-2); }
.termine-stand { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 420px) {
  .termin { grid-template-columns: minmax(0, 1fr); padding: 12px 4px; }
  .termin__meta { grid-column: 1; }
}

/* ---------- Fließtext (Impressum, Datenschutz, Charta) ---------- */
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); font-weight: 700; margin-top: 1.8em; }
.prose h3 { font-size: clamp(1.15rem, 2.6vw, 1.3rem); margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote > :last-child { margin-bottom: 0; }

/* Definitionsliste (Impressum-Daten) */
.dl { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0; }
.dl dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .dl { grid-template-columns: minmax(9rem, max-content) 1fr; }
  .dl dt { margin-top: 0; padding: 14px 24px 12px 0; border-bottom: 1px solid var(--line); }
  .dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Bilder ---------- */
.figure { margin: 0; }
.figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.figure--frei img { border: 0; background: none; border-radius: 0; }   /* freigestellte Grafik/Logo */
.figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

/* Zurück-Link (Winkel per CSS, kein Pfeilzeichen nötig) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: -12px 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.back-link::before {
  content: "";
  width: 7px; height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}
.back-link:hover { color: var(--ink); }

/* ---------- Karte (OpenStreetMap) ---------- */
.map {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 16rem;          /* Handy: Platz neben der OSM-Quellenangabe */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  -webkit-mask-image: -webkit-radial-gradient(white, black);   /* WebKit: Iframe an den runden Ecken abschneiden */
}
@media (min-width: 720px) {
  .map { aspect-ratio: 16 / 10; }
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- FAQ (details/summary) ---------- */
.faq { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26.25rem), 1fr)); align-items: start; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  min-height: 58px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq summary:hover::after { background: var(--green); color: #fff; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq details > div { padding: 0 20px 20px; color: var(--text-2); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Banner: wichtige Nachricht direkt nach dem Hero ----------
   Zart grüne Fläche, Titel mit grüner zweiter Zeile, Punkte als Liste, ein Primärknopf.
   Die Sektion bekommt .section--banner (kein Abstand oben). Ab 900 px: links Kopf + Knopf, rechts die Punkte. */
.section--banner { padding-top: 0; }
.banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid #cfe4d8;
  border-radius: var(--radius-lg);
  background: var(--green-tint);
}
.banner .eyebrow { margin-bottom: 12px; }
.banner__titel { margin: 0; font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.banner__akzent { display: block; color: var(--green); }
.banner__text { margin: 12px 0 0; color: var(--text-2); }
.banner__punkte { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cfe4d8; }
.banner__punkte li { margin: 0; padding: 11px 0; border-bottom: 1px solid #cfe4d8; }
.banner__punkt { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; color: var(--ink); font-weight: 600; line-height: 1.35; }
.banner__punkt time { font: 500 0.85rem/1.35 var(--font-mono); color: var(--green); }
.banner__knopf { justify-self: start; }
@media (max-width: 559px) {
  .banner__knopf { justify-self: stretch; }
}
@media (min-width: 900px) {
  .banner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "kopf punkte" "knopf punkte";
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }
  .banner__kopf { grid-area: kopf; }
  .banner__punkte { grid-area: punkte; }
  .banner__knopf { grid-area: knopf; align-self: end; }
}

/* ---------- CTA-Leiste: ein Satz + ein Knopf, z. B. „Charta als PDF“ oder „Kalender abonnieren“ ---------- */
.cta-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: clamp(20px, 4vw, 28px) clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.cta-leiste__text { margin: 0; color: var(--ink); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; }
.cta-leiste__text small { display: block; margin-top: 4px; font-size: 0.95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.cta-leiste--gelb { background: var(--yellow); border-color: var(--yellow); box-shadow: none; }
.cta-leiste--gelb .cta-leiste__text small { color: var(--ink); }
.cta-leiste--gelb a:not(.btn) { color: var(--ink); }
@media (max-width: 559px) {
  .cta-leiste .btn { flex: 1 1 100%; }
}

/* ---------- Eingebettete Inhalte erst nach Klick (Zwei-Klick-Lösung, z. B. Google Kalender) ----------
   <div class="embed-zustimmung" id="kalender">
     <div class="embed-zustimmung__inhalt">
       <p class="embed-zustimmung__titel">Google Kalender</p>
       <p class="embed-zustimmung__hinweis">Erst nach Klick … <a href="datenschutz.html#…">Datenschutz</a></p>
       <button class="btn btn--primary" type="button">Kalender laden</button>
       <p class="embed-zustimmung__alternative"><a href="…ics">Kalender abonnieren (ICS)</a></p>
     </div>
   </div>
   Das Skript (kalender.js) hängt danach das <iframe> in .embed-zustimmung und setzt .is-geladen. */
.embed-zustimmung {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 30rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
@media (min-width: 720px) {
  .embed-zustimmung { aspect-ratio: 16 / 10; min-height: 30rem; }
}
.embed-zustimmung::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/muster.svg") right top / min(75rem, 160vw) auto no-repeat;
  pointer-events: none;
}
.embed-zustimmung__inhalt {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 34rem;
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
}
.embed-zustimmung__inhalt > * { margin: 0; }
.embed-zustimmung__titel { color: var(--ink); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }
.embed-zustimmung__hinweis { color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.embed-zustimmung__alternative { font-size: 0.92rem; color: var(--muted); }
.embed-zustimmung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.embed-zustimmung.is-geladen { background: #fff; }
.embed-zustimmung.is-geladen::before, .embed-zustimmung.is-geladen .embed-zustimmung__inhalt { display: none; }

/* ---------- Footer: Otelo-Schiefer wie der Hintergrund des Villach-Logos, weißes Logo ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--slate);
  color: var(--dunkel-text);
  padding: clamp(44px, 7vw, 72px) 0 calc(28px + env(safe-area-inset-bottom));
}
main + .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; gap: 32px 24px; grid-template-columns: minmax(0, 1fr); }
/* ab 360 px: Marke und Kontakt über die ganze Breite, „Seiten“ und „Rechtliches“ nebeneinander */
@media (min-width: 360px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__marke, .site-footer__kontakt { grid-column: 1 / -1; }
}
@media (min-width: 600px) {
  .site-footer__kontakt { grid-column: auto; }
}
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr); }
  .site-footer__marke, .site-footer__kontakt { grid-column: auto; }
}
.site-footer__logo { display: inline-flex; min-height: 44px; align-items: center; border-radius: 6px; }
.site-footer__logo img { height: 2.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.site-footer__marke p { max-width: 22rem; margin: 16px 0 0; color: var(--dunkel-muted); font-size: 0.95rem; }
.site-footer h2 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dunkel-text);
  text-decoration: none;
}
@media (min-width: 960px) {
  .site-footer li a { min-height: 36px; }
}
.site-footer a:not(.btn) { color: var(--dunkel-text); text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.site-footer address { color: var(--dunkel-text); line-height: 1.6; margin: 0 0 6px; }
.site-footer p { margin: 0; }
.site-footer .punkt { color: var(--green-light); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--dunkel-line);
  font-size: 0.88rem;
  color: var(--dunkel-muted);
}
.site-footer__bottom a:not(.btn) { color: #fff; text-decoration: underline; }
.site-footer__bottom p { color: var(--dunkel-muted); }
/* „Webdesign: Netsnek“, „gesponsert vom Verein Carinthian Linux Days“ und „alte Website: bis 2026“ wie auf
   carinthianlinuxday.at: hinter dem Copyright, getrennt durch „·“; unter 960 px (Handy, Tablet) je eine eigene
   Zeile, weil die Zeile sonst mitten drin mit „·“ umbricht */
.site-footer__credit { white-space: nowrap; }
.site-footer__credit::before { content: "· "; }
@media (max-width: 959px) {
  .site-footer__credit { display: block; margin-top: 4px; }
  .site-footer__credit::before { content: none; }
}

/* ---------- Hintergrundbilder (hintergrundbilder.html, Logik: assets/js/hintergrund.js) ----------
   Klassen wie auf carinthianlinuxday.at: Motivkarten → je Motiv ein Download-Fenster (HTML-Popover,
   öffnet auch ohne JavaScript) mit der Werkbank (Vorschau, Gerät, PNG) → Auswahl als <dialog>. */
.hg-title { font-size: clamp(2.6rem, 9vw, 5.2rem); margin-bottom: clamp(16px, 4vw, 24px); }
/* Geräte-Chip „Dein Bildschirm: 1179 × 2556 px · passt zu iPhone 15“ */
.hg-geraet-zeile {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--muted);
}
.hg-geraet-zeile::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-grad); flex: none; }
.hg-geraet-zeile b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: 0.88rem; }
.no-js .hg-geraet-zeile { display: none; }
@media (max-width: 479px) {
  .hg-geraet-zeile { border-radius: var(--radius); }
}

/* Motivkarten (Handy-förmig): 2 je Reihe, ab 680 px 4 (sieben bis acht Motive = zwei Reihen). Flex statt Grid,
   damit eine unvollständige letzte Reihe mittig steht. Ab 1100 px zeigt die Vorschau 9 : 16 (Mitte des Motivs),
   damit zwei Reihen nicht den ganzen Bildschirm füllen – das Fenster zeigt dann das ganze Format. */
.hg-karten { --hg-spalten: 2; --hg-abstand: 14px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--hg-abstand); }
.hg-karten > .hg-karte { flex: 0 0 calc((100% - (var(--hg-spalten) - 1) * var(--hg-abstand)) / var(--hg-spalten)); }
@media (min-width: 680px) { .hg-karten { --hg-spalten: 4; --hg-abstand: 18px; } }
@media (min-width: 1100px) {
  .hg-karten { --hg-abstand: 22px; }
  .hg-karten .hg-karte__bild img { aspect-ratio: 9 / 16; }
}
.hg-karte {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.hg-karte:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.hg-karte__bild { display: block; padding: 0; border: 0; background: var(--bg-soft); border-radius: 10px; overflow: hidden; cursor: pointer; }
.hg-karte__bild img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 10px;
  outline: 1px solid rgba(28, 38, 43, 0.1);   /* weißes Motiv bleibt auf der weißen Karte sichtbar */
  outline-offset: -1px;
  transition: transform .3s ease;
}
.hg-karte__bild:hover img { transform: scale(1.03); }
.hg-karte__name { margin: 8px 4px 0; font-size: 1.05rem; }
.hg-karte__text { margin: 0 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.4; flex: 1; }
.hg-karte__knopf { margin: 8px 4px 0; justify-content: center; min-height: 44px; padding: 0 12px; }

/* Download-Fenster: natives Popover (Escape und Klick daneben schließen), am Handy als Blatt von unten */
.hg-dialog[popover] {
  width: min(100% - 32px, 58rem);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--text-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity .22s ease, transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), overlay .3s allow-discrete, display .3s allow-discrete;
}
.hg-dialog[popover]:popover-open { opacity: 1; transform: none; }
@starting-style { .hg-dialog[popover]:popover-open { opacity: 0; transform: translateY(16px) scale(0.98); } }
.hg-dialog::backdrop { background: rgba(28, 38, 43, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html:has(.hg-dialog:popover-open) { overflow: hidden; }
@media (max-width: 679px) {
  .hg-dialog[popover] {
    width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0;
    transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom);
  }
  @starting-style { .hg-dialog[popover]:popover-open { transform: translateY(40px); } }
}
/* Browser ohne Popover: Fenster erscheinen per Skript (Klasse .hg-offen) als Ebene */
.kein-popover .hg-dialog { display: none; position: fixed; inset: 0; z-index: 100; }
.kein-popover .hg-dialog.hg-offen { display: block; opacity: 1; transform: none; }
.hg-dialog__kopf {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px;
  padding: 16px 20px 14px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.hg-dialog__kopf .term, .hg-dialog__kopf .eyebrow { grid-column: 1; margin: 0 0 4px; font-size: 0.72rem; }
.hg-dialog__kopf h2 { grid-column: 1; margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.hg-dialog__zu {
  grid-column: 2; grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.hg-dialog__zu:hover { background: var(--bg-soft); border-color: var(--ink); }
.hg-dialog__inhalt { padding: 20px 20px 24px; }
.hg-dialog__hinweis { margin: 10px 0 0; font-size: 0.88rem; color: var(--muted); }
.js .hg-nurohnejs { display: none; }
#hg-werkbank-ablage { display: none; }

/* Werkbank im Fenster: Vorschau links, Bedienung rechts */
.hg-wb { display: grid; gap: 18px 28px; }
@media (min-width: 760px) {
  .hg-wb { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  /* Querformat (Laptop, Monitor): Vorschau über die volle Breite oben, Bedienung darunter */
  .hg-wb--quer { grid-template-columns: minmax(0, 1fr); }
  .hg-wb--quer .hg-vorschau { --vh-max: 44vh; }
}
/* Größe aus dem Seitenverhältnis (--ar = Breite/Höhe, vom Skript): nie höher als --vh-max, nie breiter als die Spalte */
.hg-vorschau {
  --vh-max: 52vh;
  position: relative;
  margin: 0 auto;
  width: min(100%, calc(var(--vh-max) * var(--ar, 0.4615)));
  aspect-ratio: 9 / 19.5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
@media (max-width: 759px) { .hg-vorschau { --vh-max: 34vh; } }
.hg-vorschau img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease; }
.hg-vorschau.is-laedt img { opacity: 0.4; }
.hg-feld { display: block; margin: 0 0 6px; font-size: 0.74rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hg-erkannt { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); }
.hg-erkannt__groesse { display: block; color: var(--ink); font-size: 1.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
.hg-erkannt__name { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.hg-aktion { display: grid; gap: 10px; }
.hg-aktion .btn { width: 100%; min-height: 52px; justify-content: center; }
.hg-status { min-height: 1.4em; margin: 2px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.hg-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-input);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.3 var(--font-sans);   /* ≥ 16 px: iOS zoomt beim Fokus nicht */
}
.hg-input::placeholder { color: var(--muted); opacity: 1; }
.hg-input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.hg-waehlen { margin-top: 14px; width: 100%; }
.hg-auswahl {
  width: min(40rem, calc(100vw - 24px));
  max-height: min(44rem, calc(100dvh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hg-auswahl[open] { display: flex; flex-direction: column; }
.hg-auswahl::backdrop { background: rgba(28, 38, 43, 0.5); }
.hg-auswahl__kopf, .hg-reiter, .hg-auswahl__fuss { flex: none; }   /* nur der Inhalt rollt */
.hg-auswahl__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.hg-auswahl__kopf h2 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.hg-reiter { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.hg-reiter [role="tab"] {
  min-height: 44px; padding: 0 12px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); font: 600 0.92rem/1 var(--font-sans); cursor: pointer; white-space: nowrap;
}
.hg-reiter [role="tab"]:hover { color: var(--ink); }
.hg-reiter [role="tab"][aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }
.hg-reiter [role="tab"]:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.hg-auswahl__inhalt { padding: 14px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.hg-auswahl__hinweis { margin: 0 0 12px; color: var(--text-2); font-size: 0.92rem; }
.hg-typen { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.hg-typ {
  min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text-2);
  font: 500 0.88rem/1 var(--font-sans); cursor: pointer;
}
.hg-typ:hover { border-color: var(--green); color: var(--green); }
.hg-typ[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.hg-auswahl .hg-treffer { max-height: none; border: 0; background: none; padding: 0; margin-top: 8px; }
.hg-formate { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 8px; }
.hg-formate li { margin: 0; }
.hg-format {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px;
  align-items: center; text-align: left;
  padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.hg-format:hover, .hg-format:focus-visible { border-color: var(--green); }
.hg-format[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); }
.hg-format__bild { grid-row: 1 / 4; display: grid; place-items: center; width: 34px; height: 34px; }
.hg-format__bild span { display: block; border: 2px solid var(--green); border-radius: 3px; }
.hg-format__name { font: 500 0.95rem/1.2 var(--font-mono); }
.hg-format__info, .hg-format__px { color: var(--muted); font-size: 0.74rem; line-height: 1.3; }
.hg-auswahl__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.hg-auswahl__jetzt { margin: 0 auto 0 0; color: var(--text-2); font-size: 0.92rem; }
.hg-auswahl__jetzt b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
@media (max-width: 520px) {
  .hg-auswahl { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .hg-auswahl__jetzt { flex-basis: 100%; }
  .hg-auswahl__fuss .btn { flex: 1 1 0; }
}
.hg-suche { position: relative; margin-top: 8px; }
.hg-treffer {
  list-style: none; margin: 6px 0 0; padding: 6px; max-height: 15rem; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line-input); border-radius: var(--radius-sm);
}
.hg-treffer li { margin: 0; }
.hg-treffer button {
  display: flex; width: 100%; justify-content: space-between; gap: 12px; align-items: baseline; text-align: left; cursor: pointer;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 0.98rem/1.3 var(--font-sans);
}
.hg-treffer button:hover, .hg-treffer button:focus-visible { background: var(--bg-soft); }
.hg-treffer button[aria-pressed="true"] { background: var(--green-tint); }
.hg-treffer small { color: var(--muted); font-family: var(--font-mono); font-size: 0.76rem; white-space: nowrap; }
.hg-treffer__leer { padding: 10px 12px; color: var(--muted); font-size: 0.92rem; }
.hg-schnell { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.hg-schnell .btn { min-height: 40px; font-size: 0.88rem; padding: 0 14px; }
.hg-groesse { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.hg-groesse__mal { padding-bottom: 12px; color: var(--muted); font-family: var(--font-mono); }
.hg-drehen { min-height: 48px; min-width: 48px; padding: 0 12px; }
.hg-optionen { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.hg-optionen legend { padding: 0; margin-bottom: 4px; }
.hg-check { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink); }
.hg-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; }
.hg-check[hidden] { display: none; }
.hg-svg { display: inline-block; margin-top: 12px; font-size: 0.92rem; }

/* „So setzt du dein Hintergrundbild“: Karten je System, Schritte nummeriert (echte Abfolge) */
.hg-anleitung { display: grid; gap: clamp(12px, 2.4vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.hg-anleitung .card h3 { font-size: 1.1rem; }
.hg-anleitung .card p, .hg-anleitung .card li { font-size: 0.95rem; }
.hg-anleitung .card ol { margin: 0; padding-left: 1.2em; }
.hg-ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.hg-ablauf li { counter-increment: schritt; position: relative; margin: 0; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.hg-ablauf li::before { content: counter(schritt); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font: 700 0.8rem/1 var(--font-sans); }
.hg-ablauf b { display: block; color: var(--ink); }
/* Befehl zum Kopieren (z. B. gsettings unter GNOME): ganzer Kasten klickbar, Marke „Kopieren“ rechts */
.hg-befehl {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 16px; cursor: copy;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: border-color .2s ease, background .2s ease;
}
.hg-befehl:hover { border-color: var(--green); }
.hg-befehl code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--ink); font: 400 0.86rem/1.5 var(--font-mono); cursor: text; }
.hg-befehl code .term__prompt { color: var(--green); }
.hg-befehl__marke {
  flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--green); background: var(--bg); color: var(--green);
  font: 600 0.8rem/1 var(--font-sans); white-space: nowrap; cursor: copy;
  transition: color .2s ease, background-color .2s ease;
}
.hg-befehl:hover .hg-befehl__marke { background: var(--green); color: #fff; }
.hg-befehl.ist-kopiert { border-color: var(--green); background: var(--green-tint); }
.hg-befehl.ist-kopiert .hg-befehl__marke { background: var(--green); color: #fff; }
@media (max-width: 559px) {
  .hg-befehl { display: block; padding: 12px 14px; }
  .hg-befehl code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
  .hg-befehl__marke { display: block; width: fit-content; margin: 10px 0 0; }
}

/* ==========================================================================
   Doodles – handgezeichnete Strich-Icons im Stil des Schaufensters „Freiraum Otelo“ (Brief §10/§11)
   Dateien: assets/img/doodles/*.svg, gebaut von tools/doodles-bauen.py (Strich = currentColor,
   2,4 Einheiten im 64er-Raster, runde Enden). Einsatz, Größen und Inline-Schnipsel: okf/design-system/doodles.md.
   Selbstzeichnen: .zeichnen + .is-visible (otelo.js, Abschnitt 5) bzw. .zeichnen--sofort (beim Laden).
   ========================================================================== */
/* ---------- Als Bild: <img class="doodle"> – immer schwarz (currentColor wirkt im Bild nicht) ---------- */
.doodle {
  display: inline-block;
  flex: none;
  width: var(--doodle-size, 2.5rem);
  height: var(--doodle-size, 2.5rem);
  vertical-align: middle;
  color: inherit;                 /* wirkt bei Inline-SVG und .doodle-mask */
}
img.doodle { object-fit: contain; }
.doodle--breit { width: calc(var(--doodle-size, 2.5rem) * 5 / 3); }        /* Sprechblasen 160 × 96 */
.doodle--quer { width: calc(var(--doodle-size, 2.5rem) * 2.5); }           /* kreis-pfeile 240 × 96 */

/* ---------- Maskenvariante: beliebige Farbe über color ----------
   <span class="doodle-mask doodle-mask--tasse doodle--gruen" aria-hidden="true"></span>
   Das SVG ist nur die Maske, die Fläche dahinter hat die Textfarbe. */
.doodle-mask {
  display: inline-block;
  flex: none;
  width: var(--doodle-size, 2.5rem);
  height: var(--doodle-size, 2.5rem);
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: var(--doodle) center / contain no-repeat;
          mask: var(--doodle) center / contain no-repeat;
}
.doodle-mask.doodle--breit { width: calc(var(--doodle-size, 2.5rem) * 5 / 3); }
.doodle-mask.doodle--quer { width: calc(var(--doodle-size, 2.5rem) * 2.5); }

.doodle-mask--tasse          { --doodle: url("../img/doodles/tasse.svg"); }
.doodle-mask--bleistift      { --doodle: url("../img/doodles/bleistift.svg"); }
.doodle-mask--espressokanne  { --doodle: url("../img/doodles/espressokanne.svg"); }
.doodle-mask--zweig          { --doodle: url("../img/doodles/zweig.svg"); }
.doodle-mask--fliege         { --doodle: url("../img/doodles/fliege.svg"); }
.doodle-mask--sprechblase    { --doodle: url("../img/doodles/sprechblase.svg"); }
.doodle-mask--sprechblase-lei-eina { --doodle: url("../img/doodles/sprechblase-lei-eina.svg"); }
.doodle-mask--gluehbirne     { --doodle: url("../img/doodles/gluehbirne.svg"); }
.doodle-mask--zahnrad        { --doodle: url("../img/doodles/zahnrad.svg"); }
.doodle-mask--buch           { --doodle: url("../img/doodles/buch.svg"); }
.doodle-mask--wuerfel        { --doodle: url("../img/doodles/wuerfel.svg"); }
.doodle-mask--sprechblasen   { --doodle: url("../img/doodles/sprechblasen.svg"); }
.doodle-mask--weltkugel      { --doodle: url("../img/doodles/weltkugel.svg"); }
.doodle-mask--kalender       { --doodle: url("../img/doodles/kalender.svg"); }
.doodle-mask--ortsmarke      { --doodle: url("../img/doodles/ortsmarke.svg"); }
.doodle-mask--brief          { --doodle: url("../img/doodles/brief.svg"); }
.doodle-mask--telefon        { --doodle: url("../img/doodles/telefon.svg"); }
.doodle-mask--herz           { --doodle: url("../img/doodles/herz.svg"); }
.doodle-mask--schere         { --doodle: url("../img/doodles/schere.svg"); }
.doodle-mask--hand           { --doodle: url("../img/doodles/hand.svg"); }
.doodle-mask--stadtpfarrturm { --doodle: url("../img/doodles/stadtpfarrturm.svg"); }
.doodle-mask--drau           { --doodle: url("../img/doodles/drau.svg"); }
.doodle-mask--dobratsch      { --doodle: url("../img/doodles/dobratsch.svg"); }
.doodle-mask--kreis-pfeile   { --doodle: url("../img/doodles/kreis-pfeile.svg"); }
.doodle-mask--unterstreichung { --doodle: url("../img/doodles/unterstreichung.svg"); }

/* Kräftiger Strich für kleine Größen (nur Inline-SVG: CSS schlägt das stroke-width-Attribut der Datei) */
.doodle--kraeftig { stroke-width: 3.2; }

/* Farben (Inline-SVG und Maske; ein <img> bleibt schwarz) */
.doodle--gruen  { color: var(--green, #007b56); }
.doodle--tinte  { color: var(--ink, #1c262b); }
.doodle--leise  { color: var(--muted, #5f6e73); }
.doodle--weiss  { color: #fff; }

/* Hoher Kontrast (Windows): Maske in Systemtextfarbe statt verschwinden */
@media (forced-colors: active) {
  .doodle-mask, .schild::before, .schild::after { forced-color-adjust: none; background-color: CanvasText; }
}

/* ---------- Schild „Freiraum Otelo“: gelbes Band wie über dem Schaufenster ----------
   <p class="schild"><span>Freiraum Otelo</span></p>
   Villach-Gelb mit --ink (Kontrast 14 : 1), Tasse links, Fliege rechts. Gerade Kanten wie ein Ladenschild,
   .schild--rund für eine Karte/Badge-Variante. Das fertige Band als Bild: assets/img/doodles/schild-band.svg */
.schild {
  --schild-doodle: 1.8em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9em;
  margin: 0;
  padding: 0.5em calc(var(--schild-doodle) + 1.1em);
  background: var(--yellow, #fcee33);
  color: var(--ink, #1c262b);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: center;
}
.schild::before,
.schild::after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--schild-doodle);
  height: var(--schild-doodle);
  margin-top: calc(var(--schild-doodle) / -2);
  background-color: currentColor;
  -webkit-mask: var(--doodle) center / contain no-repeat;
          mask: var(--doodle) center / contain no-repeat;
}
.schild::before { left: 0.7em;  --doodle: url("../img/doodles/tasse.svg"); }
.schild::after  { right: 0.7em; --doodle: url("../img/doodles/fliege.svg"); }
.schild--rund { border-radius: var(--radius-sm, 10px); }
.schild--klein { font-size: 1rem; --schild-doodle: 1.6em; min-height: 2.6em; }
@media (min-width: 768px) {
  .schild { --schild-doodle: 2.3em; padding-inline: calc(var(--schild-doodle) + 1.6em); }
  .schild::before { left: 1em; }
  .schild::after { right: 1em; }
}

/* ---------- Gruß-Sprechblase im Hero: „Lei eina, gheat dir!“ ----------
   Ohne Modifikator im Fluss (z. B. über der Überschrift); --schwebend setzt sie absolut an den Rand des
   nächsten positionierten Vorfahren (Hero). Auf schmalen Bildschirmen bleibt sie im Fluss. */
.sprechblase-gruss {
  display: block;
  width: var(--gruss-breite, clamp(10.5rem, 8rem + 14vw, 18rem));
  aspect-ratio: 160 / 96;
  margin: 0 0 1rem;
  color: var(--ink, #1c262b);
  transform: rotate(var(--gruss-drehung, -3deg));
  transform-origin: 85% 75%;
}
.sprechblase-gruss > img,
.sprechblase-gruss > svg { display: block; width: 100%; height: 100%; }
@media (min-width: 900px) {
  .sprechblase-gruss--schwebend {
    position: absolute;
    z-index: 1;
    top: var(--gruss-oben, 2rem);
    right: var(--gruss-rechts, 0);
    margin: 0;
  }
}

/* ---------- Kreis mit Pfeilen um einen Knopf (wie bei netsnek.com) ----------
   <span class="umkreist zeichnen"><a class="btn …">Schreib uns</a>
     <svg class="umkreist__kreis" …>Kringel</svg><svg class="umkreist__pfeile" …>Pfeile</svg></span>
   Die zwei SVGs sind die zwei inneren <svg> von assets/img/doodles/kreis-pfeile.svg (tools/doodles-bauen.py).
   Kringel: mit festen Rändern um den Knopf gespannt (preserveAspectRatio="none") – umschließt ihn bei jeder Breite
   eng; vector-effect: non-scaling-stroke hält den Marker-Strich dabei überall 0,6 rem dick.
   Pfeile: unverzerrt, der Ursprung ihrer viewBox liegt auf der rechten oberen Knopfecke (--kp-x/-y/-b/-h = viewBox
   in px, 1 px = 1/16 rem); wo rechts oder oben wenig Platz ist, werden sie um die Ecke gedreht und verkleinert.
   Beide liegen hinter dem Knopf (Fokusring bleibt sichtbar), Klicks gehen durch. .zeichnen sitzt am .umkreist,
   damit beide gemeinsam starten: erst zieht sich der Kringel (~0,7 s), dann die Pfeile nacheinander.
   Ränder und viewBox wie KP_RAND bzw. die Datei – ändert sich der Generator, hier mitziehen. */
.umkreist {
  position: relative;
  display: inline-flex;
  isolation: isolate;
}
.umkreist > .btn { position: relative; z-index: 1; }
/* Kringel, Pfeile und Unterstreichung sind absichtlich größer als ihr Knopf/Wort: max-width (Basis) hier aus */
.umkreist__kreis, .umkreist__pfeile, .unterstrichen__linie { max-width: none; }
.umkreist__kreis,
.umkreist__pfeile {
  position: absolute;
  z-index: 0;
  color: var(--yellow, #fcee33);
  overflow: visible;
  pointer-events: none;
}
.umkreist__kreis {
  left: -1.25rem;
  top: -2.375rem;
  width: calc(100% + 2.5rem);
  height: calc(100% + 3.75rem);
  --zeichnen-dauer: 1.4s;     /* sichtbar ~0,5 s: der Strich ist in viewBox-Einheiten ~3 × länger als in px */
}
.umkreist__kreis path { vector-effect: non-scaling-stroke; stroke-width: 0.6rem; }
.umkreist__pfeile {
  --kp-x: -32; --kp-y: -96; --kp-b: 103; --kp-h: 92;
  left: calc(100% + var(--kp-x) * 0.0625rem);
  top: calc(var(--kp-y) * 0.0625rem);
  width: calc(var(--kp-b) * 0.0625rem);
  height: calc(var(--kp-h) * 0.0625rem);
  transform-origin: calc(var(--kp-x) * -0.0625rem) calc(var(--kp-y) * -0.0625rem);
  transform: translate(calc(var(--kp-dx) * 0.0625rem), calc(var(--kp-dy) * 0.0625rem))
    rotate(var(--kp-drehung)) scale(var(--kp-skala));
  --kp-dx: -4; --kp-dy: 0; --kp-drehung: 0deg; --kp-skala: 1;
  --zeichnen-start: 0.42s;
  --zeichnen-dauer: 0.17s;
  --zeichnen-abstand: 0.08s;
}
/* Wenig Platz: Die Pfeile drehen sich um die Knopfecke dorthin, wo Platz ist (Abstand zum Kringel 6–20 px).
   860–1023 px: schmale rechte Spalte (rechts ab 42 px frei) → etwas mehr von oben.
   Gestapelt (< 860 px): oben nur 44 px bis zur Kontaktliste → von rechts, etwas kleiner; der Kringel oben flacher.
   < 360 px: rechts nur 51–70 px → Knopf samt Kringel um 18 px nach links, die Gruppe steht dann mittig. */
@media (min-width: 860px) and (max-width: 1023.98px) {
  .umkreist__pfeile { --kp-dx: -8; --kp-dy: -16; --kp-drehung: -30deg; }
}
@media (max-width: 859.98px) {
  .umkreist__kreis { top: -2.125rem; height: calc(100% + 3.5rem); }
  .umkreist__pfeile { --kp-dx: -4; --kp-dy: 40; --kp-drehung: 60deg; --kp-skala: 0.92; }
}
@media (max-width: 359.98px) {
  .umkreist { margin-right: 2.25rem; }
}

/* ---------- Unterstreichung unter einem Wort ---------- */
.unterstrichen { position: relative; display: inline-block; }
.unterstrichen__linie {
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: -0.32em;
  width: calc(100% + 0.2em);
  height: 0.45em;
  color: var(--green, #007b56);
  pointer-events: none;
  overflow: visible;
}

/* ---------- Kleines Wackeln beim Darüberfahren (nur mit Maus, nur ohne „Bewegung reduzieren“) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .doodle--wackeln:hover,
  :hover > .doodle--wackeln,
  a:focus-visible .doodle--wackeln {
    animation: doodle-wackeln 0.6s ease-in-out;
  }
}
@keyframes doodle-wackeln {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-7deg); }
  55% { transform: rotate(5deg); }
  80% { transform: rotate(-2deg); }
}

/* ---------- Selbst zeichnen (nur Inline-SVG) ----------
   Jeder Strich ist ein <path pathLength="1" style="--i:n">: stroke-dasharray 1 und stroke-dashoffset 1 → 0
   zeichnen ihn vom Anfang zum Ende, --i staffelt die Striche; Teilpfade eines <path> zeichnen sich gleichzeitig.
   Schrift (Flächen) deckt eine Maske mit breitem Strich auf – derselbe Mechanismus, Zeile für Zeile von links
   nach rechts. Gilt für alle <path> im .zeichnen-Element (Flächen ohne Strich blenden nur ein).
   Start: .is-visible am SVG oder an einem Vorfahren (otelo.js beim Hineinscrollen) oder .zeichnen--sofort
   (beim Laden, für den Hero). Ohne JavaScript (html.no-js), bei „Bewegung reduzieren“ und im Druck: fertiges
   Bild, nichts versteckt. Platz ist immer reserviert (nur Striche werden ein-/ausgeblendet) → kein Springen.
   Stellschrauben: --zeichnen-dauer (je Strich), --zeichnen-abstand (zwischen den Strichen), --zeichnen-start. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-js) .zeichnen path {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    opacity: 0;
  }
  /* Achtung: hier „path“, nicht [pathLength] – Chromium wertet Attribut-Selektoren mit Großbuchstaben bei SVG
     nicht neu aus, wenn ein Vorfahr später .is-visible bekommt (Strich bliebe unsichtbar). */
  html:not(.no-js) .zeichnen.is-visible path,
  html:not(.no-js) .is-visible .zeichnen path,
  html:not(.no-js) .zeichnen--sofort path {
    animation: zeichnen-strich var(--zeichnen-dauer, 0.46s) cubic-bezier(0.5, 0.1, 0.35, 1)
      calc(var(--zeichnen-start, 0s) + var(--i, 0) * var(--zeichnen-abstand, 0.13s)) both;
  }
}
@keyframes zeichnen-strich {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@media print {
  .zeichnen path {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Abschnitts-Marken – das „villach“-Element als Motiv (Brief §11): kleiner gelber Block in Kleinbuchstaben,
   rechte Kante schräg wie „villach“ im Logo, z. B. „termine“, „otelo“, „charta“, „motive“.
   <p class="st-tag" aria-hidden="true">termine</p>  (rein dekorativ – die Überschrift darunter sagt dasselbe)
   .hg-tag ist derselbe Baustein auf der Hintergrundbilder-Seite, .ch-nr die Variante für römische Ziffern.
   ========================================================================== */
.st-tag, .hg-tag {
  display: table;
  justify-self: start;
  margin: 0 0 0.75rem;
  padding: 0.1em 0.75em 0.14em 0.4em;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%);
}

/* ==========================================================================
   Startseite (index.html) – Präfix st- für Seitenteile, zm- für die Marke im Hero, die sich selbst zeichnet.
   Nutzt die Doodle-Regeln oben (.schild, .doodle, .zeichnen, .zeichnen--sofort, .umkreist, .unterstrichen).
   ========================================================================== */
/* ---------- Schild „Freiraum Otelo“ direkt unter der Kopfzeile ---------- */
.st-schild {
  gap: clamp(18px, 6vw, 64px);
  min-height: 2.6em;
  padding-inline: var(--gutter);
  font-size: clamp(1.15rem, 0.95rem + 1.4vw, 1.75rem);
}
/* Tasse und Fliege rücken an den Schriftzug heran (wie auf dem Ladenschild), statt an den Bildschirmrand */
.st-schild::before, .st-schild::after { position: static; margin: 0; }

.st-text { color: var(--muted); max-width: 26rem; }

/* ---------- Hero ---------- */
.st-hero { padding-top: clamp(32px, 6vw, 80px); }
.st-hero .hero__grid { align-items: center; }
/* „Technologielabor“ (≈ 7,5 em breit) soll in der Textspalte ganz bleiben – getrennt wird nur am &shy; */
.st-hero h1 { -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 900px) {
  .st-hero h1 { font-size: min(6.2vw, 4.4rem); }
}
/* „villach“ wie im Logo: Kleinbuchstaben, leichter, auf dem gelben Block mit schräger rechter Kante.
   Der Block ist ein Pseudo-Element hinter dem Text – der Text ist immer lesbar, nur der Block wischt herein. */
.st-villach {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.44em 0.04em 0.14em;
  margin: 0 -0.08em 0 0.02em;     /* der grüne Schlusspunkt rückt an die schräge Kante */
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.st-villach::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.12em 0 0;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.36em) 100%, 0 100%);
  transform-origin: left center;
}
/* Zwei Fakten in einer ruhigen Zeile unter den Knöpfen */
.st-fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.st-fakten > div { min-width: 0; }
.st-fakten dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.st-fakten dd { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.35; }

/* Bild rechts: ein Inline-SVG (viewBox 640 × 600), skaliert mit dem Layout – kein Springen */
.st-visual { position: relative; width: 100%; max-width: 21rem; margin: 0 auto; min-width: 0; }
@media (min-width: 600px) { .st-visual { max-width: 28rem; } }
@media (min-width: 900px) { .st-visual { max-width: 34rem; margin-right: 0; } }
.zm { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }

/* ---------- Die Marke zeichnet sich selbst (wie das Herz auf netsnek.com) ----------
   Ablauf (nur mit JavaScript und ohne „Bewegung reduzieren“; Grundzustand = fertiges Bild):
   0–0,98 s  Skizze: Quadrat, Achsen, Kreis, Diagonale zum Funkpunkt (dünne graue Linien)
   0,63–1,68 s  der Umriss des O-Zeichens wird nachgezogen
   1,57–2,06 s das Zeichen füllt sich mit dem offiziellen Otelo-Verlauf, der Umriss verschwindet
   1,96–2,73 s  der Funkpunkt springt auf, dann die drei Funkbögen, einer nach dem anderen
   2,45–2,87 s  der gelbe „villach“-Block in der Überschrift wischt von links herein
   2,52–3,29 s  die Sprechblase „Lei eina, gheat dir!“ zeichnet sich (doodles.css, --zeichnen-start)
   2,8–3,92 s  Tasse, Espressokanne, Bleistift, Zweig – dann Dobratsch, Stadtpfarrturm und Drau
   3,01–3,78 s  die Skizze wird weggewischt; danach senden die Funkbögen zweimal ganz ruhig
   Ohne JavaScript (html.no-js), bei „Bewegung reduzieren“ und im Druck steht alles sofort fertig da. */
.zm-skizze { fill: none; stroke: #8d9ca1; stroke-width: 1.3; stroke-linecap: round; opacity: 0; }
.zm-umriss { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; stroke-opacity: 0; }
.zm-punkt, .zm-bogen { fill: var(--green-light); }
@media (prefers-reduced-motion: no-preference) {
  /* Tempo (Owner 2026-10-24): alle Zeiten der Website × 0,7 gegenüber dem ersten Entwurf */
  .zm .zeichnen { --zeichnen-dauer: 0.46s; --zeichnen-abstand: 0.13s; }
  html.js .zm-skizze { animation: zm-skizze 3.78s linear both; }
  /* „1 2“ statt „1 1“: sonst malt die runde Linienkappe am Pfadende schon vor dem Start einen Punkt */
  html.js .zm-skizze path,
  html.js .zm-umriss,
  html.js .zm-wisch { stroke-dasharray: 1 2; }
  html.js .zm-skizze path { animation: zm-zeichnen 0.7s cubic-bezier(0.5, 0.1, 0.35, 1) calc(var(--i, 0) * 0.11s) both; }
  html.js .zm-umriss {
    animation: zm-zeichnen 1.05s cubic-bezier(0.45, 0.05, 0.3, 1) 0.63s both,
               zm-umriss-weg 0.35s ease 1.89s both;
  }
  html.js .zm-flaeche { animation: zm-fuellen 0.49s ease 1.57s both; }
  html.js .zm-punkt {
    transform-box: fill-box;
    transform-origin: center;
    animation: zm-punkt 0.24s cubic-bezier(0.3, 1.6, 0.5, 1) 1.96s both;
  }
  html.js .zm-wisch { animation: zm-zeichnen 0.32s cubic-bezier(0.5, 0.1, 0.35, 1) calc(2.06s + var(--i, 0) * 0.17s) both; }
  html.js .zm-bogen { animation: zm-senden 1.6s ease-in-out calc(4.06s + var(--i, 0) * 0.14s) 2; }
  html.js .st-villach::before { animation: st-wischen 0.42s cubic-bezier(0.6, 0, 0.2, 1) 2.45s both; }
}
@keyframes zm-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes zm-skizze { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes zm-umriss-weg { from { stroke-opacity: 1; } to { stroke-opacity: 0; } }
@keyframes zm-fuellen { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes zm-punkt { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes zm-senden { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes st-wischen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media print {
  .zm-skizze { display: none; }
  .zm-umriss { stroke-opacity: 0 !important; }
}

/* ---------- Termine: links Überschrift, rechts die Kurzliste als weiße Karten ---------- */
.st-termine__grid { display: grid; gap: clamp(24px, 4vw, 40px) clamp(40px, 6vw, 80px); }
@media (min-width: 900px) {
  .st-termine__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}
.st-termine__kopf h2 { margin-bottom: 0.4em; }
.st-termine__kopf .st-text { margin-bottom: 0; }
.st-termine__doodle { --doodle-size: 4rem; display: block; margin: 18px 0 20px; }
.st-termine__knopf { margin: 0; justify-self: start; }
/* Handy/Tablet: der Knopf „Alle Termine“ steht unter der Liste (Kopf löst sich ins Raster auf) */
@media (max-width: 899px) {
  .st-termine__grid { row-gap: 0; }
  .st-termine__kopf { display: contents; }
  .st-termine__doodle { display: none; }
  .st-termine__liste { order: 1; margin-top: 24px; }
  .st-termine__knopf { order: 2; margin-top: 24px; }
}
.st-termine .termine { display: grid; gap: 10px; border-top: 0; }
.st-termine .termin {
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.st-termine .termin.is-next {
  background: var(--bg);
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow), var(--shadow);
}
.st-termine .termin.is-next .termin__date::after { animation: none; }   /* der gelbe Rahmen genügt */
.st-termine .termine-stand { margin-top: 14px; }
@media (max-width: 420px) {
  .st-termine .termin { padding: 12px 14px; }
}

/* ---------- Was ist Otelo? und die Grundsätze: 1 Spalte, Tablet 2 (die dritte Karte über die ganze Breite), ab 980 px 3 ---------- */
.st-otelo .grid, .st-grundsaetze { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .st-otelo .grid, .st-grundsaetze { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-otelo .grid > :nth-child(3), .st-grundsaetze > :nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .st-otelo .grid, .st-grundsaetze { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-otelo .grid > :nth-child(3), .st-grundsaetze > :nth-child(3) { grid-column: auto; }
}
.st-karte__doodle { --doodle-size: 3.25rem; display: block; margin: 0 0 14px; color: var(--ink); }
.st-netz {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: clamp(14px, 3vw, 24px);
}
.st-netz__doodle { --doodle-size: 3rem; color: var(--ink); }
.st-netz h3 { margin-bottom: 0.3em; }
.st-netz p { margin: 0; color: var(--text-2); max-width: 62ch; }
@media (max-width: 479px) {
  .st-netz { flex-direction: column; gap: 10px; }
}

/* ---------- Charta: Motto groß, Grundsätze, Standorte ---------- */
.st-motto {
  max-width: 15em;
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-size: clamp(2.05rem, 6.6vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
@media (max-width: 359px) { .st-motto { font-size: 1.85rem; } }
.st-motto .unterstrichen { white-space: nowrap; }
.st-charta__lead { max-width: 40rem; margin-bottom: clamp(24px, 4vw, 36px); }
.st-grundsaetze {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 3vw, 24px);
}
.st-grundsatz { margin: 0; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.st-grundsatz:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.st-grundsatz h3 { margin: 14px 0 0.4em; }
.st-grundsatz p { margin: 0; }
.st-dehnen { color: var(--ink); text-decoration: none; }
.st-dehnen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.st-grundsatz:hover .st-dehnen { color: var(--green); }
/* Fokus: der Ring liegt um die ganze Karte (ohne :has bleibt er am Link) */
@supports selector(:has(*)) {
  .st-dehnen:focus-visible { outline: none; }
  .st-grundsatz:has(.st-dehnen:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
}
/* Nummer im gelben Block (wie die Kapitel I–III der Charta) */
.st-grundsatz__nr {
  display: inline-flex;
  align-items: center;
  min-width: 2.2rem;
  height: 1.75rem;
  padding: 0 0.85rem 0 0.55rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.55rem) 100%, 0 100%);
}
.st-charta__knoepfe { margin-top: clamp(24px, 4vw, 36px); }
.st-standorte {
  margin-top: clamp(44px, 7vw, 72px);
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.st-standorte .label { margin-bottom: 14px; }
.st-standorte .logo-leiste { font-size: clamp(0.98rem, 2vw, 1.15rem); }
.st-standorte__link { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Hintergrundbilder: Handy-förmige Vorschauen ---------- */
.st-hg__kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 32px; margin-bottom: clamp(24px, 5vw, 44px); }
.st-hg__kopf .section-head { margin-bottom: 20px; }
.st-hg__knopf { margin-bottom: 20px; }
.st-hg__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* ab 720 px alle Motive in einer Reihe – egal wie viele (Spalten entstehen von selbst) */
@media (min-width: 720px) {
  .st-hg__liste { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); }
  /* versetzt wie eine Reihe Handys auf dem Tisch */
  .st-hg__liste li:nth-child(even) { transform: translateY(1.5rem); }
  .st-hg { padding-bottom: calc(clamp(52px, 9vw, 96px) + 1.5rem); }
}
.st-hg__liste li { margin: 0; min-width: 0; }
.st-hg__bild { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.st-hg__bild img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-soft);
  outline: 1px solid rgba(28, 38, 43, 0.12);   /* weißes Motiv bleibt auf Weiß sichtbar */
  outline-offset: -1px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.st-hg__bild:hover img { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.st-hg__name { display: block; margin-top: 8px; font-weight: 600; font-size: 0.8rem; text-align: center; overflow-wrap: normal; }
@media (min-width: 720px) { .st-hg__name { margin-top: 10px; font-size: 0.92rem; } }
.st-hg__bild:hover .st-hg__name { color: var(--green); }

/* ---------- Kontakt: dunkler Block + Karte ---------- */
.st-kontakt { padding-top: clamp(16px, 3vw, 32px); }
.st-dunkel__grid { position: relative; display: grid; gap: clamp(36px, 6vw, 48px); align-items: center; }
@media (min-width: 860px) {
  .st-dunkel__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}
.st-dunkel h2 { margin-bottom: clamp(20px, 3vw, 28px); }
.st-gelbpunkt { color: var(--yellow); }   /* Gelb auf --ink 12,79 : 1 */
.st-kontaktliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.st-kontaktliste li { display: flex; gap: 14px; align-items: flex-start; margin: 0; color: var(--dunkel-text); line-height: 1.45; }
.st-kontaktliste b { display: block; color: #fff; font-weight: 700; }
.st-kontaktliste li > span { min-width: 0; overflow-wrap: anywhere; }
.st-kontaktliste__doodle { --doodle-size: 2.25rem; margin-top: 2px; }
.st-dunkel__cta { display: flex; justify-content: center; padding: 8px 0 12px; overflow-x: clip; }
@media (min-width: 860px) { .st-dunkel__cta { padding: 0; } }
.st-dunkel__cta .btn { min-width: 10rem; }
@media (max-width: 399px) {
  .st-dunkel__cta .btn { min-width: 0; }     /* Kreis mit Pfeilen (1,6 × Knopf) passt dann noch in den Block */
  .st-kontaktliste li { gap: 12px; }
  .st-kontaktliste__doodle { --doodle-size: 1.9rem; }
}
.st-dunkel .block-dunkel__deko { right: -6%; bottom: -24%; width: min(46%, 22rem); opacity: 0.07; }

.st-ort {
  display: grid;
  gap: 24px clamp(32px, 5vw, 64px);
  margin-top: clamp(40px, 7vw, 72px);
  align-items: center;
}
@media (min-width: 860px) {
  .st-ort { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}
.st-ort__titel { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.5em; }
.st-ort address { color: var(--ink); font-size: 1.1rem; line-height: 1.55; }
.st-ort .map-link { margin-top: 12px; }
.st-ort__doodles { display: flex; gap: 10px; margin-top: 18px; color: var(--ink); }
.st-ort__doodles .doodle { --doodle-size: 3.5rem; }
@media (max-width: 859px) { .st-ort__doodles { display: none; } }

@media print {
  .st-visual, .st-hg__liste, .st-dunkel__cta, .st-ort__doodles { display: none !important; }
}

/* ==========================================================================
   Termine (termine.html) + Kurzliste der Startseite – Präfix te- für Seitenteile; .termine-voraus und
   .termine-kurz gehören zum Termine-Baustein (Markup schreibt tools/termine-bauen.py).
   ========================================================================== */
/* ---------- Kopf: Kalender-Doodle zeichnet sich, dann gelber Punkt und „termine“-Block ----------
   Ablauf (nur mit JavaScript und ohne „Bewegung reduzieren“, sonst sofort das fertige Bild):
   0–1,4 s  die fünf Striche des Kalenders (doodles.css: .zeichnen--sofort, je 0,65 s, versetzt)
   1,3 s    der gelbe Punkt wächst hinter dem eingekreisten Tag auf
   1,6 s    der gelbe Block „termine“ schiebt sich von links ein – wie „villach“ im Logo */
.te-visual { display: none; }
@media (min-width: 900px) {
  .te-visual { display: block; justify-self: center; width: 100%; max-width: 22rem; }
}
.te-visual__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.te-visual__punkt { fill: var(--yellow); }
.te-visual__block path { fill: var(--yellow); }
.te-visual__block text { fill: var(--ink); font-family: var(--font-sans); font-size: 30px; font-weight: 500; letter-spacing: 0.01em; }
@media (prefers-reduced-motion: no-preference) {
  .js .te-visual__punkt { transform-box: fill-box; transform-origin: center; animation: te-punkt 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) 0.91s both; }
  .js .te-visual__block { animation: te-block 0.42s cubic-bezier(0.6, 0, 0.2, 1) 1.12s both; }
}
@keyframes te-punkt { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes te-block { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Liste: links Überschrift + Sprungmarken (ab 1024 px mitlaufend), rechts die Tage ---------- */
.te-split { display: grid; gap: clamp(8px, 2vw, 16px) clamp(40px, 5vw, 72px); }
.te-split__aside, .te-split__liste { min-width: 0; }
.te-split .section-head { margin-bottom: 20px; }
.te-sprung { margin-bottom: clamp(28px, 5vw, 40px); }
@media (min-width: 1024px) {
  .te-split { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: start; }
  .te-split__aside { position: sticky; top: calc(var(--header-h) + 28px); }
  .te-split .section-head h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
  .te-split .section-head .lead { font-size: 1.05rem; }
  .te-sprung { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
}

/* ---------- „Weiter voraus“: nur Einzeltermine, ebenfalls nach Tagen ---------- */
.termine-voraus { margin-top: clamp(44px, 7vw, 72px); }
.termine-voraus__titel { margin: 0 0 6px; font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.termine-voraus__text { margin: 0 0 18px; color: var(--muted); font-size: 0.98rem; }
.termine-voraus__leer { margin: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); color: var(--text-2); }
.termine-tage--voraus .termine-tag__datum { font-size: 1.05rem; }
.te-split__liste .termine-stand { margin-top: 24px; }

/* ---------- Kurzliste der Startseite (Bereich termine-kurz) ---------- */
.termine-kurz .termine-stand { margin-top: 12px; }

/* ---------- Live-Kalender: Doodle über dem Hinweis ---------- */
.te-embed-doodle { display: block; width: 3.5rem; height: 3.5rem; color: var(--green); }

/* ---------- Abonnieren: drei Karten mit Doodle ---------- */
.te-abo .card h3 { margin-top: 4px; font-size: 1.15rem; }
.te-abo__doodle { --doodle-size: 3rem; margin: 0 0 6px; }
.te-abo .card__mehr .btn { width: 100%; }
@media (min-width: 560px) {
  .te-abo .card__mehr .btn { width: auto; }
}
/* Adresse zum Kopieren: in der schmalen Karte immer umbrechen statt seitlich scrollen */
.te-adresse { display: block; margin-top: auto; padding: 12px 14px; }
.te-adresse code { display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-all; font-size: 0.8rem; }
.te-adresse .hg-befehl__marke { display: block; width: fit-content; min-height: 44px; padding: 0 16px; margin: 10px 0 0; }

/* ---------- Mitmachen: gelbe Leiste mit winkender Hand ---------- */
.te-beitreten { align-items: center; }
.te-beitreten__doodle { --doodle-size: 3.25rem; }
.te-beitreten__text { flex: 1 1 22rem; min-width: 0; }
.te-beitreten__text .cta-leiste__text { margin: 0; }
.te-beitreten__text p { margin: 8px 0 0; max-width: 62ch; color: var(--ink); }
.te-beitreten__knopf { flex: none; border-color: var(--ink); }
.te-beitreten__knopf:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 559px) {
  .te-beitreten__knopf { flex: 1 1 100%; }
}

@media print {
  .te-visual, .te-sprung, #live-kalender, .te-adresse .hg-befehl__marke { display: none !important; }
  .te-split__aside { position: static; }
}

/* ==========================================================================
   Textseiten: Charta (ch-), Impressum (im-), Datenschutz (ds-) + gemeinsamer Kopf (ts-)
   Ruhige Lesetexte (max. ~70 Zeichen je Zeile), Farbspiel nur in Überschriften (grüner Schlusspunkt),
   Villach-Gelb als Fläche (römische Ziffern, Marker, Stand-Chip).
   ========================================================================== */
/* ---------- Gemeinsam ---------- */
/* Kopf der Textseiten: wie .hero, nur nach unten kürzer (darunter folgt gleich Text) */
.ts-hero { padding-bottom: clamp(20px, 4vw, 40px); }
.ts-hero .hero__lead { margin-bottom: 0; }
/* Das Muster (muster.svg) ist für einen hohen Kopf gebaut – im kurzen Kopf unten weich ausblenden statt abschneiden */
.ts-hero .hero__muster {
  -webkit-mask-image: linear-gradient(#000 35%, transparent 96%);
  mask-image: linear-gradient(#000 35%, transparent 96%);
}

/* Silbentrennung im Fließtext (html lang="de") nur auf schmalen Bildschirmen und nur in langen Wörtern
   (am Desktop liest sich Flattersatz ohne Trennstriche ruhiger); lange Wörter brechen notfalls trotzdem */
.ch-gross, .ch-liste__text, .ch-punkte li, .im-angaben p, .im-prose p, .ds-prose p, .ds-prose li {
  overflow-wrap: break-word;
}
@media (max-width: 719px) {
  .ch-gross, .ch-liste__text, .ch-punkte li, .im-angaben p, .im-prose p, .ds-prose p, .ds-prose li {
    -webkit-hyphens: auto;
    hyphens: auto;
    -webkit-hyphenate-limit-before: 4;
    -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 9 4 4;
  }
}

/* Hand-Doodles (assets/img/doodles/*.svg, schwarze Linien) – immer dekorativ (alt="") */
.ch-doodle { display: block; flex: none; width: 2.75rem; height: 2.75rem; }

/* ==========================================================================
   Charta
   ========================================================================== */
.ch-hero h1 { margin-bottom: 0.1em; }
.ch-untertitel {
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.ch-pdf-info { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }

/* Netz der Standorte (nachgezeichnet nach der Liniengrafik der Charta).
   Die Marke zeichnet sich selbst: erst die Punkte, dann die Linien nacheinander (stroke-dashoffset mit
   pathLength="1"), zuletzt wischt der gelbe „villach“-Block von links herein. Grundzustand = fertiges Bild,
   die Animationen laufen nur „rückwärts gefüllt“ (backwards) – bei „Bewegung reduzieren“ steht es sofort da. */
.ch-netz { width: 100%; max-width: 36rem; margin: 0 auto; }
.ch-netz__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-netz__linie {
  fill: none;
  stroke: #bcdcc8;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: ch-zeichnen 0.63s cubic-bezier(0.45, 0, 0.2, 1) backwards;
  animation-delay: calc(0.35s + var(--i) * 0.04s);
}
.ch-netz__linie--hier { stroke: var(--green); stroke-width: 2.2; }
.ch-netz__ort circle {
  fill: var(--green-light);
  transform-box: fill-box;
  transform-origin: center;
  animation: ch-punkt 0.32s cubic-bezier(0.2, 0.8, 0.2, 1.3) backwards;
  animation-delay: calc(0.07s + var(--i) * 0.03s);
}
.ch-netz__ort text {
  font-family: var(--font-sans);
  paint-order: stroke;          /* weißer Rand: Linien laufen „unter“ den Namen durch (wie auf Landkarten) */
  stroke: var(--bg);
  stroke-width: 6px;
  stroke-linejoin: round;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: var(--muted);
  text-anchor: middle;
  animation: ch-blenden 0.42s ease backwards;
  animation-delay: calc(0.21s + var(--i) * 0.03s);
}
.ch-netz__ort--hier circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; animation-delay: 1.4s; }
.ch-netz__block {
  fill: var(--yellow);
  animation: ch-wischen 0.42s cubic-bezier(0.6, 0, 0.2, 1) 1.47s backwards;
}
.ch-netz__ort--hier text {
  stroke: none;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
  fill: var(--ink);
  text-anchor: start;
  animation-delay: 1.72s;
}
@keyframes ch-zeichnen { from { stroke-dashoffset: 1; } }
@keyframes ch-punkt { from { transform: scale(0); } }
@keyframes ch-blenden { from { opacity: 0; } }
@keyframes ch-wischen { from { clip-path: inset(0 100% 0 0); } }
/* Handy: Bild unter dem Text, etwas kleiner; die Ortsnamen stehen unten als Text */
@media (max-width: 899px) {
  .ch-netz { max-width: 30rem; }
}

/* Kapitel I–III: Überschrift mit römischer Ziffer im gelben Block (schräge Kante wie der „villach“-Block im Logo) */
.ch-nr {
  display: inline-flex;
  vertical-align: 0.14em;
  margin-right: 0.4em;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  height: 1.3em;
  padding: 0 0.62em 0 0.32em;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.58em;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.42em) 100%, 0 100%);
}
.ch-kapitel .ch-kapitel__titel { margin-bottom: clamp(18px, 3vw, 28px); }
/* Großer Lesetext (Präambel, Einleitung der Leitsätze) */
.ch-gross {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(1.18rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.ch-kapitel + .ch-kapitel--leitsaetze { padding-top: 0; }

/* Motto: Satzende der Leitsätze-Einleitung, groß wie auf netsnek.com; „möglich“ mit gelbem Marker */
.ch-motto { margin: clamp(30px, 6vw, 56px) 0 clamp(48px, 9vw, 88px); }
.ch-motto .motto__text { font-size: clamp(2.15rem, 7.2vw, 4.75rem); max-width: 14em; }
@media (max-width: 359px) {
  .ch-motto .motto__text { font-size: 1.95rem; }
}

/* „Wir sind eine Community:“ 1–11 – Zahl groß in Grün, Text daneben; ab 900 px zweispaltig (1–6 | 7–11) */
.ch-community__titel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(14px, 3vw, 22px);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ch-community__titel .ch-doodle { width: 3rem; height: 3rem; }
.ch-liste { list-style: none; margin: 0; padding: 0; }
.ch-liste li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 15px 0 17px;
  border-top: 1px solid var(--line);
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
}
.ch-liste__nr {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.ch-liste__text { color: var(--ink); line-height: 1.55; }
@media (min-width: 900px) {
  .ch-liste { column-count: 2; column-gap: clamp(40px, 5vw, 72px); }
  .ch-liste__text { font-size: 1.0625rem; }
}

/* Grundsätze: drei Karten */
.ch-grundsatz { display: flex; flex-direction: column; }
.ch-grundsatz__doodle { width: 3.25rem; height: 3.25rem; margin: 0 0 16px; }
.ch-grundsatz h3 {
  margin-bottom: 0.7em;
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.ch-grundsatz__nr { color: var(--green); }
.ch-punkte { list-style: none; margin: 0; padding: 0; }
.ch-grundsatz .ch-punkte li {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  line-height: 1.55;
}
.ch-grundsatz .ch-punkte li + li { margin-top: 12px; }
.ch-punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-grad);
}

/* Netzwerk + PDF */
.ch-netzwerk .section-head { margin-bottom: clamp(20px, 4vw, 32px); }
.ch-stand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin: clamp(22px, 4vw, 32px) 0 0;
  text-align: center;
}
.ch-stand p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ch-pdf { margin-top: clamp(40px, 7vw, 64px); }
.ch-pdf .cta-leiste__text { flex: 1 1 16rem; }
.ch-pdf__doodle { width: 3rem; height: 3rem; }
@media (max-width: 559px) {
  .ch-pdf__doodle { display: none; }
}
.ch-termine-hinweis { margin: 18px 0 0; text-align: center; font-size: 0.95rem; color: var(--muted); }

/* ==========================================================================
   Impressum
   ========================================================================== */
.im-grid { display: grid; gap: clamp(16px, 3vw, 24px); align-items: start; }
@media (min-width: 900px) {
  .im-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.im-karte { position: relative; }
.im-karte__titel {
  margin: 0 0 0.6em;
  padding-right: 3.5rem;   /* Platz für den Turm-Doodle */
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.im-karte__doodle {
  position: absolute;
  top: clamp(14px, 3vw, 20px);
  right: clamp(14px, 3vw, 22px);
  width: 3.25rem;
  height: 3.25rem;
}
.im-dl dd { font-weight: 500; }
@media (min-width: 640px) {
  .im-dl { grid-template-columns: minmax(8.5rem, max-content) 1fr; }
  .im-dl dt:first-of-type, .im-dl dt:first-of-type + dd { border-top: 1px solid var(--line); }
}
.im-datenschutz, .im-stadt { margin: 20px 0 0; color: var(--text-2); }
.im-prose { max-width: 46rem; }
.im-prose h2 { margin-top: 0; font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; }
.im-prose blockquote { margin: 0; }
.im-statuten { padding-top: 0; }

/* ==========================================================================
   Datenschutz
   ========================================================================== */
.ds-body { padding-top: clamp(16px, 4vw, 32px); }
.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 6vw, 44px); }

/* Inhaltsverzeichnis: mobil Chips unter dem Titel, ab 1000 px mitlaufend rechts */
.ds-toc .label { margin-bottom: 10px; }
.ds-toc .toc { gap: 6px; }
.ds-toc .toc a { padding: 0 14px; font-size: 0.85rem; }
@media (min-width: 1000px) {
  .ds-layout {
    grid-template-columns: minmax(0, 44rem) 15rem;
    justify-content: space-between;
    align-items: start;
    column-gap: 3.5rem;
  }
  .ds-toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px);
    max-height: calc(100svh - var(--header-h) - 56px);
    overflow-y: auto;
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }
  .ds-toc .toc { flex-direction: column; align-items: flex-start; gap: 0; }
  .ds-toc .toc a {
    min-height: 44px;
    padding: 0 10px;
    margin-left: -10px;
    border-color: transparent;
    background: none;
    font-size: 0.9rem;
    color: var(--text-2);
  }
  .ds-toc .toc a:hover { border-color: var(--line-strong); color: var(--green); }
  .ds-prose { grid-column: 1; grid-row: 1; }
}

/* Rechtstext: ab 720 px 18 px Schrift, Zeilen bis ca. 80 Zeichen */
.ds-prose { max-width: 44rem; }
@media (min-width: 720px) {
  .ds-prose p, .ds-prose li, .im-prose p { font-size: 1.125rem; line-height: 1.65; }
  .ds-prose .ds-fakten li { font-size: 1.0625rem; line-height: 1.6; }
}
.ds-prose h2 { margin: 0 0 0.6em; font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.ds-prose h3 { margin: 1.7em 0 0.5em; font-size: clamp(1.12rem, 2.2vw, 1.25rem); font-weight: 700; }
.ds-prose h4 { margin: 1.5em 0 0.45em; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.ds-part {
  margin-top: clamp(32px, 6vw, 48px);
  padding-top: clamp(26px, 5vw, 36px);
  border-top: 1px solid var(--line);
}
.ds-part > :last-child { margin-bottom: 0; }
/* Aufzählungen (1) (2) … wie im Original */
.ds-prose .ds-gruende { list-style: none; padding-left: 0; counter-reset: ds-grund; }
.ds-gruende li { position: relative; padding-left: 2.4em; counter-increment: ds-grund; }
.ds-gruende li::before {
  content: "(" counter(ds-grund) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.ds-adresse {
  display: grid;
  gap: 2px;
  margin: 0 0 1em;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ds-adresse a { justify-self: start; }

/* NEU: „Was diese Website konkret macht“ – deutlich abgesetzt als zart grüne Karte */
.ds-neu {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #bcdccb;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--green-tint), var(--bg) 85%);
}
.ds-neu__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.ds-neu__kopf h2 { margin: 0; }
.ds-neu__stand { margin: 0; }
.ds-prose .ds-fakten { list-style: none; margin: 0; padding: 0; }
/* Eigennamen nur an den vorgesehenen Stellen trennen (Open-Street-Map) */
.ds-name { -webkit-hyphens: manual; hyphens: manual; }
.ds-prose .ds-fakten li {
  position: relative;
  margin: 0;
  padding: 13px 0 13px 28px;
  border-top: 1px solid #d3e6dc;
  color: var(--text-2);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.ds-fakten li:first-child { border-top: 0; }
.ds-fakten li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(13px + 0.55em);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-grad);
}
.ds-fakten strong { display: block; color: var(--ink); }
.ds-fakten li:target { background: linear-gradient(90deg, rgba(252, 238, 51, 0.45), rgba(252, 238, 51, 0) 85%); }
@media (max-width: 359px) {
  .ds-prose [id] { scroll-margin-top: 24px; }
}
.ch-netz__ort .ch-netz__links { text-anchor: end; }
.ch-netz__ort .ch-netz__rechts { text-anchor: start; }
@media (max-width: 899px) {
  .ch-liste li { grid-template-columns: 2.1rem minmax(0, 1fr); }
}
.im-karte__titel { -webkit-hyphens: manual; hyphens: manual; }

/* ==========================================================================
   Hintergrundbilder-Seite (hintergrundbilder.html) – Ergänzungen zum Block „Hintergrundbilder“ oben
   (Seitenkopf mit Laptop/Handy-Bühne, Anleitung „So setzt du dein Hintergrundbild“, Gut zu wissen).
   ========================================================================== */
/* ---------- Seitenkopf ---------- */
/* „Hintergrundbilder.“ ist ein langes Wort: in der Textspalte (ab 900 px) etwas kleiner, getrennt wird nur am &shy; */
.hg-hero h1 { -webkit-hyphens: manual; hyphens: manual; }
@media (min-width: 900px) {
  .hg-hero .hg-title { font-size: min(6.4vw, 4.6rem); }
}
.hg-hero .hg-geraet-zeile { margin-top: clamp(20px, 3vw, 28px); }

/* Bühne rechts (ab 900 px): Laptop mit „Gelb“, davor ein Handy mit „Grün“ – beides echte Vorschaubilder
   (tools/hintergrund-vorschau.mjs). Feste Seitenverhältnisse, Maße in %/rem: skaliert ohne Springen. */
.hg-buehne { display: none; }
@media (min-width: 900px) {
  .hg-buehne {
    display: block;
    position: relative;
    width: 100%;
    max-width: 34rem;
    aspect-ratio: 34 / 25;
    margin: 0 0 0 auto;
  }
}
.hg-buehne__laptop { position: absolute; left: 0; top: 4%; width: 84%; }
.hg-buehne__schirm {
  padding: 3.2% 3.2% 3.8%;
  background: var(--ink);
  border-radius: 1rem 1rem 0.4rem 0.4rem;
  box-shadow: var(--shadow-lg);
}
.hg-buehne__schirm img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0.25rem; }
/* Unterteil des Laptops: hellgraue Platte mit Griffmulde */
.hg-buehne__fuss {
  position: relative;
  height: 0.85rem;
  margin: 0 -6%;
  border-radius: 0.15rem 0.15rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, #eef2f0, var(--line-strong));
  box-shadow: 0 14px 24px -16px rgba(28, 38, 43, 0.45);
}
.hg-buehne__fuss::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 0.3rem;
  transform: translateX(-50%);
  border-radius: 0 0 0.4rem 0.4rem;
  background: var(--line-strong);
}
.hg-buehne__handy {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  padding: 2.4%;
  background: var(--ink);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.hg-buehne__handy img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; border-radius: 1.15rem; }
/* Schere (Doodle) links unten, schräg – „aufs Pixel zugeschnitten“; zeichnet sich nach dem Einblenden der Bühne */
.hg-buehne__schere {
  position: absolute;
  left: 5%;
  bottom: -4%;
  width: 12%;
  height: auto;
  color: var(--ink);
  transform: rotate(-24deg);
  --zeichnen-start: 0.63s;
}


/* ---------- Motive ---------- */
/* Sehr schmale Handys (320 px): „Herunterladen“ passt mit etwas weniger Rand und Schrift in die Karte */
@media (max-width: 379px) {
  .hg-karte__knopf { padding: 0 6px; font-size: 0.9rem; }
}
/* Ohne JavaScript: Liste der SVG-Dateien unter den Karten (falls der Browser kein Popover kann) */
.hg-ohnejs { margin: clamp(18px, 3vw, 24px) 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Werkbank: kleine Ergänzungen ---------- */
.hg-check__info { color: var(--muted); font-size: 0.85rem; }
.hg-drehen svg { display: block; }
/* Fuß der Auswahl: „Gewählt: …“ (Fira Mono, lang) eigene Zeile, Knöpfe rechts darunter – sonst rutscht „Fertig“
   allein nach links in die nächste Zeile */
.hg-auswahl__fuss { justify-content: flex-end; }
.hg-auswahl__jetzt { flex-basis: 100%; }
/* Trefferliste nach Geräteart gruppiert: Zwischenzeile je Gruppe, bleibt beim Rollen oben stehen */
.hg-treffer__gruppe {
  position: sticky;
  top: -14px;                       /* = oberer Innenabstand von .hg-auswahl__inhalt: klebt bündig an der Kante */
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 2px;
  padding: 10px 12px 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hg-treffer__gruppe:first-child { margin-top: 0; }
.hg-treffer__gruppe small { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0; }

/* ---------- „So setzt du dein Hintergrundbild“ (details/summary im FAQ-Stil) ---------- */
.hg-schritte ol { margin: 0; padding-left: 1.3em; }
.hg-schritte li { padding-left: 0.2em; }
.hg-schritte li + li { margin-top: 0.55em; }
.hg-schritte li::marker { color: var(--green); font-weight: 700; }
.hg-schritte h3 { margin: 1.3em 0 0.35em; font-size: 1.05rem; }
/* Linux mit den Befehlen über die volle Breite; Befehle umbrechen, damit der ganze Dateiname zu sehen ist */
.hg-schritte #anleitung-linux { grid-column: 1 / -1; }
.hg-schritte .hg-befehl { margin: 0.6em 0 0; align-items: flex-start; }
.hg-schritte .hg-befehl code { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.hg-schritte .hg-befehl + .hg-befehl { margin-top: 8px; }
.hg-schritte .hg-befehl code [data-hg-datei] { color: var(--green); }
.hg-schritte details > div > p { margin: 0 0 0.6em; }

/* ---------- Gut zu wissen ---------- */
.hg-hinweis-titel { margin-bottom: clamp(16px, 3vw, 24px); }
.card p.hg-credits { margin-top: 0.8em; font-size: 0.88rem; line-height: 1.5; }

@media print {
  .hg-buehne, .hg-karte__knopf, #hg-werkbank-ablage { display: none !important; }
}

/* ==========================================================================
   404-Seite (404.html): Ortsmarke als großes Doodle, vier Wege als Karten (ganze Karte klickbar)
   ========================================================================== */
.fehler__bild { display: none; margin: 0; color: var(--ink); }
@media (min-width: 900px) {
  .fehler__bild { display: block; justify-self: center; }
  .fehler__bild .doodle { --doodle-size: 12rem; }
}
.fehler__wege { list-style: none; margin: 0; padding: 0; }
.fehler__wege .card { margin: 0; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.fehler__wege .card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.fehler__wege h3 { margin-bottom: 0.3em; }
.fehler__wege h3 a { color: var(--ink); text-decoration: none; }
.fehler__wege h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fehler__wege .card:hover h3 a { color: var(--green); }
.fehler__alt { margin: clamp(24px, 4vw, 36px) 0 0; color: var(--muted); }

/* ---------- Bewegung ----------
   Ein Moment beim Laden (Hero), dazu sanftes Einblenden beim Scrollen (otelo.js setzt .rv / .rv-in) und
   ein ruhiges Pulsieren der Funkbögen. Bei prefers-reduced-motion schaltet die Regel ganz oben alle
   Animationen ab; dann ist alles sofort da (Ausgangszustand = sichtbar). */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-weit { from { opacity: 0; transform: translateY(36px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes punkt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(222, 205, 0, 0.6); } 60% { box-shadow: 0 0 0 6px rgba(222, 205, 0, 0); } }
@keyframes funk { 0%, 55%, 100% { opacity: 1; } 25% { opacity: 0.25; } }

/* Hero: Eyebrow, Titel, Text und Knöpfe steigen nacheinander auf, das Bild etwas später */
.hero .eyebrow, .hero .back-link { animation: fade-in 0.42s ease-out 0.03s both; }
.hero h1 { animation: rise 0.49s cubic-bezier(0.2, 0.7, 0.2, 1) 0.07s both; }
.hero .hero__lead { animation: rise 0.42s ease-out 0.17s both; }
.hero .hero__actions, .hero .hg-geraet-zeile { animation: rise 0.42s ease-out 0.24s both; }
.hero .hero__visual { animation: rise-weit 0.7s cubic-bezier(0.16, 0.8, 0.24, 1) 0.14s both; }
.hero__muster { animation: einblenden 0.98s ease-out 0.28s both; }   /* endet bei der eigenen Deckkraft (Handy 0,55) */

/* Funkbögen des Otelo-Zeichens (nur inline-SVG): <path class="funk__bogen"> – innen nach außen gestaffelt */
.funk__bogen { animation: funk 3.6s ease-in-out 0.84s infinite; }
.funk__bogen:nth-of-type(2) { animation-delay: 1.01s; }
.funk__bogen:nth-of-type(3) { animation-delay: 1.19s; }

/* Einblenden beim Scrollen (nur Elemente unterhalb des ersten Bildschirms, siehe otelo.js) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s ease-out var(--rv-d, 0s), transform 0.49s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-d, 0s);
}

/* Nächster Termin: die Pille „nächster“ pulsiert sanft */
.termin.is-next .termin__date::after { animation: punkt-pulse 2.6s ease-out 1.05s infinite; }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .nav-toggle, .site-footer, .hero__muster, .block-dunkel__deko, .skip-link, .embed-zustimmung, .hg-dialog, .map { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  a { color: #000; }
  .card, .fact, .termin, .faq details, .banner, .panel-light, .cta-leiste { border-color: #ccc; background: none; box-shadow: none; }
  .block-dunkel { background: none; color: #000; border: 1px solid #ccc; }
  .block-dunkel h2, .block-dunkel h3, .block-dunkel strong, .block-dunkel p, .block-dunkel a, .block-dunkel dt, .block-dunkel dd { color: #000 !important; }
  h1, h2, h3, strong, .akzent, .punkt, .display__line--accent { color: #000; }
  .marker { background: none; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
