/* Kuzbari Archiv – Gestaltung. Schrift und Zurückhaltung wie die Kuzbari-Websites, dazu ein frisches Blau. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 200 500; font-display: swap; src: url('/fonts/jost-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: 'Jost'; font-style: normal; font-weight: 200 500; font-display: swap; src: url('/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-italic-latin.woff2') format('woff2'); }

:root {
  --blau: #2f7df6; --blau-tief: #1f63d2; --blau-nacht: #143a80; --blau-hell: #eaf2ff; --blau-flaeche: #d7e7fd; --grund: #f3f7fe;
  --tinte: #1c1a17; --text: #3b3732; --leise: #77716a; --linie: #dbe3f0; --weiss: #fff; --gold: #b69154;
  --gruen: #1f9d6b; --rot: #d43d3d; --r: 10px; --schatten: 0 1px 2px rgba(20, 58, 128, .06), 0 8px 24px rgba(20, 58, 128, .08);
  --schrift: 'Jost', 'Futura', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--schrift); font-size: 16px; line-height: 1.45; color: var(--text); background: var(--grund); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 400; color: var(--tinte); margin: 0; letter-spacing: .01em; }
h1 { font-size: 30px; } h2 { font-size: 21px; }
a { color: var(--blau-tief); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.klein { font-size: 13px; color: var(--leise); }
.titelzeile { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }

/* Knöpfe */
.k { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--weiss); color: var(--tinte); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.k:hover { border-color: var(--blau); color: var(--blau-tief); }
.k:active { transform: translateY(1px); }
.k:disabled { opacity: .5; cursor: default; }
.k-blau { background: var(--blau); border-color: var(--blau); color: #fff; }
.k-blau:hover { background: var(--blau-tief); border-color: var(--blau-tief); color: #fff; }
.k-weiss { background: #fff; border-color: #fff; color: var(--blau-tief); }
.k-weiss:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.k-gross { height: 56px; padding: 0 28px; font-size: 18px; }
.k-klein { height: 34px; padding: 0 13px; font-size: 14px; }
.k-still { border-color: transparent; background: transparent; }
.k-still:hover { background: var(--blau-hell); border-color: transparent; }
.k-rot:hover { border-color: var(--rot); color: var(--rot); }
.k:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-visible { outline: 3px solid rgba(47, 125, 246, .35); outline-offset: 1px; }

/* Felder */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld > span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
input[type=text], input[type=email], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--linie); border-radius: var(--r); background: #fff; }
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2377716a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: #fff; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; user-select: none; }
.chip:hover { border-color: var(--blau); }
.chip.an { background: var(--blau); border-color: var(--blau); color: #fff; }
.chip.an.gruen { background: var(--gruen); border-color: var(--gruen); }
.chip-klein { height: 28px; padding: 0 10px; font-size: 13px; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.marke { font-size: 19px; letter-spacing: .32em; color: var(--tinte); text-decoration: none; text-transform: uppercase; }
.marke i { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 22px; letter-spacing: .02em; text-transform: none; color: var(--blau); margin-left: 4px; }
.kopf .frei { flex: 1; }
.kopf .wer { font-size: 14px; color: var(--leise); }
.kopf a.k { text-decoration: none; }

/* Anmeldung */
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 700px at 15% 10%, #5a9bff 0%, transparent 60%), radial-gradient(900px 600px at 90% 90%, #1e5fd0 0%, transparent 60%), var(--blau); }
.anmeldung .karte { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 44px 40px 36px; box-shadow: 0 30px 80px rgba(9, 34, 84, .35); text-align: center; }
.anmeldung .marke { display: block; margin-bottom: 30px; }
.anmeldung h1 { font-size: 25px; margin-bottom: 8px; }
.anmeldung p { margin: 0 0 22px; color: var(--leise); }
.anmeldung input { text-align: center; height: 56px; font-size: 18px; }
.anmeldung .code { font-size: 34px; letter-spacing: .5em; padding-left: .5em; font-weight: 500; height: 70px; }
.anmeldung .k { width: 100%; margin-top: 14px; }
.anmeldung .fehler { color: var(--rot); min-height: 22px; margin: 12px 0 0; font-size: 14px; }

/* Übersicht */
.buehne { background: linear-gradient(180deg, var(--blau) 0%, #3f8bff 100%); color: #fff; padding: 34px 28px 30px; }
.buehne .innen, .seite { max-width: 1320px; margin: 0 auto; }
.suchzeile { display: flex; gap: 14px; align-items: stretch; }
.suche { flex: 1; position: relative; }
.suche input { height: 64px; border: 0; border-radius: 999px; padding: 0 26px 0 60px; font-size: 21px; box-shadow: 0 10px 30px rgba(10, 40, 100, .22); }
.suche svg { position: absolute; left: 24px; top: 21px; }
.suchzeile .k-gross { height: 64px; font-size: 19px; }
.filter { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.filter select { width: auto; min-width: 190px; height: 44px; border: 1px solid rgba(255, 255, 255, .55); background-color: rgba(255, 255, 255, .16); color: #fff; border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E"); }
.filter select option { color: var(--tinte); }
.filter select.an { background-color: #fff; color: var(--blau-tief); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f63d2' stroke-width='1.6'/%3E%3C/svg%3E"); }
.seite { padding: 26px 28px 80px; }
.zahl { margin: 0 0 16px; color: var(--leise); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.karte-fall { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--schatten); cursor: pointer; text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.karte-fall:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 58, 128, .08), 0 16px 36px rgba(20, 58, 128, .16); }
.karte-fall .bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 2 / 1.15; background: var(--blau-flaeche); }
.karte-fall .bilder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte-fall .bilder .leer { grid-column: 1 / -1; display: grid; place-items: center; color: var(--blau-nacht); font-size: 14px; }
.karte-fall .unten { padding: 14px 16px 16px; }
.karte-fall .name { font-size: 18px; color: var(--tinte); }
.karte-fall .name b { font-weight: 500; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.marke-k { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--blau-hell); color: var(--blau-nacht); }
.marke-k.gruen { background: #e4f6ee; color: #12724c; }
.marke-k.grau { background: #f0f0ee; color: var(--leise); }
.leer-gross { text-align: center; padding: 70px 20px; color: var(--leise); }
.leer-gross h2 { margin-bottom: 8px; }

/* Fallseite */
.fallkopf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.fallkopf .links { flex: 1; min-width: 280px; }
.fallkopf h1 { margin: 6px 0 4px; }
.zurueck { font-size: 14px; text-decoration: none; color: var(--leise); }
.zurueck:hover { color: var(--blau-tief); }
.block { background: #fff; border-radius: 18px; box-shadow: var(--schatten); padding: 22px 24px 24px; margin-bottom: 22px; }
.block > header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.block > header h2 { flex: 1; }
.freigabe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.koerbe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.korb { border: 2px dashed var(--blau-flaeche); border-radius: 14px; padding: 14px; min-height: 170px; background: var(--grund); transition: background .15s, border-color .15s; }
.korb.drueber { border-color: var(--blau); background: var(--blau-hell); }
.korb > header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.korb > header b { font-weight: 500; font-size: 17px; color: var(--tinte); flex: 1; }
.korb .hinweis { color: var(--leise); font-size: 14px; padding: 26px 10px; text-align: center; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dfe7f3; cursor: grab; border: 3px solid transparent; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.foto.gewaehlt { border-color: var(--blau); box-shadow: 0 0 0 3px rgba(47, 125, 246, .25); }
.foto .dat { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); text-align: center; }
.foto .weg { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: none; line-height: 1; font-size: 15px; }
.foto:hover .weg { display: block; }
.foto .benutzt { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--gruen); color: #fff; font-size: 12px; display: grid; place-items: center; }
.foto.laedt { display: grid; place-items: center; color: var(--leise); font-size: 12px; cursor: default; }

.paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 230px; gap: 16px; padding: 16px 0; border-top: 1px solid var(--linie); align-items: start; }
.paar:first-of-type { border-top: 0; padding-top: 0; }
.platz { border-radius: 12px; background: var(--grund); border: 2px dashed var(--blau-flaeche); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; position: relative; color: var(--leise); font-size: 14px; text-align: center; padding: 10px; cursor: pointer; }
.platz.voll { border-style: solid; border-color: transparent; padding: 0; background: #e9eef6; }
.platz.drueber { border-color: var(--blau); background: var(--blau-hell); }
.platz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.platz .raus { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: none; }
.platz:hover .raus { display: block; }
.seitenkopf { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.zusatz { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.zusatz input { height: 36px; width: 150px; border-radius: 999px; font-size: 14px; }
.paar .rechts { display: flex; flex-direction: column; gap: 10px; }
.stand { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.stand i { width: 9px; height: 9px; border-radius: 50%; background: #c5cddb; }
.stand.entwurf i { background: #f0a92a; } .stand.final i { background: var(--gruen); }
.geschichte { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gespeichert { font-size: 13px; color: var(--gruen); opacity: 0; transition: opacity .3s; }
.gespeichert.da { opacity: 1; }

/* Menü */
.menue { position: relative; }
.menue .liste { position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(20, 58, 128, .22); padding: 8px; z-index: 30; }
.menue .liste a, .menue .liste button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 9px; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--tinte); }
.menue .liste a:hover, .menue .liste button:hover { background: var(--blau-hell); }
.menue .liste small { display: block; color: var(--leise); font-size: 12px; }

/* Dialog */
.dialog-hinter { position: fixed; inset: 0; background: rgba(13, 38, 86, .45); display: grid; place-items: center; padding: 20px; z-index: 50; overflow: auto; }
.dialog { width: min(720px, 100%); background: #fff; border-radius: 22px; padding: 30px 32px 28px; box-shadow: 0 30px 80px rgba(9, 34, 84, .35); max-height: calc(100vh - 40px); overflow: auto; }
.dialog h2 { font-size: 25px; margin-bottom: 20px; }
.dialog .gitter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.dialog .voll { grid-column: 1 / -1; }
.dialog .fuss { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.gruppe-kat { margin-bottom: 10px; }
.gruppe-kat > span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); margin: 0 0 6px; }

/* Verwaltung */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); padding: 8px 10px; border-bottom: 1px solid var(--linie); }
table.t td { padding: 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
table.t tr.aus td { color: #b0b0ae; }
.zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 16px; }
.zeile .feld { flex: 1; min-width: 170px; }

#meldung { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
#meldung div { background: var(--tinte); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 15px; }
#meldung div.fehler { background: var(--rot); }

/* Editor */
.editor { position: fixed; inset: 0; z-index: 60; background: #10141c; color: #e9edf5; display: flex; flex-direction: column; }
.ed-kopf { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #171c27; border-bottom: 1px solid #262d3c; flex-wrap: wrap; }
.ed-kopf .frei { flex: 1; }
.ed-gruppe { display: flex; align-items: center; gap: 4px; padding: 4px; background: #0f131b; border-radius: 999px; }
.ed-gruppe button { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: #c8d0df; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.ed-gruppe button:hover { color: #fff; background: #222a3a; }
.ed-gruppe button.an { background: var(--blau); color: #fff; }
.ed-gruppe select { height: 36px; width: auto; border: 0; border-radius: 999px; background-color: transparent; color: #c8d0df; padding: 0 30px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8d0df' stroke-width='1.6'/%3E%3C/svg%3E"); background-position: right 10px center; }
.ed-gruppe select option { color: #111; }
.ed-gruppe .ed-farbe { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #3a4459; cursor: pointer; padding: 0; margin: 0 4px; }
.ed-gruppe .ed-farbe.an { border-color: #fff; box-shadow: 0 0 0 2px var(--blau); }
.editor .k { height: 40px; }
.editor .k-dunkel { background: #222a3a; border-color: #2f394d; color: #e9edf5; }
.editor .k-dunkel:hover { border-color: var(--blau); color: #fff; }
.ed-mitte { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #05070b; }
.ed-seite { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #10141c; }
.ed-titel { text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #8f9bb3; padding: 9px 0 5px; }
.ed-flaeche { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 14px 10px; position: relative; overflow: hidden; }
.ed-bild { position: relative; line-height: 0; touch-action: none; user-select: none; }
.ed-bild canvas { display: block; border-radius: 3px; }
.ed-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ed-regler { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; padding: 10px 18px 14px; background: #171c27; border-top: 1px solid #262d3c; align-items: end; }
.ed-regler label { display: grid; gap: 3px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8f9bb3; }
.ed-regler label span { display: flex; justify-content: space-between; }
.ed-regler input[type=range] { width: 100%; accent-color: var(--blau); height: 22px; }
.ed-werkzeug { background: #131823; padding: 8px 16px; flex-wrap: nowrap; overflow: hidden; }
.ed-hinweis { flex: 1; min-width: 0; font-size: 13px; color: #8f9bb3; padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-hinweis b { color: #dbe3f0; font-weight: 400; }

@media (max-width: 900px) {
  .koerbe, .geschichte { grid-template-columns: 1fr; }
  .paar { grid-template-columns: 1fr 1fr; }
  .paar .rechts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .suchzeile { flex-direction: column; }
  .dialog .gitter { grid-template-columns: 1fr; }
}
