/* Lenzcut: Anmeldung und Projekte.
   Gestaltung wie Speisekartl (seit 10/2026): klare Flächen mit dunklem Rahmen und versetztem harten
   Schatten, kräftige enge Überschriften mit einem kursiven Serifenwort als Akzent, ruhige Felder,
   Knöpfe in drei Arten. Farben: Hausfarbe #0B6B5C, Text #14212B, Rot #B3261E. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  --tinte: #0B6B5C;
  --tinte-dunkel: #07503F;
  --tinte-hell: #DCEFE9;
  --text: #14212B;
  --leise: #475667;
  --rot: #B3261E;
  --rot-grund: #FBE9E6;
  --papier: #EAF1F5;
  --flaeche: #FFFFFF;
  --flaeche-ruhig: #F7F8F8;
  --rahmen: #14212B;
  --rand-weich: rgba(20, 33, 43, .26);
  --rand-fest: rgba(20, 33, 43, .45);
  --hart: 6px 6px 0 var(--rahmen);
  --hart-klein: 4px 4px 0 var(--rahmen);
  --r: 24px;
  --r-feld: 16px;
  --kopf: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --fliess: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --breite: 1160px;
  --raus: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--papier); color: var(--text); font: 17px/1.6 var(--fliess); -webkit-font-smoothing: antialiased; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vmax 55vmax at 8% -5%, #BDE5E8 0%, transparent 62%),
    radial-gradient(48vmax 48vmax at 105% 18%, #DCD3F6 0%, transparent 58%),
    radial-gradient(60vmax 60vmax at 35% 108%, #FADFC6 0%, transparent 58%),
    #EAF1F5;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinte); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--kopf); line-height: 1.12; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.02em; }
h1 em, h2 em { font-family: "EB Garamond", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: 1.12em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--flaeche); }
.sprung:focus { top: 12px; }

/* ---------- Knöpfe: Hauptknopf (.primaer), normaler Knopf, Warnung (.warn / .warn-voll) ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 16px;
  border: 1.5px solid var(--rand-weich); background: var(--flaeche-ruhig); color: var(--text);
  font: 600 1rem/1 var(--fliess); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--raus), box-shadow 140ms var(--raus), background-color 140ms ease, border-color 140ms ease;
}
.knopf:active { transform: translateY(1px); background-color: #E6ECEB; border-color: var(--rand-fest); }
.knopf.gross { min-height: 56px; padding: 0 28px; border-radius: 18px; font-size: 1.06rem; }
.knopf.klein { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.knopf.breit { width: 100%; }
.knopf.primaer, .knopf.warn-voll { color: #fff; border: 2px solid var(--rahmen); box-shadow: 3px 3px 0 var(--rahmen); }
.knopf.primaer { background: var(--tinte); }
.knopf.warn-voll { background: var(--rot); }
.knopf.primaer:active, .knopf.warn-voll:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--rahmen); border-color: var(--rahmen); }
.knopf.primaer:active { background: #095A4D; }
.knopf.warn-voll:active { background: #971E17; }
.knopf.warn { color: var(--rot); border-color: rgba(179, 38, 30, .45); }
.knopf[disabled] { opacity: .6; box-shadow: none; transform: none; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .knopf:not([disabled]):hover { background-color: #EDF3F1; border-color: var(--rand-fest); }
  .knopf.primaer:not([disabled]):hover { background: #0D7A69; border-color: var(--rahmen); box-shadow: 4px 4px 0 var(--rahmen); transform: translate(-1px, -1px); }
  .knopf.warn-voll:not([disabled]):hover { background: #C42E25; border-color: var(--rahmen); box-shadow: 4px 4px 0 var(--rahmen); transform: translate(-1px, -1px); }
  .knopf.warn:not([disabled]):hover { background-color: #FDF1EF; border-color: rgba(179, 38, 30, .6); }
}
@media (prefers-reduced-motion: reduce) { .knopf { transition: none; } }

/* ---------- Kopf: schwebende Leiste ---------- */
.kopf { position: sticky; top: 0; z-index: 20; padding: 10px 24px 0; }
.kopf-innen { max-width: calc(var(--breite) - 48px); margin: 0 auto; min-height: 64px; padding: 8px 10px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--flaeche); border: 2px solid var(--rahmen); border-radius: 22px; box-shadow: var(--hart-klein); }
.marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font: 800 1.3rem/1 var(--kopf); letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { background: #EDF3F1; } }
form.inline { display: contents; }
@media (max-width: 520px) {
  .kopf { padding: 8px 12px 0; }
  .kopf-innen { min-height: 58px; padding: 6px 8px 6px 12px; }
  .marke { font-size: 1.15rem; }
  .nav-link { display: none; }
}

/* ---------- Formulare ---------- */
.formseite { max-width: 560px; margin: 0 auto; padding: 48px 24px 88px; }
.formseite.breit { max-width: 820px; }
.lead { margin-top: 12px; color: var(--leise); font-size: 1.1rem; }
.karte { margin-top: 28px; padding: 28px; background: var(--flaeche); border: 2px solid var(--rahmen); border-radius: var(--r); box-shadow: var(--hart); }
.feldgruppe { margin-top: 20px; }
.feldgruppe.erste, .karte > .feldgruppe:first-of-type { margin-top: 0; }
label, legend { display: block; font-weight: 650; margin-bottom: 8px; padding: 0; }
.pflicht { color: var(--leise); font-weight: 500; }
.feld { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-feld); border: 1.5px solid var(--rand-weich); background: var(--flaeche-ruhig); color: var(--text); font: 1.05rem/1.3 var(--fliess); }
textarea.feld { min-height: 96px; resize: vertical; }
.feld:hover { border-color: var(--rand-fest); }
.feld:focus-visible { outline: none; border-color: var(--rahmen); background: var(--flaeche); box-shadow: 0 0 0 3px rgba(11, 107, 92, .25); }
.hilfe { margin-top: 8px; color: var(--leise); font-size: .95rem; }
.zeigen { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; font-weight: 500; cursor: pointer; }
.zeigen input { width: 22px; height: 22px; margin: 0; accent-color: var(--tinte); }
.karte .knopf.gross.breit { margin-top: 22px; }
.meldung { margin-top: 20px; padding: 14px 18px; border: 2px solid transparent; border-radius: 14px; font-weight: 600; }
.meldung.fehler { background: var(--rot-grund); border-color: var(--rot); color: var(--rot); }
.meldung.ok { background: var(--tinte-hell); border-color: var(--tinte); color: var(--tinte-dunkel); }
.meldung p + p { margin-top: 6px; }
.unterlink { margin-top: 20px; color: var(--leise); }
.zurueck { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 600; text-decoration: none; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
fieldset { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl legend { width: 100%; }
.wahl label { margin: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 10px; border: 1.5px solid var(--rand-weich); border-radius: 14px; background: var(--flaeche-ruhig); font-weight: 500; cursor: pointer; }
.wahl input { width: 20px; height: 20px; margin: 0; accent-color: var(--tinte); }
.wahl label:has(input:checked) { border: 2px solid var(--rahmen); background: var(--flaeche); box-shadow: 3px 3px 0 var(--rahmen); }
.links-feld .link-zeile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 10px; }
.links-feld .link-zeile + .link-zeile { margin-top: 10px; }
@media (max-width: 600px) {
  .formseite { padding: 32px 16px 72px; }
  .karte { padding: 20px; }
  .paar { grid-template-columns: 1fr; }
  .links-feld .link-zeile { grid-template-columns: 1fr; gap: 6px; }
  .links-feld .link-zeile + .link-zeile { margin-top: 16px; }
  .knopfreihe .knopf { flex: 1 1 auto; }
}

/* ---------- Projekte ---------- */
.seite { max-width: var(--breite); margin: 0 auto; padding: 44px 24px 88px; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rand-weich); border-radius: 999px; background: var(--flaeche-ruhig); color: var(--text); font: 600 .95rem/1 var(--fliess); cursor: pointer; }
.chip span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(20, 33, 43, .08); font-size: .85rem; }
.chip[aria-pressed="true"] { background: var(--tinte); border: 2px solid var(--rahmen); color: #fff; }
.chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .22); }
.projekte { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.projekt[hidden] { display: none; }
.projekt article { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 20px; background: var(--flaeche); border: 2px solid var(--rahmen); border-radius: var(--r); box-shadow: var(--hart-klein); }
.projekt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; letter-spacing: .01em; }
.s-arbeit { background: var(--tinte-hell); color: var(--tinte-dunkel); }
.s-live { background: var(--tinte); color: #fff; }
.s-idee { background: #ECE6FA; color: #4B3A8C; }
.s-pause { background: #FFF1C8; color: #7A5200; }
.s-fertig { background: #E6EAED; color: var(--leise); }
.frist { color: var(--leise); font-size: .92rem; font-weight: 600; }
.frist.ueber { color: var(--rot); }
.projekt h2 { font-size: 1.6rem; }
.projekt .text { color: var(--leise); }
.fortschritt { display: flex; align-items: center; gap: 12px; }
.fortschritt progress { flex: 1; height: 12px; border: 1.5px solid var(--rahmen); border-radius: 999px; background: var(--flaeche-ruhig); overflow: hidden; -webkit-appearance: none; appearance: none; }
.fortschritt progress::-webkit-progress-bar { background: var(--flaeche-ruhig); }
.fortschritt progress::-webkit-progress-value { background: var(--tinte); }
.fortschritt progress::-moz-progress-bar { background: var(--tinte); }
.fortschritt span { min-width: 48px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.dateien { display: grid; gap: 8px; }
.datei { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--rand-weich); border-radius: 14px; background: var(--flaeche-ruhig); color: var(--text); text-decoration: none; }
.datei-typ { display: inline-grid; place-items: center; min-width: 44px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--tinte); color: #fff; font: 800 .8rem/1 var(--kopf); letter-spacing: .02em; }
.datei-name { flex: 1; font-weight: 650; }
.datei small { color: var(--leise); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .datei:hover { background: #EDF3F1; border-color: var(--rand-fest); } }
.projekt-fuss { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px solid rgba(20, 33, 43, .12); }
.geaendert { color: var(--leise); font-size: .9rem; }
.leer { max-width: 560px; }
.leer p { margin: 10px 0 20px; color: var(--leise); }
@media (max-width: 820px) { .projekte { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 520px) {
  .seite { padding: 30px 16px 72px; }
  .seitenkopf .knopf { width: 100%; }
  .projekt article { padding: 20px 20px 16px; }
}

/* ---------- Fuß ---------- */
.fuss { border-top: 2px solid var(--rahmen); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 22px 24px 30px; color: var(--leise); font-size: .95rem; }

/* Editor-Zugang auf der Projektkarte */
.editor-zeile { margin: 0; }
.editor-zeile .knopf { width: 100%; justify-content: center; }
