/* Kundenkonto handschriftpost.de — gleiche Werte wie die Marketingseite (src/pages/Main.tpl.html). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url(/fonts/BricolageGrotesque-normal-600-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-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url(/fonts/BricolageGrotesque-normal-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(/fonts/InstrumentSans-normal-400-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-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url(/fonts/InstrumentSans-normal-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url(/fonts/InstrumentSans-normal-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url(/fonts/InstrumentSans-normal-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url(/fonts/GeistMono-normal-400-latin.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f6f5f1; color: #121418; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: #c64d22; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } a:hover { color: #a53f1b; }
h1, h2 { font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 46px); } h2 { font-size: clamp(22px, 3.4vw, 28px); }
p { margin: 0; }
.mono { font-family: "Geist Mono", "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; font-size: .88em; }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #c64d22; font-weight: 600; }
.leise { color: #5a5f68; font-size: 15px; }

.kopf { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 48px); border-bottom: 1px solid #e2e2df; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #121418; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.logo:hover { color: #121418; } .logo svg { flex: none; }
.kopf-ort { font-size: 14px; color: #5a5f68; }
.kopf-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.kopf-nav a { color: #121418; text-decoration: none; font-weight: 500; } .kopf-nav a:hover { color: #c64d22; }
.kopf-nav form { display: inline; }
.kopf-nav .nav-kurz { display: none; }
.knopf-link { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: #5a5f68; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; } .knopf-link:hover { color: #121418; }

main { max-width: 880px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px) 40px; display: flex; flex-direction: column; gap: 28px; }
.titel { display: flex; flex-direction: column; gap: 12px; }
.titel p { max-width: 62ch; }

.meldung { padding: 14px 18px; border-radius: 10px; font-weight: 500; border: 1px solid; }
.meldung.gut { background: #eef6ef; border-color: #b9d8bd; color: #1f4d27; }
.meldung.schlecht { background: #fdece5; border-color: #f0bfa9; color: #7a2c10; }
.hinweis { padding: 12px 16px; border-radius: 10px; background: #fdece5; border: 1px solid #f0bfa9; color: #7a2c10; margin-top: 12px; }

/* Fuenf Schritte. Gefuellter Punkt = mit Datum belegt; Ring = erreicht, aber ohne Datum. */
.schritte { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; position: relative; }
.schritte::before { content: ""; position: absolute; left: 6px; right: 6px; top: 27px; height: 1px; background: #cfcfca; }
.schritt { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 22px; min-width: 0; }
.schritt .punkt { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 999px; background: #f6f5f1; border: 2px solid #cfcfca; }
.schritt.fertig .punkt { background: #1b2a5c; border-color: #1b2a5c; }
.schritt.erreicht .punkt { border-color: #1b2a5c; }
.schritt.jetzt .punkt { background: #e05a2b; border-color: #e05a2b; box-shadow: 0 0 0 5px rgba(224,90,43,.18); }
.schritt .name { font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.schritt.offen .name { color: #8a8f98; font-weight: 500; }
.schritt.teil .punkt { background: linear-gradient(90deg, #1b2a5c 50%, #f6f5f1 50%); border-color: #1b2a5c; }
.schritt.teil .name { color: #5a5f68; }
.schritt .tag { color: #5a5f68; }

.karte { background: #fff; border: 1px solid #e2e2df; border-radius: 12px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.karte.ruhig { background: transparent; border-style: dashed; border-color: #cfcfca; }
.karte.freigabe { border-color: #e9b9a5; box-shadow: 0 24px 48px -32px rgba(224,90,43,.45); }
form { display: flex; flex-direction: column; gap: 16px; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: #3a3f48; }
input[type=text], input[type=email] { height: 48px; padding: 0 14px; border: 1px solid #cfcfca; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: #121418; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #1b2a5c; outline-offset: 2px; }
.haken { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 400; color: #121418; }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #e05a2b; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.btn-s { background: transparent; color: #121418; border-color: #cfcfca; text-decoration: none; } .btn-s:hover { border-color: #121418; color: #121418; }
.btn-p, a.btn-p:hover { text-decoration: none; color: #fff; }
.btn-p { background: #e05a2b; color: #fff; box-shadow: 0 8px 20px -10px rgba(224,90,43,.6); } .btn-p:hover { background: #c64d22; transform: translateY(-2px); }

.schmal { max-width: 560px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.zurueck a { font-size: 15px; text-decoration: none; font-weight: 500; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.abschnitt { display: flex; flex-direction: column; gap: 16px; }
.auftragsliste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.auftragskarte { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; background: #fff; border: 1px solid #e2e2df; border-radius: 12px; color: #121418; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.auftragskarte:hover { transform: translateY(-4px); border-color: #c9c9c2; box-shadow: 0 26px 48px -30px rgba(18,20,24,.35); color: #121418; }
.auftragskarte strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.mitglieder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stuecke { display: flex; flex-direction: column; gap: 18px; }
.stueck { background: linear-gradient(135deg, #fefefc 0%, #f9f9f5 100%); border: 1px solid #dcdcd7; border-radius: 12px; padding: clamp(16px, 3vw, 24px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 28px); align-items: start; box-shadow: 0 1px 0 #fff inset, 0 26px 50px -36px rgba(18,20,24,.35); }
.stueck.weg { opacity: .55; }
.stueck.schmal-karte { grid-template-columns: 1fr; }
.stueck-seite { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stueck-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #cfcfca; background: #fff; font-size: 14px; font-weight: 500; }
.status-proof, .status-rueckfrage { border-color: #e9b9a5; background: #fdece5; color: #7a2c10; }
.status-eingeliefert { border-color: #1b2a5c; background: #1b2a5c; color: #fff; } .status-eingeliefert .mono { color: #d5daea; }
.status-ruecklauf { border-color: #7a2c10; color: #7a2c10; }
address { font-style: normal; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.blatt { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #5a5f68; font-size: 13px; }
.blatt:hover { color: #121418; }
.blatt img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #dcdcd7; border-radius: 3px; box-shadow: 0 18px 34px -22px rgba(18,20,24,.45); transition: transform .2s ease, box-shadow .2s ease; }
.blatt:hover img { transform: translateY(-3px); box-shadow: 0 26px 44px -24px rgba(27,42,92,.45); }
.text summary { cursor: pointer; font-weight: 600; color: #c64d22; min-height: 32px; display: inline-flex; align-items: center; }
.brieftext { margin-top: 10px; padding: 16px 18px; background: #fff; border: 1px solid #e2e2df; border-radius: 8px; display: flex; flex-direction: column; gap: 12px; max-width: 64ch; white-space: pre-line; overflow-wrap: anywhere; }
.betreff { font-weight: 600; }
.schluss { max-width: 64ch; }

.fuss { max-width: 880px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 32px) 56px; border-top: 1px solid #e2e2df; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }


/* ------------------------------------------------ Übersicht, Auftrag, Stück (nach dem Vorbild der Letter Engine) */
main { max-width: 1040px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pfeil { font-weight: 600; text-decoration: none; white-space: nowrap; }
.leer { padding: 18px 0; }

/* Nächster Schritt — das eine, was der Kunde jetzt wissen oder tun muss */
.naechster { border-radius: 14px; padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid; }
.naechster h2 { font-size: clamp(24px, 3.6vw, 32px); }
.naechster p { max-width: 62ch; }
.naechster.warm { background: #fdece5; border-color: #f0c2ae; }
.naechster.warm .label { color: #a53f1b; }
.naechster.ruhig { background: #fff; border-color: #e2e2df; }
.naechster .btn { margin-top: 4px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.kachel { background: #fff; border: 1px solid #e2e2df; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kachel strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
.kachel .leise { font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #cfcfca; background: #fff; color: #121418; text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: #121418; color: #121418; }
.chip .mono { color: #5a5f68; }
.chip-on { background: #1b2a5c; border-color: #1b2a5c; color: #fff; } .chip-on:hover { color: #fff; } .chip-on .mono { color: #d5daea; }

.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.abschnitt-kopf a.leise { font-size: 14px; }
.suche { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.suche input[type=search] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #cfcfca; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; }
.suche .btn { min-height: 44px; align-self: auto; }

/* Tabelle wie die Briefübersicht: Kopfzeile in Versalien, ruhige Zeilen, Status als Chip */
.tabelle-rahmen { background: #fff; border: 1px solid #e2e2df; border-radius: 12px; overflow: hidden; }
.liste { width: 100%; border-collapse: collapse; font-size: 15px; }
.liste th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5a5f68; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid #e2e2df; background: #fbfaf7; }
.liste td { padding: 14px 16px; border-bottom: 1px solid #efeeea; vertical-align: middle; }
.liste tr:last-child td { border-bottom: 0; }
.liste tbody tr:hover { background: #fbfaf7; }
.t-haupt a { color: #121418; text-decoration: none; } .t-haupt a:hover strong { color: #c64d22; }
.t-haupt strong { display: block; font-weight: 600; }
.t-haupt .leise { display: block; font-size: 13px; }
.t-zahl, .t-nr { text-align: right; width: 1%; white-space: nowrap; }
.t-nr { color: #5a5f68; }
.t-aktion { text-align: right; width: 1%; }
.t-balken { width: 18%; min-width: 110px; }
.liste td.t-haupt { min-width: 220px; }
.status { white-space: nowrap; }
.status-verpackt { border-color: #b9c2e0; background: #eef1f9; color: #1b2a5c; }
.status-fertigung { border-color: #d5daea; }
.status-storniert { color: #8a8f98; }

.balken { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; background: #efeeea; }
.balken.gross { height: 10px; }
.gesamt { display: flex; flex-direction: column; gap: 6px; }

/* Musterstück: der Proof in voller Größe, bevor man die Tabelle durchgeht */
.muster { background: linear-gradient(135deg, #fefefc 0%, #f9f9f5 100%); border: 1px solid #dcdcd7; border-radius: 14px; padding: clamp(16px, 3vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.muster-kopf { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.muster-flaeche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
.muster-seite { display: flex; flex-direction: column; gap: 16px; }

/* Akte je Stück: Blatt links, Stand und Verlauf rechts */
.akte { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.akte-blatt { display: flex; flex-direction: column; gap: 18px; }
.akte-seite { background: #fff; border: 1px solid #e2e2df; border-radius: 12px; overflow: hidden; }
.akte-teil { padding: 16px 20px; border-bottom: 1px solid #efeeea; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.akte-teil:last-child { border-bottom: 0; }
.akte-teil .brieftext { margin: 0; max-width: none; background: #fbfaf7; }
.blaettern { display: flex; justify-content: space-between; gap: 12px; }

/* Was bisher geschah */
.verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.verlauf li { position: relative; padding: 0 0 14px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.verlauf li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 1px; background: #dcdcd7; }
.verlauf li:last-child { padding-bottom: 0; } .verlauf li:last-child::before { display: none; }
.verlauf .punkt { position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 999px; border: 2px solid #cfcfca; background: #fff; }
.verlauf li.fertig .punkt { background: #1b2a5c; border-color: #1b2a5c; }
.verlauf .was { font-weight: 600; }
.verlauf li.offen .was { color: #8a8f98; font-weight: 500; }
.verlauf .mono { color: #5a5f68; }
.verlauf .leise { flex-basis: 100%; font-size: 14px; }

@media (max-width: 760px) {
  .akte, .muster-flaeche { grid-template-columns: 1fr; }
  .liste thead { display: none; }
  .liste, .liste tbody, .liste tr, .liste td { display: block; width: auto; }
  /* Als Karte: eine Spalte, das Etikett steht vor dem Wert — so überlappt kein breiter Statuschip die Nachbarspalte. */
  .liste tr { padding: 14px 16px; border-bottom: 1px solid #efeeea; display: flex; flex-direction: column; gap: 8px; }
  .liste tr:last-child { border-bottom: 0; }
  .liste td { padding: 0; border: 0; text-align: left; min-width: 0; }
  .liste td.t-haupt { min-width: 0; }
  .liste td.t-nr { display: none; }
  .liste td[data-titel] { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .liste td[data-titel]::before { content: attr(data-titel); min-width: 64px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f98; font-weight: 600; }
  .liste .status { white-space: normal; }
  .liste td.t-balken { width: auto; }
  .liste td.t-balken .balken { flex: 1 1 120px; width: auto; }
  .liste td.t-aktion { text-align: left; }
}
@media (max-width: 640px) {
  .kopf-ort { display: none; }
  .kopf-nav { gap: 12px; font-size: 14px; } .kopf-nav a, .knopf-link { white-space: nowrap; }
  /* Vier Einträge passen auf 375 px nur mit dem kurzen Wort. */
  .kopf-nav .nav-lang { display: none; } .kopf-nav .nav-kurz { display: inline; }
  /* Angemeldet wird es im Kopf eng: dann nur die Marke als Zeichen, ohne Schriftzug. */
  .kopf:has(.kopf-nav form) .logo span { display: none; }
  .schritte { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .schritte::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .schritt { padding: 0 0 16px 28px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .schritt .punkt { top: 5px; }
  .stueck { grid-template-columns: 1fr; }
  .stueck-seite { order: -1; }
  .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .btn-p:hover, .blatt:hover img, .auftragskarte:hover { transform: none; } }

/* Sprungziele nicht unter dem klebenden Kopf verstecken */
section[id] { scroll-margin-top: 96px; }

/* ------------------------------------------------ API (22.09.2026) */
.karte h3 { margin: 0; font-size: 18px; }
code { font-family: "Geist Mono", "SF Mono", Menlo, monospace; font-size: .86em; background: #efeeea; border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
/* Code-Block: scrollt in sich, nie die Seite */
.code { margin: 0; max-width: 100%; min-width: 0; overflow-x: auto; background: #121418; color: #f1f0ea; border-radius: 12px; padding: 18px 20px; font-size: 13px; line-height: 1.55; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.code.schluessel { font-size: 15px; padding: 20px; border: 2px solid #e05a2b; }
.code.schluessel code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.ablauf li { counter-increment: schritt; background: #fff; border: 1px solid #e2e2df; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ablauf li::before { content: "0" counter(schritt); font-family: "Geist Mono", monospace; font-size: 12px; color: #c64d22; }
.ablauf li span { font-size: 15px; color: #5a5f68; }
.liste tr.gesperrt td { color: #8a8f98; }
.liste tr.gesperrt strong { color: #8a8f98; text-decoration: line-through; }
.liste td form { display: inline; }

/* ------------------------------------------------ Neuer Auftrag (22.09.2026) */
.titel-aktion { margin: 6px 0 0; }
.befunde { border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.befunde h2 { font-size: 18px; margin: 0; }
.befunde ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.befunde.fehler { background: #fdf0ea; border: 1px solid #e9b9a5; }
.befunde.hinweis { background: #fbfaf7; border: 1px solid #e2e2df; }
.befunde.hinweis li { color: #5a5f68; }
input[type=file] { font: inherit; font-size: 15px; padding: 10px 0; }
.brief-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.brief-vorschau { background: #fff; border: 1px solid #e2e2df; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brief-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.brief-vorschau address { font-style: normal; font-size: 14px; color: #3a3f48; line-height: 1.45; }
.brief-papier { background: #fbfaf7; border: 1px solid #efeeea; border-radius: 8px; padding: 14px 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.brief-papier p { margin: 0 0 8px; } .brief-papier p:last-child { margin: 0; }

/* ------------------------------------------------ Einzelner Brief (08.10.2026) */
.gruppe { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gruppe legend { padding: 0; margin-bottom: 4px; font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
select, textarea { border: 1px solid #cfcfca; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: #121418; }
select { height: 48px; padding: 0 10px; }
textarea { padding: 12px 14px; line-height: 1.5; min-height: 180px; resize: vertical; }
select:focus-visible, textarea:focus-visible { outline: 2px solid #1b2a5c; outline-offset: 2px; }
.feld-hinweis { font-size: 14px; }
.feld-fehler { font-size: 14px; font-weight: 500; color: #7a2c10; }
.feld-schlecht input[type=text], .feld-schlecht select, .feld-schlecht textarea { border-color: #c64d22; }
form.zurueck .knopf-link { align-self: flex-start; color: #c64d22; text-decoration: none; font-weight: 500; }
form.zurueck .knopf-link:hover { color: #a53f1b; }

/* ------------------------------------------------ Brief ausprobieren (08.10.2026) */
.probe { gap: 28px; }
/* Links das Blatt und darunter die Eingabe, rechts Preis und Termin. Schmal: Blatt, Eingabe, Preis untereinander (Reihenfolge wie im Markup). */
.probe-flaeche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "blatt preis" "eingabe preis"; gap: clamp(18px, 3vw, 28px); align-items: start; }
.probe-ergebnis { grid-area: blatt; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 84px; }
.probe-eingabe { grid-area: eingabe; gap: 20px; }
.probe-preis { grid-area: preis; gap: 12px; position: sticky; top: 84px; }
.probe-eingabe textarea { min-height: 220px; }
.probe-menge input[type=text] { max-width: 160px; }
/* Schriftwahl: Karten mit Radio-Knopf, mehrere nebeneinander, wo Platz ist */
.wahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.wahl { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #cfcfca; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 400; }
.wahl input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #e05a2b; }
.wahl strong { display: block; font-weight: 600; font-size: 15px; color: #121418; }
.wahl .leise { display: block; font-size: 13px; line-height: 1.35; }
.wahl:hover { border-color: #121418; }
.wahl:has(input:checked) { border-color: #1b2a5c; box-shadow: inset 0 0 0 1px #1b2a5c; }
.wahl:has(input:focus-visible) { outline: 2px solid #1b2a5c; outline-offset: 2px; }
/* Das Blatt: so breit wie die Spalte, die Höhe folgt dem Ausschnitt des Linienbilds. Der Ausschnitt läuft unten aus (das Blatt geht weiter);
   der Verlauf bleibt schmaler als der Rand unter der letzten Zeile (20 mm sind auf dem Telefon rund 32 px). */
.probe-blatt { margin: 0; position: relative; background: #fff; border: 1px solid #dcdcd7; border-radius: 3px; box-shadow: 0 18px 34px -22px rgba(18,20,24,.45); overflow: hidden; }
.probe-blatt svg { display: block; width: 100%; height: auto; }
.probe-blatt.ausschnitt { border-bottom: 0; border-radius: 3px 3px 0 0; box-shadow: none; }
.probe-blatt.ausschnitt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: min(44px, 5vw); background: linear-gradient(to bottom, rgba(246,245,241,0), #f6f5f1); }
/* Größer ansehen: der Rahmen als Sprungziel zeigt das Blatt 794 px breit (210 mm bei 96 dpi) und rollt in sich, nie die Seite */
.probe-rahmen { overflow-x: auto; scroll-margin-top: 84px; }
.probe-rahmen:target .probe-blatt { width: 794px; }
.probe-zoom { font-size: 14px; }
.probe-zoom a { font-weight: 500; text-decoration: none; }
.probe-zoom .zoom-aus, .probe-rahmen:target + .probe-zoom .zoom-an { display: none; }
.probe-rahmen:target + .probe-zoom .zoom-aus { display: inline; }
.probe-kurz { display: none; font-size: 15px; }
.probe-blatt.leer { aspect-ratio: 210 / 99; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; color: #5a5f68; font-size: 15px; }
.probe-blatt.leer p { max-width: 34ch; }
.probe-zahlen { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 12px 16px; }
.probe-zahlen dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5a5f68; font-weight: 600; }
.probe-zahlen dd { margin: 2px 0 0; font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.staffel { width: 100%; border-collapse: collapse; font-size: 15px; }
.staffel th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5a5f68; font-weight: 600; padding: 6px 0; border-bottom: 1px solid #e2e2df; }
.staffel td { padding: 6px 0; border-bottom: 1px solid #efeeea; }
.staffel th:last-child, .staffel td:last-child { text-align: right; }
.staffel tr:last-child td { border-bottom: 0; }
.staffel tr.staffel-an td { font-weight: 600; color: #1b2a5c; }
.naechster .btn + .leise { margin-top: 4px; }

/* ------------------------------------------------ Einstiegsseiten (08.10.2026) */
.koennen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.punkte li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; position: relative; }
.punkte li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 999px; background: #e05a2b; }
.punkte strong { font-weight: 600; }
.punkte span { font-size: 15px; color: #5a5f68; }
.einstieg { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.einstieg-seite .koennen { grid-template-columns: 1fr; }
.einstieg-seite .karte { background: transparent; border-style: dashed; border-color: #cfcfca; }

@media (max-width: 860px) {
  .probe-flaeche { grid-template-columns: 1fr; grid-template-areas: "blatt" "eingabe" "preis"; }
  .probe-preis { position: static; }
  .probe-kurz { display: block; }
  .einstieg { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ Prüfseite eines Auftrags: Handschrift, Schrift und Stift, Preis (08.10.2026) */
.pruefung { gap: 28px; }
.pruef-vorschau { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 84px; }
.pruef-vorschau h2 { margin-bottom: 4px; }
.pruef-vorschau .probe-blatt.leer { aspect-ratio: 210 / 70; }
.pruef-gestaltung { gap: 18px; }
.pruef-gestaltung h2 { font-size: clamp(20px, 3vw, 24px); }
.pruef-preis { gap: 12px; }
.wahl-preis { gap: 10px; }
.wahl-preis .probe-zahlen dd { font-size: 20px; }

/* ------------------------------------------------ Rechnungen (Stufe 3, 08.10.2026) */
.status-folgt { color: #5a5f68; border-color: #d9d6cc; background: #fbfaf7; }
.status-teil { border-color: #e9b9a5; background: #fdece5; color: #7a2c10; }
.rechnung-stand { gap: 10px; }
.rechnung-stand .abschnitt-kopf { align-items: center; }
.liste td.t-zahl { font-variant-numeric: tabular-nums; }
