/* TFB-Kiosk – Gestaltung
   Vereinsgrün, Sandplatz-Rot und Papier. Mobil zuerst, auf großen Bildschirmen
   als schmale App-Spalte. Bewusst ohne externe Schriften (keine Google-Fonts-Abfrage). */

:root {
  --brand: #2A2D2E;            /* Markenfarbe, im Profil wählbar */
  --green: var(--brand);
  --green-2: var(--brand);
  --green-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --signal: #C4553A;           /* Signalfarbe Sandplatz-Rot: KIOSK-Schriftzug, Striche, „bald“ */
  --clay: var(--signal);
  --clay-soft: #F6E2DA;
  --cream: #F5F0E6;
  --paper: #FFFDF7;
  --card: #FFFFFF;
  --ink: #1C2520;
  --muted: #6A7069;
  --line: #E5DDCD;
  --cardboard: #EBD9B8;
  --cardboard-2: #DCC398;
  --shadow: 0 0 0 1px #ECE8E0, 0 6px 18px rgba(28, 37, 32, .06);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  color-scheme: light;

  --bg: #FBFBF8;              /* Kreideweiß */
  --topbar: rgba(251, 251, 248, .92);
  --on-bg: var(--ink);
  --on-bg-muted: var(--muted);
  --logo: var(--brand);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  transition: background-color .25s ease;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
svg { display: block; }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Logo ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--logo); }
.boot-mark { width: 120px; }
.app-label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .32em;
  color: var(--signal);
}
.hero-logo { width: min(78%, 320px); color: var(--logo); }
.auth-hero .app-label { margin: 6px 0 0; padding-left: .32em; color: var(--signal); }
.consent-mark { width: 96px; color: var(--logo); }
.brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; color: var(--logo); min-width: 0; flex: 1; }
.header-mark { height: 38px; display: block; }
.header-mark { flex: none; }
/* Grundlinie von KIOSK genau auf die Unterkante von TFB.: Abstand unter der Grundlinie ausgleichen */
.brand .app-label { line-height: 1; margin-bottom: -.14em; flex: none; }
/* Schriftzug rechts daneben, auf derselben Linie; auf schmalen Handys bricht BIELSTEIN darunter um */
.brand-tagline { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; align-content: flex-end; column-gap: 10px; row-gap: 5px; margin-left: auto; min-width: 0; }
.header-tagline { height: 8.25px; color: var(--logo); display: block; }
.coaster-ball { width: 26px; color: #7A5A2E; opacity: .8; margin-bottom: 2px; }

/* ---------- Karten, Knöpfe, Felder ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card.soft { background: var(--green-soft); box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 650;
  transition: transform .12s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:disabled { background: #9AAFA4; border-color: #9AAFA4; cursor: default; }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.05rem; }

.link { background: none; border: 0; padding: 8px 0; color: var(--green-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link.center { display: block; margin: 12px auto 0; }

.field { display: block; margin: 16px 0; }
.field span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  font-size: 16px; outline: none;
}
.field input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(43,106,80,.15); }
.form-error { color: var(--clay); font-size: .9rem; min-height: 1.2em; margin-top: 10px; }

.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); letter-spacing: .02em; white-space: nowrap; }
.pill.soon { background: var(--clay-soft); color: var(--clay); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.live { background: var(--green); color: #fff; }

.fineprint { font-size: .78rem; color: var(--muted); text-align: center; margin: 18px 8px 0; line-height: 1.45; }
.empty { color: var(--muted); padding: 14px 0 4px; }

/* ---------- Anmeldung & Zustimmung ---------- */
.auth, .consent { padding: 32px 16px calc(32px + var(--safe-bottom)); }
.auth-hero { text-align: center; display: grid; justify-items: center; gap: 8px; margin: 24px 0 28px; }
.auth-hero p { color: var(--muted); }
.auth-hero.compact { margin: 8px 0 20px; }
.auth-hero.compact h1 { font-size: 1.5rem; }
.auth-card h2 { margin-bottom: 6px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 8px; }

.demo-hint {
  margin-top: 20px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px dashed var(--cardboard-2); background: rgba(235,217,184,.25);
  font-size: .88rem; color: var(--muted);
}
.demo-hint p { margin: 8px 0 0; }
.demo-hint .link { padding: 4px 0; }

.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; font-size: .95rem; }
.checklist svg { width: 22px; height: 22px; fill: none; stroke: var(--green-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.namecheck { background: var(--cream); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; margin: 16px 0; }
.namecheck span { font-size: .8rem; color: var(--muted); }
.namecheck strong { font-family: var(--hand); font-size: 1.2rem; font-weight: 500; }
.agree { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 18px 0; font-weight: 600; }
.agree input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; }

/* ---------- Rahmen ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
  background: var(--clay); color: #fff; font-weight: 700; font-size: 1rem;
  display: grid; place-items: center; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(196, 85, 58, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 112px; height: 112px; font-size: 2rem; margin: 0 auto 10px; position: relative; overflow: visible; }
.avatar.lg img { border-radius: 50%; }
.avatar-zoom { all: unset; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; cursor: zoom-in; }
.avatar-zoom:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper);
  cursor: pointer;
}
.avatar-edit svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

.lookbox { text-align: left; margin: 16px 0 12px; display: grid; gap: 10px; }
.look-row { display: grid; gap: 6px; }
.look-row > span { font-size: .78rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid rgba(31, 77, 58, .25); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.seg button.on { background: var(--green); border-color: var(--green); color: #fff; }
.sport-switch { margin: 0 0 24px; }
.sport-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 18px; border: 1.5px solid var(--brand); border-radius: 99px; color: var(--text); background: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; }
.sport-switch a.on { background: var(--brand); color: #fff; }
.sport-switch a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.training-coach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 32px; align-items: start; margin-bottom: 40px; }
.training-coach-copy { min-width: 0; }
.training-coach-copy p { font-size: .95rem; line-height: 1.65; margin: 0 0 16px; }
.training-coach-copy h2 { font-size: 2rem; margin: 8px 0 20px; }
.training-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.training-contact a { color: var(--text); overflow-wrap: anywhere; }
.training-coach-photo { margin: 0; aspect-ratio: 3 / 4; }
.training-coach-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }
@media (max-width: 639px) {
  .training-coach { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .training-coach-photo { width: min(100%, 360px); }
}
.look-row small { font-size: .78rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.swatch {
  width: 31px; height: 31px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08);
  cursor: pointer; position: relative;
}
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--c); }
.swatch-gap { width: 1px; height: 26px; align-self: center; background: rgba(0,0,0,.12); margin: 0 2px; }
.swatch-slot { position: relative; display: inline-block; }
.swatch-clear {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  border: 0; padding: 0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  display: grid; place-items: center; cursor: pointer;
}
.swatch-clear svg { width: 10px; height: 10px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.swatch.empty {
  background: transparent; box-shadow: none; border: 1.5px dashed rgba(0,0,0,.28);
  display: grid; place-items: center; color: var(--muted);
}
.swatch.empty svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.swatch.empty input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.demo-ribbon { margin: 0 16px; padding: 6px 12px; border-radius: 10px; background: rgba(235,217,184,.45); color: #7A6440; font-size: .75rem; font-weight: 600; text-align: center; }

.view { padding: 16px 16px calc(var(--tabbar-h) + 28px + var(--safe-bottom)); }
.site-footer { margin: 8px 16px 0; padding: 20px 0 calc(24px + var(--safe-bottom)); border-top: 1px solid var(--line, #E5DDCD); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 28px; color: #6A7069; }
.photo-frame.active { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--photo-ratio); }
.photo-frame.active > img { display: block; width: 100% !important; height: 100% !important; position: absolute; inset: 0; object-fit: cover !important; object-position: var(--photo-x) var(--photo-y); transform: scale(var(--photo-zoom)); transform-origin: var(--photo-x) var(--photo-y); }
.feature-media:has(> .photo-frame.active), .post-media:has(> .photo-frame.active), .block-image:has(> .photo-frame.active), .training-coach-photo:has(> .photo-frame.active), .story-photo:has(> .photo-frame.active), .story-side-img:has(> .photo-frame.active), .team-photo:has(> .photo-frame.active) { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; align-self: start; }
.message-photo > .photo-frame.active, .gallery-item > .photo-frame.active, .gallery-thumb > .photo-frame.active, .story-square > .photo-frame.active, .collage-item > .photo-frame.active, .image-preview > .photo-frame.active { width: 100%; height: 100%; aspect-ratio: auto; }
.team-thumb > .photo-frame.active, .portrait-cta-img > .photo-frame.active, .event-att > .photo-frame.active, .link-chip-img > .photo-frame.active, .link-card-img > .photo-frame.active { width: 100%; height: 100%; aspect-ratio: auto; }
.message-collage.n1:has(.photo-frame.active) { aspect-ratio: auto; }
.message-collage.n1 .message-photo:has(> .photo-frame.active) { aspect-ratio: auto; }
.message-collage.n1 .photo-frame.active { height: auto; aspect-ratio: var(--photo-ratio); }
.gallery-thumb .thumb-frame { left: 4px; right: auto; width: 28px; height: 28px; z-index: 2; }
.thumb-frame svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.photo-frame-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.photo-frame-dialog { width: min(100%, 480px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #FBFBF8; border-radius: 8px; padding: 22px; box-shadow: 0 12px 48px rgba(0,0,0,.25); }
.photo-frame-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.photo-frame-dialog h2 { font-size: 1.3rem; margin: 0; }
.photo-frame-dialog header button { width: 36px; height: 36px; flex: none; border: 0; background: transparent; }
.photo-frame-dialog header svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.frame-stage { margin: 14px auto; width: min(100%, 240px); }
.frame-stage .photo-frame { touch-action: none; cursor: grab; }
.frame-stage .photo-frame:active { cursor: grabbing; }
.frame-stage img { pointer-events: none; user-select: none; }
.frame-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.frame-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frame-formats button { font-size: .8rem; padding: 7px 4px; }
.photo-frame-dialog input[type="range"] { width: 100%; height: 32px; padding: 0; accent-color: var(--signal); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #6A7069; font-size: .8rem; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--signal); text-decoration: underline; }
.site-footer p { flex: 0 1 620px; font-size: .72rem; line-height: 1.6; margin: 0; }
.legal-document { max-width: 800px; }
.legal-document .block-text { padding: 24px 0; border-bottom: 1px solid var(--line, #E5DDCD); }
.legal-document .block-text:first-child { padding-top: 0; }
.legal-document .block-text:last-child { border-bottom: 0; }
.legal-document .block-text h2 { margin: 0 0 16px; font-size: 1.35rem; }
.legal-document p { line-height: 1.75; overflow-wrap: anywhere; }
@media (min-width: 640px) { .site-footer { margin-left: 24px; margin-right: 24px; } }
@media (min-width: 1024px) { .site-footer { margin-left: 32px; margin-right: 32px; } }
.view-head { margin: 6px 0 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.view-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px #E6E1D6, 0 4px 12px rgba(0,0,0,.06);
}
.view-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.view-close:active { transform: scale(.94); }
.view-head p { margin-top: 4px; }
.loading { height: 240px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(0,0,0,.03), rgba(0,0,0,.06), rgba(0,0,0,.03)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20;
  width: 100%; max-width: 560px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px calc(6px + var(--safe-bottom));
  background: rgba(255, 253, 247, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; border-radius: 12px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--green); }
.tab.active svg { stroke-width: 2.3; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 28px 2px 10px; }

/* ---------- Bierdeckel: zwei Deckel übereinander, hinten die Markenfarbe ---------- */
.deckel {
  --size: min(74vw, 268px);
  --deckel-ink: var(--ink);
  --stroke-color: var(--clay);
  position: relative; display: block; width: var(--size); aspect-ratio: 1;
  margin: 10px auto 8px; text-decoration: none; color: var(--deckel-ink);
  transition: transform .15s ease;
}
.deckel-face {
  position: relative; z-index: 1; height: 100%;
  display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center;
  padding: 22px;
}
.deckel-top { display: grid; justify-items: center; gap: 4px; }
.deckel-ball { width: 24px; color: currentColor; opacity: .85; }
.coaster-kicker { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.deckel-month { font-family: var(--hand); font-size: 1.05rem; line-height: 1; }
.coaster-amount { font-family: var(--serif); font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; color: var(--brand); }
.coaster-strokes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 200px; min-height: 30px; }
.coaster-strokes .bundle { height: 30px; width: auto !important; stroke: var(--stroke-color); stroke-width: 2.8; }
.coaster-strokes em { font-family: var(--hand); font-style: normal; font-size: 1.05rem; }
.coaster-note { font-size: .74rem; opacity: .85; }

.deckel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 14px;
  background: var(--brand); transform: rotate(7deg) translate(8px, 4px);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.deckel .deckel-face {
  background: #fff; border-radius: 14px; transform: rotate(-3deg);
  box-shadow: 0 0 0 1px #E6E1D6, 0 10px 24px rgba(0,0,0,.12);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s ease;
}
/* Maus darüber: vorderer Deckel kippt leicht nach rechts, der farbige bleibt sichtbar */
@media (hover: hover) {
  .deckel:hover .deckel-face {
    transform: rotate(1.5deg) translateY(-2px);
    box-shadow: 0 0 0 1px #E6E1D6, 0 16px 30px rgba(0,0,0,.16);
  }
}
/* Antippen/Klicken: kurzes Wackeln, danach öffnet sich die Abrechnung */
.deckel.wobble .deckel-face { animation: deckel-wobble .5s ease-in-out; }
@keyframes deckel-wobble {
  0%   { transform: rotate(-3deg); }
  20%  { transform: rotate(4deg) scale(.98); }
  40%  { transform: rotate(-6deg) scale(.98); }
  60%  { transform: rotate(3deg); }
  80%  { transform: rotate(-4deg); }
  100% { transform: rotate(-3deg); }
}

/* ---------- Striche ---------- */
.bundle { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; flex: none; }

/* ---------- Vereinsshop ---------- */
.shop-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  margin: 12px -16px 0; padding: 2px 16px 10px;
  scrollbar-width: none;
}
.shop-strip::-webkit-scrollbar { display: none; }
.shop-card {
  scroll-snap-align: start;
  background: var(--card); border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow);
  display: grid; gap: 2px; font-size: .85rem;
  position: relative;
}
.shop-card::after {
  content: "bald"; position: absolute; top: 10px; right: 10px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--clay); background: var(--clay-soft); padding: 2px 6px; border-radius: 6px;
}
.shop-card span { color: var(--muted); font-size: .78rem; }
.shop-card b { margin-top: 4px; color: var(--muted); }
.shop-art, .tile-art, .pick-art {
  display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--tint) 16%, var(--paper));
}
.shop-art { height: 84px; margin-bottom: 8px; filter: saturate(.75); }
.shop-art .art { width: 56px; height: 56px; }


/* ---------- Kiosk-Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  text-align: left; border: 0; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 10px;
  transition: transform .12s ease, box-shadow .2s ease;
}
.tile:active { transform: scale(.97); }
.tile-art { aspect-ratio: 4 / 3; }
.tile-art .art { width: 58%; height: 78%; }
.tile-text { display: grid; gap: 2px; padding: 0 4px; }
.tile-text strong { font-size: 1rem; }
.tile-text span { font-size: .78rem; color: var(--muted); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 2px; }
.tile-foot b { font-size: 1rem; }
.tile-add { width: 34px; height: 34px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.tile-add svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
@media (min-width: 520px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Auswahl-Sheet ---------- */
#sheet-root { position: relative; z-index: 50; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 28, 24, .35); opacity: 0; transition: opacity .2s ease; }
.sheet {
  position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 560px;
  transform: translate(-50%, 100%);
  background: var(--paper); border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(22px + var(--safe-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
  max-height: 92vh; overflow-y: auto;
}
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; border-radius: 4px; background: var(--line); transform: translateX(-50%); }
#sheet-root.open .sheet-backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: translate(-50%, 0); }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; }
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }

.pick { text-align: center; display: grid; gap: 6px; }
.pick-art { width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%; }
.pick-art .art { width: 78px; height: 78px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 16px 0 4px; }
.stepper output { font-family: var(--serif); font-size: 2.4rem; min-width: 2ch; font-weight: 700; }
.step { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; }
.step svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.step:disabled { opacity: .35; cursor: default; }
.pick [data-hint] { min-height: 1.3em; margin-bottom: 12px; }

.profile { text-align: center; display: grid; gap: 6px; }
.profile .install { text-align: left; margin: 14px 0 10px; display: grid; gap: 4px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 16px + var(--safe-bottom)); z-index: 60; display: grid; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 10px 10px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .92rem; max-width: 520px;
  animation: toast-in .25s ease;
}
.toast > svg { width: 20px; height: 20px; fill: none; stroke: #8FD3AE; stroke-width: 2.6; stroke-linecap: round; flex: none; }
.toast button { border: 0; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; border-radius: 10px; padding: 8px 12px; white-space: nowrap; }
.toast small { opacity: .7; font-variant-numeric: tabular-nums; margin-left: 2px; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Strichliste ---------- */
.paper {
  position: relative;
  background:
    linear-gradient(90deg, transparent 0 52px, rgba(196, 85, 58, .35) 52px 53.5px, transparent 53.5px),
    var(--paper);
  border-radius: 6px 6px 14px 14px;
  box-shadow: var(--shadow);
  padding: 10px 0 14px;
}
.paper::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 8px 6px, var(--bg) 4px, transparent 4.5px) 0 0 / 16px 12px repeat-x;
}
.paper-row {
  width: 100%; border: 0; background: none; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 10px 16px 9px 66px; min-height: 50px;
  border-bottom: 1px solid #DCE6EE;
}
.paper-row.me { background: rgba(43, 106, 80, .07); }
.paper-name { font-family: var(--hand); font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.paper-name em { font-family: var(--font); font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--green); color: #fff; padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.paper-strokes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 168px; }
.paper-strokes .bundle { height: 24px; }
.paper-detail { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); padding-top: 2px; }
.paper-empty { padding: 30px 20px 30px 66px; color: var(--muted); font-family: var(--hand); font-size: 1.1rem; }

/* ---------- Abrechnungen ---------- */
.month-card { display: grid; gap: 4px; }
.month-top { display: flex; align-items: center; justify-content: space-between; }
.month-amount { font-family: var(--serif); font-size: 2.5rem; color: var(--green); letter-spacing: -.02em; margin-top: 6px; }
.day { margin-top: 18px; }
.day h3 { margin-bottom: 4px; }
.line { display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.line:last-child { border-bottom: 0; }
.line-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 600; grid-column: 4; }
.undo-chip { grid-column: 3; border: 0; background: var(--clay-soft); color: var(--clay); font-weight: 700; font-size: .75rem; padding: 5px 10px; border-radius: 99px; }

.list { padding: 4px 16px; }
.statement { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.statement:last-child { border-bottom: 0; }
.statement > div:first-child { display: grid; gap: 2px; }
.statement-right { display: grid; justify-items: end; gap: 4px; }
.error-card h2 { margin-bottom: 6px; }

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


/* ---------- Bild groß ansehen ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px 16px;
  background: rgba(14, 22, 18, .9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease; cursor: zoom-out;
}
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; transform: scale(.94); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
.lightbox.open figure { transform: none; }
.lightbox img {
  display: block; max-width: min(92vw, 1600px); max-height: 84vh;
  border-radius: 8px; object-fit: contain; cursor: default;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.lightbox figcaption { display: flex; align-items: center; gap: 10px; max-width: 90vw; overflow-wrap: anywhere; color: #F5F0E6; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }
.fullscreen-photo { cursor: zoom-in; }
.fullscreen-photo:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.lightbox-ball { width: 20px; color: #F2A48E; }
.lightbox-close {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(245, 240, 230, .14); display: grid; place-items: center;
}
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: #F5F0E6; stroke-width: 2.2; stroke-linecap: round; }


/* ---------- Verwaltung ---------- */
.admin-card { display: grid; gap: 10px; margin-bottom: 14px; }
.admin-card .btn svg, .add-section svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.admin-card.later { background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.admin-card.later ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }

/* ---------- Bearbeitungsmodus am Kiosk ---------- */
.editbar {
  position: sticky; top: 76px; z-index: 8;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 12px 12px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18); margin-bottom: 4px;
}
.editbar div { display: grid; gap: 2px; }
.editbar span { font-size: .78rem; opacity: .75; }
.editbar .btn { min-height: 40px; background: #fff; color: var(--ink); border-color: #fff; }
.section-head.editing { align-items: center; }
.section-head.editing h2 { margin-right: auto; }
.section-tools { display: flex; gap: 6px; }
.section-tools button, .move-tools button {
  width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; padding: 0;
}
.section-tools button:disabled, .move-tools button:disabled { opacity: .3; cursor: default; }
.section-tools svg, .move-tools svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section-note { margin: -4px 2px 4px; }
.edit-wrap { position: relative; display: grid; }
.edit-wrap > .tile, .edit-wrap > .shop-card { outline: 2px dashed color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: -2px; }
.edit-wrap.is-hidden > .tile, .edit-wrap.is-hidden > .shop-card { opacity: .45; }
.hidden-badge { position: absolute; top: 10px; left: 10px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: #fff; padding: 3px 7px; border-radius: 6px; }
.move-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.move-tools button { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tile-new {
  display: grid; place-items: center; align-content: center; gap: 6px; min-height: 180px;
  background: transparent; box-shadow: none; border: 2px dashed var(--line); color: var(--muted); font-weight: 700;
}
.tile-new svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.shop-card.tile-new { min-height: 0; }
.shop-card.tile-new::after, button.shop-card::after { content: none; }
button.shop-card { border: 0; text-align: left; font: inherit; }
.add-section { margin-top: 26px; border-style: dashed; color: var(--muted); }

/* ---------- Editoren ---------- */
.editor { display: grid; gap: 4px; text-align: left; }
.editor h2 { margin-bottom: 8px; }
.editor-preview { width: 52%; max-width: 210px; margin: 0 auto 6px; pointer-events: none; }
.editor-preview .tile { width: 100%; }
.editor .field { margin: 10px 0; }
.field-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.field select {
  width: 100%; min-height: 50px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font-size: 16px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat;
}
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.symbol { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 6px; display: grid; place-items: center; }
.symbol .art { width: 100%; height: 100%; }
.symbol.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.btn.danger { color: var(--clay); border-color: var(--clay-soft); margin-top: 6px; }
.seg button { cursor: pointer; }

/* ---------- Bereiche mit Status "bald": gleich große Kacheln, nur zum Anschauen ---------- */
.tile.is-soon { cursor: default; }
.tile.is-soon .tile-foot b { color: var(--muted); }
.soon-tag {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--clay); background: var(--clay-soft); padding: 5px 9px; border-radius: 8px;
}

/* Reiter, der eine andere App öffnet (Padel-Buchung) */
.tab.external { color: var(--signal); }
.tab.external svg { stroke-width: 1.9; }

/* ---------- Storno-Stempel auf dem Bierdeckel (Dauer: undoSeconds in config.js) ---------- */
.deckel-wrap { position: relative; width: min(74vw, 268px); margin: 10px auto 8px; }
.deckel-wrap .deckel { margin: 0; }
.storno {
  --p: 1;
  position: absolute; z-index: 3; top: -14px; right: -22px;
  width: 74px; height: 74px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-content: center; justify-items: center; gap: 0;
  background: #F1F1EE; color: var(--ink);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
  transform: rotate(10deg);
  animation: storno-in .35s cubic-bezier(.3, 1.5, .5, 1);
  transition: opacity .25s ease, transform .25s ease;
}
.storno.gone { opacity: 0; transform: rotate(10deg) scale(.6); }
.storno:active { transform: rotate(10deg) scale(.94); }
.storno-ring {
  position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(#2A2D2E calc(var(--p) * 360deg), rgba(42, 45, 46, .12) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
}
/* Beide Zeilen fest um die Ringmitte: STORNO knapp darüber, Sekunden knapp darunter */
.storno-label, .storno small { position: absolute; left: 0; right: 0; text-align: center; line-height: 1; }
.storno-label { bottom: calc(50% + 2px); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.storno small { top: calc(50% + 5px); font-size: .6rem; font-weight: 800; opacity: .7; font-variant-numeric: tabular-nums; }
@keyframes storno-in { from { transform: rotate(-20deg) scale(.3); opacity: 0; } }

/* =====================================================================
   Vereinswebsite: Aktuell · Sport · Verein
   ===================================================================== */

/* ---------- Partner: zwei Logos je Seite (Gestaltung aus der Padel-App) ---------- */
.pbsp-slot { margin: 18px 0 22px; }
.pbsp-kicker { font-weight: 700; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #7A7368; margin: 0 0 8px 2px; }
.pbsp-duo { display: flex; gap: 12px; align-items: stretch; }
.pbsp-tile {
  flex: 1 1 0; min-width: 0; height: 104px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid #E2DACB; border-radius: 14px; text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pbsp-tile[href]:hover { border-color: #CFC4B3; box-shadow: 0 8px 22px rgba(28, 26, 23, .08); }
.pbsp-tile img { max-height: 60px; max-width: 88%; width: auto; height: auto; object-fit: contain; display: block; }
@media (min-width: 520px) { .pbsp-tile { height: 123px; } .pbsp-tile img { max-height: 70px; } }

/* ---------- Kiosk: Umschalter, Anmeldung im Bereich ---------- */
.subnav { display: flex; gap: 6px; background: #EFEDE7; padding: 4px; border-radius: 14px; margin: 2px 0 14px; }
.subnav a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; text-decoration: none; font-size: .86rem; font-weight: 650; color: var(--muted); }
.subnav a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.auth.inline, .consent.inline { padding: 8px 0 0; }
.auth-intro { display: flex; align-items: center; gap: 14px; margin: 6px 2px 16px; }
.auth-intro h1 { font-size: 1.5rem; }
.auth-intro p { margin-top: 2px; }
.auth-ball { width: 44px; flex: none; color: var(--logo); }
.avatar.guest { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(196, 85, 58, .35); }   /* gleicher Ring wie das Profilbild – sitzt optisch an derselben Stelle */
.avatar.guest svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.admin-links { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-links .btn { flex: 1; min-width: 96px; }

/* ---------- Seitenkopf ---------- */
.page-head h1 { font-size: 2.1rem; }
.page-head .view-close svg { stroke-width: 2; }

/* ---------- Bausteine ---------- */
.site-page > * + * { margin-top: 14px; }
.block-heading { font-family: var(--serif); font-size: 1.35rem; margin-top: 26px !important; }
.block-text h2, .block-gallery h2, .block-people h2, .block-teams h2 { font-family: var(--serif); font-size: 1.35rem; margin: 26px 0 8px; }
.block-text p { line-height: 1.6; margin: 0 0 10px; color: #2F3631; }

.date-badge {
  flex: none; width: 58px; padding: 7px 0 6px; border-radius: 12px; text-align: center;
  background: var(--ink); color: #fff; display: grid; line-height: 1;
}
.date-badge b { font-family: var(--serif); font-size: 1.55rem; margin: 3px 0 2px; }
.date-badge small { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

.event { display: flex; gap: 14px; align-items: flex-start; padding: 14px; }
.event h3 { font-size: 1.02rem; }
.event p { margin-top: 3px; }
.event-body .small:last-child { margin-top: 6px; color: #3B423D; line-height: 1.45; }

.post { padding: 0; overflow: hidden; }
.post-media { position: relative; aspect-ratio: 16 / 9; background: #EEE; }
.post-media > img, .post-media > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media .date-badge { position: absolute; left: 14px; bottom: -18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.post-body { padding: 26px 16px 16px; }
.post-date { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.post-body h3 { font-family: var(--serif); font-size: 1.3rem; margin: 4px 0 8px; }
.post-body p { line-height: 1.55; margin: 0 0 8px; color: #2F3631; }

.ph, .ph svg { display: block; width: 100%; height: 100%; }
.block-image { padding: 0; overflow: hidden; margin: 0; }
.block-image > img, .block-image > .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.block-image figcaption { padding: 10px 14px 12px; font-size: .86rem; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.block-gallery { min-width: 0; margin-bottom: 28px; }
.gallery-media { position: relative; }
.gallery-media > .date-badge { position: absolute; left: 14px; bottom: -18px; z-index: 1; }
.block-gallery.has-date .gallery-media { margin-bottom: 28px; }
.gallery-text { max-width: 760px; }
.gallery-text p { margin: 0 0 12px; line-height: 1.6; overflow-wrap: anywhere; }
.block-gallery > .post-date { margin-bottom: 8px; }
.block-gallery .module-collage { margin: 0; grid-auto-rows: 60px; }
.module-collage .collage-item { border-radius: 8px; }
@media (min-width: 640px) { .block-gallery .module-collage { grid-auto-rows: 90px; } }
.gallery-item { border: 0; padding: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEE; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 12px; }
.person-dot { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.person small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.person strong { display: block; font-size: .95rem; }
.person-dot { overflow: hidden; }
.person-dot img { width: 100%; height: 100%; object-fit: cover; }
.person-dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.person strong, .board-email { overflow-wrap: anywhere; }
.board-email { display: block; font-size: .78rem; margin-top: 4px; }
.block-board .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block-board .person { align-items: center; gap: 18px; padding: 16px; }
.block-board .person-dot { width: 88px; height: 88px; border-radius: 50%; border: 0; padding: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(196, 85, 58, .35); }
.block-board .person-dot { position: relative; }
.block-board .person-dot img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-position: center 25%; display: block; }
.block-board .person-dot img[src$="marco-hennes-aufgehellt.png"] { object-position: center 65%; }
.board-photo { cursor: zoom-in; }
.board-photo:focus-visible { outline: 3px solid var(--green-2); outline-offset: 5px; }
.link-drag { position: relative; }
.link-order { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 30px; height: 30px; display: inline-grid; place-items: center; margin: 4px; }
.link-order svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.album-page h1 { font-family: var(--serif); font-size: 2rem; margin: 20px 0; overflow-wrap: anywhere; }
.album-page .collage-item { border-radius: 8px; }
.ed-tabs:has([data-edtab="album"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-slot.filled .link-drag { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-bottom: 8px; }
.block-board .person small { white-space: normal; overflow: visible; text-overflow: clip; letter-spacing: 0; line-height: 1.45; margin-bottom: 4px; }
@media (max-width: 650px) { .block-board .people-grid { grid-template-columns: minmax(0, 1fr); } .block-board .person-dot { width: 80px; height: 80px; } }
.board-editor-row, .photo-request { border-top: 1px solid var(--line); padding: 18px 0; }
.board-editor-row header, .board-linked { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-editor-row header strong, .board-linked > span:not(.person-dot) { min-width: 0; overflow-wrap: anywhere; }
.board-row-tools { display: flex; gap: 4px; flex: none; }
.board-row-tools button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.board-row-tools button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.board-row-tools button:disabled { opacity: .3; }
.board-match { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid var(--line); background: #eef5f0; text-align: left; }
.board-match > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.board-match strong, .board-match small { display: block; }
.board-match small { color: var(--muted); margin-top: 3px; }
.board-linked { justify-content: flex-start; padding: 10px 0; }
.board-editor input, .photo-parent input { min-width: 0; width: 100%; }
.board-editor .meet-check { align-items: flex-start; }
.photo-parent { border: 0; padding: 0; margin-top: 16px; min-width: 0; }

.block-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.block-facts div { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px; text-align: center; display: grid; gap: 2px; }
.block-facts b { font-family: var(--serif); font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.block-facts span { font-size: .74rem; color: var(--muted); }
.block-facts > div { min-width: 0; overflow-wrap: anywhere; }
.fact-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fact-editor-row .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.fact-editor-row input { min-width: 0; width: 100%; }
.fact-order { display: flex; gap: 4px; }
.fact-order button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; }
.fact-order button svg { width: 18px; height: 18px; }
.fact-order button:disabled { opacity: .3; }
.membership-form { max-width: 700px; margin: auto; }
.membership-form fieldset { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
.membership-form legend { font-size: 1rem; font-weight: 750; margin-bottom: 12px; }
.membership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.membership-form input, .membership-form select { min-width: 0; width: 100%; }
.membership-form select { min-height: 50px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; }
.membership-form .meet-check { align-items: flex-start; margin: 14px 0; }
.membership-form .meet-check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin-top: 3px; }
.membership-notice { padding: 12px; border-left: 3px solid var(--brand); background: #eef5f0; font-size: .9rem; }
.membership-legal { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.6; padding: 12px 0; }
.membership-form details summary { cursor: pointer; padding: 10px 0; }
.membership-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.membership-summary { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.membership-summary dd { margin: 0; overflow-wrap: anywhere; }
.membership-confirm-page { max-width: 700px; margin: 40px auto; padding: 20px; }
.membership-confirm-page h1 { font-size: 1.8rem; }
@media (max-width: 520px) {
  .membership-grid { grid-template-columns: minmax(0, 1fr); }
  .membership-confirm-page { margin: 10px auto; }
}

.block-button .btn { text-decoration: none; }
.membership-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.membership-actions .membership-fees-button { background: #111; border-color: #111; color: #fff; }
.membership-actions .membership-apply-button { background: var(--signal); border-color: var(--signal); color: #111; }
.membership-actions .btn:hover { filter: brightness(1.08); }
.membership-actions .btn { white-space: normal; text-align: center; }
.membership-benefit { flex: 1 1 230px; max-width: 420px; margin: 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.membership-fees h2 { padding-right: 32px; margin-bottom: 8px; }
.fees-eyebrow { color: var(--signal); font-size: .78rem; font-weight: 800; margin: 0 0 8px; }
.fees-intro { color: var(--muted); margin: 0 0 24px; }
.fees-trial { padding: 20px 0; border-top: 3px solid var(--signal); border-bottom: 1px solid var(--line); }
.fees-trial h3, .fees-regular-title { font-size: 1.05rem; margin: 0 0 10px; }
.fees-trial p { margin: 0 0 16px; font-size: .9rem; }
.membership-fees dl { margin: 0; }
.membership-fees dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; }
.membership-fees dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fees-trial dl > div { padding: 6px 0; }
.fees-trial dd { color: var(--signal); font-size: 1.15rem; }
.fees-regular-title { margin-top: 24px; }
.fees-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.fees-notes { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.fees-notes p { margin: 8px 0; }
@media (max-width: 480px) {
  .membership-actions .btn { flex: 1 1 100%; }
  .membership-fees dl > div { gap: 10px; }
}

.team-seasons { margin: 0 0 10px; }
.team-list { padding: 4px 0; }
.team { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.team:last-child { border-bottom: 0; }
.team:hover { background: #FAF8F3; }
.team-rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: #EFEDE7; }
.team-rank.top { background: var(--signal); color: #fff; }
.team-main { display: grid; gap: 1px; min-width: 0; }
.team-main strong { font-size: .95rem; }
.team-main small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-points { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; display: grid; }
.team-points small { font-size: .62rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.block-teams .fineprint a { color: inherit; }

/* ---------- Bearbeiten ---------- */
.block-edit { position: relative; border: 2px dashed color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 18px; padding: 44px 8px 8px; }
.block-tools { position: absolute; top: 6px; left: 8px; right: 8px; display: flex; align-items: center; gap: 6px; }
.block-type { margin-right: auto; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.block-tools button { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; padding: 0; }
.block-tools button:disabled { opacity: .3; }
.block-tools svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.block-edit .block-heading, .block-edit .block-text h2 { margin-top: 0 !important; }
.empty-hint { padding: 10px 6px; }

.field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; font-size: 16px; resize: vertical; line-height: 1.45; }
.field textarea:focus { outline: none; border-color: var(--brand); }
.image-field { display: flex; gap: 12px; align-items: center; }
.image-preview { width: 112px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; flex: none; background: #EEE; }
.image-preview img, .image-preview .ph { width: 100%; height: 100%; object-fit: cover; }
.image-actions { display: grid; gap: 4px; justify-items: start; }
.image-actions .btn { min-height: 40px; cursor: pointer; }
.gallery-edit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1; }
.gallery-add { aspect-ratio: 1; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 700; cursor: pointer; }
.gallery-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.photo-drop-active { outline: 3px solid var(--signal); outline-offset: 3px; background-color: color-mix(in srgb, var(--signal) 9%, #fff); }
.type-list { display: grid; gap: 8px; margin-top: 6px; }
.type-option { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.type-option strong { font-size: .98rem; }
.type-option span { font-size: .8rem; color: var(--muted); }
.type-option:hover { border-color: var(--brand); }

.event h3, .post-body h3, .site-page h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; }
.event h3 { font-size: 1.02rem; }
.person > div { min-width: 0; }
.person small { letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================
   Kopfzeile mit komplettem Vereinslogo + Menü oben (ersetzt die Reiter unten)
   ===================================================================== */
.topbar { display: block; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.header-logo { height: 52px; display: block; flex: none; color: var(--logo); }
/* Bereich (KIOSK, NEWS …) auf der Grundlinie von „TFB.●“ – sie liegt bei 81,6 % der Logohöhe */
.brand .app-label { margin-bottom: calc(52px * .184 - .14em); }
.topnav {
  display: flex; gap: 4px; margin: 12px -16px 0; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.topnav::-webkit-scrollbar { display: none; }
.topnav .tab {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 10px 11px; color: var(--muted); text-decoration: none;
  font-size: .86rem; font-weight: 650; border-radius: 0; position: relative; white-space: nowrap;
}
.topnav .tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topnav .tab.active { color: var(--ink); }
.topnav .tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--signal); }
.topnav .tab.external { color: var(--signal); }
.demo-ribbon { margin-top: 10px; }
.view { padding-bottom: calc(32px + var(--safe-bottom)); }
#toast-root { bottom: calc(18px + var(--safe-bottom)); }
.editbar { top: 128px; }
@media (max-width: 400px) {
  .topnav .tab { padding: 10px 7px 11px; gap: 4px; font-size: .8rem; }
  .topnav .tab svg { width: 16px; height: 16px; }
}

/* ---------- Kopfzeile 2: Logo + Profilbild, darunter ruhiges Schrift-Menü ---------- */
.header-logo { height: 65px; }
.topbar .avatar { width: 58px; height: 58px; font-size: 1.15rem; }
.topnav {
  justify-content: space-between; gap: 2px; margin: 10px -16px 0; padding: 0 10px;
  border-bottom: 0;
}
.topnav .tab {
  flex: 1 0 auto; padding: 10px 6px 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #8A8F8A;
}
.topnav .tab:hover { color: var(--ink); }
.topnav .tab.active { color: var(--signal); }
.topnav .tab.active::after { content: none; }
.topnav .tab.external { color: #8A8F8A; }
.topnav .tab.external small { font-size: .85em; margin-left: 3px; letter-spacing: 0; }
.editbar { top: 136px; }
@media (max-width: 400px) {
  .topnav .tab { padding: 10px 4px 12px; font-size: .68rem; letter-spacing: .12em; }
}

/* ---------- Kopfzeile 3: Logo +25 %, Bild unten bündig, Menü auf Logo- und Bildkante ---------- */
.header-logo { height: 81px; }                       /* Breite folgt: 81 × 900/402 ≈ 181 px */
.topbar-row { align-items: flex-end; }               /* Profilbild unten bündig mit „TENNISFREUNDE BIELSTEIN“ */
.topbar .avatar { width: 58px; height: 58px; }
.topnav { justify-content: space-between; gap: 8px; margin: 12px 0 0; padding: 0; }
.topnav .tab { flex: none; padding: 10px 0 12px; letter-spacing: .16em; }
/* KIOSK beginnt dort, wo der Schriftzug im Logo beginnt (0,9 % der Logobreite ≈ 1,6 px) */
.topnav .tab:first-child { margin-left: 1.6px; }
/* PADEL: das „L“ schließt mit der rechten Kante des Profilbilds ab (Sperrung hinter dem letzten Buchstaben ausgleichen) */
.topnav .tab:last-child { margin-right: -.16em; }
.editbar { top: 152px; }
@media (max-width: 400px) {
  .topnav .tab { padding: 10px 0 12px; font-size: .7rem; letter-spacing: .12em; }
  .topnav .tab:last-child { margin-right: -.12em; }
}

/* ---------- Abstand Logo → Menü = Abstand Menü → Inhalt (30 px) ---------- */
.topnav { margin-top: 20px; }
.editbar { top: 160px; }

/* ---------- Kiosk-Kopf: Bierdeckel links, Strichliste/Abrechnungen rechts ---------- */
.kiosk-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 26px; margin: 4px 0 6px; }
.kiosk-hero .deckel-wrap { width: 176px; margin: 4px 0 8px 2px; }
.kiosk-hero .deckel { --size: 176px; }
.kiosk-hero .deckel-face { padding: 14px 10px; gap: 5px; }
.kiosk-hero .deckel-ball { width: 18px; }
.kiosk-hero .coaster-kicker { font-size: .56rem; letter-spacing: .12em; }
.kiosk-hero .deckel-month { font-size: .82rem; }
.kiosk-hero .coaster-amount { font-size: 1.75rem; }
.kiosk-hero .coaster-strokes { min-height: 22px; gap: 5px; max-width: 140px; }
.kiosk-hero .coaster-strokes .bundle { height: 22px; stroke-width: 2.4; }
.kiosk-hero .coaster-strokes em { font-size: .9rem; }
.kiosk-hero .coaster-note { font-size: .6rem; line-height: 1.35; }
.kiosk-hero .storno { width: 58px; height: 58px; top: -12px; right: -18px; }
.kiosk-hero .storno-label, .kiosk-hero .storno small { font-size: .52rem; }
.kiosk-links { display: grid; gap: 10px; }
.kiosk-link {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px #E6E1D6, 0 6px 16px rgba(28, 37, 32, .06);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
  transition: transform .12s ease, box-shadow .2s ease;
}
.kiosk-link:hover { box-shadow: 0 0 0 1px #D9D2C4, 0 10px 22px rgba(28, 37, 32, .1); }
.kiosk-link:active { transform: scale(.97); }
.kiosk-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--signal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kiosk-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Knöpfe neben dem Deckel: passend in die rechte Spalte (Mobil ca. 149 px) */
.kiosk-hero { gap: 16px; }
.kiosk-link { min-width: 0; gap: 8px; padding: 0 10px; font-size: .84rem; }
.kiosk-link svg { width: 18px; height: 18px; }
@media (min-width: 420px) { .kiosk-hero { gap: 26px; } .kiosk-link { gap: 10px; padding: 0 14px; font-size: .9rem; } }
.kiosk-hero .storno { right: -6px; }
.kiosk-hero .storno-label { font-size: .47rem; letter-spacing: .03em; }

/* ---------- Kiosk-Kopf 2: großer Deckel, Stapel endet mittig über der rechten Produktkachel ----------
   Inhaltsbreite W = min(100vw, 560px) − 32px. Mitte der rechten Kachel ≈ 0,75·W.
   Der hintere Deckel ragt ≈ 6 % + 8 px über den vorderen hinaus → Deckelbreite ≈ 0,7·W − 5px. */
.kiosk-hero { --size: calc((min(100vw, 560px) - 32px) * .7 - 5px); grid-template-columns: var(--size) minmax(0, 1fr); gap: 30px; }
.kiosk-hero .deckel-wrap { width: var(--size); margin: 6px 0 12px; }
.kiosk-hero .deckel { --size: inherit; width: 100%; }
.kiosk-hero .deckel-face { padding: 20px 16px; gap: 7px; }
.kiosk-hero .deckel-ball { width: 22px; }
.kiosk-hero .coaster-kicker { font-size: .66rem; letter-spacing: .14em; }
.kiosk-hero .deckel-month { font-size: 1rem; }
.kiosk-hero .coaster-amount { font-size: 2.2rem; }
.kiosk-hero .coaster-strokes { min-height: 28px; gap: 7px; max-width: 190px; }
.kiosk-hero .coaster-strokes .bundle { height: 28px; stroke-width: 2.7; }
.kiosk-hero .coaster-note { font-size: .7rem; }
.kiosk-hero .storno { width: 66px; height: 66px; top: -14px; right: -14px; }
.kiosk-hero .storno-label, .kiosk-hero .storno small { font-size: .54rem; }
/* Kompakte Knöpfe: Symbol über kleiner Beschriftung */
.kiosk-hero .kiosk-links { gap: 12px; align-content: center; }
.kiosk-hero .kiosk-link {
  flex-direction: column; justify-content: center; gap: 6px; min-height: 0; padding: 12px 4px;
  font-size: .64rem; font-weight: 700; letter-spacing: .02em; text-align: center;
}
.kiosk-hero .kiosk-link svg { width: 22px; height: 22px; }
.kiosk-hero .kiosk-link span { white-space: normal; overflow: visible; }
/* Inhalt des Deckels wächst mit der Deckelgröße mit */
.kiosk-hero .deckel-face { padding: calc(var(--size) * .08) calc(var(--size) * .06); gap: calc(var(--size) * .028); }
.kiosk-hero .deckel-ball { width: calc(var(--size) * .085); }
.kiosk-hero .coaster-kicker { font-size: calc(var(--size) * .036); }
.kiosk-hero .deckel-month { font-size: calc(var(--size) * .064); }
.kiosk-hero .coaster-amount { font-size: calc(var(--size) * .135); }
.kiosk-hero .coaster-strokes { min-height: calc(var(--size) * .12); max-width: calc(var(--size) * .78); gap: calc(var(--size) * .028); }
.kiosk-hero .coaster-strokes .bundle { height: calc(var(--size) * .12); }
.kiosk-hero .coaster-strokes em { font-size: calc(var(--size) * .06); }
.kiosk-hero .coaster-note { font-size: calc(var(--size) * .043); }
/* ---------- Kiosk-Kopf 3: Deckel ~12 % kleiner, quadratische Knöpfe rechtsbündig ---------- */
.kiosk-hero { --size: calc((min(100vw, 560px) - 32px) * .615 - 5px); }
.kiosk-hero .kiosk-links { justify-items: end; gap: 12px; }
.kiosk-hero .kiosk-link { width: 84px; height: 84px; aspect-ratio: 1; padding: 8px 4px; }

/* =====================================================================
   RASTER FÜR ALLE GERÄTE
   Handy (bis 639 px) · iPad hochkant (640–1023 px) · iPad quer / Desktop (ab 1024 px)
   ===================================================================== */

/* ---------- Gemeinsam: Seitenaufbau aus Gruppen ---------- */
.page-grid, .page-main, .page-aside { display: grid; gap: 14px; align-content: start; }
.page-grid > * { min-width: 0; }
.page-aside { order: -1; }                       /* Handy: Termine oben */
.run { display: grid; gap: 14px; }
.run-texts .unit > * + * { margin-top: 10px; }
.kiosk-layout, .kiosk-main { display: grid; gap: 0; }
.kiosk-main > section:first-child .section-head { margin-top: 18px; }
.team-captain { display: none; }
@media (max-width: 639px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* Deckel-Regel gilt für 2 Spalten */
}

/* ---------- iPad hochkant und größer ---------- */
@media (min-width: 640px) {
  .app { max-width: 880px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .view { padding-left: 24px; padding-right: 24px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .kiosk-hero { --size: 300px; grid-template-columns: var(--size) auto; justify-content: space-between; }
  .run-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .run-posts .post { height: 100%; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 170px) auto; }
  .team-captain { display: grid; font-size: .86rem; font-weight: 600; }
  .team-captain small { font-size: .62rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .pbsp-duo { max-width: 640px; margin: 0 auto; }
  .pbsp-slot .pbsp-kicker { text-align: center; }
  .pbsp-tile { height: 132px; }
  .pbsp-tile img { max-height: 76px; }
  .view[data-view="strichliste"], .view[data-view="abrechnungen"], .view[data-view="verwaltung"] { max-width: 760px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  /* Bearbeiten: Fenster in der Mitte statt Blatt von unten */
  .sheet {
    top: 50%; bottom: auto; max-width: 560px; border-radius: 24px;
    transform: translate(-50%, -46%) scale(.98); opacity: 0;
    transition: transform .25s cubic-bezier(.2,.9,.3,1), opacity .2s ease;
    max-height: 86vh; padding-bottom: 24px;
  }
  .sheet::before { content: none; }
  #sheet-root.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
}

/* ---------- iPad quer und Desktop ---------- */
@media (min-width: 1024px) {
  .app { max-width: 1200px; }
  .topbar, .view { padding-left: 32px; padding-right: 32px; }

  /* Kopf in einer Zeile: Logo · Menü · Profilbild */
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: 56px; padding-bottom: 18px; }
  .topbar-row { display: contents; }
  .topbar .brand { grid-column: 1; }
  .topbar .avatar, .topbar .top-actions { grid-column: 3; }
  .topbar .top-actions .avatar { grid-column: auto; }
  .topnav { grid-column: 2; grid-row: 1; justify-content: flex-start; gap: 40px; margin: 0; padding: 0 0 2px; align-self: end; }
  .topnav .tab, .topnav .tab:first-child, .topnav .tab:last-child { margin: 0; padding: 0; font-size: .8rem; letter-spacing: .18em; }
  .editbar { top: 124px; }

  /* Kiosk: Deckel links feststehend, Sortiment rechts */
  .kiosk-layout { grid-template-columns: 300px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .kiosk-layout.editing { grid-template-columns: minmax(0, 1fr); }
  .kiosk-side { position: sticky; top: 132px; }
  .kiosk-hero { --size: 268px; display: grid; grid-template-columns: 1fr; justify-items: start; gap: 22px; margin-top: 18px; }
  .kiosk-hero .deckel-wrap { margin: 6px 0 4px 4px; }
  .kiosk-hero .kiosk-links { grid-auto-flow: column; justify-content: start; gap: 12px; }
  .kiosk-main .tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .kiosk-main > section:first-child .section-head { margin-top: 18px; }

  /* Vereinsseiten: Hauptspalte + Terminspalte rechts */
  .page-grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 48px; align-items: start; }
  .page-grid.single { grid-template-columns: minmax(0, 1fr); }
  .page-aside { order: 0; position: sticky; top: 132px; }
  .page-aside .block-heading { margin-top: 0 !important; }
  .page-main > .block-heading:first-child, .page-main > section:first-child h2 { margin-top: 0; }
  .run-texts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
  .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .block-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .block-facts b { font-size: 2.4rem; }
  .page-head h1 { font-size: 2.6rem; }
  .pbsp-duo { max-width: 760px; gap: 18px; }
  .pbsp-tile { height: 150px; }
  .pbsp-tile img { max-height: 84px; }
  .pbsp-slot { margin-top: 48px; }
}
@media (min-width: 1280px) {
  .page-grid.single .run-posts, .page-main .run-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .page-main > .block-heading:first-child, .page-aside > .block-heading:first-child { margin-top: 0 !important; }
  .page-main > section:first-child > h2:first-child { margin-top: 0; }
}

/* ---------- Feintuning Desktop (10.10.) ---------- */
/* Fokusrahmen nur bei Tastaturbedienung, nicht nach Mausklick */
.topnav .tab:focus:not(:focus-visible) { outline: none; }
/* Partner überall linksbündig */
.pbsp-slot .pbsp-kicker { text-align: left; }
.pbsp-duo { margin-left: 0; margin-right: 0; }
@media (min-width: 1024px) {
  /* Menü mittig zwischen Logo-Ende und Profilbild, Abstände unverändert */
  .topnav { justify-content: center; padding: 0; }
  /* Grundlinie der Menüpunkte = Unterkante „TENNISFREUNDE BIELSTEIN“ = Unterkante Profilbild */
  .topnav .tab, .topnav .tab:first-child, .topnav .tab:last-child { line-height: 1; margin-bottom: -.14em; }
}
@media (min-width: 1024px) {
  /* Sperrung hinter dem letzten Buchstaben nicht mitzentrieren */
  .topnav .tab:last-child { margin-right: -.18em; }
}

/* ---------- Desktop: Menüschrift wie im Hochformat (.74rem), dafür großzügige Abstände ---------- */
@media (min-width: 1024px) {
  .topnav { gap: 46px; }
  .topnav .tab, .topnav .tab:first-child, .topnav .tab:last-child { font-size: .74rem; letter-spacing: .2em; }
  .topnav .tab:last-child { margin-right: -.2em; }
}

/* =====================================================================
   Verabreden (Vorführung, intern „Treffen“): Tabelle, Einzel/Doppel, Mitteilungen
   Zum Entfernen diesen Abschnitt löschen (siehe assets/js/meet.js).
   ===================================================================== */
:root { --meet-no: #111; --meet-open: #8C918E; --meet-yes-soft: color-mix(in srgb, var(--signal) 8%, #fff); --meet-yes-line: color-mix(in srgb, var(--signal) 45%, #fff); }
.meet-new-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.meet-kind-tile { border: 0; background: #fff; border-radius: 14px; padding: 12px 4px 10px; box-shadow: 0 0 0 1px #E6E1D6; display: grid; justify-items: center; gap: 2px; color: var(--ink); }
.meet-kind-tile:hover { box-shadow: 0 0 0 1.5px var(--signal); }
.meet-kind-tile:active { transform: scale(.97); }
.meet-kind-icon svg { width: 34px; height: 26px; fill: none; stroke: var(--signal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.meet-kind-tile strong { font-size: .86rem; }
.meet-kind-tile small { font-size: .7rem; color: var(--muted); }
.meet-list { display: grid; gap: 10px; }
.meet-card { padding: 12px 14px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.meet-card:hover { box-shadow: 0 0 0 1.5px var(--signal), 0 1px 2px rgba(0,0,0,.04); }
.meet-card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.meet-card-text strong { font-size: 1rem; }
.meet-card-text small { color: var(--muted); font-size: .8rem; }
.meet-card-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: .8rem; }
.meet-card-status b.ok, .meet-status.is-full strong { color: var(--signal); }
.meet-mine { flex: none; font-size: .72rem; font-weight: 800; padding: 6px 9px; border-radius: 99px; white-space: nowrap; }
.meet-mine.yes { background: var(--meet-yes-soft); color: var(--signal); }
.meet-mine.ersatz { background: transparent; color: var(--signal); box-shadow: inset 0 0 0 1.5px var(--meet-yes-line); }
.meet-mine.no { background: var(--meet-no); color: #fff; }
.meet-mine.open { background: var(--signal); color: #fff; }
.meet-faces { display: inline-flex; }
.meet-faces i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; font-weight: 800; background: #EFEDE7; color: var(--muted); border: 2px solid #fff; margin-left: -6px; }
.meet-faces i:first-child { margin-left: 0; }
.meet-faces i.yes { background: var(--signal); color: #fff; }
.meet-faces.slots i { margin-left: 3px; }
.meet-faces.slots i:first-child { margin-left: 0; }
.meet-faces i.free { background: transparent; border: 1.5px dashed #C9C3B6; color: #B5AE9F; }
.meet-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.meet-group { text-align: left; border: 0; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px #E6E1D6; display: grid; gap: 2px; color: var(--ink); }
.meet-group small { font-size: .75rem; color: var(--muted); }
.meet-group.add { background: transparent; box-shadow: inset 0 0 0 1.5px #D8D2C5; display: flex; align-items: center; gap: 8px; }
.meet-group.add svg { width: 16px; height: 16px; fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; }
.meet-group:hover { box-shadow: 0 0 0 1.5px var(--signal); }

/* Einzelansicht */
.meet-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin: 0 0 4px; }
.meet-note { margin: -4px 0 14px; font-size: .95rem; }
.meet-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px #E6E1D6; }
.meet-status strong { display: block; font-size: 1.25rem; }
.meet-status small { color: var(--muted); font-size: .8rem; }
.meet-status.is-full { box-shadow: 0 0 0 1.5px var(--signal); background: var(--meet-yes-soft); }
.meet-status .meet-faces i { width: 30px; height: 30px; font-size: .68rem; }
.meet-rule { margin: 8px 2px 0; line-height: 1.4; }
.meet-my { padding: 12px; margin-top: 14px; display: grid; gap: 10px; }
.meet-answer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meet-answer button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .95rem; color: var(--ink); }
.meet-answer button.on.yes { background: var(--signal); border-color: var(--signal); color: #fff; }
.meet-answer button.on.no { background: var(--meet-no); border-color: var(--meet-no); color: #fff; }
.meet-note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.meet-note-form input { min-width: 0; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: var(--paper); }
.meet-note-form .btn { min-height: 42px; padding: 0 16px; }
.meet-table { padding: 4px 0; margin-top: 14px; overflow: hidden; }
.meet-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; border-top: 1px solid #EFEBE3; }
.meet-row:first-child { border-top: 0; }
.meet-table { padding: 6px 0; }
.meet-row { padding: 11px 16px; }
button.meet-row { cursor: pointer; }
button.meet-row:hover { background: #FAF8F3; }
.meet-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 800; background: #EFEDE7; color: var(--muted); }
.meet-avatar { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--meet-open); overflow: hidden; }
.meet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.meet-row.yes .meet-avatar { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--signal); }
.meet-row.no .meet-avatar { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--meet-no); }
.meet-row.ersatz .meet-avatar { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--meet-yes-line); }

.meet-who { display: grid; min-width: 0; }
.meet-who b { font-size: .95rem; font-weight: 650; }
.meet-who small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-who em { font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; background: var(--ink); color: #fff; padding: 1px 5px; border-radius: 5px; margin-left: 4px; vertical-align: 2px; }
.meet-pill { font-size: .74rem; font-weight: 800; padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.meet-pill.yes { background: var(--signal); color: #fff; }
.meet-pill.ersatz { background: transparent; color: var(--signal); box-shadow: inset 0 0 0 1.5px var(--meet-yes-line); }
.meet-pill.open { background: transparent; color: var(--meet-open); box-shadow: inset 0 0 0 1.5px var(--meet-open); }
.meet-pill.no { background: var(--meet-no); color: #fff; }
.meet-send { display: grid; gap: 10px; margin-top: 18px; }
.meet-send .btn { text-decoration: none; }
.btn.whatsapp-soft { background: transparent; border: 1.5px solid #25D366; color: #128C4A; }
.btn.whatsapp-soft:hover { background: #F0FBF4; }
.danger-link { color: var(--clay); }

/* Postfach (Glocke neben dem Profilbild) und regelmäßige Einladungen */
.top-actions { display: flex; align-items: flex-end; gap: 31px; flex: none; }   /* Glocke unten bündig mit dem Profilbild */
.seg.meet-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.seg.meet-weekdays button { min-width: 0; height: 38px; padding: 0; border-radius: 8px; font-size: .85rem; letter-spacing: 0; }
.seg.meet-weekdays button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.inbox-btn { position: relative; width: 27px; height: 27px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1.5px #E2DACB; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.inbox-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inbox-btn.has { box-shadow: 0 0 0 1.5px var(--signal); color: var(--signal); }
.inbox-btn:hover { box-shadow: 0 0 0 1.5px var(--signal); }
.inbox-badge { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; font-size: .58rem !important; border-radius: 99px; background: var(--signal); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.inbox-list { display: grid; margin: 12px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px #E6E1D6; background: #fff; }
.inbox-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid #EFEBE3; }
.inbox-open { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.inbox-del { width: 30px; height: 30px; margin-right: 10px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.inbox-del:hover { background: #EFEBE3; color: var(--ink); }
.inbox-del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.inbox-item:first-child { border-top: 0; }
.inbox-open:hover { background: #FAF8F3; }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; }
.inbox-item.unread .inbox-dot { background: var(--signal); }
.inbox-item.unread { background: var(--meet-yes-soft); }
.inbox-item.gone { opacity: .6; }
.inbox-text { display: grid; gap: 2px; min-width: 0; font-size: .92rem; }
.inbox-text small { font-size: .76rem; color: var(--muted); }
.meet-series-list { display: grid; gap: 10px; }
.meet-series { width: 100%; text-align: left; border: 0; font: inherit; color: inherit; }
button.meet-series { cursor: pointer; }
.meet-series-icon svg { width: 34px; height: 26px; fill: none; stroke: var(--signal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.meet-mine.edit { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #D8D2C5; }
.meet-my.is-open { box-shadow: 0 0 0 1.5px var(--signal); }
.meet-ask { margin: 0; font-size: .9rem; }
.meet-my .small { margin: 0; }
.meet-often { margin-top: 4px; }
.meet-login { display: grid; gap: 12px; justify-items: start; }

/* Anlegen */
.meet-kinds { margin-bottom: 4px; }
.meet-check { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-weight: 600; font-size: .92rem; }
.meet-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.meet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.meet-chips .chip { display: inline-flex; align-items: center; gap: 6px; background: #EFEDE7; border-radius: 99px; padding: 5px 6px 5px 12px; font-size: .84rem; font-weight: 600; }
.meet-chips .chip:not(:has(button)) { padding-right: 12px; }
.meet-chips .chip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.12); padding: 0; line-height: 1; }
.meet-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.meet-quick button { display: inline-flex; align-items: center; gap: 4px; border: 1.5px dashed #CFC8BA; background: transparent; border-radius: 99px; padding: 5px 12px 5px 8px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.meet-quick { align-items: center; }
.meet-quick-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.meet-quick button.on { border-style: solid; border-color: var(--signal); background: var(--meet-yes-soft); color: var(--signal); }
.meet-quick svg, .meet-suggest svg { width: 15px; height: 15px; fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; }
.meet-editor [name=search] { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: var(--paper); }
.meet-suggest { display: grid; gap: 4px; margin-top: 6px; }
.meet-suggest button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 0 0 1px #E6E1D6; font-weight: 600; }
.meet-gap { margin-top: 10px; }
.meet-proxy .meet-answer { margin-top: 14px; }

/* Mitteilungs-Vorschau (wie eine Push-Mitteilung auf dem iPhone) */
.push-banner { position: fixed; z-index: 200; top: 10px; left: 50%; width: min(400px, calc(100vw - 20px)); transform: translate(-50%, -140%); transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px;
  background: rgba(250, 250, 248, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.08); }
.push-banner.in { transform: translate(-50%, 0); }
.push-app { width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 900; letter-spacing: .02em; }
.push-text { display: grid; min-width: 0; font-size: .84rem; line-height: 1.3; }
.push-text b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push-banner small { align-self: start; font-size: .7rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .push-banner { transition: none; } }

@media (min-width: 640px) {
  .meet-new-row { gap: 12px; }
  .meet-kind-tile { padding: 16px 8px 14px; }
}
@media (min-width: 1024px) {
  .view[data-view="treffen"] { max-width: 760px; margin: 0 auto; }
}
/* Sieben Menüpunkte auf schmalen Handys: Schrift wächst mit der Breite, alles passt in eine Zeile */
@media (max-width: 400px) {
  .topnav { gap: 4px; justify-content: space-between; }
  .topnav .tab { font-size: clamp(.5rem, 2.6vw, .64rem); letter-spacing: .07em; }
  .topnav .tab:last-child { margin-right: -.07em; }
}
/* iPad quer (1024–1279 px): sechs Menüpunkte mit größerer Schrift passend setzen */
@media (min-width: 1024px) and (max-width: 1279px) {
  .topbar { column-gap: 36px; }
  .topnav { gap: 30px; }
}
.topnav { overflow: visible; }

/* =====================================================================
   10.10. abends: Home-Seite, Club, Team-Seiten, Schrift-Test, mehr Signal-Rot
   ===================================================================== */

/* Logo mit Ball in Signal-Rot (Ball liegt als eigene Maske exakt über der Stelle im Logo) */
.tfb-logo-split { position: relative; display: block; aspect-ratio: 900 / 402; color: var(--logo); }
.tfb-logo-split > .tfb-logo-noball { position: absolute; inset: 0; width: 100%; height: 100%; }
.tfb-logo-split > .tfb-logo-ball { position: absolute; left: 84.53%; top: 47.95%; width: 15.53%; height: 34.78%; color: var(--signal); }

/* Menü: KIOSK immer in Signal-Rot; aktiver Bereich = dunkle Schrift mit kurzem roten Strich */
.topnav .tab.tab-kiosk { color: var(--signal); font-weight: 800; }
.topnav .tab.active { color: var(--ink); }
.topnav .tab.active::after { content: ""; position: absolute; left: 0; right: .16em; bottom: 3px; height: 2px; border-radius: 2px; background: var(--signal); }
.topnav .tab.tab-kiosk.active { color: var(--signal); }
@media (min-width: 1024px) {
  .topnav .tab.active::after { bottom: -9px; right: .2em; }
}

/* Mehr Signal-Rot: Akzentstrich unter Zwischenüberschriften, Wochentag im Datumsfeld */
.block-heading::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--signal); margin-top: 8px; }
.date-badge small:first-child { color: color-mix(in srgb, var(--signal) 55%, #fff); opacity: 1; }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; text-decoration: none; }
.btn.signal:hover { filter: brightness(1.06); }
.page-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin: 0 0 6px; }

/* Moderne Schrift: Überschriften etwas enger und kräftiger */
:root[data-font="sans"] h1, :root[data-font="sans"] .feature-body h2 { letter-spacing: -.025em; font-weight: 800; }
:root[data-font="sans"] .block-heading, :root[data-font="sans"] .block-text h2, :root[data-font="sans"] .block-teams h2,
:root[data-font="sans"] .block-people h2, :root[data-font="sans"] .block-gallery h2 { letter-spacing: -.015em; font-weight: 800; }
:root[data-font="sans"] .date-badge b, :root[data-font="sans"] .coaster-amount { font-weight: 800; letter-spacing: -.03em; }

/* Home: drei große Themen */
.home-tools { display: flex; justify-content: flex-end; margin: 0 0 -6px; }
.page-bottom-tools { display: flex; justify-content: flex-end; margin: 24px 0 8px; }
.view[data-view="home"] .page-grid.single .page-main { display: grid; gap: 56px; }
.feature { display: grid; gap: 20px; }
.feature-media { border-radius: 20px; overflow: hidden; background: #EEE; aspect-ratio: 16 / 10; }
.feature-media > img, .feature-media > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-portrait .feature-media { aspect-ratio: 4 / 5; }
.feature-square .feature-media { aspect-ratio: 1; }
.feature-kicker { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.feature-kicker span { color: var(--signal); font-family: var(--serif); font-size: 1rem; letter-spacing: 0; }
.feature-kicker .feature-number { appearance: none; border: 0; padding: 0; margin: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: pointer; flex: none; }
.feature-number:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.feature-body h2 { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; margin: 0; }
.feature-sub { font-size: 1.12rem; font-weight: 600; color: var(--signal); margin: 10px 0 0; line-height: 1.35; }
.feature-text { margin-top: 14px; font-size: 1rem; line-height: 1.6; }
.feature-text p { margin: 0 0 .8em; }
.feature-link { margin: 18px 0 0; }

/* Link mit Vorschau-Karte (wie in einer Mail oder in WhatsApp) */
.link-card { display: grid; margin-top: 18px; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; box-shadow: 0 0 0 1px #E6E1D6, 0 6px 18px rgba(0,0,0,.05); transition: box-shadow .15s, transform .15s; max-width: 520px; }
.link-card:hover { box-shadow: 0 0 0 1.5px var(--signal), 0 10px 24px rgba(0,0,0,.08); transform: translateY(-1px); }
.link-card-img { display: block; aspect-ratio: 1.91 / 1; background: #161616; }
.link-card-img img, .link-card-img .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-card-body { display: grid; gap: 3px; padding: 12px 16px 14px; }
.link-card-body small { font-size: .72rem; color: var(--muted); text-transform: lowercase; }
.link-card-body b { font-size: .98rem; line-height: 1.3; }
.link-card-body > span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.link-card-body em { font-style: normal; font-weight: 800; color: var(--signal); margin-top: 8px; font-size: .92rem; }
.editor-sub { margin: 18px 0 4px; font-size: .95rem; }
.layout-seg button { font-size: .8rem; }

@media (min-width: 640px) {
  .feature-portrait, .feature-square { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
  .feature-body h2 { font-size: 2.5rem; }
  .feature-wide .feature-media { aspect-ratio: 2 / 1; }
  .link-card { grid-template-columns: 200px minmax(0, 1fr); }
  .link-card-img { aspect-ratio: auto; min-height: 100%; }
}
@media (min-width: 1024px) {
  .view[data-view="home"] .page-grid.single .page-main { gap: 80px; }
  .feature-wide .feature-media { aspect-ratio: 21 / 9; }
  /* Breit: links Kicker, Überschrift, Unterzeile (+ ggf. Link) – rechts Text, Link, „Mehr erfahren“ */
  .feature-wide .feature-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
  .feature-wide .feature-right { margin-top: 4px; }
  .feature-body h2 { font-size: 3.1rem; }
  .feature-portrait, .feature-square { gap: 56px; }
}

/* Mannschaften: Teamfoto in der Zeile, Beitragszahl */
.team-main { display: flex; align-items: center; gap: 12px; }
.team-name { display: grid; gap: 1px; min-width: 0; }
.team-name strong { font-size: .95rem; }
.team-name small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-thumb { flex: none; width: 56px; height: 40px; border-radius: 8px; overflow: hidden; }
.team-thumb img, .team-thumb .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-news { font-style: normal; font-size: .7rem; font-weight: 800; color: var(--signal); }

/* Team-Seite */
.team-photo { position: relative; margin: 0 0 18px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #EFEDE7; }
.team-photo > img, .team-photo > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo.empty { aspect-ratio: 16 / 6; border: 2px dashed #D8D2C5; background: transparent; }
.team-photo-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.team-photo-empty svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.team-photo-btn { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.94); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .85rem; gap: 6px; }
.btn.small svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.team-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.team-facts div { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px #E6E1D6; display: grid; gap: 2px; min-width: 0; }
.team-facts b { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.team-facts b.top { color: var(--signal); }
.team-facts b.team-facts-name { font-family: var(--font); font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.team-facts span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.team-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.team-news-head .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.team-post { position: relative; }
.team-post-edit { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.94); }
@media (min-width: 1024px) {
  .view[data-view="team"] { max-width: 900px; margin: 0 auto; }
}

/* Verwaltung: Schrift-Auswahl */
.font-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.font-option { border: 0; background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 0 0 1px #E6E1D6; display: grid; gap: 4px; text-align: left; color: var(--ink); }
.font-option b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.font-option span { font-family: var(--font); font-size: .74rem; color: var(--muted); }
.font-option.on { box-shadow: 0 0 0 2px var(--signal); }
/* Gezeichnete Startmotive der Home-Seite (bis echte Fotos hochgeladen sind) */
.ph.ph-kiosk { background: #F1ECE2; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 0 12% 14%; box-sizing: border-box;
  background-image: linear-gradient(to top, #E4DDCF 0 16%, transparent 16%); }
.ph-kiosk svg.art { width: 30%; height: auto; transform: scale(1.7); transform-origin: 50% 88%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.12)); }
.ph.ph-50 { background: var(--brand); color: #fff; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; }
.ph-50 b { font-family: var(--serif); font-size: clamp(6rem, 22vw, 11rem); line-height: .85; color: var(--signal); font-weight: 800; letter-spacing: -.05em; }
.ph-50 .tfb-mark { width: 38%; color: #fff; margin-top: 10px; }
.ph-50 small { font-size: .78rem; font-weight: 700; letter-spacing: .2em; opacity: .7; margin-top: 6px; }
.feature .ph-50 b { font-size: clamp(6rem, 16vw, 12rem); }
/* Vorschau-Karte: Bild immer oben, wie die große Link-Vorschau in WhatsApp */
@media (min-width: 640px) {
  .link-card { grid-template-columns: 1fr; max-width: 440px; }
  .link-card-img { aspect-ratio: 1.91 / 1; min-height: 0; }
}

/* =====================================================================
   10.10. spät: dezente Links, Unterseiten mit Kollage, Account-Karte, Schriften
   ===================================================================== */

/* Links im Fließtext */
.inline-link { color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 650; }
.inline-link:hover { color: var(--signal); }
.inline-ext { font-size: .75em; margin-left: 2px; color: var(--signal); }
.text-sub { font-family: var(--serif); font-size: 1.2rem; margin: 1.4em 0 .4em; }

/* Home: Aktionen unter dem Text – „Mehr erfahren“ und dezenter Link */
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; }
.feature-actions .feature-link { margin: 0; }
.feature-actions:empty { display: none; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--signal); text-decoration: none; font-size: .98rem; }
.more-link span { transition: transform .15s; }
.more-link:hover span { transform: translateX(3px); }
.more-link.back { color: var(--muted); font-weight: 700; }
.more-link.back:hover span { transform: translateX(-3px); }
.feature-hit { color: inherit; text-decoration: none; display: block; }
.feature.has-more .feature-media { transition: transform .35s ease, box-shadow .35s; }
.feature.has-more .feature-hit:hover .feature-media { transform: scale(1.01); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.feature .feature-hit:hover h2,
.feature .feature-hit:focus-visible h2 { color: var(--signal); }

/* Dezenter Link: kleine Pille mit Mini-Vorschaubild */
.link-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px #E6E1D6; text-decoration: none; color: var(--ink); font-size: .86rem; transition: box-shadow .15s; }
.link-chip:not(:has(.link-chip-img)) { padding-left: 12px; }
.link-chip:hover { box-shadow: 0 0 0 1.5px var(--signal); }
.link-chip-img { flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #161616; }
.link-chip-img img, .link-chip-img .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-chip-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-chip small { color: var(--muted); font-size: .76rem; white-space: nowrap; }

/* Editor: Werkzeugleiste über Textfeldern */
.rich-tools { display: flex; gap: 6px; margin: 0 0 6px; flex-wrap: wrap; }
.rich-tools button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 650; color: var(--ink); }
.rich-tools button:hover { border-color: var(--signal); color: var(--signal); }
.link-style-seg button { font-size: .8rem; }

/* Unterseite eines Themas – Magazin-Look */
.view[data-view="home"] .story { margin-top: 4px; }
.story-hero { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: #161616; color: #fff; }
.story-hero-img, .story-hero-img > img, .story-hero-img > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.82) 0%, rgba(10,10,10,.25) 45%, transparent 70%); pointer-events: none; }
.story-hero-text { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 1; }
.story-hero-text .feature-kicker { color: rgba(255,255,255,.8); }
.story-hero-text h1 { font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: 1; margin: 0; color: #fff; }
.story-close, .story-edit { position: absolute; top: 14px; z-index: 2; background: rgba(255,255,255,.94); }
.story-close { right: 14px; }
.story-edit { right: 66px; }
.story-body { max-width: 680px; margin: 28px auto 0; }
.story-lead { font-size: 1.3rem; line-height: 1.4; font-weight: 650; color: var(--signal); margin: 0 0 18px; }
.story-text { font-size: 1.06rem; line-height: 1.7; }
.story-text p { margin: 0 0 1em; }
.dropcap > p:first-child::first-letter { float: left; font-family: var(--serif); font-weight: 800; font-size: 3.9em; line-height: .8; margin: .06em .1em 0 0; color: var(--signal); }
.story-quote { margin: 30px 0; padding: 0 0 0 22px; border-left: 4px solid var(--signal); }
.story-quote p { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.story-quote p::before { content: "„"; color: var(--signal); }
.story-quote p::after { content: "“"; color: var(--signal); }
.story-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .82rem; color: var(--muted); font-weight: 650; }
.story-foot { max-width: 680px; margin: 28px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.story-foot .feature-link { margin: 0; }

/* Fotokollage */
.collage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 90px; gap: 8px; margin: 36px 0 0; }
.collage-item { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #EEE; cursor: zoom-in; grid-column: span 3; grid-row: span 2; }
.collage-item > img, .collage-item > .ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.collage-item:hover > img, .collage-item:hover > .ph { transform: scale(1.04); }
.collage-item:nth-child(5n+1) { grid-column: span 6; grid-row: span 3; }
.collage-item:nth-child(5n+4) { grid-column: span 2; }
.collage-item:nth-child(5n+5) { grid-column: span 4; }
.collage-1 .collage-item { grid-column: span 6; grid-row: span 4; }
.collage-2 .collage-item { grid-column: span 3; grid-row: span 3; }
.news-collage-wrap { position: relative; min-width: 0; }
.news-collage { margin: 0; grid-auto-rows: 55px; }
.news-collage .collage-item { position: relative; border-radius: 8px; }
.news-collage-wrap > .date-badge { position: absolute; left: 14px; bottom: -18px; z-index: 1; }
.photo-count { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; background: #202823; color: #fff; border-radius: 4px; font-weight: 700; }
.viewer-stage:has(.gal-album) { overflow-y: auto; align-items: start; padding: 50px 0 80px; }
.gal-album { width: min(1000px, 92vw); margin: 0 auto; }
.gal-album .collage-item { border-radius: 8px; }
@media (min-width: 640px) {
  .story-hero { aspect-ratio: 16 / 9; }
  .story-hero-text { left: 32px; bottom: 30px; right: 32px; }
  .collage { grid-auto-rows: 110px; gap: 12px; }
  .news-collage { grid-auto-rows: 75px; gap: 8px; }
  .collage-item:nth-child(5n+1) { grid-column: span 4; grid-row: span 4; }
  .collage-item:nth-child(5n+2), .collage-item:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
  .collage-item:nth-child(5n+4) { grid-column: span 3; grid-row: span 2; }
  .collage-item:nth-child(5n+5) { grid-column: span 3; grid-row: span 2; }
}
@media (min-width: 1024px) {
  .story-hero { aspect-ratio: 21 / 9; }
  .story-hero-text { left: 48px; bottom: 40px; }
  .collage { grid-auto-rows: 130px; }
  .news-collage { grid-auto-rows: 85px; }
}

/* Account-Karte (Vorbild: Padel-App) */
.acct { display: grid; gap: 14px; }
.acct-next-match { padding: 16px 18px; min-width: 0; border: 1px solid #1c1a17; border-radius: 16px; }
.acct-next-match h3 { margin: 0 0 7px; color: var(--signal); font-family: var(--font); font-size: .7rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.acct-next-match p { margin: 0; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.acct-next-match small { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.acct-next-match a, .acct-details { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ink); font-size: .8rem; font-weight: 600; text-underline-offset: 3px; }
.acct-next-match a:hover, .acct-details:hover { color: var(--signal); }
.acct-kiosk { min-width: 0; }
.acct-kiosk > .acct-section { margin: 0 18px 10px; letter-spacing: 0; }
.acct-kiosk > .acct-details { margin-left: 18px; }
.acct-head { text-align: center; padding: 6px 0 4px; }
.acct-head .acct-avatar { margin: 0 auto 12px; width: 104px; height: 104px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--signal); }
.acct-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); margin: 0; }
.acct-name { font-family: var(--serif); font-size: 2rem; line-height: 1.05; margin: 4px 0 6px; letter-spacing: -.02em; }
.acct-meta { color: var(--muted); font-size: .86rem; margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; }
.acct-badge { background: var(--ink); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.acct-card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(28,26,23,.08); display: grid; gap: 14px; }
.acct-row { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.acct-row strong { display: block; font-size: .95rem; }
.acct-row small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.acct-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #CFC8BA; display: grid; place-items: center; }
.acct-check.on { background: var(--signal); border-color: var(--signal); }
.acct-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acct-stats a { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 3px rgba(28,26,23,.08); text-decoration: none; color: var(--ink); display: grid; gap: 2px; min-width: 0; }
.acct-stats small { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acct-stats b { font-family: var(--serif); font-size: 1.12rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-stats a:hover { box-shadow: 0 0 0 1.5px var(--signal); }
.acct-form { gap: 0; }
.acct-form .field { margin: 8px 0; }
.acct-form .field em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.acct-form input[readonly] { background: #F6F3EC; color: #6E6A62; }
.acct-section { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 14px 0 4px; }
.acct-section:first-child { margin-top: 0; }
.acct-hint { font-size: .78rem; color: var(--muted); margin: 2px 0 6px; line-height: 1.4; }
.acct-pref { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.acct-pref input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--signal); }
.acct-pref strong { display: block; font-size: .92rem; }
.acct-pref em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.acct-photo { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; align-items: center; margin: 6px 0 14px; }
.acct-photo-preview { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #EFEDE7; display: grid; place-items: center; font-weight: 800; color: var(--muted); grid-row: span 2; }
.acct-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.acct-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-photo .acct-hint { margin: 0; }
.btn.ghost-danger { color: var(--signal); }
.acct-admin { display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.acct-admin-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.acct-admin-icon svg, .acct-admin-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.acct-admin strong { display: block; font-size: .95rem; }
.acct-admin small { display: block; font-size: .76rem; opacity: .7; }
.acct-logout { background: transparent; }
.acct-install { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; border: 1.5px dashed #D8D2C5; margin-top: 6px; }
.acct-install-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; }
.acct-install-ball { width: 24px; color: var(--signal); }
.acct-install strong { font-size: .95rem; }
.acct-install ol { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; line-height: 1.55; color: #4A4740; }
.acct-install i { font-style: normal; font-weight: 700; color: var(--ink); }

/* Verwaltung: Schriftgruppen */
.font-group { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.font-option b { font-size: 1.15rem; line-height: 1.15; }
.feature-actions .feature-link { min-width: 0; max-width: 100%; }
.link-chip-label, .link-chip small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.story-text .text-sub, .feature-text .text-sub { font-family: var(--serif); text-transform: none; letter-spacing: -.015em; color: var(--ink); font-size: 1.4rem; font-weight: 800; margin: 1.5em 0 .35em; }

/* Link-Platz links unter der Unterzeile; im Bearbeiten-Modus ziehbar */
.feature-link-left { margin-top: 16px; }
.feature-link-left .feature-link { margin: 0; }
.link-slot { min-width: 0; }
.link-slot.empty { display: none; }
.editing-page .link-slot.empty { display: block; }
.link-slot.empty button { border: 1.5px dashed #CFC8BA; background: transparent; border-radius: 99px; padding: 7px 14px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.link-slot.empty button:hover { border-color: var(--signal); color: var(--signal); }
.link-drag { cursor: grab; display: inline-block; border-radius: 99px; outline: 1.5px dashed transparent; outline-offset: 4px; }
.editing-page .link-drag { outline-color: color-mix(in srgb, var(--signal) 55%, transparent); }
.link-drag:active { cursor: grabbing; }
.dragging-link .link-slot.empty button { border-color: var(--signal); color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, #fff); }
.link-slot.over button, .link-slot.over .link-drag { box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 35%, transparent); }
.link-pos-seg button { font-size: .8rem; }

/* Home-Themen: linke Spalte mit mehr Luft, Link-Plätze immer linksbündig */
.feature-left .feature-kicker { margin-bottom: 14px; }
.feature-left .feature-sub { margin-top: 18px; }
.feature-left > .link-place, .feature-left > .link-slot.filled, .feature-left > .link-slot.with-button { margin-top: 24px; }
.feature-text > .link-place, .feature-text > .link-slot.filled { margin: 2px 0 16px; }
.feature-right > .link-place, .feature-right > .link-slot.filled, .feature-right > .link-slot.with-button { margin-top: 6px; }
.feature-more { margin: 16px 0 0; }
.link-place .feature-link, .link-slot .feature-link { margin: 0; }
.feature-left > .link-slot.empty.with-button { margin-top: 24px; }
/* Ablagelinien erscheinen nur beim Ziehen */
.link-slot.empty:not(.with-button) { display: none; }
.dragging-link .editing-page .feature.drag-src .link-slot.empty:not(.with-button) { display: block; margin: 4px 0 12px; }
.link-drop { display: block; border: 2px dashed color-mix(in srgb, var(--signal) 45%, transparent); border-radius: 10px; padding: 6px 12px; font-size: .74rem; font-weight: 700; color: var(--signal); text-transform: uppercase; letter-spacing: .1em; }
.link-slot.over .link-drop { background: color-mix(in srgb, var(--signal) 10%, #fff); border-color: var(--signal); }

/* 11.10.: Abstand Text → Link wie zwischen zwei Absätzen (Absatz .8em + Zeilenzwischenraum .6em) */
.feature-right > .link-place, .feature-right > .link-slot.filled, .feature-right > .link-slot.with-button { margin-top: .6em; }
.feature-text > .link-place, .feature-text > .link-slot.filled { margin: .6em 0 1.4em; }
.feature-more { margin-top: 1.4em; }

/* Textgestaltung (Fließtext) */
.tx-red { color: var(--signal); }
.tx-gray { color: var(--muted); }
.tx-mark { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--signal) 28%, transparent) 55%); padding: 0 .1em; }
.tx-l { font-size: 1.25em; line-height: 1.35; }
.tx-xl { font-family: var(--serif); font-size: 1.65em; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.text-l { font-size: 1.18rem; line-height: 1.6; }
.story-text.text-l { font-size: 1.22rem; }

/* WYSIWYG-Editor */
.rich-field > span { display: block; }
.rich-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 6px; padding: 5px; background: #F6F3EC; border-radius: 10px; }
.rich-tools button { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid transparent; background: #fff; border-radius: 7px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.rich-tools button:hover { border-color: var(--signal); }
.rich-sep { width: 1px; height: 20px; background: #DDD6C8; margin: 0 3px; }
.rich-area { min-height: 140px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 1.55; outline: none; }
.rich-area:focus { border-color: var(--brand); }
.rich-area p { margin: 0 0 .7em; }
.rich-area:empty::before { content: attr(data-placeholder); color: #A9A398; }
.rich-area h3 { font-family: var(--serif); font-size: 1.2rem; margin: .8em 0 .3em; }
.rich-area .inline-ext { display: none; }

/* Kollage im Originalformat: nichts wird zugeschnitten */
.collage.natural { display: block; column-count: 1; column-gap: 12px; }
.collage.natural .collage-item { display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; }
.collage.natural .collage-item > img { height: auto; }
.collage.natural .collage-item > .ph { aspect-ratio: 4 / 3; height: auto; }
@media (min-width: 640px) { .collage.natural.collage-2, .collage.natural.collage-3, .collage.natural.collage-4, .collage.natural.collage-5 { column-count: 2; } }
.collage.natural.collage-1 .collage-item { max-width: 900px; margin: 0 auto; }

/* Rundes Symbol bei Links innerhalb der App */
.link-chip-img.icon { background: var(--signal); display: grid; place-items: center; }
.link-chip-img.icon svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Beschriftungsregel „.field span“ nicht auf Text im Editor und in der Werkzeugleiste anwenden */
.field .rich-area span, .field .rich-tools span:not(.rich-sep) { display: inline; margin: 0; font-size: inherit; font-weight: inherit; }
.field .rich-area .tx-l { font-size: 1.25em; }
.field .rich-area .tx-xl { font-size: 1.65em; font-weight: 800; }

/* 11.10.: Unterseite im Look der Startseite – Foto ohne Schrift, Texte linksbündig */
.story-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
.story-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #EEE; }
.story-photo > img, .story-photo > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-grid { display: grid; gap: 22px; margin-top: 22px; }
.story-head .feature-kicker { margin: 0 0 14px; }
.story-head h1 { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; margin: 0; }
.story-head .feature-sub { margin-top: 18px; }
.story-link { margin-top: 24px; }
.story-link .feature-link { margin: 0; }
.story .story-body { max-width: 720px; margin: 0; }
.story .story-foot { max-width: none; margin: 32px 0 0; justify-content: flex-start; }
@media (min-width: 640px) {
  .story-photo { aspect-ratio: 2 / 1; }
  .story-head h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .story-photo { aspect-ratio: 21 / 9; }
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; margin-top: 28px; }
  .story-head { position: sticky; top: 140px; }
  .story-head h1 { font-size: 3.1rem; }
  .story .story-body { max-width: none; }
}
/* Editor: Link-Ziel */
.link-target .seg { margin-bottom: 8px; }
.link-target select, .link-target input[type=url] { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; }

/* ===== 11.10.: Themen-Editor als Seitenleiste mit Live-Vorschau ===== */
.ed-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #EFEBE3; border-radius: 12px; margin: 4px 0 14px; position: sticky; top: -26px; z-index: 2; }
.ed-tabs button { border: 0; background: transparent; border-radius: 9px; padding: 10px 8px; font-weight: 750; font-size: .86rem; color: var(--muted); }
.ed-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ed-hint { font-size: .82rem; color: var(--muted); background: #F6F3EC; border-radius: 10px; padding: 10px 12px; margin: 0 0 6px; line-height: 1.45; }
.ed-panel .editor-sub { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin: 20px 0 2px; }
.ed-actions { display: grid; gap: 8px; position: sticky; bottom: -24px; background: var(--paper); padding: 10px 0 6px; z-index: 2; }
.ed-peek { display: none; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* Großer Bildschirm: Editor rechts als Leiste, die Seite links bleibt sichtbar und zeigt die Änderungen sofort */
@media (min-width: 1100px) {
  body.side-editing { padding-right: 440px; }
  body.side-editing .topbar { padding-right: 24px; }
  #sheet-root.side-mode .sheet-backdrop { display: none; }
  #sheet-root.side-mode .sheet {
    left: auto; right: 0; top: 0; bottom: 0; width: 440px; max-width: 440px; max-height: none; height: 100vh;
    border-radius: 0; transform: none; opacity: 1; box-shadow: -12px 0 40px rgba(0,0,0,.12); padding: 26px 22px 24px;
  }
}
/* Handy/iPad: Editor als Blatt; „Vorschau ansehen“ schiebt es nach unten weg */
@media (max-width: 1099px) {
  #sheet-root.side-mode .ed-peek { display: block; }
  #sheet-root.side-mode.peek .sheet-backdrop { opacity: 0; pointer-events: none; }
  #sheet-root.side-mode.peek .sheet { transform: translate(-50%, calc(100% - 92px)) !important; top: auto; bottom: 0; overflow: hidden; }
}

/* Unterseite: Titelbild-Varianten */
.story-photo.natural { aspect-ratio: auto; background: none; }
.story-photo.natural > img { height: auto; max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 20px; }
.story-photo.natural > .ph { aspect-ratio: 16 / 9; height: auto; }
.story-squares { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-squares.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-square { border: 0; padding: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #EEE; cursor: zoom-in; }
.story-square > img, .story-square > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) { .story-squares.n3 { gap: 6px; } .story-square { border-radius: 10px; } }
.story-side-img { border-radius: 20px; overflow: hidden; margin-bottom: 24px; background: #EEE; aspect-ratio: 4 / 5; }
.story-side-img.square { aspect-ratio: 1; }
.story-side-img > img, .story-side-img > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-grid.with-side { margin-top: 0; }
@media (max-width: 1099px) {
  #sheet-root.side-mode.peek .sheet { cursor: pointer; }
  #sheet-root.side-mode.peek .editor > h2::after { content: "  ·  antippen zum Weiterbearbeiten"; font-size: .78rem; font-weight: 600; color: var(--signal); }
}
/* Unterseite: 4 Quadrate – Desktop in einer Reihe, Handy als 2 × 2 */
.story-squares.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 639px) { .story-squares.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
/* Fotos im Editor sortieren: Pfeile und Ziehen */
.gallery-thumb.sortable { cursor: grab; touch-action: none; }
.gallery-thumb.sortable > img, .gallery-thumb.sortable > .ph { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gallery-edit:has(.thumb-grip) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-thumb .thumb-grip { position: absolute; top: 4px; left: calc(50% - 15px); right: auto; width: 30px; height: 30px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 30px; text-align: center; cursor: grab; touch-action: none; user-select: none; }
.gallery-thumb .thumb-grip:active { cursor: grabbing; }
.thumb-move { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; justify-content: space-between; }
.gallery-thumb .thumb-move button { position: static; width: 26px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1; }
.gallery-thumb .thumb-move button:disabled { opacity: .3; }
.gallery-thumb.dragging { opacity: .8; outline: 2px solid var(--signal); outline-offset: -2px; }
.gallery-thumb.drop-target { outline: 3px solid var(--signal); outline-offset: 2px; }
/* Ausrichtung von Fotos im Originalformat: links, Mitte, rechts */
.story-photo.natural { display: flex; }
.story-photo.natural.align-left { justify-content: flex-start; }
.story-photo.natural.align-center { justify-content: center; }
.story-photo.natural.align-right { justify-content: flex-end; }
.story-photo.natural > img { margin: 0; }
.collage.natural .collage-item { background: none; display: flex; }
.collage.natural.align-left .collage-item { justify-content: flex-start; }
.collage.natural.align-center .collage-item { justify-content: center; }
.collage.natural.align-right .collage-item { justify-content: flex-end; }
.collage.natural .collage-item > img { width: auto; max-width: 100%; max-height: 80vh; border-radius: 14px; }
.collage.natural.collage-1 .collage-item { max-width: none; }
.block-image.natural { margin: 0 0 16px; display: flex; flex-direction: column; }
.block-image.natural.align-left { align-items: flex-start; }
.block-image.natural.align-center { align-items: center; }
.block-image.natural.align-right { align-items: flex-end; }
.block-image.natural > img { width: auto; max-width: 100%; max-height: 80vh; height: auto; border-radius: 16px; aspect-ratio: auto; }
.block-image.natural > .ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.block-image.natural figcaption { padding: 8px 2px 0; }
/* Großer Textanfang mit 1–3 Zeichen (z. B. „50“) */
.lead-letters { float: left; font-family: var(--serif); font-weight: 800; font-size: 3.9em; line-height: .8; margin: .06em .12em 0 0; color: var(--signal); letter-spacing: -.03em; }

/* Termine: Anhang (Bild oder PDF) */
.event .event-body { flex: 1; min-width: 0; }
.event-att { flex: none; width: 64px; height: 84px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: #F1ECE2; box-shadow: 0 0 0 1px #E6E1D6; cursor: zoom-in; display: grid; place-items: center; transition: box-shadow .15s, transform .15s; }
.event-att:hover { box-shadow: 0 0 0 2px var(--signal); transform: translateY(-1px); }
.event-att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-pdf { display: grid; justify-items: center; gap: 2px; color: var(--signal); }
.att-pdf svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.att-pdf b { font-size: .66rem; letter-spacing: .1em; }
.att-edit { display: flex; gap: 14px; align-items: center; }
.att-edit strong { display: block; font-size: .9rem; margin-bottom: 6px; word-break: break-all; }

/* Großansicht für Bilder und PDFs */
.viewer { position: fixed; inset: 0; z-index: 300; background: rgba(15, 15, 15, .88); display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .2s ease; }
.viewer.open { opacity: 1; }
.viewer-stage { overflow: auto; display: grid; place-items: center; padding: 56px 16px 8px; min-height: 0; }
.viewer-img { max-width: min(92vw, 1100px); max-height: calc(100vh - 130px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-in; background: #fff; }
.viewer.zoomed .viewer-stage { place-items: start center; }
.viewer.zoomed .viewer-img { max-width: none; max-height: none; width: min(1400px, 96vw); cursor: zoom-out; }
.viewer-doc { width: min(1000px, 94vw); height: calc(100vh - 130px); border: 0; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.viewer-bar { display: flex; justify-content: center; gap: 18px; align-items: center; padding: 12px 16px calc(14px + var(--safe-bottom)); color: rgba(255,255,255,.85); font-size: .86rem; font-weight: 600; }
.viewer-bar a { color: #fff; }
.viewer-hint { opacity: .65; font-weight: 500; }
.viewer-close { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; z-index: 2; }
.viewer-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }

/* =====================================================================
   Clubgeflüster & Insider News
   ===================================================================== */
.aktuell-switch { margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); background: #EFEBE3; padding: 4px; border-radius: 12px; gap: 4px; }
.aktuell-switch button { border: 0; background: transparent; border-radius: 9px; padding: 9px 4px; font-weight: 750; font-size: .84rem; color: var(--muted); }
.aktuell-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.page-grid.three > .col-news, .page-grid.three > .col-feed, .page-grid.three > .col-dates { display: none; }
.page-grid.three.show-news > .col-news, .page-grid.three.show-feed > .col-feed, .page-grid.three.show-dates > .col-dates { display: block; }
@media (min-width: 1024px) {
  .aktuell-switch { display: none; }
  .page-grid.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .82fr); column-gap: 32px; }
  .page-grid.three > .col-news, .page-grid.three > .col-feed, .page-grid.three > .col-dates { display: block; }
  .page-grid.three .run-posts, .page-grid.three .page-main .run-posts { grid-template-columns: minmax(0, 1fr); }
  .page-grid.three .page-aside { position: static; }
  .page-grid.three .col-feed .block-heading { margin-top: 0; }
}

.feed { display: grid; gap: 12px; }
.feed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feed-head .block-heading { margin: 0 !important; }
.feed-head p { margin: 4px 0 0; }
.feed-head .btn { flex: none; margin-top: 2px; }
.feed-head .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.feed-list { display: grid; gap: 10px; }
.feed-empty { background: #fff; border-radius: 16px; padding: 20px; text-align: center; box-shadow: 0 0 0 1px #E6E1D6; }
.fpost { background: #fff; border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 1px 3px rgba(28,26,23,.08); display: grid; gap: 10px; }
.fpost.is-teaser { box-shadow: inset 3px 0 0 var(--signal), 0 1px 3px rgba(28,26,23,.08); }
.fpost.is-hidden { opacity: .5; }
.fpost-head { display: flex; gap: 10px; align-items: center; }
.fpost-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #EFEDE7; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--muted); }
.fpost-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fpost-who { display: grid; min-width: 0; }
.fpost-who b { font-size: .92rem; }
.fpost-who small { font-size: .74rem; color: var(--muted); }
.fpost-who small a { color: var(--signal); font-weight: 700; text-decoration: none; }
.fpost-text { font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.fpost-media { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #EEE; cursor: zoom-in; display: block; width: 100%; }
.fpost-media > img, .fpost-media > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpost-more { position: absolute; right: 10px; bottom: 10px; background: rgba(20,20,20,.75); color: #fff; font-weight: 800; font-size: .9rem; padding: 4px 10px; border-radius: 99px; }
.fpost-tools { display: flex; gap: 14px; justify-content: flex-end; border-top: 1px solid #F1EEE7; padding-top: 6px; }
.fpost-tools button { border: 0; background: none; padding: 2px 0; font-size: .76rem; font-weight: 650; color: var(--muted); }
.fpost-tools button:hover { color: var(--signal); }
.feed-roster summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--muted); }
.feed-roster p { margin: 6px 0 0; }

/* Schreiben */
.compose textarea { width: 100%; min-height: 130px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; margin: 4px 0 10px; }
.compose textarea:focus { outline: none; border-color: var(--brand); }
.compose-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.compose-photos .gallery-thumb > img, .compose-photos .gallery-thumb > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.rules-list { margin: 8px 0 14px; padding-left: 20px; line-height: 1.7; }

/* Galerie: Kollage, dann einzeln blättern */
.gal-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(900px, 94vw); }
.gal-collage.n3 .gal-tile:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.gal-tile { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #333; cursor: zoom-in; }
.gal-tile > img, .gal-tile > .ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal-tile:hover > img, .gal-tile:hover > .ph { transform: scale(1.03); }
.message-collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; border-radius: 8px; }
.message-collage > .message-photo { display: block; min-width: 0; min-height: 0; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: #eee; overflow: hidden; cursor: zoom-in; }
.message-photo > img, .message-photo > .ph { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.message-photo:hover > img { transform: scale(1.03); }
.message-photo:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.message-collage > .message-photo:first-child { grid-column: span 2; grid-row: span 2; }
.message-collage.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.message-collage.n1 > .message-photo:first-child, .message-collage.n2 > .message-photo:first-child { grid-column: auto; grid-row: auto; }
.message-collage.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.message-collage.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.message-collage.n4 > .message-photo:nth-child(2) { grid-column: span 2; }
.message-collage.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); aspect-ratio: 1; }
.gal-collage.message-collage { width: min(760px, 92vw, 72vh); gap: 8px; }
.gal-collage.message-collage .message-photo { aspect-ratio: auto; }
.mini .message-collage { gap: 3px; }
.aktuell-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-grid.news-dates > .col-news, .page-grid.news-dates > .col-dates { display: none; }
.page-grid.news-dates.show-news > .col-news, .page-grid.news-dates.show-dates > .col-dates { display: grid; }
.page-grid.news-dates .page-main .run-posts { grid-template-columns: minmax(0, 1fr); }
.chat-stream { width: min(100%, 760px); margin: 0; }
.chat-page-tools { display: flex; gap: 8px; flex: none; }
.chat-page h1, .chat-page h2, .overview h1, .overview .page-kicker { overflow-wrap: anywhere; }
.chat-stream .feed-actions { flex-wrap: wrap; }
.chat-stream .feed-actions .btn { white-space: normal; overflow-wrap: anywhere; }
.chat-text-editor fieldset { border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; margin: 24px 0; }
.chat-text-editor legend { padding: 0 10px 0 0; font-weight: 800; }
.chat-stream .feed-head { flex-wrap: wrap; }
.chat-stream .feed-sub { flex: 1; min-width: min(100%, 300px); }
.chat-stream .feed-actions a { text-decoration: none; }
.chat-stream .fpost { padding: 20px; }
.chat-stream .fpost-text { font-size: 1rem; line-height: 1.65; }
.chat-stream .message-collage { max-height: 680px; }
@media (min-width: 1024px) {
  .page-grid.news-dates { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 28px; }
  .page-grid.news-dates > .col-news, .page-grid.news-dates > .col-dates { display: grid; }
  .page-grid.news-dates .page-aside { position: static; }
}
@media (max-width: 1023px) {
  .topnav { overflow-x: auto; overflow-y: hidden; }
}
@media (max-width: 480px) {
  .chat-stream .fpost { padding: 12px; }
  .chat-stream .feed-sub { flex-direction: column; align-items: flex-start; }
  .chat-stream .feed-actions { flex-wrap: wrap; }
}
.gal-single { display: grid; place-items: center; min-width: 0; width: min(100%, 1200px); background: none; border: 0; padding: 0; cursor: pointer; }
.gal-single > img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gal-single > .ph { width: min(100%, 900px); aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.gal-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 28px; font-weight: 700; line-height: 1; color: var(--ink); z-index: 2; }
.gal-nav.prev { left: 14px; }
.gal-nav.next { right: 14px; }
.gal-back { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 700; }

/* ===== 11.10.: Mannschaftsliste neu – links Name, Mitte Teamfoto + Insider News, rechts Platz ===== */
.team.team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.team-row .team-name strong { font-size: .98rem; }
.team-row .team-name strong i { font-style: normal; font-weight: 600; font-size: .74rem; color: var(--muted); background: #F1EEE7; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.team-mid { display: flex; align-items: center; gap: 10px; }
.team-row .team-thumb { width: 72px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #F1EEE7; }
.team-row .team-thumb.empty svg { width: 20px; height: 20px; fill: none; stroke: #C3BCAE; stroke-width: 1.6; }
.team-row .team-news { display: none; font-style: normal; font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.team-row .team-news.has { color: var(--signal); }
.team-row .team-news b { margin-left: 4px; transition: transform .15s; display: inline-block; }
.team-row:hover .team-news b { transform: translateX(3px); }
.team-stand { display: grid; justify-items: end; min-width: 64px; }
.team-stand b { font-family: var(--serif); font-size: 1.3rem; font-weight: 800; line-height: 1; }
.team-stand b.top { color: var(--signal); }
.team-stand small { font-size: .68rem; color: var(--muted); font-weight: 600; white-space: nowrap; margin-top: 2px; }
@media (min-width: 640px) {
  .team.team-row { grid-template-columns: minmax(0, 1fr) 230px 90px; }
  .team-row .team-news { display: inline; }
}
@media (max-width: 639px) {
  .team-row .team-thumb { width: 56px; height: 40px; }
  /* Handy: Zahl der Insider News als roter Punkt am Foto */
  .team-mid { position: relative; }
  .team-row .team-news.has { display: grid; place-items: center; position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--signal); color: #fff; font-size: 0; }
  .team-row .team-news.has::before { content: attr(data-count); font-size: .66rem; font-weight: 800; }
  .team-row .team-news.has b { display: none; }
}

/* ===== Team-Seite: Foto + Infokarte, darunter Insider News ===== */
.team-top { display: grid; gap: 14px; margin-bottom: 8px; }
.team-top .team-photo { margin: 0; }
.team-card { background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(28,26,23,.08); padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.team-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-card-stats div { background: #F6F3EC; border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.team-card-stats b { font-family: var(--serif); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.team-card-stats b.top { color: var(--signal); }
.team-card-stats span, .team-card-row span { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.team-card-row { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid #F1EEE7; }
.team-card-row b { font-size: .92rem; font-weight: 650; }
.team-card-links { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid #F1EEE7; }
.team-card-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 10px 12px; border-radius: 10px; background: #F6F3EC; }
.team-card-links a span { font-size: .74rem; font-weight: 700; color: var(--signal); }
.team-card-links a:hover { box-shadow: 0 0 0 1.5px var(--signal); }
.team-feed { margin-top: 36px; }
.team-page .team-feed .feed { max-width: 760px; }
@media (min-width: 1024px) {
  .team-top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
  .team-top .team-photo { aspect-ratio: auto; min-height: 340px; height: 100%; }
  .team-top .team-photo.empty { min-height: 300px; }
  .view[data-view="team"] { max-width: 1100px; }
}

/* ===== Termine: Anhang als Quadrat unter dem Text ===== */
.event .event-att { width: 76px; height: 76px; margin-top: 10px; }
.compose-teams { display: grid; gap: 2px; margin: 4px 0 6px; }
.team-photo.empty { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; }
.team-photo.empty .team-photo-empty { height: auto; }
.team-photo.empty .team-photo-btn { position: static; }

/* ===== 11.10.: Home-Themen mit Bild rechts ===== */
@media (min-width: 640px) {
  .feature-portrait.img-right, .feature-square.img-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature.img-right > :first-child { order: 2; }
}
/* Lange Überschriften (z. B. „WEIHNACHTSFEIER“) automatisch trennen statt über den Rand zu laufen */
h1, h2, h3, .event h3, .feature-body h2, .story-head h1, .post-body h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.event-body, .post-body, .feature-body, .fpost { min-width: 0; }
/* Save the Date: Anhang gleich groß unter dem Datumsfeld, Text mit voller Breite */
.event-side { flex: none; width: 58px; display: grid; gap: 8px; align-content: start; }
.event .event-side .event-att { width: 58px; height: 58px; margin: 0; border-radius: 12px; }
.event .event-side .att-pdf svg { width: 24px; height: 24px; }
.event h3 { font-size: 1.05rem; line-height: 1.25; }
.event .event-text { font-size: .95rem; line-height: 1.5; color: #3B423D; margin-top: 6px; }
.event .event-body .muted.small { font-size: .84rem; }
/* Mannschaftsliste (2): Foto links · Name · Insider-News-Knopf · Platz */
.team.team-row { grid-template-columns: 64px minmax(0, 1fr) 70px; gap: 14px; }
.team-row .team-thumb { position: relative; width: 64px; height: 44px; overflow: visible; }
.team-row .team-thumb > img, .team-row .team-thumb > .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.team-dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--signal); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.team-news-btn { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid #E2DCCF; font-size: .8rem; font-weight: 750; color: var(--ink); white-space: nowrap; transition: border-color .15s, background .15s; }
.team-news-btn b { background: var(--signal); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .68rem; padding: 0 5px; }
.team-news-btn span { color: var(--signal); transition: transform .15s; }
.team-news-btn em { font-style: normal; }
.team-news-btn em.on { color: var(--signal); }  /* Porträt gespeichert bzw. News vorhanden – das „+“ bleibt dunkel */
.team-news-btn.has { border-color: color-mix(in srgb, var(--signal) 45%, #fff); }
.team-row:hover .team-news-btn { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, #fff); }
.team-row:hover .team-news-btn span { transform: translateX(3px); }
@media (min-width: 640px) {
  .team.team-row { grid-template-columns: 96px minmax(0, 1fr) 170px 80px; gap: 18px; padding: 12px 18px; }
  .team-row .team-thumb { width: 96px; height: 62px; }
  .team-news-btn { display: inline-flex; justify-self: start; }
  .team-row .team-dot { display: none; }
}
.team-row .team-mid, .team-row .team-news { display: none !important; }

/* ===== Clubgeflüster: Pfeil zur Übersicht ===== */
.feed-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.feed-overview { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid #E2DCCF; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.feed-overview:hover { border-color: var(--signal); }
.feed-overview svg { width: 18px; height: 18px; fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Übersicht aller Beiträge ===== */
.overview .page-head { margin-bottom: 14px; }
.ov-filters { display: grid; gap: 10px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 3px rgba(28,26,23,.08); position: sticky; top: 132px; z-index: 5; }
.ov-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--paper); }
.ov-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.ov-search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 44px; font-size: 16px; outline: none; }
.ov-filters select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 10px; font-size: 15px; }
.ov-photos { margin: 0; }
.ov-count { margin: 12px 2px 8px; }
.mini-grid { column-count: 1; column-gap: 12px; }
.content-overview .mini { text-decoration: none; border-radius: 8px; }
.content-overview-tools { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.content-overview-tools .btn { text-decoration: none; white-space: nowrap; }
.feature:has(.content-overview-tools) { position: relative; }
.feature-body:has(.content-overview-tools) { position: relative; }
.feature-body .content-overview-tools { position: absolute; top: 16px; right: 24px; margin: 0; z-index: 1; text-transform: none; letter-spacing: 0; }
.feature-body .content-overview-tools .btn { color: #1C2520; background: #fff; border-radius: 8px; }
.site-page .feature-kicker .feature-kicker-label { display: inline; font: inherit; color: inherit; letter-spacing: inherit; -webkit-text-stroke: 0; }
.home-look-1 .feature-body:has(.content-overview-tools), .home-look-3 .feature-body:has(.content-overview-tools) { padding-top: 56px; }
.page-head-tools { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; flex: none; }
.site-page[data-page="aktuell"] > .page-head { align-items: stretch; margin-bottom: 8px; }
.site-page[data-page="aktuell"] > .page-head > div:first-child { min-width: 0; }
.site-page[data-page="aktuell"] .page-head-tools { justify-content: flex-end; }
.site-page[data-page="aktuell"] .page-head-tools > .view-close { margin-bottom: auto; }
.site-page[data-page="aktuell"] .page-head-tools .content-overview-tools { margin: 0; }
.site-page[data-page="aktuell"] > .page-head p { margin-bottom: 0; }
.site-page[data-page="aktuell"] > .page-grid { margin-top: 16px; }
@media (min-width: 900px) {
  .home-look-6 .feature-body:has(.content-overview-tools) { position: static; }
  .home-look-6 .feature-body .content-overview-tools { top: 18px; }
}
.aktuell-column-head { display: contents; }
.aktuell-column-head > .content-overview-tools { display: none; }
@media (max-width: 1023px) {
  .site-page[data-page="aktuell"]:has(.aktuell-column-head) .page-head-tools .content-overview-tools { display: none; }
  .aktuell-column-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
  .aktuell-column-head > .block-heading { min-width: 0; margin: 0 !important; }
  .aktuell-column-head > .content-overview-tools { display: flex; flex: none; margin: 0; }
}
@media (max-width: 899px) {
  .home-look-6 .feature-first .feature-kicker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; }
  .home-look-6 .feature-first .feature-kicker > .feature-number,
  .home-look-6 .feature-first .feature-kicker > span:not(.feature-kicker-label) { grid-column: 1; grid-row: 1; justify-self: start; }
  .home-look-6 .feature-first .feature-kicker-label { grid-column: 1 / -1; grid-row: 2; }
  .home-look-6 .feature-first .content-overview-tools { position: static; grid-column: 2; grid-row: 1; }
}
@media (max-width: 540px) {
  .site-page[data-page="aktuell"] > .page-head { flex-wrap: wrap; }
  .site-page[data-page="aktuell"] .page-head-tools { margin-left: auto; }
}
[data-site-content], [data-feature], [data-photo-module] { scroll-margin-top: 24px; }
.mini { break-inside: avoid; display: grid; gap: 8px; width: 100%; margin: 0 0 12px; text-align: left; border: 0; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 3px rgba(28,26,23,.08); color: var(--ink); font: inherit; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.mini:hover { box-shadow: 0 0 0 1.5px var(--signal), 0 6px 16px rgba(0,0,0,.06); transform: translateY(-1px); }
.mini[hidden] { display: none; }
.mini.is-hidden { opacity: .5; }
.mini-img { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #EEE; }
.mini-img > img, .mini-img > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-img i { position: absolute; right: 8px; bottom: 8px; background: rgba(20,20,20,.75); color: #fff; font-style: normal; font-weight: 800; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.mini-head { display: flex; gap: 8px; align-items: center; }
.mini-head .fpost-avatar { width: 30px; height: 30px; font-size: .64rem; }
.mini-head b { display: block; font-size: .84rem; }
.mini-head small { display: block; font-size: .7rem; color: var(--muted); }
.mini-where { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.mini-text { font-size: .86rem; line-height: 1.45; color: #3B423D; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-sheet .fpost { box-shadow: none; padding: 6px 0 0; }
@media (min-width: 640px) {
  .ov-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto; align-items: center; }
  .mini-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .mini-grid { column-count: 4; }
  .ov-filters { top: 120px; }
}
@media (max-width: 639px) {
  .ov-filters { position: static; }
  .mini-grid { column-count: 2; column-gap: 8px; }
  .mini { padding: 9px; gap: 6px; margin-bottom: 8px; }
  .mini-head .fpost-avatar { display: none; }
  .mini-text { font-size: .8rem; -webkit-line-clamp: 5; }
  .mini-where { font-size: .6rem; }
}
@media (min-width: 1024px) { .page-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; } }

/* ===== 11.10.: Einheitliche Typografie in News · Clubgeflüster · Save the Date ===== */
h1, h2, h3, .event h3, .feature-body h2, .story-head h1, .post-body h3 { -webkit-hyphens: manual; hyphens: manual; }
.block-heading { margin-bottom: 20px !important; }
.block-heading::after { margin-top: 12px; }
.col-news .block-heading, .col-feed .block-heading, .col-dates .block-heading { margin-top: 0 !important; }
/* Fließtext überall gleich */
.post-body p, .fpost-text, .event .event-text { font-size: .95rem; line-height: 1.55; color: #2F3631; }
/* Überschriften in Karten gleich */
.post-body h3, .event h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin: 4px 0 6px; }
/* Gleiche Abstände zwischen Karten */
.page-grid.three .run, .feed-list { gap: 16px; }
.col-dates .event + .event, .page-aside .event + .event { margin-top: 16px; }
.event { padding: 16px; }
/* Clubgeflüster-Kopf: Überschrift volle Breite, darunter Hinweis links und Knöpfe rechts */
.feed-head { display: block; }
.feed-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }
.feed-sub p { margin: 0; }

/* ===== Kopf: Profilbild oben bündig mit „TFB“, Name dezent darunter ===== */
.avatar-wrap { display: grid; justify-items: center; gap: 5px; align-self: flex-start; flex: none; }
.avatar-name { font-size: .66rem; font-weight: 600; color: var(--muted); max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
@media (min-width: 1024px) {
  .topbar .avatar-wrap { grid-column: 3; grid-row: 1; align-self: start; }
  .avatar-name { font-size: .72rem; max-width: 120px; }
}
/* Profilbild-Ausschnitt */
.crop-view { position: relative; width: 260px; height: 260px; margin: 16px auto 14px; border-radius: 50%; overflow: hidden; background: #222; cursor: grab; touch-action: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--signal); }
.crop-view:active { cursor: grabbing; }
.crop-img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; max-width: 280px; margin: 0 auto 16px; font-weight: 800; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--signal); }
.topbar .avatar-wrap .avatar { grid-column: auto !important; }
.avatar-wrap { justify-items: end; }
.avatar-name { text-align: right; }
.feed-sub { margin-top: 0; }

/* ===== Strichliste in vier Spalten: Getränke · Kranz · Snacks · Equipment ===== */
.tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 1fr) repeat(4, 44px); gap: 4px 8px; }
.tally-head { display: grid; align-items: end; padding: 4px 16px 8px 66px; border-bottom: 1.5px solid #C9D6E0; }
.tally-head span { min-width: 0; text-align: center; font-size: .55rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.tally-head .kranz { color: var(--signal); }
.tally-head .full { display: none; }
.tally-cell { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 3px 5px; min-height: 26px; border-left: 1px dashed #DCE6EE; }
.tally-cell .bundle { height: 20px; }
.tally-cell.kranz .bundle { stroke: var(--signal); }
.tally-cell em { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--muted); align-self: center; }
@media (min-width: 640px) {
  .tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 1fr) repeat(4, 84px); gap: 4px 10px; }
  .tally-head span { font-size: .66rem; }
  .tally-head .full { display: inline; }
  .tally-head .short { display: none; }
  .tally-cell .bundle { height: 24px; }
}
/* Handy: Name in eigener Zeile, darunter die vier Strichspalten */
@media (max-width: 639px) {
  .tally-head, .paper-row.tally-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 0; }
  .tally-head > span:first-child { display: none; }
  .paper-row.tally-row .paper-name { grid-column: 1 / -1; overflow-wrap: normal; }
  .paper-row.tally-row .tally-cell:nth-of-type(1) { border-left: 0; }
  .tally-cell { min-height: 24px; }
}

/* ===== Mannschaftsliste: Knopf „Mannschaftsporträt + News“ mittig zwischen Infos und Platz ===== */
@media (min-width: 640px) {
  .team.team-row { grid-template-columns: 96px minmax(0, 1.15fr) minmax(0, 1fr) 80px; }
  .team-news-btn { justify-self: center; }
}

/* ===== Team-Seite: Mannschaftsporträt als gut sichtbarer Einstieg ===== */
.portrait-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 22px 0 0; padding: 14px; border-radius: 18px; background: var(--brand); color: #fff; text-decoration: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.portrait-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.portrait-cta-img { width: 110px; height: 80px; border-radius: 12px; overflow: hidden; display: block; }
.portrait-cta-img > img, .portrait-cta-img > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-cta-body { display: grid; gap: 3px; min-width: 0; }
.portrait-cta-body small { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--signal) 60%, #fff); }
.portrait-cta-body b { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.portrait-cta-body > span { font-size: .88rem; opacity: .8; }
.portrait-cta-body em { font-style: normal; font-weight: 800; color: #fff; margin-top: 4px; font-size: .9rem; }
.portrait-cta-body em i { font-style: normal; color: var(--signal); display: inline-block; transition: transform .15s; }
.portrait-cta:hover em i { transform: translateX(4px); }
.portrait-cta.empty { grid-template-columns: 1fr; background: transparent; color: var(--ink); border: 2px dashed color-mix(in srgb, var(--signal) 45%, transparent); }
.portrait-cta.empty .portrait-cta-body small { color: var(--signal); }
.portrait-cta.empty .portrait-cta-body b { color: var(--signal); }
.portrait-cta.empty .portrait-cta-body > span { color: var(--muted); opacity: 1; }
@media (min-width: 640px) {
  .portrait-cta { grid-template-columns: 180px minmax(0, 1fr); padding: 16px; }
  .portrait-cta-img { width: 180px; height: 120px; }
  .portrait-cta-body b { font-size: 1.7rem; }
}
/* Strichliste optimiert: Getränke-Spalte mit Platz für 15 Striche, schmalerer Rand links */
.tally-paper { background: linear-gradient(90deg, transparent 0 34px, rgba(196, 85, 58, .35) 34px 35.5px, transparent 35.5px), var(--paper); }
.tally-paper .paper-row, .tally-paper .tally-head { padding-left: 46px; padding-right: 12px; }
.tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 1fr) 112px repeat(4, 40px); gap: 4px 6px; }
.tally-cell.drinks { justify-content: flex-start; padding-left: 6px; }
@media (max-width: 639px) {
  .tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 2px 0; }
  .tally-paper .paper-empty { padding-left: 46px; }
}
@media (min-width: 640px) {
  .tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 1fr) 128px repeat(4, 76px); gap: 4px 10px; }
  .tally-paper .paper-row, .tally-paper .tally-head { padding-left: 56px; padding-right: 16px; }
  .tally-paper { background: linear-gradient(90deg, transparent 0 42px, rgba(196, 85, 58, .35) 42px 43.5px, transparent 43.5px), var(--paper); }
}
.tally-cell.drinks { flex-wrap: nowrap; gap: 3px 4px; padding-left: 2px; }
.tally-cell.drinks em { font-size: .68rem; margin-left: 1px; }
@media (max-width: 639px) { .tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 2.5fr) repeat(4, minmax(0, 1fr)); } }

/* Partner-Logos um ein Drittel kleiner (Kacheln, Logos und Breite × 2/3) – auf allen Seiten */
.pbsp-duo { max-width: 67%; gap: 8px; }
.pbsp-tile { height: 69px; padding: 0 10px; border-radius: 11px; }
.pbsp-tile img { max-height: 40px; }
@media (min-width: 520px) { .pbsp-tile { height: 82px; } .pbsp-tile img { max-height: 47px; } }
@media (min-width: 640px) { .pbsp-duo { max-width: 427px; } .pbsp-tile { height: 88px; } .pbsp-tile img { max-height: 51px; } }
@media (min-width: 1024px) { .pbsp-duo { max-width: 507px; gap: 12px; } .pbsp-tile { height: 100px; } .pbsp-tile img { max-height: 56px; } }

/* Mannschaftsbutton mittig im freien Bereich zwischen Namensspalte und Platzierung. */
@media (min-width: 640px) {
  .team.team-row { grid-template-columns: 96px minmax(0, clamp(140px, 22vw, 280px)) minmax(0, 1fr) 80px; column-gap: 16px; }
  .team-row .team-thumb { grid-column: 1; }
  .team-row .team-name { grid-column: 2; }
  .team-row .team-news-btn { grid-column: 3; justify-self: center; }
  .team-row .team-stand { grid-column: 4; }
}

/* ===== Verabreden linksbündig wie die anderen Seiten ===== */
@media (min-width: 1024px) {
  .view[data-view="treffen"] { max-width: none; margin: 0; }
  .view[data-view="treffen"] > :not(.pbsp-slot) { max-width: 760px; }
}

@media (min-width: 640px) { .team-row .team-news-btn { width: min(270px, 100%); justify-content: center; white-space: normal; text-align: center; } }

/* Porträt-Editor: einfache Schritte 1–4, alles Weitere unter „Mehr Gestaltung“ */
.editor .field > span:empty { display: none; }
.ed-more { margin: 22px 0 8px; border: 1px solid #E6E0D4; border-radius: 14px; padding: 0 14px; background: #fff; }
.ed-more > summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ed-more > summary::-webkit-details-marker { display: none; }
.ed-more > summary::before { content: "+"; color: var(--signal); font-weight: 800; width: 14px; }
.ed-more[open] > summary::before { content: "–"; }
.ed-more > summary small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.ed-more[open] { padding-bottom: 14px; }

/* Einheitliche Umschalter: Sport (Mannschaften/Training) im selben Look wie Aktuell */
.sport-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #EFEBE3; border-radius: 12px; max-width: 420px; margin: 0 0 24px; }
.sport-switch a { min-height: 0; border: 0; background: transparent; border-radius: 9px; padding: 9px 4px; font-weight: 750; font-size: .84rem; color: var(--muted); }
.sport-switch a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
/* Roter Knopf immer mit weißer Schrift */
.membership-actions .membership-apply-button { color: #fff; }

/* =====================================================================
   Home-Looks (im Admin wählbar): 6 Wechselspiel (Standard), 1 Klassisch, 3 Magazin. Fotos mit „Foto einpassen“ behalten in jedem
   Look ihren gewählten Ausschnitt (Mittelpunkt und Zoom) – nur das Format
   gibt der Look vor.
   ===================================================================== */
.home-masthead { display: none; }
.home-look-3 { --look-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
.site-page[class*="home-look-"]:not(.home-look-1) .feature-media { aspect-ratio: var(--look-ratio, 3 / 2); }
.site-page[class*="home-look-"]:not(.home-look-1) .feature-media:has(> .photo-frame.active) { aspect-ratio: var(--look-ratio, 3 / 2) !important; }
.site-page[class*="home-look-"]:not(.home-look-1) .feature-media > .photo-frame.active { height: 100%; aspect-ratio: auto; }
.site-page[class*="home-look-"]:not(.home-look-1) .feature.img-right > :first-child { order: 0; }

/* ---------- Look 3 · Magazin: zentrierte Überschriften, gerahmte Fotos, rote Trenner ---------- */
.home-look-3 .home-masthead { display: flex; justify-content: center; gap: 18px; margin: 0 0 8px; font-size: .68rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--signal); }
.home-look-3 .home-masthead span + span::before { content: "·"; margin-right: 18px; color: var(--muted); }
.home-look-3 .page-main { gap: 0 !important; }
.home-look-3 .feature { display: block; padding: 48px 0; }
.home-look-3 .feature:not(.feature-first)::before { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--signal); margin: 0 auto 48px; }
.home-look-3 .feature-media { --look-ratio: 3 / 2; max-width: 920px; margin: 0 auto; border-radius: 6px; }
.home-look-3 .feature-portrait .feature-media { --look-ratio: 4 / 5; max-width: 480px; }
.home-look-3 .feature-square .feature-media { --look-ratio: 1; max-width: 560px; }
.home-look-3 .feature-body { display: block; max-width: 680px; margin: 34px auto 0; text-align: center; }
.home-look-3 .feature-kicker { justify-content: center; letter-spacing: .3em; font-size: .68rem; color: var(--signal); margin-bottom: 14px; }
.home-look-3 .feature-kicker span { display: none; }
.home-look-3 .feature-body h2 { font-family: var(--look-serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.015em; }
.home-look-3 .feature-sub { font-family: var(--look-serif); font-style: italic; font-weight: 400; color: var(--ink); font-size: 1.2rem; margin-top: 14px; }
.home-look-3 .feature-text { text-align: left; max-width: 600px; margin: 24px auto 0; font-family: var(--look-serif); font-size: 1.08rem; line-height: 1.65; }
.home-look-3 .link-place, .home-look-3 .feature-more { display: flex; justify-content: center; }
.home-look-3 .feature-left > .link-place { margin-top: 20px; }

/* ---------- Look 6 · Wechselspiel: Foto und Text je halb, Seiten wechseln, große Ziffer ---------- */
.home-look-6 .page-main { gap: 26px !important; }
.home-look-6 .feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--cream); border-radius: 26px; overflow: hidden; }
.home-look-6 .feature-media { --look-ratio: 1; border-radius: 0; }
.home-look-6 .feature-body { display: block; padding: 26px 24px 30px; }
.home-look-6 .feature-kicker { flex-direction: column; align-items: flex-start; gap: 6px; }
.home-look-6 .feature-kicker span { font-family: var(--serif); font-size: 4.2rem; line-height: .9; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--signal); letter-spacing: -.02em; }
.home-look-6 .feature-body h2 { font-size: 2.1rem; }
.feature-title-word { white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none; }
@media (min-width: 900px) {
  .home-look-6 .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 540px; }
  .home-look-6 .feature > :first-child { height: 100%; }
  .home-look-6 .feature-media { --look-ratio: auto; height: 100%; }
  .home-look-6 .feature.feature-even > :first-child { order: 2; }
  .home-look-6 .feature-body { align-self: center; padding: 52px 54px; }
  .home-look-6 .feature-kicker span { font-size: 6rem; }
  .home-look-6 .feature-body h2 { font-size: 2.8rem; }
}

/* Admin: Look der Startseite wählen (im Bearbeiten-Modus von Home) */
.look-picker { margin: 0 0 28px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.look-picker h2 { font-size: 1rem; margin: 0 0 12px; }
.look-options { display: grid; gap: 8px; }
.look-options button { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.look-options button b { font-size: .95rem; }
.look-options button small { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin-left: 6px; }
.look-options button span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.look-options button.on { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); background: #fff; }
.look-picker > p { margin: 10px 0 0; }
@media (min-width: 760px) { .look-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Home bearbeiten: Plus-Knopf für ein neues Thema (höchstens 10) */
.add-feature small { font-weight: 600; opacity: .6; margin-left: 6px; }
.add-limit { text-align: center; margin: 18px 0; }
/* Im Bearbeiten-Modus gleiche Abstände wie in der Ansicht (WYSIWYG) */
.editing-page.home-look-6 .block-edit + .block-edit, .editing-page.home-look-3 .block-edit + .block-edit { margin-top: 26px; }

/* =====================================================================
   Texteditor: Größen und Farben, Editor-Text wie auf der Seite (WYSIWYG)
   ===================================================================== */
.tx-s { font-size: .86em; line-height: 1.5; }
.tx-xs { font-size: .74em; line-height: 1.5; }
.field .rich-area .tx-s { font-size: .86em; }
.field .rich-area .tx-xs { font-size: .74em; }
.field .rich-area .tx-xl { font-family: var(--serif); letter-spacing: -.015em; }

.rich-tools { gap: 6px 10px; align-items: center; }
.field .rich-tools .rich-group { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #F2EEE6; }
.rich-tools .rich-group button { border: 0; background: transparent; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; display: inline-grid; place-items: center; }
.rich-tools .rich-group button:hover { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.field .rich-tools .sw { display: block; width: 16px; height: 16px; border-radius: 50%; }
.field .rich-tools .sw-red { background: var(--signal); }
.field .rich-tools .sw-gray { background: var(--muted); }
.field .rich-tools .sw-mark { border-radius: 3px; height: 10px; width: 18px; background: color-mix(in srgb, var(--signal) 35%, #fff); }
.field .rich-tools .sw-ink { background: var(--ink); box-shadow: inset 0 0 0 2px #F2EEE6, 0 0 0 1.5px var(--ink); }
.rich-tools .sz { font-weight: 800; font-family: var(--serif); padding: 0 5px; min-width: 24px; }
.rich-tools .sz-xs { font-size: .62rem; }
.rich-tools .sz-s { font-size: .74rem; }
.rich-tools .sz { font-size: .86rem; }
.rich-tools .sz-l { font-size: 1.02rem; }
.rich-tools .sz-xl { font-size: 1.22rem; }

/* Editor-Text sieht aus wie auf der Unterseite */
.rich-area { font-size: 1.06rem; line-height: 1.7; }
.rich-area h3, .rich-area h3.text-sub { font-family: var(--serif); text-transform: none; letter-spacing: -.015em; color: var(--ink); font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin: 1.1em 0 .35em; }
.rich-area > :first-child { margin-top: 0; }
.ed-note { margin: -2px 0 10px; }

/* Home-Editor: Themen-Leiste (01 02 03 … +) – zwischen Themen wechseln */
.ed-themes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0 12px; }
.ed-themes > span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.ed-themes button { min-width: 34px; height: 30px; padding: 0 8px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; font-size: .78rem; font-family: var(--serif); cursor: pointer; }
.ed-themes button:hover { border-color: var(--signal); color: var(--signal); }
.ed-themes button.on { background: var(--signal); border-color: var(--signal); color: #fff; }
.ed-themes .ed-theme-add { font-family: var(--font); font-size: 1rem; color: var(--signal); border-style: dashed; }
/* Werkzeugleiste: aktiver Zustand (markierter Text ist schon fett/kursiv/rot …) */
.rich-tools .rich-group button.on { background: #fff; box-shadow: 0 0 0 1.5px var(--signal); color: var(--signal); }

/* =====================================================================
   Unterseite aus Abschnitten: Text · Überschrift (rot) · Zitat – feste Gestaltung
   ===================================================================== */
.story-h { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--signal); margin: 1.5em 0 .4em; text-transform: none; }
.story-body > .story-h:first-child { margin-top: 0; }
.story-body > .story-text + .story-text { margin-top: 0; }

/* Editor: Abschnitte als Karten mit Pfeilen */
.secs { display: grid; gap: 10px; margin: 6px 0 10px; }
.sec { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 8px 10px 10px; }
.sec-bar { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; }
.sec-bar span { flex: 1; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sec-bar button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: #F2EEE6; display: grid; place-items: center; color: var(--ink); font-size: 1rem; cursor: pointer; }
.sec-bar button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sec-bar button:disabled { opacity: .35; cursor: default; }
.sec-bar button:hover:not(:disabled) { background: var(--signal); color: #fff; }
.sec .field { margin: 0; }
.sec-h-input { width: 100%; border: 0; border-bottom: 1.5px dashed var(--line); background: transparent; padding: 6px 2px; font-family: var(--serif); font-size: 1.4rem; font-weight: 800; letter-spacing: -.015em; color: var(--signal); outline: none; }
.sec-h-input::placeholder { color: color-mix(in srgb, var(--signal) 40%, #fff); }
.sec-q-input { width: 100%; border: 0; border-left: 4px solid var(--signal); background: transparent; padding: 4px 0 4px 14px; font-family: var(--serif); font-size: 1.45rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); resize: vertical; outline: none; }
.sec-q-by { width: 100%; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: .85rem; background: var(--paper); }
.sec-text { border-color: transparent; background: transparent; padding: 0; }
.sec-text .sec-bar { padding: 0 2px; }
.sec-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 16px; padding: 10px; border: 1.5px dashed var(--line); border-radius: 14px; }
.sec-add span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.sec-add button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 750; font-size: .82rem; color: var(--ink); cursor: pointer; }
.sec-add button:hover { border-color: var(--signal); color: var(--signal); }
.sec-h-input, .sec-q-input { field-sizing: content; min-height: 1.4em; resize: none; display: block; }

/* Abschnitte: Einfügen zwischen zwei Abschnitten (rotes +) und auffällige Leiste unten */
.secs { gap: 0; }
.sec-insert { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; margin: 2px 0; }
.sec-insert::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1.5px dashed transparent; }
.sec-insert:hover::before, .sec-insert.open::before { border-top-color: color-mix(in srgb, var(--signal) 45%, transparent); }
.sec-insert-btn { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--signal); background: #fff; color: var(--signal); font-weight: 800; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sec-insert-btn:hover, .sec-insert.open .sec-insert-btn { background: var(--signal); color: #fff; }
.sec-insert-menu { display: none; position: relative; z-index: 1; gap: 4px; background: var(--paper); padding: 0 4px; }
.sec-insert.open .sec-insert-menu { display: inline-flex; }
.sec-insert-menu button { border: 1.5px solid var(--signal); background: #fff; color: var(--signal); border-radius: 99px; padding: 4px 11px; font-weight: 750; font-size: .8rem; cursor: pointer; }
.sec-insert-menu button:hover { background: var(--signal); color: #fff; }
.sec-add { flex-direction: column; align-items: stretch; gap: 8px; border-color: color-mix(in srgb, var(--signal) 45%, transparent); background: color-mix(in srgb, var(--signal) 4%, #fff); }
.sec-add > b { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.sec-add > span { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-add button { border-color: var(--signal); color: var(--signal); }
.sec-add button:hover { background: var(--signal); color: #fff; }
.sec-add > small { font-size: .74rem; color: var(--muted); }
.sec-add > span { text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }

/* Chat: freiwillige Überschrift eines Beitrags (rot, wie in „Alle Beiträge“) */
.fpost-title { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--signal); text-transform: none; }
.chat-stream .fpost-title { font-size: 1.3rem; }
.compose-title { width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-family: var(--serif); font-size: 1.1rem; font-weight: 800; color: var(--signal); }
.compose-title::placeholder { font-family: var(--font); font-weight: 500; font-size: .95rem; color: #A9A398; }
[data-editor=portrait] .editor-sub { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin: 20px 0 2px; }

/* Titelfotos der Unterseiten/Porträts: Format gibt die Seite vor (breit bzw. quadratisch),
   „Foto einpassen“ liefert Mittelpunkt und Zoom – so wird nichts mehr abgeschnitten, was wichtig ist */
.story .story-photo:not(.natural):has(> .photo-frame.active) { aspect-ratio: 16 / 10 !important; }
@media (min-width: 640px) { .story .story-photo:not(.natural):has(> .photo-frame.active) { aspect-ratio: 2 / 1 !important; } }
@media (min-width: 1024px) { .story .story-photo:not(.natural):has(> .photo-frame.active) { aspect-ratio: 21 / 9 !important; } }
.story .story-photo:not(.natural) > .photo-frame.active { width: 100%; height: 100%; aspect-ratio: auto; }
.story .story-square > .photo-frame.active { width: 100%; height: 100%; aspect-ratio: auto; }
.frame-lock { margin: 0 0 12px; font-size: .82rem; color: var(--muted); background: #F6F3EC; border-radius: 10px; padding: 8px 12px; }
.hero-fallback { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.hero-fallback > .ph, .hero-fallback > img, .hero-fallback > .photo-frame { width: 120px !important; height: 52px !important; aspect-ratio: auto !important; border-radius: 8px; overflow: hidden; object-fit: cover; flex: none; }
.hero-fallback > div { display: grid; gap: 6px; justify-items: start; font-size: .82rem; }
.photo-frame-dialog.wide { width: min(100%, 760px); }
.frame-stage.wide { width: 100%; }

/* Aktuell-Beiträge: 1 Foto breit (16:9), 2–4 gleich große Quadrate nebeneinander – Ausschnitt per „Foto einpassen“ */
.post .post-media:has(> .photo-frame.active), .post .post-media:has(> .post-open > .photo-frame.active) { aspect-ratio: 16 / 9 !important; height: auto !important; }
.post .post-media > .photo-frame.active, .post-open > .photo-frame.active { width: 100%; height: 100%; aspect-ratio: auto; }
.post-open { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.post-open > img, .post-open > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-photos { position: relative; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 8px 0; }
.post-photos.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-photos.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 639px) { .post-photos.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-square { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #EEE; cursor: zoom-in; }
.post-square > img, .post-square > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-square > .photo-frame.active { width: 100%; height: 100%; aspect-ratio: auto; }
.post-square .photo-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 1.3rem; }
.post-photos > .date-badge { position: absolute; left: 22px; bottom: -18px; z-index: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }

/* Admin: Menü oben bearbeiten */
.nav-card { margin-top: -12px; }
.nav-preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.nav-preview span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: #F2EEE6; }
.nav-rows { display: grid; gap: 10px; margin: 6px 0 14px; }
.nav-row { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 10px; display: grid; gap: 8px; }
.nav-row.is-hidden { opacity: .55; }
.nav-row-top { display: flex; align-items: center; gap: 6px; }
.nav-row-top input[name^="label_"] { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.nav-row-top > button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: #F2EEE6; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.nav-row-top > button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-row-top > button:disabled { opacity: .35; }
.nav-show { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.nav-row-target { display: grid; gap: 6px; }
.nav-row-target select, .nav-row-target input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); font-size: .9rem; }

/* Club: Abschnitt „History“ mit Unterseite */
.story-teaser h2 a { color: inherit; text-decoration: none; transition: color .15s; }
.story-teaser h2 a:hover, .story-teaser h2 a:focus-visible { color: var(--signal); }
.story-teaser .feature-more { margin: 10px 0 0; }

/* Verabreden: unbestätigte Gruppenmitglieder, Treffen/Abfahrt */
.meet-chips .chip.pending { background: transparent; border: 1.5px dashed #C9C3B6; color: var(--muted); }
.meet-chips .chip em { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--meet-open); margin-left: 4px; }
.meet-unconfirmed { color: var(--signal) !important; font-weight: 700; }
.meet-times { margin: 4px 0 0; font-weight: 700; color: var(--signal); font-size: .9rem; }
/* Kopf mit Glocke: Menü mittig, Abstände 15 % enger als gleichmäßig verteilt – mehr Luft zu Logo und Glocke
   (Abstand wächst mit der Breite: 1300 px → 42 px, darunter enger, mindestens 14 px) */
@media (min-width: 1024px) {
  .topnav { justify-content: center; gap: clamp(14px, calc(9.78vw - 85px), 43px); }
  .topbar { column-gap: 64px; }
}
/* Verabreden: Gruppen als dezente Pillen unter dem Namensfeld – Häkchen, wenn angetippt */
.meet-groups-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.meet-groups-pick button { display: inline-flex; align-items: center; gap: 5px; height: 28px; min-height: 0; border: 1px solid #DDD7CB; background: #fff; border-radius: 99px; padding: 0 12px; font: inherit; font-size: .82rem; font-weight: 600; line-height: 1; color: var(--ink); cursor: pointer; }
.meet-groups-pick button span { display: inline; margin: 0; line-height: 1; }   /* nicht die Feld-Überschrift-Regel (.field span) erben */
.meet-groups-pick button:hover { border-color: var(--ink); }
.meet-groups-pick button.on { border-color: var(--ink); }
.meet-groups-pick svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.meet-editor .meet-chips { margin-top: 8px; }
/* Admin: Mitgliederliste und automatische Sicherung */
.import-plan { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.import-plan li { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 0 0 1px #E6E1D6; }
.import-plan b { font-size: 1.05rem; margin-right: 4px; }
.import-plan details { margin-top: 4px; }
.import-plan summary { font-size: .78rem; color: var(--muted); cursor: pointer; }
.autosave-box { display: grid; gap: 8px; justify-items: start; }
.autosave-box p { margin: 0; }

/* Konto-Fenster: Foto-Freigaben in der Spalte neben dem Profilbild, Admin-Bereich im Konto */
.acct-photo .acct-photo-rights { grid-column: 2; justify-self: start; margin-top: 6px; }
.acct-adminbox { margin: 18px 0 12px; display: grid; gap: 12px; }
.acct-adminbox .acct-section { margin-bottom: 0; }
.acct-adminbox .acct-hint { margin: -4px 0 0; }
.acct-adminbox .admin-card { margin: 0; box-shadow: 0 0 0 1px #E6E1D6; }
.acct-adminbox .admin-card h2 { font-size: 1.05rem; margin: 0 0 6px; }
/* Kiosk: Stift für Admins oben rechts */
.kiosk-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.acct-adminbox .admin-card { padding: 14px 16px; }
.acct-adminbox .admin-card .muted { font-size: .8rem; line-height: 1.45; margin: 0 0 10px; }
.acct-adminbox .admin-card .small { font-size: .8rem; }
.acct-adminbox .admin-card .btn { font-size: .88rem; }
/* Foto-Freigaben (Admin) */
.photo-admin .photo-list { display: grid; gap: 10px; margin-top: 14px; }
.photo-admin .photo-request { border-top: 0; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px #E6E1D6; display: grid; gap: 10px; }
.photo-request-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.photo-request-head strong { font-size: 1rem; }
.photo-state { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.photo-state.ok { background: var(--meet-yes-soft); color: var(--signal); }
.photo-state.wait { background: var(--signal); color: #fff; }
.photo-state.none { background: #EFEDE7; color: var(--muted); }
.photo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-tags span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid #DDD7CB; color: var(--ink); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.photo-admin .photo-request p { margin: 0; }

/* Home „Wechselspiel“: eigene Hintergrundfarbe der Textseite je Thema; auf dunklem Grund helle Schrift */
.home-look-6 .feature { background: var(--feature-bg, var(--cream)); }
.feature-dark .feature-body { --ink: #FFFFFF; --muted: rgba(255, 255, 255, .78); --signal: #F4B09E; color: #fff; }
.feature-dark .feature-body h2, .feature-dark .feature-text, .feature-dark .feature-text p { color: #fff; }
.feature-dark .feature-body .link-chip { --ink: #1C2520; }
.feature-dark .feature-body .btn.signal { --signal: #C4553A; }
/* Editor: Farbzeile */
.bg-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bg-swatch { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; flex: none; }
.bg-swatch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.bg-row .bg-hex { width: 110px; min-height: 38px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; text-transform: uppercase; background: #fff; }
.bg-row .bg-hex.invalid { border-color: var(--clay); }
.bg-row .btn.small { min-height: 38px; }
/* Link-Knöpfe im Home-Thema: eigene Hintergrundfarbe, Schrift passt sich an */
.feature .link-chip { background: var(--link-bg, #fff); }
.feature .feature-link .btn.signal { background: var(--link-bg, var(--signal)); border-color: var(--link-bg, var(--signal)); }
.feature.links-dark .feature-body .link-chip, .feature.links-dark .feature-body .btn.signal { --ink: #FFFFFF; --muted: rgba(255, 255, 255, .75); color: #fff; }
.feature.links-light .feature-body .link-chip, .feature.links-light .feature-body .btn.signal { --ink: #1C2520; --muted: #6A7069; color: #1C2520; }

/* Home-Themen: Abstände der Links (Standard 26 px über den Links, 14 px dazwischen; je Thema einstellbar) */
.feature { --link-top: 26px; --link-gap: 14px; }
.feature-right:has(> .link-place) .feature-text > p:last-child { margin-bottom: 0; }
.feature .feature-right > .link-place { margin-top: var(--link-top); }
.feature .feature-right > .link-place + .link-place { margin-top: var(--link-gap); }
.feature .feature-text > .link-place:not(:first-child) { margin-top: var(--link-top); }
.feature .feature-text > .link-place + .link-place { margin-top: var(--link-gap); }
.feature .feature-left > .link-place + .link-place { margin-top: var(--link-gap); }
/* Editor: Regler ▲/▼ */
.gap-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; }
.gap-row { display: flex; align-items: center; gap: 6px; }
.gap-btn { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: .8rem; color: var(--ink); cursor: pointer; touch-action: manipulation; user-select: none; }
.gap-btn:hover { border-color: var(--ink); }
.gap-row output { min-width: 52px; text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: .88rem; }

/* Passwortfelder: Auge rechts zum Anzeigen/Verbergen */
.field .pw-wrap { display: block; position: relative; margin: 0; font-size: inherit; font-weight: inherit; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Demo: Mitglieder-Ansicht für Admins (roter Ball im Logo) – auch serverseitige Admin-Knöpfe ausblenden */
body.admin-hidden [data-action="post-hide"] { display: none !important; }

/* Menü: auch der externe Link (Padel) reagiert beim Überfahren wie die anderen Punkte */
.topnav .tab.external:hover { color: var(--ink); }
/* Farben der Themen (Home-Bearbeiten) */
.look-picker.color-mode .seg { margin-bottom: 10px; }

/* Names wrap between surname and first name, never within either name. */
.tally-paper { container: tally / inline-size; }
.paper-row.tally-row .paper-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px .25em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.paper-name-part { white-space: nowrap; }
@container tally (max-width: 760px) {
  .tally-head, .paper-row.tally-row { grid-template-columns: minmax(0, 2.5fr) repeat(4, minmax(0, 1fr)); gap: 4px 0; }
  .tally-head > span:first-child { display: none; }
  .paper-row.tally-row .paper-name { grid-column: 1 / -1; }
}

/* A small entry below each post; the full conversation lives in its detail view. */
.post-comments-link { display: inline-flex; gap: 7px; align-items: center; margin: 14px 0 4px; color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none; }
.post-comments-link:hover { color: var(--signal); }
.post-comments-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mini-comment-count { font-size: .78rem; color: var(--muted); font-weight: 700; }
.post-comments { margin: 20px 0; padding: 20px; border-radius: 16px; background: var(--paper); scroll-margin-top: 18px; }
.post-comments h2 { font-size: 1.15rem; margin: 0 0 16px; }
.comment-list { display: grid; gap: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line, #ddd); overflow-wrap: anywhere; }
.comment:first-child { padding-top: 0; }
.comment header { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; margin-bottom: 7px; }
.comment header small { color: var(--muted); font-size: .75rem; }
.comment-text { line-height: 1.5; }
.comment footer { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.comment footer button { border: 0; background: none; padding: 3px 0; color: var(--muted); font: inherit; font-size: .75rem; cursor: pointer; }
.comment-form { margin-top: 20px; }
.comment-form textarea, .comment-edit-form textarea { width: 100%; min-height: 88px; resize: vertical; }
.comment-form .btn { display: block; margin-left: auto; }
.compose-heading { margin: 10px 0 16px; }
.compose-heading summary { color: var(--muted); font-size: .85rem; cursor: pointer; }
.compose-heading[open] summary { margin-bottom: 10px; }
@media (max-width: 420px) { .post-comments { padding: 16px; } }
.mini-where.is-excerpt { font-weight: 400; }
