/* Gestaltung: ruhig, hell, elegant — angelehnt an die Website (Anthrazit, Altrosa, Taubenblau, warmes Beige).
   Schriften liegen auf dem Server (kein Abruf bei Google): Cormorant Garamond für Überschriften, Montserrat für Text.
   Beide unter SIL Open Font License, siehe schriften/LIZENZ-*.txt. Farben für einen anderen Betrieb nur in :root ändern. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("schriften/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("schriften/cormorant-garamond-kursiv.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("schriften/montserrat.woff2") format("woff2"); }

:root {
  --grund: #faf8f7;
  --flaeche: #ffffff;
  --text: #4e4e4e;
  --dunkel: #2f2f2f;
  --leise: #807a78;
  --linie: #ece6e3;
  --rose: #d3b6b3;
  --rose-hell: #f6eeec;
  --rose-zart: #fbf6f5;
  --akzent: #8e6662;          /* Altrosa, dunkel genug für Schrift auf Weiß */
  --akzent-hell: var(--rose-hell);
  --blau: #7c8a9d;
  --blau-hell: #edf1f6;
  --beige: #e1d7d0;
  --gruen: #5f7d5e;
  --gruen-hell: #ebf1ea;
  --gelb: #9a7429;
  --gelb-hell: #f8f0de;
  --rot: #a3554b;
  --rot-hell: #f7e8e5;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(47, 47, 47, 0.04), 0 6px 24px rgba(47, 47, 47, 0.05);
  --seitenbreite: 2000px;    /* Obergrenze für sehr große Monitore */
  --rand: clamp(32px, 6vw, 120px);  /* Seitenrand links/rechts: wächst mit dem Fenster (1920 px → ca. 115 px), mobil 16px */
  --spalte: 360px;           /* Mindestbreite einer Karte im Raster */
  --lesebreite: 80ch;        /* Zeilenlänge für Fließtext */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: 0.005em;
}
::selection { background: var(--rose); color: var(--dunkel); }
a { color: var(--akzent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
strong { font-weight: 600; color: var(--dunkel); }

h1, h2 { font-family: var(--serif); color: var(--dunkel); font-weight: 500; }
h1 { font-size: 2.2rem; line-height: 1.15; margin: 0.2rem 0 1rem; letter-spacing: 0.01em; }
h2 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 0.9rem; }
h2::after { content: ""; display: block; width: 2.2rem; height: 1px; background: var(--rose); margin-top: 0.45rem; }
h3 { font: 600 0.72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--blau); margin: 1.4rem 0 0.5rem; }
.leise { color: var(--leise); font-size: 0.9rem; }

/* ---------- Kopf ---------- */
header.kopf { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5; }
header.kopf::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--rose), transparent); opacity: 0.7; }
.kopf .innen { max-width: var(--seitenbreite); margin: 0 auto; padding: 0.7rem var(--rand) 0; display: flex; align-items: center; gap: 0.4rem 1.2rem; flex-wrap: wrap; }
.kopf .marke { margin-right: auto; }
.kopf nav.haupt { flex: 1 0 100%; order: 3; margin: 0 -0.55rem; }
.kopf .marke { font: 500 1.2rem/1 var(--serif); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; color: var(--dunkel); }
.kopf .marke:hover { text-decoration: none; color: var(--akzent); }
nav.haupt { display: flex; gap: 0.15rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
nav.haupt a { padding: 0.5rem 0.55rem; color: var(--leise); white-space: nowrap; font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em;
              border-bottom: 1px solid transparent; }
nav.haupt a:hover { color: var(--dunkel); text-decoration: none; border-bottom-color: var(--linie); }
nav.haupt a.aktiv { color: var(--dunkel); border-bottom-color: var(--rose); }
.kopf form { margin: 0; }
.kopf .nebenlink { font-size: 0.78rem; color: var(--leise); white-space: nowrap; }
.kopf .nebenlink.aktiv { color: var(--dunkel); }

/* Reiter innerhalb einer Seite (z. B. Hochzeit) */
nav.reiter { display: flex; gap: 0.3rem; margin: 0 0 1.3rem; border-bottom: 1px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
nav.reiter a { padding: 0.6rem 1rem; color: var(--leise); white-space: nowrap; font-size: 0.78rem; font-weight: 500; text-transform: uppercase;
               letter-spacing: 0.09em; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.reiter a:hover { color: var(--dunkel); text-decoration: none; }
nav.reiter a.aktiv { color: var(--dunkel); border-bottom-color: var(--rose); }
textarea.gross { min-height: 260px; }

/* Startseite */
.heute-balken { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: baseline; background: var(--dunkel); color: #f4efed;
                border-radius: 999px; padding: 0.45rem 1.2rem; margin: -0.6rem 0 1.2rem; font-size: 0.88rem; }
.heute-balken a { color: var(--rose); }
.heute-balken .leise { color: #bdb5b2; }
.heute-balken strong { color: #fff; }
.heute-titel { font: 600 0.68rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.16em; color: var(--rose); }
.karte.todos { margin-bottom: 1.25rem; }
.karte.og { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 0 1.6rem; margin-bottom: 1.25rem; }
.karte.og > :not(.og-hochzeit) { grid-column: 1 / -1; }
.og-hochzeit { padding: 0.5rem 0 0.7rem; border-top: 1px solid var(--linie); }
.og-kopf { display: flex; gap: 0.4rem; align-items: baseline; flex-wrap: wrap; }
.og-kopf .countdown { margin-left: auto; }
.countdown.klein { font-size: 1rem; }
ul.liste.kompakt li { padding: 0.35rem 0 0.35rem 1.1rem; font-size: 0.9rem; border-bottom: 0; }

/* Karte */
.karten-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: start; }
.karten-flaeche { height: 72vh; min-height: 420px; border-radius: var(--radius); border: 1px solid var(--linie); box-shadow: var(--schatten); z-index: 0; }
.karten-filter .haken { display: flex; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: normal; font-size: 0.9rem; color: var(--text); padding: 0.2rem 0; }
.karten-filter .haken input { min-height: auto; width: auto; margin: 0; }
.punkt { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #999; }
.leaflet-container { font-family: var(--sans); }
.popup-titel { font-weight: 600; display: block; margin-bottom: 0.2rem; font-size: 1rem; }
.popup-box { max-height: 55vh; overflow-y: auto; padding-right: 0.25rem; }
.popup-bild { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 0.5rem; background: var(--linie); }
.popup-unter { color: var(--leise); margin-bottom: 0.3rem; }
.popup-box .marke-klein { margin: 0 0.25rem 0.3rem 0; display: inline-block; }
.popup-angaben { border-collapse: collapse; width: 100%; margin: 0.3rem 0; font-size: 0.85rem; }
.popup-angaben th { text-align: left; vertical-align: top; font-weight: 600; padding: 0.2rem 0.5rem 0.2rem 0; white-space: nowrap; }
.popup-angaben td { padding: 0.2rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.popup-angaben tr + tr { border-top: 1px solid var(--linie); }
.popup-links { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin: 0.3rem 0; font-size: 0.85rem; }
.popup-links a { overflow-wrap: anywhere; }
.popup-mehr { display: block; margin-top: 0.4rem; font-weight: 600; }
@media (max-width: 800px) { .karten-layout { grid-template-columns: 1fr; } .karten-flaeche { height: 60vh; } }

/* Bildergalerie mit Großansicht (ohne Skript, über #Anker) */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.galerie-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; transition: transform 0.15s; }
.galerie-bild:hover img { transform: scale(1.02); }
.galerie-zelle { display: flex; flex-direction: column; gap: 0.3rem; }
.galerie-knoepfe { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.grossbild { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: 2rem; }
.grossbild:target { display: flex; }
.grossbild-hinter { position: absolute; inset: 0; background: rgba(30, 28, 27, 0.88); }
.grossbild figure { position: relative; margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.grossbild figure img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 8px; }
.grossbild figcaption { color: #f4efed; font-size: 0.9rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.grossbild-navi { display: flex; gap: 1rem; }
.grossbild-navi a { color: var(--rose); }

/* Instagram */
.pinnwand { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; overflow-x: auto; }
.pinnwand-spalte { background: var(--rose-zart); box-shadow: none; padding: 1rem; }
.pinnwand-spalte h2 { font-size: 1.25rem; }
.idee { display: flex; flex-direction: column; gap: 0.25rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px;
        padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; color: var(--text); }
.idee:hover { border-color: var(--rose); text-decoration: none; }
.idee img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; margin-bottom: 0.2rem; }
.idee-fuss { display: flex; gap: 0.5rem; align-items: center; }
.feed-bereich .kopfzeile { margin-bottom: 0.5rem; }
.feed-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 480px; margin: 0.8rem 0; }
.feed-kachel { position: relative; aspect-ratio: 4 / 5; background: var(--rose-hell); overflow: hidden; display: block; }
.feed-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-kachel.leer-kachel { background: repeating-linear-gradient(45deg, var(--rose-zart), var(--rose-zart) 8px, var(--rose-hell) 8px, var(--rose-hell) 16px); }
.feed-kachel.probe { outline: 3px solid var(--akzent); outline-offset: -3px; }
.feed-kachel.probe span { position: absolute; left: 6px; top: 6px; background: var(--akzent); color: #fff; font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 999px; }
.anhaenge { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.anhaenge img, .anhaenge video { width: 100%; border-radius: 8px; }
@media (max-width: 900px) { .pinnwand { grid-template-columns: repeat(4, 240px); } }

/* Beratungsprotokoll und Budgetplan */
fieldset.auswahl-zeile { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
fieldset.auswahl-zeile legend { font-size: 0.72rem; font-weight: 500; color: var(--leise); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; padding: 0; }
label.haken { display: inline-flex; align-items: center; gap: 0.4rem; text-transform: none; letter-spacing: normal; font-size: 0.92rem; color: var(--text); }
table.budget input { min-height: 36px; padding: 0.3rem 0.5rem; width: 100%; font-size: 0.9rem; }
table.budget td.zahl input { text-align: right; max-width: 140px; }
table.budget tr.neu input { background: var(--rose-zart); }
table.budget tfoot th { color: var(--dunkel); font-size: 0.85rem; text-transform: none; letter-spacing: normal; }
table.budget .minus { color: var(--rot); }
table.budget td:first-child input { min-width: 250px; }
table.budget td.geplant { min-width: 220px; }
table.budget .formel { display: block; font-size: 0.75rem; color: var(--leise); white-space: nowrap; margin-top: 0.2rem; }
table.budget .formel input { width: 4.6rem; min-height: 26px; padding: 0.1rem 0.35rem; font-size: 0.78rem; display: inline-block; }
table.budget details.formel-wahl summary { font-size: 0.72rem; color: var(--leise); }
table.budget tr.abschnitt th { font: 500 1.1rem var(--serif); color: var(--akzent); text-transform: none; letter-spacing: normal; padding-top: 1.2rem; }
table.budget tr.summe td { font-weight: 600; color: var(--dunkel); background: var(--rose-zart); font-size: 0.88rem; }
table.budget td.prognose { color: var(--dunkel); white-space: nowrap; }
table.budget .berechnet { white-space: nowrap; border-bottom: 1px dotted var(--rose); cursor: help; }
table.budget select { min-height: 36px; padding: 0.3rem; font-size: 0.85rem; }
.eckdaten-zeile { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; }
.anfrage-eckdaten pre { margin: 0.3rem 0; }
span.klein { font-size: 0.75rem; }
.paar-seite { max-width: 1100px; margin: 0 auto; }
.paar-seite.breit { max-width: 1500px; }

/* Hochzeit: auf einen Blick */
.karte.blick { margin-bottom: 1.25rem; display: grid; grid-template-columns: 2fr 1fr; gap: 1rem 2rem; }
.blick-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem 1.5rem; }
.blick-feld { display: flex; flex-direction: column; gap: 0.15rem; }
.blick-feld-text { font-size: 0.92rem; }
.blick-feld-text details summary { cursor: pointer; list-style: none; }
.blick-feld-text textarea { width: 100%; margin: 0.3rem 0; }
.blick-todos .liste { margin: 0.2rem 0; }
.blick-todos form.reihe { flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.blick-todos form.reihe input[name="titel"] { flex: 1 1 180px; }
@media (min-width: 1000px) { .blick-feld-text { grid-column: span 2; } }
.blick-feld strong { font: 500 1.3rem/1.25 var(--serif); color: var(--dunkel); }
.blick-titel { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; color: var(--blau); }
.blick-link { font-size: 0.85rem; margin-top: 0.2rem; }
.blick-text { border-left: 1px solid var(--linie); padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
/* Wünsche des Paars je Gewerk */
.wuensche { margin: 0.2rem 0 0.5rem; }
.wunsch-liste { list-style: none; padding: 0.4rem 0.6rem; margin: 0.2rem 0 0.3rem; background: var(--rose-zart); border-radius: 6px; font-size: 0.9rem; }
.wunsch-liste li { padding: 0.1rem 0; white-space: pre-line; }
.wuensche textarea { width: 100%; min-height: 110px; }
.wunschpunkte-raster { display: grid; gap: 0.6rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
/* Besonderheiten füllen die ganze rechte Spalte (Wunsch Sophia 03.11.2026) */
.besonderheiten { flex: 1; display: flex; flex-direction: column; }
.besonderheiten label { flex: 1; display: flex; flex-direction: column; }
.besonderheiten textarea { flex: 1; min-height: 220px; resize: vertical; line-height: 1.45; }
.besonderheiten button { margin-top: 0.3rem; align-self: flex-start; }
.blick-wichtig p { margin: 0.3rem 0; font-size: 0.92rem; }
@media (max-width: 1000px) { .karte.blick { grid-template-columns: 1fr; } .blick-text { border-left: 0; padding-left: 0; } }
details.erledigt-bereich { margin-top: 0.8rem; }
details.erledigt-bereich summary { color: var(--leise); font-size: 0.85rem; }

/* Tagesplan */
details.anleitung { margin-bottom: 1.25rem; }
details.anleitung > summary { list-style: none; cursor: pointer; }
details.anleitung > summary::-webkit-details-marker { display: none; }
details.anleitung > summary h2 { display: inline-block; margin-bottom: 0.4rem; }
details.anleitung > summary h2::before { content: "＋ "; color: var(--rose); }
details.anleitung[open] > summary h2::before { content: "－ "; }
.anleitung-text { columns: 2 380px; column-gap: 2.5rem; }
.anleitung-text h3 { break-after: avoid; }
.anleitung-text ul { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.anleitung-text li { margin-bottom: 0.35rem; break-inside: avoid; }
.tagesplan-raster { grid-template-columns: 1fr; }
/* Bausteine als flache Leiste über dem Ablauf */
.bausteine-leiste h2 { margin-bottom: 0.6rem; }
.bausteine-leiste .formular { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: end; gap: 0.6rem 1rem; }
.bausteine-leiste .formular fieldset.voll { grid-column: 1 / -1; order: -1; gap: 0.3rem 1.4rem; }
.bausteine-leiste .formular p.voll { grid-column: span 2; margin: 0; align-self: center; }
.bausteine-leiste .formular button.voll { grid-column: auto; }
.bausteine-leiste .formular p.voll + p.voll { grid-column: 1 / -1; }
table.tagesplan input { min-height: 36px; padding: 0.3rem 0.5rem; font-size: 0.92rem; width: 100%; }
table.tagesplan td:nth-child(1) input { width: 7.5rem; }
table.tagesplan td:nth-child(2) input { width: 5rem; text-align: right; }
table.tagesplan td:nth-child(4) input { min-width: 260px; }
table.tagesplan tr.trauung td { background: var(--rose-zart); }
table.tagesplan tr.trauung input { font-weight: 600; }
table.tagesplan tr.neu input { background: var(--rose-zart); }
@media (max-width: 900px) { .tagesplan-raster { grid-template-columns: 1fr; } }
.paar-marke { font: 500 1.1rem var(--serif); text-transform: uppercase; letter-spacing: 0.16em; color: var(--leise); margin: 0 0 0.4rem; }

/* Verlinkungen */
.verlinkungen .kopfzeile { margin-bottom: 0.4rem; }
pre.verlinkungstext { white-space: pre-wrap; font: 0.9rem/1.6 var(--sans); background: var(--rose-zart); border: 1px dashed var(--rose);
                      border-radius: 10px; padding: 0.8rem 1rem; margin: 0.9rem 0 0.4rem; color: var(--dunkel); }

/* Dienstleister-Anfragen */
.gewerke-raster { display: grid; gap: 0.4rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); align-items: start; }
/* Reiter Gewerke: jedes Gewerk ein deutlich abgesetzter Kasten mit großer Überschrift */
#gewerke .gewerke-raster { gap: 1rem; }
.gewerk-gruppe { background: var(--rose-zart); border: 1px solid var(--linie); border-left: 5px solid var(--rose); border-radius: 14px;
                 padding: 0.8rem 0.9rem 0.9rem; scroll-margin-top: 90px; }
.gewerk-gruppe.gebucht { border-left-color: #5b8a5b; }
.gewerk-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-bottom: 0.4rem; }
.gewerk-kopf h3 { font: 600 1.35rem/1.2 var(--serif); margin: 0; color: var(--dunkel); flex: 1 1 auto; }
.gewerk-haken { color: #5b8a5b; margin-right: 0.35rem; }
.gewerk-kopf a.marke-klein { text-decoration: none; }
.klein-text { font-size: 0.8rem; }
button.text-knopf { background: none; border: 0; padding: 0 0.2rem; min-height: 0; color: var(--leise); font-size: 0.85rem; box-shadow: none; cursor: pointer; }
button.text-knopf:hover { color: var(--akzent); background: none; }
.gewerk-gruppe .anfrage { background: var(--flaeche); }
.anfrage.kompakt { padding: 0.6rem 0.75rem; }
.anfrage-marken { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex: none; }
.verlauf.kurz { margin-top: 0.4rem; padding-top: 0.35rem; }
.verlauf.kurz .verlauf-liste { font-size: 0.84rem; }
.anfrage-aktionen { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.anfrage-aktionen details.aktion > summary { display: inline-block; cursor: pointer; list-style: none; font-size: 0.8rem; padding: 0.2rem 0.6rem;
                                            border: 1px solid var(--linie); border-radius: 999px; color: var(--dunkel); background: var(--flaeche); }
.anfrage-aktionen details.aktion > summary:hover { border-color: var(--rose); }
.anfrage-aktionen details.aktion[open] { flex-basis: 100%; }
.anfrage-aktionen details.aktion[open] > summary { background: var(--rose-hell); }
.anfragen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; margin-bottom: 0.4rem; }   /* Kärtchen nie breiter als die Spalte */
.gewerk-gruppe, .anfrage { min-width: 0; }
.anfrage-kopf .zeile-haupt { order: 1; }
.anfrage-kopf .anfrage-marken { order: 2; }
.anfrage.kompakt .anfrage-kopf { display: block; }
.anfrage.kompakt .anfrage-kopf::after { content: ""; display: block; clear: both; }
.anfrage.kompakt .anfrage-marken { float: right; margin: 0 0 0.3rem 0.5rem; }
.anfrage.kompakt .anfrage-bild { float: left; margin: 0 0.6rem 0.3rem 0; }
.gesamtstatus { margin: 0.2rem 0 0.6rem; }
.gesamtstatus-text { margin: 0.15rem 0 0; font-weight: 500; color: var(--dunkel); }
.gesamtstatus .reihe { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.gesamtstatus .reihe input { flex: 1 1 14rem; min-width: 0; }
.gesamtstatus-zelle { max-width: 18rem; }
.anfrage { border: 1px solid var(--linie); border-radius: 12px; padding: 0.8rem 0.9rem; background: var(--flaeche); scroll-margin-top: 90px; }
.anfrage:target { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-hell); }
.anfrage.abgeschlossen { opacity: 0.7; padding: 0.45rem 0.65rem; font-size: 0.85rem; }
.anfrage.abgeschlossen .anfrage-bild { width: 40px; height: 40px; }
.anfrage-eingeklappt > summary { cursor: pointer; color: var(--leise); font-size: 0.8rem; margin-top: 0.3rem; }
.anfrage-kopf { display: flex; gap: 0.6rem; justify-content: space-between; align-items: flex-start; }
.anfrage-aendern { margin-top: 0.5rem; }
.verlauf { margin-top: 0.6rem; border-top: 1px dashed var(--linie); padding-top: 0.5rem; }
/* To-dos: Kästen nach Bereichen, auf großen Bildschirmen drei nebeneinander */
.todo-raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); align-items: start; }
.todo-kasten h2 { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: center; }
.todo { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: start; }
.todo-text { min-width: 0; overflow-wrap: anywhere; }
.todo-mehr { display: inline; }
.todo-mehr > summary { display: inline; cursor: pointer; color: var(--leise); list-style: none; padding: 0 0.3rem; }
.todo-mehr[open] { display: block; margin-top: 0.3rem; }
.todo-mehr form { margin: 0.2rem 0; flex-wrap: wrap; }
.todo-paar { border-top: 1px solid var(--linie); padding: 0.4rem 0; }
.todo-paar > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; align-items: center; }
.todo-spaeter > summary { cursor: pointer; color: var(--leise); font-size: 0.85rem; margin-top: 0.3rem; }
@media (min-width: 1200px) { .todo-brautpaare { grid-row: span 2; } }
/* Dekokonzept: große Bilder mit Notiz */
.deko-raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); margin-bottom: 1rem; }
.deko-bild { margin: 0; display: grid; gap: 0.35rem; align-content: start; scroll-margin-top: 90px; }
.deko-bild img { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: var(--rose-zart); border-radius: 10px; display: block; }
.deko-bild textarea, #deko-notizen textarea { width: 100%; }
/* Tagesplan: Wege am Hochzeitstag */
fieldset.wege { display: grid; gap: 0.5rem; border: 1px solid var(--rose); border-radius: 10px; padding: 0.6rem 0.8rem; background: var(--rose-zart); }
.weg-frage { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; }
.weg-frage > span { flex: 1 1 260px; font-weight: 600; }
.weg-minuten input { width: 4.5rem; min-height: 32px; }
/* Gebuchte Location: Bilder vor Ort mit Notiz, Abstimmungstermin */
.vorort-raster { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); margin-bottom: 0.8rem; }
.vorort-bild { margin: 0; display: grid; gap: 0.3rem; align-content: start; scroll-margin-top: 90px; }
.vorort-bild img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; display: block; }
.vorort-bild textarea { width: 100%; font-size: 0.9rem; }
.abstimmung-termin { max-width: 260px; margin: 0.6rem 0; }
.abstimmung-liste { margin: 0.4rem 0 1rem; padding-left: 1.4rem; display: grid; gap: 0.6rem; }
.abstimmung-liste li { display: grid; gap: 0.25rem; }
.abstimmung-liste li.besprochen strong { color: var(--leise); text-decoration: line-through; }
.abstimmung-liste textarea { width: 100%; font-size: 0.9rem; }
/* Erledigt-Haken: nur ein Kreis als Rahmen, nicht ausgefüllt */
button.haken-knopf { width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 50%; background: transparent;
                     border: 1.5px solid var(--dunkel); color: var(--dunkel); font-size: 0.9rem; line-height: 1; box-shadow: none; }
button.haken-knopf:hover, button.haken-knopf:focus-visible { background: var(--rose-zart); border-color: var(--akzent); color: var(--akzent); }
.todo-bereich { font-size: 0.95rem; margin: 0.8rem 0 0.2rem; color: var(--akzent); }
.todo-bereich:first-of-type { margin-top: 0.2rem; }
.todos.todo-raster { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.gewerk-budget { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: center; margin: 0.3rem 0; }
.notiz-neu { display: grid; gap: 0.35rem; margin: 0.3rem 0 0.5rem; }
.notiz-neu textarea { width: 100%; font-size: 0.9rem; }
.notiz-neu .reihe { flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.notiz-neu input, .notiz-neu select { min-height: 34px; padding: 0.25rem 0.5rem; font-size: 0.85rem; }
.anfrage-bild { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.anfrage-kopf .zeile-haupt { flex: 1; min-width: 0; }
.idee-knoepfe { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.idee-knoepfe .reihe { flex-wrap: wrap; align-items: flex-end; }
.idee-knoepfe input, .idee-knoepfe select { min-height: 34px; padding: 0.25rem 0.5rem; font-size: 0.85rem; }

.locations-suche { flex-wrap: wrap; align-items: flex-end; }
.locations-suche .suche-haupt { flex: 1 1 100%; font-weight: 600; }
.locations-suche .suche-haupt input { width: 100%; font-size: 1.05rem; min-height: 44px; }

/* Reiter „Locations“ einer Hochzeit */
.location-gebucht { border-left: 4px solid var(--gruen, #5b8a5b); }
.steckbrief { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 1.2rem; align-items: start; margin-bottom: 0.8rem; }
.steckbrief-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.tabelle.kriterien th { width: 11rem; }
/* Location-Vorschläge: kleine Kästchen nebeneinander, Bild höchstens 128 × 96 */
.vorschlag-raster { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.vorschlag { display: grid; gap: 0.35rem; align-content: start; border: 1px solid var(--linie); border-radius: 10px; padding: 0.45rem;
             background: var(--flaeche); font-size: 0.85rem; }
.vorschlag-bild { display: block; width: 100%; max-width: 128px; height: 96px; border-radius: 6px; overflow: hidden; background: var(--rose-zart); }
.vorschlag-bild img { width: 100%; height: 96px; object-fit: cover; display: block; }
.vorschlag-text { display: grid; gap: 0.2rem; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.vorschlag .marke-klein { font-size: 0.72rem; }
.anfrage-bild { max-width: 64px; max-height: 64px; }
details.anfrageprozess > summary { cursor: pointer; list-style: none; }
details.anfrageprozess > summary h2 { display: inline; }
details.anfrageprozess > summary::before { content: "▸ "; color: var(--leise); }
details.anfrageprozess[open] > summary::before { content: "▾ "; }
.spalten-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.8rem; align-items: start; }
.spalten-drei .spalte { display: grid; gap: 0.8rem; align-content: start; background: var(--rose-zart); border-radius: 12px; padding: 0.8rem; }
.spalten-drei .spalte h3 { margin: 0; }
@media (max-width: 1100px) { .spalten-drei { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .steckbrief { grid-template-columns: 1fr; } }
.verlauf-neu { margin: 0 0 0.4rem; flex-wrap: wrap; }
.verlauf-neu input, .verlauf-neu select { min-height: 34px; padding: 0.25rem 0.5rem; font-size: 0.85rem; }
.verlauf-neu input[name="notiz"] { flex: 1 1 140px; }
.verlauf-liste { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.verlauf-liste li { padding: 0.2rem 0 0.2rem 0.8rem; border-left: 2px solid var(--rose-hell); margin-left: 0.2rem; }
.verlauf-liste li:first-child { border-left-color: var(--rose); }
.verlauf-datum { font-weight: 600; color: var(--dunkel); font-variant-numeric: tabular-nums; }
.formular h3 { margin: 0.6rem 0 -0.3rem; }
.karte.formular { align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.formular-knoepfe { margin-top: 1.25rem; }
td.kontakt { font-size: 0.88rem; white-space: nowrap; }

/* ---------- Seite und Karten ---------- */
main { max-width: var(--seitenbreite); margin: 0 auto; padding: 1.8rem var(--rand) 4rem; }
/* auto-fill: bei mehr Platz kommen Spalten dazu, Karten werden nicht endlos breit gezogen */
.raster { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(var(--spalte), 100%), 1fr)); grid-auto-flow: row dense; }
.kachel-raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.kachel { display: flex; flex-direction: column; gap: 0.3rem; color: var(--text); padding: 1rem 1.1rem; }
.kachel:hover { border-color: var(--rose); text-decoration: none; transform: translateY(-1px); }
.kachel strong { font-size: 1.02rem; }
.kachel-kopf { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.2rem; }
.kachel.mit-bild { padding: 0; overflow: hidden; }
.kachel-bild { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.leer-bild { background: linear-gradient(135deg, var(--rose-hell), var(--blau-hell)); }
.kachel-text { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1.1rem 1.1rem; }
.kachel-gruppe { margin: 1.4rem 0 0.6rem; }
.gewerk-kachel-titel { font: 600 1.3rem/1.2 var(--serif); color: var(--dunkel); }
.dl-kopf { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 1.2rem; align-items: start; margin-bottom: 1rem; }
.dl-bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: flex; }
.dl-kopf-text { display: grid; gap: 0.6rem; align-content: start; }
@media (max-width: 700px) { .dl-kopf { grid-template-columns: 1fr; } }
.gewerk-kacheln .kachel-bild { aspect-ratio: 16 / 10; }
.stil-filter { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.stil-filter a.marke-klein { text-decoration: none; }
.hochzeit-kacheln .kachel-bild { aspect-ratio: 16 / 9; }
/* Platzhalter, solange es kein Bild gibt: „Location wird noch gesucht“ bzw. Name der Location */
.platzhalter-bild { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; text-align: center;
                    padding: 1rem; color: var(--akzent); font: 500 1.05rem/1.3 var(--serif);
                    background: linear-gradient(135deg, var(--rose-zart), var(--rose-hell)); }
.platzhalter-bild.suche { background: repeating-linear-gradient(135deg, var(--rose-zart) 0 14px, var(--flaeche) 14px 28px);
                          border-bottom: 1px dashed var(--rose); }
.platzhalter-symbol { font-size: 2rem; line-height: 1; opacity: 0.7; }
.kachel-vorschau { width: 100%; max-width: 320px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.foto-platzhalter { display: flex; align-items: center; justify-content: center; font: 500 1.4rem var(--serif); color: var(--akzent); }

/* Fließtext bleibt lesbar: höchstens ca. 80 Zeichen pro Zeile, auch in breiten Karten */
.karte p, .umbruch, .karte textarea, .karte .hinweis, .karte .leer { max-width: var(--lesebreite); }
.karte .formular textarea, .karte form > textarea { max-width: var(--lesebreite); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.3rem 1.4rem; min-width: 0; box-shadow: var(--schatten); }
.karte.breit { grid-column: 1 / -1; }
/* doppelt breit — erst ab genug Platz für zwei Spalten, sonst ganze Zeile (kein Überlaufen) */
.karte.doppelt { grid-column: 1 / -1; }
@media (min-width: 1000px) { .karte.doppelt { grid-column: span 2; } }
.karte.leise { background: transparent; box-shadow: none; border-style: dashed; }

.hinweis { padding: 0.8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: 0.95rem; }
.hinweis.ok { background: var(--gruen-hell); color: var(--gruen); }
.hinweis.fehler { background: var(--rot-hell); color: var(--rot); }
.hinweis.beispiel { background: var(--rose-zart); color: var(--dunkel); border: 1px dashed var(--rose); }
.hinweis.beispiel strong { color: var(--akzent); }

/* ---------- Listen und Marken ---------- */
ul.liste { list-style: none; margin: 0; padding: 0; }
ul.liste li { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
ul.liste li:last-child { border-bottom: 0; }
.zeile-haupt { flex: 1 1 160px; min-width: 0; }
.leer { color: var(--leise); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

.marke-klein { display: inline-block; padding: 0.12rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em;
               background: var(--rose-hell); color: var(--dunkel); white-space: nowrap; }
.marke-klein.rot { background: var(--rot-hell); color: var(--rot); }
.marke-klein.gelb { background: var(--gelb-hell); color: var(--gelb); }
.marke-klein.gruen { background: var(--gruen-hell); color: var(--gruen); }
.ampel { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; vertical-align: middle; margin-right: 0.45rem; box-shadow: 0 0 0 3px var(--flaeche), 0 0 0 4px var(--linie); }
.ampel.gruen { background: var(--gruen); } .ampel.gelb { background: #d2a64a; } .ampel.rot { background: var(--rot); }
.countdown { font: 500 1.25rem/1 var(--serif); color: var(--akzent); white-space: nowrap; }

/* ---------- Tabellen ---------- */
table.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--blau); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; }
.tabelle tbody tr:hover td { background: var(--rose-zart); }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

/* ---------- Formulare und Knöpfe ---------- */
form.reihe { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-end; margin: 0.5rem 0; }
form.inline { display: inline; margin: 0; }
label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--leise); text-transform: uppercase; letter-spacing: 0.1em; }
label > input, label > select, label > textarea { display: block; margin-top: 0.3rem; width: 100%; text-transform: none; letter-spacing: normal; }
input, select, textarea, button {
  font: inherit; font-size: 0.95rem; padding: 0.6rem 0.8rem; border: 1px solid var(--linie); border-radius: 10px; background: #fff; color: var(--dunkel);
  min-height: 44px; max-width: 100%; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
::placeholder { color: var(--leise); opacity: 0.6; }
input[type="checkbox"], input[type="radio"] { min-height: auto; width: 1.1rem; height: 1.1rem; padding: 0; accent-color: var(--akzent); vertical-align: middle; }
label > input[type="checkbox"] { display: inline-block; width: 1.1rem; margin: 0 0.4rem 0 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-hell); }
textarea { min-height: 90px; width: 100%; }
button, .knopf { background: var(--dunkel); color: #fff; border: 1px solid var(--dunkel); cursor: pointer; padding: 0.6rem 1.2rem; border-radius: 999px;
                 display: inline-block; text-align: center; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.5; }
button:hover, .knopf:hover { background: var(--akzent); border-color: var(--akzent); color: #fff; text-decoration: none; }
button.zweit, .knopf.zweit { background: transparent; color: var(--dunkel); border-color: var(--rose); }
button.zweit:hover, .knopf.zweit:hover { background: var(--rose-hell); color: var(--dunkel); }
button.klein { min-height: 32px; padding: 0.2rem 0.75rem; font-size: 0.78rem; font-weight: 500; text-transform: none; letter-spacing: 0.01em; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.formular { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.formular .voll { grid-column: 1 / -1; }
details { margin-top: 0.9rem; }
details summary { cursor: pointer; color: var(--akzent); font-size: 0.9rem; }

/* ---------- Jahresübersicht ---------- */
.jahr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.monat { border: 1px solid var(--linie); border-radius: 12px; padding: 0.6rem 0.7rem; min-height: 4.4rem; background: var(--flaeche); }
.monat:has(.tag) { background: var(--rose-zart); border-color: var(--rose-hell); }
.monat .name { font: 500 1.05rem/1.2 var(--serif); color: var(--dunkel); margin-bottom: 0.2rem; }
.monat .tag { font-size: 0.84rem; }
.monat .tag.doppelt { color: var(--rot); font-weight: 600; }

/* ---------- Kleinteile ---------- */
.foto { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: var(--rose-hell); flex: none; border: 3px solid var(--flaeche); box-shadow: 0 0 0 1px var(--linie); }
.foto.klein { width: 52px; height: 52px; }
.sterne { color: var(--rose); letter-spacing: 2px; white-space: nowrap; filter: saturate(1.4) brightness(0.85); }
.kopfzeile { display: flex; gap: 0.8rem 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.kopfzeile h1 { margin: 0 auto 0 0; }
.aktionen { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.erledigt { text-decoration: line-through; color: var(--leise); }
.umbruch { white-space: pre-line; }
.balken { height: 0.6rem; background: var(--rose); border-radius: 999px; min-width: 2px; }
.balken.ist { background: var(--blau); margin-top: 3px; }

/* ---------- Anmeldung ---------- */
body:has(.login) { background: linear-gradient(180deg, var(--rose-hell), var(--grund) 70%) fixed; }
.login { max-width: 420px; margin: 14vh auto; text-align: center; padding: 2.6rem 2.2rem; }
.login h1 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.3rem; }
.login .unterzeile { font: italic 400 1.2rem/1.4 var(--serif); color: var(--leise); margin: 0 0 1.8rem; }
.login .unterzeile::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--rose); margin: 1.2rem auto 0; }
.login > .knopf.voll { display: block; margin: 1rem 0; padding: 0.85rem 1rem; }
.login .formular { text-align: left; }

@media (max-width: 600px) {
  :root { --rand: 16px; }
  body { font-size: 15px; }
  h1 { font-size: 1.8rem; }
  .raster { grid-template-columns: 1fr; }
  .kopf .marke { font-size: 1rem; letter-spacing: 0.08em; }
  main { padding: 1.2rem var(--rand) 4rem; }
  .karte { padding: 1.1rem 1rem; }
  .login { margin: 8vh auto; padding: 2rem 1.3rem; }
}
input.uhrzeit { width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }

.aufgabe-notiz { font-size: 0.82rem; color: var(--leise); margin-top: 0.25rem; max-width: var(--lesebreite); }

/* ---------- Sitzplan (Wunsch Sophia 08.11.2026, drei Unterseiten seit 09.11.2026) ---------- */
.sp-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-bottom: 1rem; }
.sp-reiter { display: flex; gap: 0.3rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: 0.25rem; }
.sp-reiter a { padding: 0.4rem 1rem; border-radius: 999px; text-decoration: none; color: var(--dunkel); font-size: 0.95rem; }
.sp-reiter a:hover { background: var(--rose-zart); }
.sp-reiter a.aktiv { background: var(--akzent); color: #fff; }
.sp-zuordnung { display: flex; align-items: center; gap: 0.35rem; }
.sp-zaehler { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; font-size: 0.85rem; }
.sp-zaehler span { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: 0.15rem 0.65rem; }
.sp-zaehler span.streit { color: var(--rot); border-color: var(--rot); background: var(--rot-hell); }
.sp-wahl { border: 0; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.sp-wahl legend { font-size: 0.85rem; color: var(--leise); margin-bottom: 0.2rem; }
.sp-vorschau { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1rem; padding: 0.7rem 1rem; border-radius: 10px;
  background: var(--blau-hell); border: 2px dashed var(--akzent); }
.sp-vorschau span { flex: 1 1 20rem; }
.sp [hidden] { display: none !important; }
.sp-verwaltung { margin-top: 1.2rem; }
.sp-verwaltung > summary { cursor: pointer; color: var(--akzent); }
.sp-verwaltung form { margin-top: 0.8rem; }
.sp-arbeitsflaeche.sp-zwei { grid-template-columns: minmax(0, 1fr) 320px; }
.sp-option { font-size: 0.85rem; }
/* Gästeliste */
.sp-gl { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: start; }
.sp-gl-seite { display: grid; gap: 1rem; }
.sp-filterzeile { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.sp-filterzeile input { flex: 1 1 14rem; }
.sp-gl-liste { list-style: none; margin: 0.8rem 0; padding: 0; }
.sp-gl-zeile { border-bottom: 1px solid var(--linie); }
.sp-gl-zeile.offen { background: var(--rose-zart); border-radius: 10px; border-bottom-color: transparent; margin: 0.3rem 0; }
button.sp-gl-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; width: 100%; padding: 0.5rem 0.6rem; background: none; border: 0;
  text-align: left; font: inherit; font-size: 0.95rem; text-transform: none; letter-spacing: normal; color: var(--text); cursor: pointer; border-radius: 10px; }
button.sp-gl-kopf:hover { background: var(--rose-zart); color: var(--text); }
.sp-gl-kopf .marke-klein { text-transform: none; }
.sp-gl-edit { padding: 0.3rem 0.8rem 1rem; }
.sp-chip { font-size: 0.75rem; border: 1px solid var(--linie); border-radius: 999px; padding: 0.05rem 0.5rem; background: var(--flaeche); color: var(--leise); }
.sp-chip.streit { color: var(--rot); border-color: var(--rot); }
.sp-punkte { display: inline-flex; gap: 2px; flex: none; }
.sp-gruppenwahl { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.sp-gruppenwahl legend { font-size: 0.85rem; color: var(--leise); margin-bottom: 0.3rem; }
.sp-gruppenwahl label { display: inline-flex; align-items: center; gap: 0.3rem; }
.sp-einlesen { display: grid; gap: 0.6rem; }
.sp-regel.ruht { color: var(--leise); }
.sp-klickbar { cursor: pointer; }
.sp-klickbar:hover { text-decoration: underline; }
.sp-tischgaeste { margin: 0.4rem 0; padding-left: 1.4rem; }
.sp-tischgaeste li { margin: 0.15rem 0; }
.sp-tischgaeste .sp-punkte { margin-right: 0.35rem; }
.sp-seite h3 { font-size: 1rem; margin: 0.8rem 0 0.3rem; }
.sp-leiste { margin-bottom: 1rem; padding: 0.9rem 1.2rem; }
.sp-knoepfe { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.sp-titel { font-size: 0.8rem; color: var(--leise); margin-right: 0.2rem; }
.sp-trenner { width: 1px; align-self: stretch; background: var(--linie); margin: 0 0.4rem; }
.sp-raum { margin-top: 0.7rem; }
.sp-raum > summary { cursor: pointer; color: var(--akzent); font-size: 0.9rem; }
.sp-raum-inhalt { display: grid; gap: 0.8rem; margin-top: 0.8rem; max-width: 760px; }
.sp-hochladen { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; }
.sp-arbeitsflaeche { display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; gap: 1rem; align-items: start; }
.sp-seite { padding: 1rem 1.1rem; max-height: calc(100vh - 7.5rem); overflow-y: auto; position: sticky; top: 6.5rem; }   /* unter der festen Kopfleiste */
.sp-seite h2 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.sp-seite h2:first-child { margin-top: 0; }
.sp-seite input[type="search"] { width: 100%; margin-bottom: 0.4rem; }
.sp-gastliste, .sp-gruppenliste, .sp-regelliste { list-style: none; margin: 0.5rem 0; padding: 0; }
.sp-gast { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding: 0.3rem 0.45rem; border-radius: 8px; cursor: grab;
  touch-action: none; user-select: none; font-size: 0.9rem; border: 1px solid transparent; }
.sp-gast:hover { background: var(--rose-zart); }
.sp-gast.sitzt .sp-gastname { color: var(--leise); }
.sp-gast.gewaehlt { border-color: var(--akzent); background: var(--rose-hell); }
.sp-gast.streit .sp-gastname { color: var(--rot); }
.sp-gastname { flex: 1 1 auto; min-width: 0; }
.sp-platz { font-size: 0.75rem; }
.sp-punkt { width: 0.75rem; height: 0.75rem; border-radius: 50%; flex: none; border: 1px solid rgba(0, 0, 0, 0.12); }
.sp-punkt.leer { background: var(--flaeche); border-style: dashed; }
.sp-gruppe { display: grid; grid-template-columns: 2rem 1fr auto auto; gap: 0.4rem; align-items: center; margin-bottom: 0.3rem; }
.sp-gruppe input[type="color"] { width: 2rem; height: 2rem; padding: 0; border: 0; background: none; }
.sp-zeile { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.sp-zeile input { flex: 1 1 8rem; }
.sp-regelform { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.4rem; }
.sp-regel { display: grid; grid-template-columns: 1.2rem 1fr auto; gap: 0.3rem; font-size: 0.85rem; padding: 0.2rem 0; }
.sp-regel.streit { color: var(--rot); }
.sp-regelzeichen { text-align: center; }
.sp-block { margin: 0.8rem 0; }
.sp-block > summary { cursor: pointer; color: var(--akzent); font-size: 0.9rem; margin-bottom: 0.5rem; }
.sp-block form { display: grid; gap: 0.6rem; }
.sp-formular { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.sp-formular .voll, .sp-formular > label:has(textarea) { grid-column: 1 / -1; }
.sp-warnung { color: var(--rot); font-size: 0.85rem; }
.sp-buehne-rahmen { position: relative; min-width: 0; }
.sp-buehne { display: block; width: 100%; height: calc(100vh - 7.5rem); min-height: 480px; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius); touch-action: none; user-select: none; cursor: grab; }
.sp-buehne.messen { cursor: crosshair; }
.sp-hinweis { margin-bottom: 1rem; padding: 0.6rem 0.9rem; border-radius: 10px;
  background: var(--gelb-hell); color: var(--gelb); font-size: 0.9rem; }
.sp-hinweis.info { background: var(--blau-hell); color: var(--dunkel); }
.sp-hinweis.fehler { background: var(--rot-hell); color: var(--rot); }
.sp-geist { position: fixed; z-index: 50; pointer-events: none; background: var(--dunkel); color: #fff; padding: 0.3rem 0.7rem;
  border-radius: 999px; font-size: 0.85rem; box-shadow: var(--schatten); }
/* Zeichnung: 1 Einheit = 1 cm */
.sp-raster line { stroke: var(--linie); stroke-width: 1; }
.sp-wand { fill: none; stroke: var(--dunkel); stroke-width: 18; }
.sp-planrand { fill: none; stroke: var(--rose); stroke-width: 3; stroke-dasharray: 12 8; }
.sp-plan { opacity: 0.85; }
.sp-massstab line { stroke: var(--dunkel); stroke-width: 4; }
.sp-massstab text { font: 20px var(--sans); fill: var(--leise); }
.sp-platte { fill: var(--beige); stroke: #b9aaa1; stroke-width: 2; cursor: move; }
.sp-platte.braut { fill: var(--rose-hell); stroke: var(--akzent); }
.sp-tisch.gewaehlt .sp-platte { stroke: var(--akzent); stroke-width: 5; }
.sp-fuge { stroke: #b9aaa1; stroke-width: 1.5; stroke-dasharray: 4 4; pointer-events: none; }
.sp-tischname { font: 600 20px var(--sans); fill: var(--dunkel); cursor: move; }
.sp-tischzahl { font: 16px var(--sans); fill: var(--leise); cursor: move; }
.sp-stuhl { fill: #fff; stroke: #a59a95; stroke-width: 2; cursor: pointer; }
.sp-stuhl.voll { fill: var(--rose); stroke: #8f7f7a; }
.sp-stuhl.brautpaar { stroke: var(--gelb); stroke-width: 6; }
.sp-stuhl.trauzeuge { stroke: var(--akzent); stroke-width: 5; stroke-dasharray: 6 3; }
.sp-stuhl.streit { stroke: var(--rot); stroke-width: 6; }
.sp-stuhl.gewaehlt { stroke: var(--dunkel); stroke-width: 6; }
.sp-platznr { font: 15px var(--sans); fill: #a59a95; pointer-events: none; }
.sp-name { font: 17px var(--sans); fill: var(--dunkel); cursor: grab; paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 4px; }
.sp-name.streit { fill: var(--rot); }
.sp-stuhl.vorschau { stroke: var(--dunkel); stroke-width: 4; stroke-dasharray: 7 5; }
.sp-name.vorschau { font-style: italic; }
.sp-gast.vorschau { border: 1px dashed var(--akzent); }
.sp-tisch.streit .sp-platte { stroke: var(--rot); stroke-width: 5; }
.sp-tisch.ziel .sp-platte { stroke: var(--akzent); stroke-width: 7; fill: var(--rose-hell); }
.sp-tischzahl.streit { fill: var(--rot); font-weight: 600; }
.sp-warnmarke circle { fill: var(--rot); }
.sp-warnmarke text { font: 700 22px var(--sans); fill: #fff; pointer-events: none; }
.sp-mit-vorschau .sp-buehne { cursor: default; }
/* Sicherheitshinweise: gelb = kann eng werden, rot = passt nicht / nicht zu empfehlen */
.sp-sicherheit { font-size: 0.85rem; border-radius: 8px; padding: 0.35rem 0.6rem; margin: 0.3rem 0; }
.sp-sicherheit.gelb { background: var(--gelb-hell); color: var(--gelb); }
.sp-sicherheit.rot { background: var(--rot-hell); color: var(--rot); }
li.sp-sicherheit { display: grid; }
.sp-hinweismarke path { stroke-width: 2; stroke-linejoin: round; }
.sp-hinweismarke.gelb path { fill: #e8b04a; stroke: #b9822a; }
.sp-hinweismarke.rot path { fill: var(--rot); stroke: var(--rot); }
.sp-hinweismarke text { font: 700 18px var(--sans); fill: #fff; pointer-events: none; }
/* DJ, Bar, Tanzfläche … */
.sp-objektflaeche { fill: rgba(124, 138, 157, 0.18); stroke: #7c8a9d; stroke-width: 3; }
[data-ansicht="raum"] .sp-objektflaeche { cursor: move; }
.sp-objekt.art-dj .sp-objektflaeche { fill: rgba(91, 154, 160, 0.22); stroke: #5b9aa0; }
.sp-objekt.art-bar .sp-objektflaeche { fill: rgba(176, 141, 87, 0.25); stroke: #b08d57; }
.sp-objekt.art-tanzflaeche .sp-objektflaeche { fill: rgba(142, 106, 156, 0.12); stroke: #8e6a9c; stroke-dasharray: 14 8; }
.sp-objekt.art-candybar .sp-objektflaeche { fill: rgba(201, 143, 138, 0.25); stroke: #c98f8a; }
.sp-objekt.art-fotobox .sp-objektflaeche { fill: rgba(95, 125, 94, 0.2); stroke: #5f7d5e; }
.sp-objekt.gewaehlt .sp-objektflaeche { stroke: var(--akzent); stroke-width: 6; }
.sp-objektname { font: 600 22px var(--sans); fill: var(--dunkel); pointer-events: none; text-transform: uppercase; letter-spacing: 0.08em; }
.sp-drehlinie { stroke: var(--akzent); stroke-width: 2; stroke-dasharray: 6 5; pointer-events: none; }
.sp-drehgriff { fill: #fff; stroke: var(--akzent); stroke-width: 4; cursor: grab; }
.sp-drehgriff:hover { fill: var(--rose-hell); }
.sp-ecke { fill: #fff; stroke: var(--dunkel); stroke-width: 3; cursor: move; }
.sp-ecke.markiert { fill: var(--rot); stroke: var(--rot); }
.sp-neuecke { fill: var(--akzent); stroke: #fff; stroke-width: 2; opacity: 0.75; cursor: copy; }
.sp-knoepfe-objekte { margin-top: 0.5rem; }
.sp-messlinie { stroke: var(--rot); stroke-width: 4; stroke-dasharray: 10 6; }
.sp-messpunkt { fill: var(--rot); }
.sp-druckliste { display: none; }
@media (max-width: 1200px) {
  .sp-arbeitsflaeche, .sp-arbeitsflaeche.sp-zwei, .sp-gl { grid-template-columns: 1fr; }
  .sp-zaehler { margin-left: 0; }
  .sp-seite { position: static; max-height: none; }
  .sp-buehne { height: 70vh; }
}
@media print {
  .kopf, .sp-leiste, .sp-seite, .kopfzeile .knopf, #speicherstand, .sp-hinweis, .hinweis, .sp-kopf, .sp-vorschau, .sp-verwaltung { display: none !important; }
  .sp-arbeitsflaeche { display: block; }
  .sp-buehne { height: auto; aspect-ratio: 4 / 3; border: 0; }
  .sp-druckliste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; break-before: page; }
  .sp-druck-tisch { break-inside: avoid; }
  .sp-druck-tisch h3 { margin: 0 0 0.3rem; }
}
.sp-zieht, .sp-zieht * { user-select: none; cursor: grabbing; }
