/* group swipe – ein Stylesheet für alle Seiten. Mobil zuerst.
   Die Marke ist ein schwarzes Wortzeichen; die Oberfläche folgt ihr: Schwarz, warmes
   Papier, Haarlinien. Farbe gibt es nur, wo sie etwas bedeutet – Ja, Nein, Favorit –
   und einen einzigen Akzent für Zustand und Fortschritt. */

/* Outfit liegt hier, nicht bei Google: jeder Abruf beim Google-Fontdienst schickt
   die IP der Person an Google, bevor sie irgendetwas zugestimmt hat (LG München I,
   20.01.2022). Variable Schrift, eine Datei für 400–800. Lizenz: schrift/OFL.txt. */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/schrift/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/schrift/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f3ee;
  --card: #ffffff;
  --ink: #111114;
  --muted: #6d6b66;
  --line: #e4e1d9;
  --line-stark: #cfcbc1;
  --brand: #3d3bf3;
  --brand-weich: rgba(61, 59, 243, 0.10);
  --ja: #13783f;
  --nein: #c2410c;
  --fav: #d97706;
  --radius: 14px;
  --radius-klein: 10px;
  --schatten: 0 1px 2px rgba(17, 17, 20, 0.04), 0 10px 30px -14px rgba(17, 17, 20, 0.16);
  --schatten-hoch: 0 2px 4px rgba(17, 17, 20, 0.05), 0 24px 60px -20px rgba(17, 17, 20, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: Outfit, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 18px 16px 48px;
}

.huelle { width: 100%; max-width: 460px; margin: 0 auto; }

/* --- Marke ------------------------------------------------------------------
   Das Wortzeichen wird aus Text gesetzt, nicht als Bild: es skaliert mit, bleibt
   scharf, folgt der Textfarbe. Das S ist ein SVG-Symbol (in beiden Seiten definiert)
   und sitzt als Inline-Grafik dort, wo der Buchstabe stünde. */
.kopf {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  margin: 4px 0 8px; min-height: 40px;
}
.kopf-start { margin-bottom: 26px; }
/* min-width: 0, sonst schiebt ein langer Gruppenname das Wortzeichen aus der Mitte. */
.kopf > * { min-width: 0; }
.zurueck {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 10px 8px 6px; margin-left: -6px; border-radius: 8px; max-width: 100%;
}
.zurueck span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12ch; }
.zurueck span:first-child { font-size: 22px; line-height: 1; position: relative; top: -1px; }
.zurueck:hover { color: var(--ink); background: rgba(17, 17, 20, .05); }
.home {
  justify-self: end; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; color: var(--muted); margin-right: -6px;
}
.home svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home:hover { color: var(--ink); background: rgba(17, 17, 20, .05); }
/* Wo du bist: Start › Gruppe › Runde. Die Glieder davor sind Links. */
.pfad {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; font-weight: 500; margin: 0 0 20px; min-height: 18px;
}
.pfad a { color: var(--muted); text-decoration: none; }
.pfad a:hover { color: var(--ink); text-decoration: underline; }
.pfad span { color: var(--ink); font-weight: 600; }
.pfad i { font-style: normal; color: var(--line-stark); }
.marke { display: block; line-height: 0; }
/* Das echte Wortzeichen (public/logo.png, aus der Vorlage mit Alpha statt Weiss).
   Höhe fest, Breite folgt – 2000×359 Pixel, also gut fünfmal so breit wie hoch. */
.marke img { height: 26px; width: auto; display: block; }
.kopf-start .marke img { height: 30px; }
/* --- Startseite: der eine grosse Satz --- */
.hero { padding: 6px 2px 26px; }
.hero h1 {
  font-size: 34px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  margin: 0 0 14px; text-wrap: balance;
}
.hero .unter { font-size: 16px; margin: 0; max-width: 34ch; }

/* --- Flächen --- */
.karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--schatten);
}
.karte + .karte, .hero + .karte, .karte + .hero { margin-top: 14px; }

h1 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -0.01em; font-weight: 700; }
.unter { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; line-height: 1.5; }
.klein { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.mitte { text-align: center; display: block; margin-left: auto; margin-right: auto; }

/* --- Eingaben --- */
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
label .klein { font-weight: 500; }
input[type=text], input[type=url], textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line-stark); border-radius: var(--radius-klein);
  background: #fff; outline: none; color: inherit;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: #a5a29b; }
input:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.08);
}
textarea { resize: vertical; min-height: 64px; }

button {
  font: inherit; font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
  border: 0; border-radius: var(--radius-klein); padding: 13px 18px;
  background: var(--ink); color: #fff;
  transition: opacity .15s, transform .05s, background .15s;
}
button:hover { opacity: .92; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.breit { width: 100%; margin-top: 18px; }
button.zweit { background: #fff; color: var(--ink); border: 1px solid var(--line-stark); }
button.zweit:hover { opacity: 1; background: #faf9f6; }
button.leise {
  background: none; color: var(--muted); padding: 10px 4px;
  font-weight: 600; font-size: 13px;
}
button.leise:hover { opacity: 1; color: var(--ink); }
.fuss { margin-top: 22px; text-align: center; }

/* --- Meldungen --- */
.fehler, .hinweis {
  margin-top: 14px; padding: 10px 13px; border-radius: var(--radius-klein);
  font-size: 13.5px; line-height: 1.45;
}
.fehler { background: #fbeee8; color: var(--nein); border: 1px solid #f2d3c4; }
.hinweis { background: var(--brand-weich); color: var(--brand); border: 1px solid rgba(61, 59, 243, .22); }
[hidden] { display: none !important; }

/* --- Link zum Teilen --- */
.linkfeld {
  display: flex; gap: 8px; align-items: center; margin-top: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-klein);
  padding: 9px 9px 9px 13px;
}
.linkfeld code {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.linkfeld button { padding: 8px 13px; font-size: 13px; border-radius: 8px; }

/* --- Teilnehmerliste --- */
.leute { list-style: none; padding: 0; margin: 10px 0 0; }
.leute li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px;
}
.leute li:first-child { border-top: 0; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--line-stark); flex: none; }
.punkt.fertig { background: var(--ja); }
.punkt.laeuft { background: var(--fav); }
.leute .status { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* --- Fortschritt --- */
.balken { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.balken i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.fortschritt {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fortschritt .balken { flex: 1; margin-top: 0; }

/* --- Karteninhalt (Bild, Preis, Titel) --- */
.bild {
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; background: #ecebe6; display: grid; place-items: center;
}
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bild.platzhalter {
  background: hsl(var(--ton, 250) 40% 93%);
  color: hsl(var(--ton, 250) 45% 30%);
}
.bild.platzhalter svg {
  width: 28%; max-width: 88px; height: auto; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.text { padding: 14px 4px 0; }
.preis { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.titel { font-size: 16px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.unterzeile {
  color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.quelle {
  color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: .09em; font-weight: 600; margin-top: 8px;
}

/* --- Kleine Karten in Listen --- */
.minikarte {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.minikarte:first-child { border-top: 0; }
.minikarte img, .minikarte .bild {
  width: 52px; height: 52px; flex: none; border-radius: 10px;
  object-fit: cover; aspect-ratio: auto;
}
.minikarte .bild.platzhalter svg { width: 50%; stroke-width: 1.8; }
.mk-text { min-width: 0; flex: 1; }
.mk-titel {
  font-size: 14.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.platz {
  width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums;
}

/* Das Angebot zur Handeingabe, wenn eine Seite uns nichts gibt. Bewusst leise: es ist
   der Normalfall bei Amazon und Instagram, keine Fehlermeldung. */
.mk-angebot {
  background: none; border: 0; padding: 3px 0; margin-top: 3px;
  color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 600;
  text-align: left; width: auto; cursor: pointer; line-height: 1.35;
}
.mk-angebot:hover { text-decoration: underline; opacity: 1; }
.benennen { display: flex; gap: 6px; margin-top: 7px; }

/* --- Vorschläge in der Nähe ---
   Ein Angebot unter dem Einwurf-Feld, nicht ein zweites Formular: eine Zeile, auf Tipp
   bis zu fünf Orte, jeder mit seinem eigenen "Einwerfen". */
.naehe { margin-top: 12px; }
.naehe .mk-angebot { font-size: 13.5px; }
.naehe-erklaerung { margin: 2px 0 0; color: var(--muted); }
.naehe-status { margin: 0; font-weight: 600; color: var(--ink); }
.ort {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.ort:first-of-type { border-top: 0; }
.ort-foto { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: var(--bg); }
.ort-text { flex: 1; min-width: 0; }
.naehe-quelle { font-weight: 400; color: var(--muted); margin-left: 6px; }
.ort-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ort-btn {
  width: auto; flex: none; padding: 8px 12px; font-size: 13px; border-radius: 8px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
}
.ort-btn:disabled { opacity: .6; }

/* --- Shoppen ---
   Suchlinks in die Shops, als Reihe kleiner Knöpfe. Sie führen nach draussen (↗),
   der Rückweg ist „Kopierten Link einfügen" oder das Teilen-Menü (/teilen). */
.shop { margin-top: 12px; }
.shop + .naehe { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.shop-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 4px; }
.shop-link {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.shop-link:hover { border-color: var(--ink); }
#einfuegenBtn { margin-top: 8px; }
/* Produkt-Kärtchen: wie die Orte, das Bild in einer festen Hülle, damit die
   Initialen-Kachel dieselbe Grösse hat, wenn ein Shop das Foto sperrt. */
.ort-foto { overflow: hidden; }
.ort-foto img, .ort-foto .bild { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.ort-foto .bild.platzhalter svg { width: 50%; stroke-width: 1.8; }
a.ort-name { color: var(--ink); text-decoration: none; display: block; }
a.ort-name:hover { text-decoration: underline; }

/* --- Teilen-Ziel (/teilen) --- */
.teilen-was { padding: 10px 12px; margin: 0 0 14px; border-radius: 10px; background: var(--bg); }
.teilen-was:empty { display: none; }
.teilen-runde { width: 100%; background: none; border: 0; border-top: 1px solid var(--line);
  color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.teilen-runde:first-child { border-top: 0; }
.teilen-runde:disabled { opacity: .55; }
.z-pfeil { color: var(--muted); font-size: 20px; }
.benennen input { flex: 1; padding: 7px 9px; font-size: 16px; }
.benennen button { padding: 7px 13px; font-size: 13px; border-radius: 8px; width: auto; }

/* --- Swipen ---
   Die Karte ist das einzige Objekt mit echtem Schatten: sie liegt auf dem Tisch,
   alles andere ist der Tisch. */
.stapel { position: relative; height: 62vh; min-height: 380px; max-height: 520px; }
.swipekarte {
  position: absolute; inset: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px; box-shadow: var(--schatten-hoch);
  transform: translateY(calc(var(--tiefe) * 8px)) scale(calc(1 - var(--tiefe) * 0.035));
  transition: transform .2s; touch-action: none; user-select: none; cursor: grab;
  -webkit-user-select: none; -webkit-touch-callout: none;
  display: flex; flex-direction: column;
}
/* Das Bild darf nicht selbst greifbar sein – sonst zieht man auf dem Handy den
   Bild-Geist statt der Karte, und die Geste kommt nie an. */
.swipekarte img { pointer-events: none; -webkit-user-drag: none; }
.swipekarte .ansehen { touch-action: auto; }
.swipekarte .bild { flex: 1; aspect-ratio: auto; min-height: 0; border-radius: 14px; }
.swipekarte[data-tiefe="0"] { z-index: 3; }
.swipekarte[data-tiefe="1"] { z-index: 2; opacity: .7; }
.swipekarte[data-tiefe="2"] { z-index: 1; opacity: .4; }
.stempel {
  position: absolute; top: 26px; padding: 6px 14px; border-radius: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  opacity: 0; transition: opacity .12s; border: 3px solid; background: rgba(255,255,255,.85);
}
.stempel.ja { left: 22px; color: var(--ja); border-color: var(--ja); transform: rotate(-12deg); }
.stempel.nein { right: 22px; color: var(--nein); border-color: var(--nein); transform: rotate(12deg); }
.zeig-ja .stempel.ja, .zeig-nein .stempel.nein { opacity: 1; }

.knoepfe { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 20px 0 14px; }
.rund {
  width: 62px; height: 62px; border-radius: 50%; padding: 0;
  font-size: 24px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--schatten); display: grid; place-items: center;
}
.rund:hover { opacity: 1; border-color: var(--line-stark); }
.rund.ja { color: var(--ja); }
.rund.nein { color: var(--nein); }
.rund.fav { color: var(--fav); width: 52px; height: 52px; font-size: 20px; }

/* --- Ergebnis --- */
.sieger { border-color: var(--ink); box-shadow: var(--schatten-hoch); }
.pokal {
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.warum { font-size: 15px; line-height: 1.45; margin: 16px 0 6px; }
.knopflink {
  display: block; text-align: center; margin-top: 16px; padding: 13px 16px;
  border-radius: var(--radius-klein); background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none; letter-spacing: -0.01em;
}
.knopflink:hover { opacity: .92; }
/* Die Rangliste unter „Wie kam das zustande?": Titel links, Stimmen rechts, Sieger fett. */
.rangliste { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.rangliste td { padding: 9px 4px; border-top: 1px solid var(--line); }
.rangliste td:first-child { font-weight: 600; }
.rangliste .stimmen { color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rangliste tr.vorn td { font-weight: 700; color: var(--ink); }


/* Aufklappbare Karten – egal, ob die Karte selbst das details ist oder es enthält. */
details.karte summary, .karte > details summary {
  cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between;
}
details.karte summary::-webkit-details-marker, .karte > details summary::-webkit-details-marker { display: none; }
details.karte summary::after, .karte > details summary::after { content: '⌄'; color: var(--muted); font-size: 18px; }
details.karte[open] summary::after, .karte > details[open] summary::after { content: '⌃'; }
details.karte summary h2, .karte > details summary h2 { margin: 0; }

/* Getippte Ideen: Text statt Bildfläche. */
.nurtext {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 26px 18px; gap: 12px;
  background: var(--bg); border-radius: 14px;
}
.nurtext p { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.nurtext span {
  color: var(--muted); font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.nurtext .mehr { font-style: normal; font-size: 12px; color: var(--muted); }
.nurtext p { word-break: break-word; }
.minikarte .nurtext { padding: 18px 14px; }

/* --- Deine Runden ---------------------------------------------------------
   Eine Zeile je Runde. Rechts steht das Einzige, was zählt: wartet etwas auf mich,
   und hat sich seit meinem letzten Blick etwas getan. */
.zeile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.zeile:first-child { border-top: 0; }
.zeile:hover .z-titel { text-decoration: underline; }
.z-text { min-width: 0; flex: 1; }
.z-titel {
  font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.z-stand { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.z-offen {
  flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums;
}
.z-neu { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
/* Gelesene Zeilen behalten den Platz, sonst rutscht die halbe Liste nach links. */
.z-neu.leer { background: none; }

/* Der Gerätepass. Gross und in Vierergruppen, weil er vom zweiten Handy abgetippt
   wird – oft mit dem ersten in der anderen Hand. */
.pass {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 21px; font-weight: 700; letter-spacing: 1.5px; text-align: center;
  background: var(--ink); color: #fff;
  padding: 16px 10px; border-radius: 12px; margin: 4px 0 0; word-break: break-all;
}
.warnung {
  margin: 14px 0 0; padding: 11px 13px; border-radius: var(--radius-klein);
  background: #fbeee8; border: 1px solid #f2d3c4; color: var(--nein);
  font-size: 13px; line-height: 1.45;
}

/* --- Der Weg zur Quelle -----------------------------------------------------
   Zwei Formen, und der Unterschied ist Absicht.

   `.ansehen` ist ein eigener kleiner Knopf. Er steht auf der Swipe-Karte, also dort,
   wo ein Tipp auf die Karte schon etwas bedeutet. Eine ganz
   klickbare Karte wäre dort der teuerste Fehltipp der App: mitten in der Runde
   ungewollt aus dem Fenster geworfen.

   `.mk-link` macht in ruhigen Listen Bild und Titel selbst anklickbar – dort
   konkurriert nichts, und "auf die Karte tippen" ist das Erwartete. */
.ansehen {
  align-self: flex-start;
  margin-top: 10px; padding: 7px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none;
  /* Der Knopf liegt auf einer Karte mit touch-action: pan-y. Hier wieder alles
     erlauben, damit ein Tipp ein Tipp bleibt und kein angefangenes Wischen. */
  touch-action: auto;
}
.ansehen:hover { border-color: var(--ink); }

.mk-link { color: inherit; text-decoration: none; display: block; min-width: 0; }
.minikarte > .mk-link { flex: none; line-height: 0; }
.mk-link:hover .mk-titel { text-decoration: underline; }
/* Der kleine Pfeil ist auf dem Handy der einzige Hinweis, dass der Titel irgendwohin
   führt – Hover gibt es dort nicht. */
.extern { color: var(--muted); font-size: 11px; margin-left: 4px; vertical-align: 1px; }

/* Gruppen: der Mitmachen-Hinweis als Umriss, die offene Zahl bleibt schwarz. */
.z-offen.zweit { background: none; color: var(--ink); border: 1px solid var(--line-stark); }
.knopflink.zweit-link { background: none; color: var(--ink); border: 1px solid var(--line-stark); }
.fuss { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
select {
  width: 100%; font: inherit; padding: 12px 14px; color: inherit;
  border: 1px solid var(--line-stark); border-radius: var(--radius-klein); background: #fff;
}

/* --- Startseite als Verzeichnis --------------------------------------------
   Wie eine Chat-Liste: ein Kreis mit Anfangsbuchstabe, Name, Stand, rechts die Zahl. */
.liste { padding: 6px 20px; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
}
.avatar.gruppe { background: var(--brand-weich); color: var(--brand); }
.liste .zeile { padding: 13px 0; }
.knopfreihe { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.knopfreihe .knopflink { margin-top: 0; }
.hero .knopfreihe { margin-top: 22px; }
/* Leise Links (im Fuss) sehen aus wie leise Knöpfe. */
a.leise { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; padding: 10px 4px; display: inline-block; }
a.leise:hover { color: var(--ink); }

/* --- Chat ------------------------------------------------------------------
   Klein mit Absicht. Eigene Nachrichten rechts und schwarz, fremde links auf Papier. */
.chatliste { max-height: 320px; overflow-y: auto; margin: 12px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: var(--bg); font-size: 14px; line-height: 1.4; }
.msg.mine { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg-kopf { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.msg.mine .msg-kopf { color: rgba(255,255,255,.65); }
.msg-text { display: block; word-break: break-word; }
.chatform { display: flex; gap: 8px; }
.chatform input { flex: 1; padding: 10px 12px; }
.chatform button { width: 44px; flex: none; padding: 0; font-size: 18px; border-radius: var(--radius-klein); }

/* --- Volltext einer Textkarte --- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 20, .45);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.overlay .volltext { width: 100%; max-width: 460px; max-height: 80vh; overflow-y: auto; }
.volltext p:first-child { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; word-break: break-word; }
.volltext .unter { white-space: pre-wrap; margin-bottom: 4px; word-break: break-word; }
.mk-voll { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.mk-voll:hover { opacity: 1; }

/* --- Impressum, Datenschutz und die Rechtslinks unten auf jeder Seite --- */
.recht { margin-top: 26px; }
.rechtstext h2 { margin-top: 22px; }
.rechtstext p, .rechtstext li { font-size: 14.5px; line-height: 1.55; }
.rechtstext ul { padding-left: 18px; margin: 0 0 12px; }
.rechtstext li + li { margin-top: 6px; }
.rechtstext a, .klein a { color: inherit; }

/* Unter den Wisch-Knöpfen: „Rückgängig“ und „Einklappen“ nebeneinander, leise. */
.mitte-reihe { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
#folgeForm label { margin-top: 12px; }

/* Unter dem Rundenlink: WhatsApp direkt und „Gruppe erinnern“, leise nebeneinander. */
.knopfzeile { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }

/* Startseite: drei Schritte unter dem grossen Satz. */
.schritte { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritte li {
  counter-increment: schritt; position: relative; padding: 0 0 14px 38px;
  color: var(--muted); font-size: 14.5px; line-height: 1.5;
}
.schritte li b { color: var(--ink); }
.schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* iOS Safari zoomt in jedes Feld unter 16 px hinein, und das Layout springt (Live-Prüfung
   10.10.2026). Darum stehen alle Eingaben oben auf 16 px. */

/* Nur für Vorleseprogramme. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Kein Netz: ein schmaler Streifen oben, nicht mehr. */
.hinweis.offline { margin: 0 0 12px; }
/* „entfernen“ in der Teilnehmerliste: leise und klein, rechts neben dem Status. */
button.leise.mini { padding: 4px 0 4px 10px; font-size: 12px; }

/* Marken-Kachel: Farbe und Name der Plattform, wenn ein Link kein Foto hat. */
.bild.platzhalter.markenkachel {
  background: var(--grund); color: var(--schrift);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.markenkachel svg { opacity: .95; }
.marken-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
/* In der kleinen Liste ist für den Namen kein Platz – dort reicht Farbe und Symbol. */
.minikarte .markenkachel .marken-name, .ort-foto .markenkachel .marken-name { display: none; }
/* Instagram-Beitrag: hochkant wie auf dem Handy. */
.volltext.insta { display: flex; flex-direction: column; gap: 10px; }
#instaFrame { width: 100%; height: min(70vh, 640px); border: 0; border-radius: 12px; background: #fafafa; }
