/* Logo-Atelier: Zeichenbogen, Tinte, Zinnober */

:root {
  --papier: #f3eee3;
  --papier-2: #ebe4d5;
  --karte: #fbf8f1;
  --tinte: #1b1a17;
  --graphit: #5f5a51;
  --hauch: #8c867a;
  --linie: rgba(27, 26, 23, 0.14);
  --linie-stark: rgba(27, 26, 23, 0.32);
  --zinnober: #e4421f;
  --zinnober-dunkel: #c23413;
  --gruen: #2f6b4f;
  --gelb-hell: #fff4d6;

  --schrift-titel: 'Gloock', 'Times New Roman', serif;
  --schrift-text: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  --schrift-mono: 'DM Mono', ui-monospace, monospace;

  --breite: 1180px;
  --rand: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --schatten: 0 1px 0 var(--linie), 0 18px 40px -24px rgba(27, 26, 23, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--tinte);
  font: 400 17px/1.6 var(--schrift-text);
  background-color: var(--papier);
  /* Zeichenbogen: feines Raster, kräftigere Linien alle 5 Kästchen, dazu Papierkorn */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(var(--linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--linie) 1px, transparent 1px),
    linear-gradient(rgba(27, 26, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 23, 0.05) 1px, transparent 1px);
  background-size: 220px 220px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--zinnober); text-underline-offset: 3px; }
a:hover { color: var(--zinnober-dunkel); }
:focus-visible { outline: 2px solid var(--zinnober); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 400; line-height: 1.05; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.etikett {
  font: 500 0.78rem/1 var(--schrift-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinnober-dunkel);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.etikett::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.klein { font-size: 0.86rem; color: var(--graphit); }
.lead { font-size: 1.15rem; color: var(--graphit); max-width: 60ch; }
.pflicht { color: var(--zinnober); }

/* ---------- Kopf und Fuß ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--rand);
  background: rgba(243, 238, 227, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf-marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.35rem/1 var(--schrift-titel); }
.marke { width: 34px; height: 34px; color: var(--tinte); }
.marke--klein { width: 28px; height: 28px; }
.kopf-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 0.95rem; }
.kopf-nav a { text-decoration: none; }
.kopf-nav a:hover { text-decoration: underline; }
.nav-anmelden { border: 1px solid var(--tinte); padding: 6px 14px; border-radius: 999px; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
button.link:hover { text-decoration: underline; }

.fuss { border-top: 1px solid var(--linie-stark); margin-top: 80px; background: var(--papier-2); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 32px var(--rand); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.fuss nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.92rem; }
.fuss-copy { margin: 0; font: 0.82rem var(--schrift-mono); color: var(--graphit); }

/* ---------- Knöpfe ---------- */
.knopf {
  --hg: var(--karte); --vg: var(--tinte);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 14px 26px; border: 1.5px solid var(--tinte); border-radius: 999px;
  background: var(--hg); color: var(--vg);
  font: 600 1rem/1.1 var(--schrift-text); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  box-shadow: 3px 3px 0 var(--tinte);
}
.knopf:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tinte); color: var(--vg); }
.knopf:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinte); }
.knopf--haupt { --hg: var(--zinnober); --vg: #fff; }
.knopf--haupt:hover { --hg: var(--zinnober-dunkel); }
.knopf--dunkel { --hg: var(--tinte); --vg: var(--papier); box-shadow: 3px 3px 0 var(--zinnober); }
.knopf--dunkel:hover { box-shadow: 4px 4px 0 var(--zinnober); }
.knopf--leise { box-shadow: none; background: transparent; }
.knopf--leise:hover { box-shadow: none; background: var(--karte); }
.knopf--breit { width: 100%; }
.knopf--klein { padding: 6px 12px; font-size: 0.85rem; box-shadow: 2px 2px 0 var(--tinte); }
.knopf[disabled], .knopf.laedt { opacity: 0.6; pointer-events: none; }

/* ---------- Startseite: Held ---------- */
.held {
  max-width: var(--breite); margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--rand) clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.held h1 em {
  font-style: normal; color: var(--zinnober);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 60 3, 140 4, 297 8' stroke='%231b1a17' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.28em;
  padding-bottom: 0.08em;
}
.held-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--graphit); max-width: 34em; margin: 1.4rem 0 2rem; }
.held-aktionen { display: flex; flex-wrap: wrap; gap: 14px; }
.held-fakten { list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; gap: clamp(20px, 4vw, 44px); border-top: 1px solid var(--linie-stark); padding-top: 1.2rem; }
.held-fakten li { font: 0.8rem/1.3 var(--schrift-mono); color: var(--graphit); text-transform: uppercase; letter-spacing: 0.08em; }
.held-fakten strong { display: block; font: 400 2.2rem/1 var(--schrift-titel); color: var(--tinte); letter-spacing: 0; margin-bottom: 4px; }

.held > * { animation: auftauchen 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.held-bild { animation-delay: 0.15s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(18px); } }

/* Konstruktionszeichnung */
.konstruktion { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.konstruktion line, .konstruktion circle, .konstruktion path { fill: none; }
.k-hilfslinien line { stroke: var(--linie-stark); stroke-width: 1; stroke-dasharray: 4 6; }
.k-kreise circle { stroke: var(--hauch); stroke-width: 1; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: zeichnen 1.6s ease forwards; }
.k-kreise circle:nth-child(2) { animation-delay: 0.4s; }
.k-kreise circle:nth-child(3) { animation-delay: 0.8s; }
.k-mass line { stroke: var(--graphit); stroke-width: 1; }
.k-mass text { font: 12px var(--schrift-mono); fill: var(--graphit); }
.k-ring { stroke: var(--tinte); stroke-width: 26; stroke-linecap: round; stroke-dasharray: 810; stroke-dashoffset: 810; animation: zeichnen 1.4s cubic-bezier(0.6, 0, 0.3, 1) 1.2s forwards; }
.k-strich { stroke: var(--tinte); stroke-width: 7; stroke-dasharray: 260; stroke-dashoffset: 260; animation: zeichnen 0.7s ease 2.3s forwards; }
.k-punkt { fill: var(--zinnober) !important; transform-origin: 336px 184px; transform: scale(0); animation: platzen 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 2.7s forwards; }
.k-zirkel { transform-origin: 260px 260px; animation: kreisen 3s cubic-bezier(0.5, 0, 0.3, 1) 0.2s both; }
.k-zirkel line { stroke: var(--zinnober); stroke-width: 2; }
.k-zirkel circle { fill: var(--zinnober) !important; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes platzen { to { transform: scale(1); } }
@keyframes kreisen { from { transform: rotate(-300deg); opacity: 0; } 15% { opacity: 1; } to { transform: rotate(0); opacity: 0.9; } }

/* ---------- Abschnitte ---------- */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--rand) 0; }
.abschnitt-kopf { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.abschnitt-lead { color: var(--graphit); font-size: 1.1rem; }

.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--tinte); }
.schritt { padding: 24px 22px 8px 0; position: relative; }
.schritt + .schritt { padding-left: 22px; border-left: 1px solid var(--linie-stark); }
.schritt-nr { font: 500 0.85rem var(--schrift-mono); color: var(--zinnober-dunkel); display: block; margin-bottom: 18px; }
.schritt p { color: var(--graphit); margin: 0; }

/* Runden-Band */
.runden-band { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 20px); overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.rund { margin: 0; flex: 0 0 auto; text-align: center; scroll-snap-align: start; }
.rund figcaption { font: 0.78rem var(--schrift-mono); color: var(--graphit); margin-top: 10px; }
.rund-bild { width: clamp(96px, 12vw, 140px); aspect-ratio: 1; background: var(--karte); border: 1px solid var(--linie-stark); position: relative; box-shadow: var(--schatten); }
.rund--gewaehlt .rund-bild { outline: 2.5px solid var(--zinnober); outline-offset: 4px; }
.rund--fertig .rund-bild { border-color: var(--tinte); border-width: 2px; }
.rund--fertig figcaption { color: var(--zinnober-dunkel); font-weight: 500; }
.rund-pfeil { font: 1.6rem var(--schrift-titel); color: var(--hauch); flex: 0 0 auto; }
.rund-bild::before, .rund-bild::after { content: ''; position: absolute; }
.r-a::before { inset: 28%; border: 5px solid var(--tinte); border-radius: 50%; }
.r-b::before, .r-b2::before, .r-b3::before { inset: 24%; border: 8px solid var(--tinte); border-radius: 50%; }
.r-b::after, .r-b2::after, .r-b3::after { width: 16%; height: 16%; top: 22%; right: 22%; border-radius: 50%; background: var(--tinte); }
.r-b2::after { background: var(--zinnober); }
.r-b3::before { border-color: var(--tinte); }
.r-b3::after { background: var(--zinnober); width: 20%; height: 20%; }
.r-c::before { inset: 30%; background: var(--tinte); transform: rotate(45deg); }
.r-c::after { inset: 44%; background: var(--karte); transform: rotate(45deg); }

/* Vorteile als technische Tabelle */
.vorteile { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linie-stark); border-left: 1px solid var(--linie-stark); }
.vorteil { padding: 28px 26px 22px; border-right: 1px solid var(--linie-stark); border-bottom: 1px solid var(--linie-stark); background: rgba(251, 248, 241, 0.55); position: relative; transition: background 0.2s; }
.vorteil::before { content: ''; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px; border-top: 2px solid var(--zinnober); border-left: 2px solid var(--zinnober); opacity: 0; transition: opacity 0.2s; }
.vorteil:hover { background: var(--karte); }
.vorteil:hover::before { opacity: 1; }
.vorteil p { color: var(--graphit); margin: 0; }

/* Preis als Beleg mit Perforation */
.preis { display: flex; justify-content: center; }
.preis-karte {
  width: min(460px, 100%); background: var(--karte); padding: 40px 36px 32px; text-align: center; position: relative;
  border: 1.5px solid var(--tinte); box-shadow: 8px 8px 0 var(--tinte); transform: rotate(-1deg);
}
.preis-betrag { font: 400 clamp(4rem, 9vw, 5.6rem)/1 var(--schrift-titel); margin: 0.2rem 0 0.4rem; }
.preis-hinweis { font: 0.85rem var(--schrift-mono); color: var(--graphit); margin: 0 -18px 2rem; padding-bottom: 1.6rem; border-bottom: 2px dashed var(--linie-stark); }
.preis-liste { list-style: none; padding: 0; margin: 0 0 2rem; text-align: left; }
.preis-liste li { padding: 9px 0 9px 30px; border-bottom: 1px solid var(--linie); position: relative; }
.preis-liste li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--zinnober); border-bottom: 2px solid var(--zinnober); transform: rotate(-45deg); }
.preis-zahlung { font-size: 0.82rem; color: var(--graphit); margin: 14px 0 0; }

/* Fragen */
.fragen { max-width: 820px; border-top: 1px solid var(--linie-stark); }
.frage { border-bottom: 1px solid var(--linie-stark); }
.frage summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font: 600 1.08rem/1.4 var(--schrift-text); position: relative; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: '+'; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font: 400 1.8rem/1 var(--schrift-titel); color: var(--zinnober); transition: rotate 0.2s; }
.frage[open] summary::after { rotate: 45deg; }
.frage p { color: var(--graphit); padding: 0 44px 20px 0; margin: 0; }

.schluss { text-align: center; padding-bottom: 20px; }
.schluss h2 { margin-bottom: 1.2rem; }

/* Einblenden beim Scrollen (Klasse setzt das Skript) */
.js .schritt, .js .vorteil, .js .rund { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .sichtbar { opacity: 1 !important; transform: none !important; }

/* ---------- Karten und Formulare ---------- */
.seite-schmal main { display: flex; justify-content: center; padding: clamp(32px, 7vw, 80px) var(--rand) 0; }
.karte { width: min(560px, 100%); background: var(--karte); border: 1.5px solid var(--tinte); box-shadow: 6px 6px 0 var(--tinte); padding: clamp(24px, 5vw, 44px); }
.karte h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.karte.text { width: min(760px, 100%); }

.formular { display: grid; gap: 18px; margin-top: 18px; }
.formular label:not(.haken):not(.chip):not(.farbe):not(.upload) { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; font: 400 1rem/1.4 var(--schrift-text); color: var(--tinte);
  background: #fff; border: 1.5px solid var(--linie-stark); border-radius: var(--radius); padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 3px 3px 0 var(--zinnober); }
input[disabled] { background: var(--papier-2); color: var(--graphit); }
textarea { resize: vertical; min-height: 110px; }

.haken { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; line-height: 1.5; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--zinnober); }

.meldung { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 0.95rem; border: 1.5px solid; }
.meldung--fehler { background: #fdeae4; border-color: var(--zinnober); color: #7d220c; }
.meldung--hinweis { background: var(--gelb-hell); border-color: #d9b44a; color: #5b4507; }

/* ---------- Studio ---------- */
.studio { max-width: var(--breite); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--rand) 0; }
.brotkrumen { font: 0.82rem var(--schrift-mono); color: var(--graphit); margin-bottom: 14px; }
.brotkrumen a { text-decoration: none; }
.studio-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--tinte); margin-bottom: 26px; }
.studio-kopf h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.runden-zaehler { font: 500 0.85rem var(--schrift-mono); background: var(--tinte); color: var(--papier); padding: 6px 12px; border-radius: 999px; margin: 0; }

.briefing { max-width: 780px; background: var(--karte); border: 1.5px solid var(--tinte); padding: clamp(20px, 4vw, 36px); box-shadow: 6px 6px 0 var(--tinte); }
.feld-gruppe { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--linie-stark); border-radius: 999px; background: #fff; cursor: pointer; font-size: 0.92rem; transition: all 0.15s; user-select: none; }
.chip input:checked + span { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.chip input:focus-visible + span { outline: 2px solid var(--zinnober); outline-offset: 2px; }

.farb-reihe { display: flex; gap: 14px; flex-wrap: wrap; }
.farbe { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border: 1.5px dashed var(--linie-stark); border-radius: 999px; background: #fff; cursor: pointer; opacity: 0.55; transition: opacity 0.15s, border-color 0.15s; }
.farbe--an { opacity: 1; border-style: solid; border-color: var(--tinte); }
.farbe input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--zinnober); margin: 0; }
.farbe input[type=color] { width: 44px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }

.upload { display: grid; gap: 8px; font-weight: 600; font-size: 0.95rem; position: relative; }
.upload input[type=file] { position: absolute; inset: 30px 0 0; opacity: 0; cursor: pointer; }
.upload-flaeche { display: block; padding: 28px 16px; border: 2px dashed var(--linie-stark); border-radius: var(--radius); text-align: center; font-weight: 400; color: var(--graphit); background: rgba(255, 255, 255, 0.6); transition: border-color 0.15s, background 0.15s; }
.upload.ueber .upload-flaeche, .upload:hover .upload-flaeche { border-color: var(--zinnober); background: #fff; }
.upload-liste { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-liste img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--linie-stark); }

/* Entwürfe: nicht markier- oder ziehbar */
img.geschuetzt { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }

.auswahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2.4vw, 28px); }
.auswahl-karte { position: relative; cursor: pointer; display: grid; gap: 10px; }
.auswahl-karte input { position: absolute; opacity: 0; }
.auswahl-bild { display: block; border: 1.5px solid var(--linie-stark); background: #fff; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.auswahl-karte:hover .auswahl-bild { transform: translateY(-3px); box-shadow: var(--schatten); }
.auswahl-karte input:checked ~ .auswahl-bild { border-color: var(--zinnober); outline: 3px solid var(--zinnober); outline-offset: 5px; }
.auswahl-karte input:focus-visible ~ .auswahl-bild { outline: 2px dashed var(--zinnober); outline-offset: 5px; }
.auswahl-name { font: 500 0.85rem var(--schrift-mono); text-align: center; }
.auswahl-karte input:checked ~ .auswahl-name { color: var(--zinnober-dunkel); }
.auswahl .knopf { grid-column: 1 / -1; justify-self: center; margin-top: 12px; }
.neu-start { margin-top: 36px; max-width: 720px; }
.neu-start summary { cursor: pointer; color: var(--graphit); text-decoration: underline; text-decoration-color: var(--zinnober); text-underline-offset: 3px; }

.arbeit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.arbeit-bild { background: #fff; border: 1.5px solid var(--tinte); box-shadow: 8px 8px 0 var(--tinte); padding: 8px; }
.zitat { font-style: italic; padding: 8px 8px 2px; margin: 0; }
.arbeit-steuerung { display: grid; gap: 24px; }
.fertig-box { border-top: 1px dashed var(--linie-stark); padding-top: 20px; }

.verlauf { margin-top: 48px; }
.verlauf h2 { font-size: 1.6rem; }
.verlauf-band { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 14px; }
.verlauf-band form { margin: 0; }
.verlauf-karte { width: 128px; padding: 6px; background: #fff; border: 1.5px solid var(--linie-stark); cursor: pointer; display: grid; gap: 6px; font: 0.75rem var(--schrift-mono); color: var(--graphit); transition: border-color 0.15s, transform 0.15s; }
.verlauf-karte:hover { border-color: var(--tinte); transform: translateY(-2px); }
.verlauf-karte--aktiv { border-color: var(--zinnober); outline: 2px solid var(--zinnober); cursor: default; color: var(--zinnober-dunkel); }

.arbeitet { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 16px; background: var(--karte); border: 1.5px dashed var(--linie-stark); }
.zirkel-lade { width: 120px; height: 120px; }
.zl-bahn { fill: none; stroke: var(--linie); stroke-width: 2; }
.zl-strich { fill: none; stroke: var(--tinte); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 277; transform-origin: 60px 60px; transform: rotate(-90deg); animation: zeichnen-schleife 2.4s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
.zl-arm { stroke: var(--zinnober); stroke-width: 2; transform-origin: 60px 60px; animation: arm 2.4s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
.zl-mitte { fill: var(--zinnober); }
@keyframes zeichnen-schleife { 0% { stroke-dashoffset: 277; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -277; } }
@keyframes arm { 0% { transform: rotate(0); } 60% { transform: rotate(360deg); } 100% { transform: rotate(720deg); } }

.fertig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.fertig-bild { background: #fff; border: 1.5px solid var(--tinte); box-shadow: 8px 8px 0 var(--zinnober); padding: 24px; }
.download-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.download-liste a:not(.knopf) { display: block; padding: 12px 16px; background: var(--karte); border: 1.5px solid var(--linie-stark); text-decoration: none; transition: border-color 0.15s; }
.download-liste a:not(.knopf):hover { border-color: var(--tinte); }
.download-liste .knopf { margin-bottom: 8px; }

.projekt-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }
.projekt-karte { display: grid; gap: 10px; text-decoration: none; background: var(--karte); border: 1.5px solid var(--tinte); padding: 12px; box-shadow: 4px 4px 0 var(--tinte); }
.projekt-karte h2 { font-size: 1.3rem; margin: 0; }
.projekt-karte-bild { aspect-ratio: 1; background: #fff; display: grid; place-items: center; color: var(--hauch); font-size: 0.9rem; }

/* Dialog */
.dialog { border: 1.5px solid var(--tinte); box-shadow: 8px 8px 0 var(--tinte); background: var(--karte); padding: 28px; width: min(460px, calc(100vw - 32px)); color: var(--tinte); }
.dialog::backdrop { background: rgba(27, 26, 23, 0.45); backdrop-filter: blur(2px); }
.dialog-knoepfe { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }

/* Verwaltung */
.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.kennzahlen div { background: var(--karte); border: 1.5px solid var(--linie-stark); padding: 14px 16px; }
.kennzahlen strong { display: block; font: 400 2rem/1 var(--schrift-titel); }
.kennzahlen span { font: 0.78rem var(--schrift-mono); color: var(--graphit); }
.kennzahlen .warnung { border-color: var(--zinnober); }
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--karte); font-size: 0.92rem; }
.tabelle th { text-align: left; font: 500 0.75rem var(--schrift-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphit); border-bottom: 2px solid var(--tinte); padding: 10px; }
.tabelle td { border-bottom: 1px solid var(--linie); padding: 10px; vertical-align: top; }
.zeile-warnung td { background: #fdeae4; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { width: 72px; padding: 6px 8px; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 900px) {
  .held { grid-template-columns: 1fr; }
  .held-bild { order: -1; max-width: 360px; margin: 0 auto; }
  .schritte { grid-template-columns: 1fr 1fr; }
  .schritt:nth-child(3) { padding-left: 0; border-left: 0; }
  .schritt:nth-child(n+3) { border-top: 1px solid var(--linie-stark); }
  .vorteile { grid-template-columns: 1fr 1fr; }
  .arbeit, .fertig { grid-template-columns: 1fr; }
  .kennzahlen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .kopf-nav a:not(.nav-anmelden):not([href="/studio"]):not([href="/admin"]) { display: none; }
  .schritte, .vorteile { grid-template-columns: 1fr; }
  .schritt, .schritt + .schritt { padding-left: 0; border-left: 0; border-top: 1px solid var(--linie-stark); }
  .schritt:first-child { border-top: 0; }
  .auswahl { grid-template-columns: 1fr; max-width: 420px; }
  .preis-karte { transform: none; box-shadow: 5px 5px 0 var(--tinte); padding: 32px 22px 26px; }
  .held-fakten { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; }
  .k-ring, .k-strich, .k-kreise circle { stroke-dashoffset: 0; }
  .k-punkt { transform: scale(1); }
}
