@font-face { font-family: "Shoulders"; src: url("/fonts/BigShoulders-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --ink: #14161a; --ink2: #4a4f57; --linie: #e3e5e9; --grund: #f6f6f3; --karte: #ffffff;
  --akzent: #ff5a1f; --akzent-dunkel: #d9430c; --ok: #13804a; --warn: #b45309; --fehler: #c1121f;
  --r: 14px; --r-klein: 10px; --breite: 1240px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--schrift); color: var(--ink); background: var(--grund); }
a { color: inherit; }
img, svg { max-width: 100%; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100vw - var(--breite)) / 2)); background: rgba(246,246,243,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 44px; width: auto; }
@media (min-width: 900px) { .logo img { height: 52px; } }
.logo-nr { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 22px; }
.logo-de { color: var(--akzent); }
.kopf-nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.kopf-nav a { text-decoration: none; }
.kopf-nav a:not(.knopf):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--akzent); color: #fff; font: 700 16px/1 var(--schrift); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: .6; cursor: progress; }
.knopf-klein { min-height: 40px; padding: 0 18px; font-size: 15px; }
.knopf-gross { width: 100%; min-height: 56px; font-size: 18px; }
.knopf-zweit { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.knopf-zweit:hover { background: var(--ink); color: #fff; }

/* Held */
.held { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; max-width: var(--breite); margin: 0 auto; padding: 56px 20px 40px; min-height: min(78vh, 720px); }
.held h1 { margin: 0 0 16px; font: 700 clamp(44px, 6.2vw, 84px)/.95 "Shoulders", var(--schrift); text-transform: uppercase; letter-spacing: .005em; }
.held-sub { max-width: 560px; margin: 0 0 24px; font-size: 19px; color: var(--ink2); }
.fakten { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 30px; padding: 0; list-style: none; color: var(--ink2); font-size: 15px; }
.fakten b { color: var(--ink); }
.held h1 em { font-style: normal; color: var(--akzent); display: inline-block; transform: skewX(-10deg); }
.held-bild { position: relative; isolation: isolate; }
/* Nummernplatte aus dem Logo als Bühne – schräg, sportlich */
.held-bild::before { content: ""; position: absolute; inset: 8% 4% 10% 14%; background: var(--akzent); transform: skewX(-10deg); border-radius: 18px; z-index: -1; }
.held-bild::after { content: ""; position: absolute; left: 2%; right: 30%; bottom: 4%; height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 44px, transparent 44px 58px); transform: skewX(-10deg); opacity: .85; z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .held-svg { animation: rein .7s cubic-bezier(.2,.8,.2,1) both; } @keyframes rein { from { opacity: 0; transform: translateX(24px) rotate(2deg); } to { opacity: 1; transform: none; } } }
.held-svg { aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.held-svg svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(20,22,26,.18)); }

/* Werkbank */
.werk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; max-width: var(--breite); margin: 0 auto; padding: 8px 20px 80px; align-items: start; }
.schritt { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r); padding: 26px; margin-bottom: 20px; scroll-margin-top: 80px; }
.schritt h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 700 30px/1 "Shoulders", var(--schrift); text-transform: uppercase; }
.nr { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; flex: none; }
.hinweis { margin: -6px 0 16px; color: var(--ink2); font-size: 15px; }
.feld-titel { margin: 18px 0 8px; font-weight: 700; font-size: 15px; }
.feld { display: grid; gap: 6px; margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.feld input, .feld select, .feld textarea, .spieler input, .spieler select, .spieler-wahl select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: var(--r-klein); background: #fff; font: 16px var(--schrift); color: var(--ink); }
.feld textarea { min-height: 88px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--ink); outline: none; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.zwei.drittel { grid-template-columns: 1fr 2fr; }

.wahl-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wahl-reihe.klein { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wahl { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border: 2px solid var(--linie); border-radius: var(--r-klein); background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; text-align: left; transition: border-color .15s, transform .15s; }
.wahl:hover { transform: translateY(-2px); }
.wahl[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.farben { display: flex; flex-wrap: wrap; gap: 10px; }
.farbe { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; transition: transform .15s; }
.farben.klein .farbe { width: 36px; height: 36px; }
.farbe:hover { transform: scale(1.08); }
.farbe[aria-checked="true"] { box-shadow: 0 0 0 3px var(--grund), 0 0 0 5px var(--ink); }
.farbe.ohne { background: #fff linear-gradient(135deg, transparent 46%, var(--fehler) 46%, var(--fehler) 54%, transparent 54%); }
.eigene-farbe { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; font-size: 15px; }
.eigene-farbe input { width: 46px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }

.schalter-reihe { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.schalter { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; margin-top: 12px; }
.schalter input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin: 0; }

.schrift-gruppen { display: grid; gap: 14px; max-height: 360px; overflow: auto; padding: 4px; margin: 0 -4px; border-radius: var(--r-klein); }
.schrift-gruppe h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.schrift-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.schrift { display: grid; gap: 4px; padding: 10px; border: 2px solid var(--linie); border-radius: var(--r-klein); background: #fff; cursor: pointer; text-align: left; }
.schrift img { width: 100%; height: 30px; object-fit: contain; object-position: left center; }
.schrift span { font-size: 12px; color: var(--ink2); }
.schrift[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.regler { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; margin-top: 16px; font-weight: 600; font-size: 15px; }
.regler input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); height: 28px; }
.regler output { grid-row: 1; grid-column: 2; font-weight: 500; color: var(--ink2); }
.regel { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-klein); background: #f1f4f9; font-size: 14px; color: var(--ink2); }
.regel:empty { display: none; }

.logo-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.logo-platz { position: relative; display: grid; grid-template-rows: 90px auto; gap: 8px; padding: 10px; border: 2px dashed var(--linie); border-radius: var(--r-klein); background: #fff; cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; }
.logo-platz:hover { border-color: var(--ink2); }
.logo-platz.voll { border-style: solid; border-color: var(--ink); }
.logo-platz .bild { display: grid; place-items: center; border-radius: 8px; background: repeating-conic-gradient(#f1f1f1 0 25%, #fff 0 50%) 0 0 / 14px 14px; color: var(--ink2); font-size: 28px; }
.logo-platz .bild img { max-width: 100%; max-height: 84px; }
.logo-platz .weg { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; cursor: pointer; }
.logo-platz.laedt .bild::after { content: "…"; }
.logo-platz { cursor: default; grid-template-rows: auto; }
.logo-flaeche { display: grid; grid-template-rows: 90px auto; gap: 8px; cursor: pointer; }
.logo-variante { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--grund); }
.logo-variante button { flex: 1; min-height: 34px; border: 0; border-radius: 8px; background: transparent; font: 600 12.5px var(--schrift); color: var(--ink2); cursor: pointer; }
.logo-variante button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.logo-pruefung { list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 12.5px; text-align: left; }
.logo-pruefung li, .el-name .druck-gut, .el-name .druck-knapp, .el-name .druck-schlecht { padding-left: 16px; position: relative; }
.logo-pruefung li::before, .el-name [class^="druck-"]::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.logo-pruefung .knapp::before, .el-name .druck-knapp::before { background: var(--warn); }
.logo-pruefung .schlecht::before, .el-name .druck-schlecht::before { background: var(--fehler); }
.logo-pruefung .schlecht, .el-name .druck-schlecht { color: var(--fehler); }
.nachbau { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.nachbau.empfohlen { color: var(--ink); font-weight: 700; }
.nachbau input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--akzent); }
.bogen-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.bogen-wahl button { display: grid; gap: 6px; padding: 14px; border: 2px solid var(--linie); border-radius: var(--r-klein); background: #fff; text-align: left; cursor: pointer; font: 400 14px var(--schrift); color: var(--ink2); }
.bogen-wahl button b { color: var(--ink); font-size: 16px; }
.bogen-wahl button em { font-style: normal; font-weight: 700; color: var(--ink); }
.bogen-wahl button[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.bogen-wahl[data-leer="1"] em { visibility: hidden; }
@media (max-width: 600px) { .bogen-wahl { grid-template-columns: 1fr; } }

.ablage { display: grid; justify-items: center; gap: 4px; padding: 26px; border: 2px dashed var(--ink2); border-radius: var(--r); background: #fafaf8; cursor: pointer; text-align: center; transition: background .15s; }
.ablage:hover, .ablage.ueber { background: #fff2ec; border-color: var(--akzent); }
.ablage-titel { font-weight: 700; font-size: 17px; }
.ablage-sub { color: var(--ink2); font-size: 14px; }
.melde { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; }
.melde.ok { color: var(--ok); } .melde.fehler { color: var(--fehler); } .melde.warn { color: var(--warn); }
.tabelle-rahmen { max-height: 420px; overflow: auto; margin: 12px 0; border: 1px solid var(--linie); border-radius: var(--r-klein); }
.spieler { width: 100%; border-collapse: collapse; font-size: 15px; }
.spieler th { position: sticky; top: 0; background: #f1f1ee; text-align: left; padding: 8px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.spieler td { padding: 4px 6px; border-top: 1px solid var(--linie); }
.spieler td:first-child { width: 78px; } .spieler td:nth-child(3) { width: 100px; } .spieler td:last-child { width: 44px; }
.spieler input, .spieler select { min-height: 40px; border-color: transparent; background: transparent; }
.spieler input:focus, .spieler select:focus { border-color: var(--ink); background: #fff; outline: none; }
.spieler tr.gewaehlt td { background: #fff7f2; }
.spieler .zeile-weg { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink2); }
.spieler .zeile-weg:hover { background: #f1f1ee; color: var(--fehler); }
.summe { color: var(--ink2); font-size: 15px; }
.fertig { padding: 22px; border-radius: var(--r); background: #ecf7f0; }
.fertig h3 { margin: 0 0 6px; font: 700 28px/1.1 "Shoulders", var(--schrift); text-transform: uppercase; }

/* Bühne */
.buehne { position: sticky; top: 76px; }
.buehne-innen { background: #e9eaec; border-radius: var(--r); padding: 16px; }
.buehne-kopf { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.umschalter { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; }
.umschalter button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--schrift); cursor: pointer; color: var(--ink2); }
.umschalter button.an { background: var(--ink); color: #fff; }
.spieler-wahl select { min-height: 40px; max-width: 220px; }
.trikots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trikots[data-seite="front"] { grid-template-columns: 1fr; } .trikots[data-seite="front"] #hinten { display: none; }
.trikots[data-seite="back"] { grid-template-columns: 1fr; } .trikots[data-seite="back"] #vorne { display: none; }
.trikot { margin: 0; display: grid; gap: 4px; }
.trikot .svg { aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.trikot .svg svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 18px rgba(20,22,26,.16)); }
.trikot figcaption { text-align: center; font-size: 13px; color: var(--ink2); font-weight: 600; }
.warnungen { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.warnungen li { padding: 8px 12px; border-radius: 8px; background: #fff7e6; color: var(--warn); }
.warnungen li.fehler { background: #fdecee; color: var(--fehler); }
.warnungen li.gut { background: #ecf7f0; color: var(--ok); }
.laed { margin: 8px 0 0; font-size: 13px; color: var(--ink2); text-align: center; }

/* Fuß */
.fuss { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 30px 20px 40px; border-top: 1px solid var(--linie); color: var(--ink2); font-size: 14px; }

/* Rechtstexte */
.recht-text { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.recht-text h1 { font: 700 48px/1 "Shoulders", var(--schrift); text-transform: uppercase; }
.recht-text h2 { margin-top: 28px; font-size: 19px; }
.stand { color: var(--ink2); font-size: 13px; }

/* Intern */
.intern { max-width: var(--breite); margin: 0 auto; padding: 24px 20px 60px; }
.intern table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; font-size: 14px; }
.intern th, .intern td { padding: 10px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.intern .farbpunkt { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; margin-right: 4px; }
.intern .detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }

/* Nummernschrift */
.schrift { position: relative; }
.schrift .nur-namen { display: block; margin-top: 1px; color: var(--warn); font-size: 11px; font-weight: 600; }
.nummer-schrift { margin: 14px 0 4px; padding: 14px; border-radius: var(--r-klein); background: #fff6ef; border: 1px solid #ffd9c4; }
.nummer-schrift p { margin: 0 0 10px; font-size: 14.5px; }
.nummer-schrift select { min-height: 44px; width: 100%; max-width: 360px; border: 1px solid var(--linie); border-radius: 10px; padding: 0 10px; font: 600 15px var(--schrift); background: #fff; }

/* 3D-Ansicht */
.drei { position: relative; height: 560px; border-radius: var(--r); background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #eceae4 70%); overflow: hidden; }
.drei[hidden], .trikots[hidden] { display: none; }
.rn3d-voll { height: 100%; }
.drei .text-\[11px\] { display: none; } /* Hinweis „Ziehen zum Drehen“ lag in der schmalen Bühne unter den Knöpfen */

/* Feinschliff – Elemente-Liste */
.wappen-nummer { margin-top: 16px; }
.wappen-nummer small { color: var(--ink2); font-weight: 400; }
.elemente { display: grid; gap: 18px; }
.el-gruppe h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.el-zeile { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px; border: 1px solid var(--linie); border-radius: var(--r-klein); background: #fff; margin-bottom: 8px; }
.el-name { font-weight: 700; }
.el-name small { display: block; font-weight: 400; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.el-name .grenze { color: var(--warn); }
.pfeile { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(2, 40px); gap: 4px; }
.pfeile button, .stepper button { width: 40px; height: 40px; border: 1px solid var(--linie); border-radius: 10px; background: var(--grund); font-size: 18px; font-weight: 700; cursor: pointer; color: var(--ink); }
.pfeile button:hover, .stepper button:hover { border-color: var(--ink2); }
.pfeile .hoch { grid-column: 2; }
.pfeile .links { grid-column: 1; grid-row: 2; } .pfeile .runter { grid-column: 2; grid-row: 2; } .pfeile .rechts { grid-column: 3; grid-row: 2; }
.el-werkzeuge { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); }
.stepper input { width: 68px; min-height: 40px; text-align: center; border: 1px solid var(--linie); border-radius: 10px; font: 600 16px var(--schrift); color: var(--ink); }
.el-kontur { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); }
.el-kontur select { min-height: 40px; border: 1px solid var(--linie); border-radius: 10px; padding: 0 8px; font: 500 15px var(--schrift); background: #fff; color: var(--ink); }
.el-text-knopf { min-height: 40px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; font: 600 14px var(--schrift); cursor: pointer; color: var(--ink2); }
.el-text-knopf:hover { color: var(--ink); border-color: var(--ink2); }
.entfernt { font-size: 14px; color: var(--ink2); }
.entfernt button { margin-left: 6px; }

@media (max-width: 1020px) {
  .werk { grid-template-columns: 1fr; }
  .buehne { position: sticky; top: 64px; z-index: 10; order: -1; }
  .buehne-innen { padding: 10px; box-shadow: 0 10px 24px rgba(20,22,26,.12); }
  .trikots .svg { aspect-ratio: auto; height: 30vh; }
  .drei { height: 40vh; }
  .held { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .held-bild { display: none; }
}
@media (max-width: 600px) {
  .kopf-nav a:not(.knopf) { display: none; }
  .logo img { height: 36px; }
  .schritt { padding: 20px 16px; }
  .zwei, .zwei.drittel { grid-template-columns: 1fr; }
  .held h1 { font-size: 46px; }
  .held-sub { font-size: 17px; }
  .held .knopf { width: 100%; }
  .trikots .svg { height: 17vh; }
  .drei { height: 30vh; }
  .trikot figcaption { display: none; }
  .buehne-kopf { margin-bottom: 4px; }
  .umschalter button { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .spieler-wahl select { min-height: 36px; max-width: 150px; font-size: 14px; padding: 6px 8px; }
  .warnungen { font-size: 12.5px; max-height: 64px; overflow: auto; }
  .warnungen li { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Brust-Wahl und 3D-Schatten */
#brustWahl { margin: 6px 0 14px; }
#brustWahl[hidden] { display: none; }
.schatten-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wahl.mini { min-height: 44px; padding: 8px 14px; justify-content: center; font-size: 15px; }
.schatten-mehr { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.schatten-mehr[hidden] { display: none; }

/* Maße der Kundentrikots */
.masse { display: grid; gap: 12px; margin-top: 8px; }
.masse[hidden] { display: none; }
.masse-bild { display: flex; gap: 12px; align-items: center; margin: 0; }
.masse-bild svg { width: 110px; flex: none; }
.masse-bild figcaption { font-size: 14px; color: #555; }
.masse-tabelle { display: grid; gap: 6px; }
.masse-zeile { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; }
.masse-zeile.kopf { font-size: 13px; font-weight: 700; color: #555; }
.masse-zeile input { width: 100%; min-height: 44px; padding: 8px 10px; border: 2px solid var(--linie); border-radius: var(--r-klein); font: inherit; font-size: 16px; }
.masse-zeile input[readonly] { background: #f5f5f3; border-color: transparent; }
.masse-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.masse-knoepfe .knopf[hidden] { display: none; }

/* Profi-Trikot (24.11.) */
.profi { margin: 14px 0 4px; display: grid; gap: 10px; }
.profi-text { margin: 0; color: var(--grau, #555); font-size: .95rem; }
.profi-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.profi-zeile { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.profi-zeile.haupt { border-color: #1f8a3b; box-shadow: 0 0 0 1px #1f8a3b inset; }
.profi-zeile img { width: 64px; height: 40px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 10px 10px; border-radius: 6px; }
.profi-info { display: grid; min-width: 0; }
.profi-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profi-info small { color: #666; }
.profi-knoepfe { display: flex; gap: 4px; }
.mini-knopf { min-width: 44px; min-height: 44px; border: 1px solid #ccc; border-radius: 8px; background: #fff; font-size: 1.05rem; cursor: pointer; }
.mini-knopf:disabled { opacity: .35; cursor: default; }
.profi .knopf.laedt { opacity: .6; pointer-events: none; }
@media (max-width: 480px) { .profi-zeile { grid-template-columns: 52px 1fr; } .profi-knoepfe { grid-column: 1 / -1; justify-content: flex-end; } }
.profi[hidden], .profi .knopf[hidden] { display: none; }

/* Auch als sublimiertes Trikot (24.11.) */
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.subli-karte { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; width: 100%; margin-top: 18px; padding: 10px; border: 1px dashed #bbb; border-radius: 12px; background: #fafafa; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.subli-karte:hover { border-color: #ff5a1f; transform: translateY(-2px); }
.subli-karte img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.subli-karte u { color: #ff5a1f; text-underline-offset: 3px; }
.subli { width: min(920px, 94vw); max-height: 92vh; border: 0; border-radius: 16px; padding: 22px; overflow: auto; }
.subli::backdrop { background: rgba(0,0,0,.55); }
.subli h2 { margin: 0 40px 8px 0; }
.subli p { margin: 0 0 16px; color: #444; }
.subli-zu { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; }
.subli form { margin: 0; }
.subli-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.subli-raster img { width: 100%; height: auto; border-radius: 10px; background: #f2f2f2; }
.subli .knopf { display: block; text-align: center; }
@media (max-width: 600px) { .subli { padding: 16px; } .subli-raster { grid-template-columns: repeat(2, 1fr); } }
.subli .knopf { position: sticky; bottom: 0; box-shadow: 0 -12px 16px #fff; }

/* Kundenkonto (24.11.) */
.kopf-konto { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.kopf-konto:hover { text-decoration: underline; text-underline-offset: 3px; }
.konto { width: min(620px, 94vw); max-height: 92vh; border: 0; border-radius: 16px; padding: 22px; overflow: auto; }
.konto::backdrop { background: rgba(0,0,0,.55); }
.konto h2 { margin: 0 40px 8px 0; }
.konto h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.konto > form { margin: 0; }
.konto p { color: #444; }
.konto-login { display: grid; gap: 10px; }
.konto-login input { font-size: 16px; }
.konto-wer { margin: 0 0 4px; }
.konto .link { border: 0; background: none; padding: 0; font: inherit; color: #ff5a1f; text-decoration: underline; cursor: pointer; }
.konto-liste { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.konto-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; }
.konto-zeile.aktiv { border-color: #1f8a3b; }
.konto-zeile > div:first-child { display: grid; min-width: 0; }
.konto-zeile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto-zeile small { color: #666; }
.konto-knoepfe { display: flex; gap: 6px; align-items: center; }
.konto-leer { color: #777; padding: 4px 0; }
.konto-loeschen { margin-top: 22px; font-size: .9rem; }
.fertig-konto { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.1); }
@media (max-width: 480px) { .konto-zeile { flex-wrap: wrap; } .konto-knoepfe { margin-left: auto; } }
.kopf-konto { white-space: nowrap; }
