/* Cruh Kundenportal. Werte aus marketing/website/DESIGN.md */
@font-face{font-family:"Familjen Grotesk";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/familjen-grotesk-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:"Familjen Grotesk";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/familjen-grotesk-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}
:root{--anthrazit:#10131A;--violett:#16263D;--hellgrau:#F3EEE8;--text-weich:#BCC0CA;--hinweis:#8B92A0;--orange:#A774F2;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--anthrazit);color:var(--hellgrau);font-family:"Familjen Grotesk",Arial,sans-serif;font-size:1.0625rem;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--hellgrau);text-underline-offset:.25em}
a:hover{color:var(--orange)}
:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:4px}
h1,h2,h3{line-height:1.1;letter-spacing:-.02em;text-wrap:balance;margin:0 0 .5em}
h1{font-size:clamp(2.2rem,5vw,3.4rem)}
h2{font-size:clamp(1.5rem,3vw,2rem);margin-top:2.2rem}
h3{font-size:1.2rem;font-weight:700}
.punkt{color:inherit}
.nur-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.p-kopf{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,5vw,3rem);border-bottom:1px solid rgba(243,238,232,.12)}
.p-marke img{display:block;height:30px;width:auto}
.p-kopf-rechts{display:flex;align-items:center;gap:1rem}
.wer{color:var(--text-weich);font-size:.9rem}
.p-inhalt{flex:1;width:100%;max-width:980px;margin:0 auto;padding:clamp(2rem,6vw,4rem) clamp(1rem,5vw,3rem) 4rem}
.p-fuss{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.4rem;padding:1.6rem 1rem;background:#090E17;color:#A0A6B3;font-size:.85rem}
.p-fuss a{color:#A0A6B3}
.p-lead{color:var(--text-weich);font-size:1.15rem;max-width:62ch;margin:0 0 1.6rem}
.p-text{color:var(--text-weich);margin:0 0 .8rem;max-width:62ch}
.p-hinweis{color:var(--hinweis);font-size:.9rem}
.p-optional{color:var(--hinweis);font-weight:400}
.p-leer{color:var(--text-weich)}
.p-stand{color:var(--text-weich);font-size:.9rem}
.p-karte{display:block;background:rgba(22,38,61,.35);border:1px solid rgba(243,238,232,.13);border-radius:16px;padding:1.3rem 1.4rem;margin-bottom:1rem;text-decoration:none;color:inherit}
a.p-karte{transition:border-color .3s var(--ease)}
a.p-karte:hover{border-color:var(--orange);color:inherit}
.p-liste{display:grid;gap:.2rem}
.p-projekt-kopf,.p-eintrag-kopf{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;margin-bottom:.4rem}
.p-projekt-kopf strong{font-size:1.25rem}
.p-eintrag-kopf h3{margin:0}
.p-marker{font-size:.8rem;font-weight:600;padding:.25em .7em;border-radius:999px;background:var(--hellgrau);color:var(--anthrazit)}
.p-status{font-size:.8rem;padding:.25em .7em;border-radius:999px;border:1px solid rgba(243,238,232,.3);color:var(--text-weich)}
.p-status.s-offen{border-color:var(--hellgrau);color:var(--hellgrau)}
.p-status.s-freigegeben{background:rgba(243,238,232,.14);color:var(--hellgrau)}
label{display:block;font-size:.85rem;color:var(--text-weich);margin:1rem 0 .35rem}
input,textarea,select{width:100%;font:inherit;color:var(--hellgrau);background:rgba(16,19,26,.6);border:1px solid rgba(243,238,232,.22);border-radius:10px;padding:.7em .85em}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--hellgrau)}
input[aria-invalid="true"]{border-color:var(--hellgrau);border-width:2px}
input[type=file]{padding:.6em}
select{appearance:none}
#code{font-size:1.3rem;letter-spacing:.12em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.knopf{display:inline-flex;align-items:center;gap:.5em;font:inherit;font-weight:600;font-size:.92rem;line-height:1;text-decoration:none;padding:1em 1.2em;border-radius:999px;border:1.5px solid var(--hellgrau);color:var(--hellgrau);background:transparent;cursor:pointer;transition:background .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease)}
.knopf.voll{background:var(--hellgrau);color:var(--anthrazit)}
.knopf:hover{background:var(--orange);border-color:var(--orange);color:var(--anthrazit)}
.knopf[disabled]{opacity:.6;cursor:default}
.klein-knopf{padding:.65em 1em}
.p-textknopf{font:inherit;font-size:.85rem;background:none;border:0;padding:0;color:var(--text-weich);text-decoration:underline;text-underline-offset:.25em;cursor:pointer}
.p-textknopf:hover{color:var(--orange)}
.p-login{max-width:30rem;margin:0 auto}
.p-login form .knopf{margin-top:1.2rem}
.p-meldung{margin:.8rem 0 0;color:var(--hellgrau)}
.p-meldung:empty{display:none}
.p-zurueck{display:inline-block;margin-bottom:1.2rem;color:var(--text-weich);font-size:.9rem}
.p-schritte{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:0 0 1rem}
.p-schritte li{font-size:.85rem;padding:.4em .9em;border-radius:999px;border:1px solid rgba(243,238,232,.2);color:var(--hinweis)}
.p-schritte li.fertig{color:var(--text-weich);border-color:rgba(243,238,232,.35)}
.p-schritte li.jetzt{background:var(--hellgrau);color:var(--anthrazit);border-color:var(--hellgrau);font-weight:600}
.p-bildrahmen{position:relative;margin:.6rem 0 1rem;border-radius:10px;overflow:hidden;background:#000;line-height:0}
.p-bildrahmen img{display:block;width:100%;height:auto}
.pin-bild{cursor:crosshair}
.p-pin{position:absolute;transform:translate(-50%,-50%);width:1.7rem;height:1.7rem;border-radius:50%;background:var(--hellgrau);color:var(--anthrazit);font-size:.8rem;font-weight:700;line-height:1.7rem;text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.55);pointer-events:none}
.p-pin.neu{background:var(--orange)}
.p-kommentare{list-style:none;padding:0;margin:.8rem 0;display:grid;gap:.6rem}
.p-kommentare li{padding:.8rem 1rem;border-radius:12px;background:rgba(16,19,26,.55);border:1px solid rgba(243,238,232,.1)}
.p-kommentare li.von-cruh{background:rgba(22,38,61,.6)}
.p-kommentare li.erledigt{opacity:.7}
.p-k-kopf{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;font-size:.85rem;color:var(--text-weich);margin-bottom:.25rem}
.p-k-kopf strong{color:var(--hellgrau)}
.p-k-text{display:block;white-space:pre-wrap}
.p-pin-nr{display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--hellgrau);color:var(--anthrazit);font-weight:700;font-size:.75rem}
.p-erledigt{font-size:.75rem;border:1px solid rgba(243,238,232,.3);border-radius:999px;padding:.1em .6em}
.p-form-fuss{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem;margin-top:.8rem}
.p-form-fuss .knopf{margin-left:auto}
.p-pin-hinweis{font-size:.85rem;color:var(--text-weich)}
.p-aktionen{display:flex;flex-wrap:wrap;gap:.6rem;margin:.6rem 0}
.p-eintrag-fuss{display:flex;justify-content:space-between;gap:1rem;margin-top:.8rem;font-size:.8rem;color:var(--hinweis)}
.p-verwaltung summary{cursor:pointer;font-weight:700}
.p-verwaltung form{margin-top:.6rem}
.p-verwaltung h3{margin-top:1.6rem}
.p-zeile{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem;margin-top:.8rem}
.p-zeile input,.p-zeile select{flex:1 1 14rem;width:auto}
.p-zeile label{flex-basis:100%;margin:0}
.p-klein-aktionen{gap:1.2rem}
.p-raster{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:0 1rem}
.p-neu-eintrag .knopf{margin-top:1.2rem}
.p-projektliste{list-style:none;padding:0;margin:.4rem 0}
.p-projektliste li{display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center;padding:.5rem 0;border-top:1px solid rgba(243,238,232,.1)}
.p-projektliste li span:not(.p-marker){color:var(--text-weich);font-size:.85rem}
.p-kunde.inaktiv{opacity:.6}
.p-code{border-color:var(--hellgrau)}
.p-code-wert{font-size:clamp(1.6rem,5vw,2.4rem);font-weight:700;letter-spacing:.1em;font-variant-numeric:tabular-nums;margin:.4rem 0}
@media (max-width:520px){.wer{display:none}.p-marke img{height:24px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* Handy (Yann 14.11.2026): Buttons nie links, sondern mittig oder rechts */
@media (max-width:860px){
  .p-inhalt form>.knopf,.p-inhalt form>button.knopf,.p-inhalt a.knopf,.p-zeile .knopf{display:flex;width:fit-content;margin-inline:auto}
  .p-aktionen{justify-content:center}
  .p-form-fuss{justify-content:flex-end}
}
