/* YLZVT – Lizenzportal */
:root {
  --gruen: #033246;
  --gruen-dunkel: #0b4a63;
  --gruen-hell: #e4f3ed;
  --text: #17242e;
  --leise: #5b6676;
  --linie: #e1e6ec;
  --flaeche: #f6f8fa;
  --nacht: #1c2026;
  --rot: #b3262d;
  --rund: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Segoe UI", Inter, system-ui, -apple-system, Helvetica, Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--gruen-dunkel); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
.breite { width: min(1120px, 100% - 32px); margin-inline: auto; }
.schmal { width: min(560px, 100% - 32px); margin-inline: auto; }
.testband { background: #fff4d6; color: #6b4e00; text-align: center; font-size: .9rem; padding: 6px 12px; }

/* Kopf und Fuß */
.kopf { border-bottom: 1px solid var(--linie); background: rgba(255,255,255,.95); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.kopf nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kopf nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.kopf nav a:hover { color: var(--gruen); }
.marke img { display: block; }
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); margin-top: 64px; padding: 32px 0; color: var(--leise); font-size: .92rem; }
.fuss-innen { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.fuss a { color: var(--leise); }
.inline { display: inline; margin: 0; }

/* Knöpfe und Formulare */
.knopf { display: inline-block; background: var(--gruen); color: #fff !important; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--gruen-dunkel); }
.marken-zeile span::before, .haken-liste li::before { color: #3f9a7f !important; }
.knopf.klein { padding: 7px 16px; font-size: .95rem; }
.knopf.zweit { background: #fff; color: var(--gruen-dunkel) !important; border: 1.5px solid var(--gruen); }
.knopf.zweit:hover { background: var(--gruen-hell); }
.knopf.warn { background: #fff; color: var(--rot) !important; border: 1.5px solid #e9b6b9; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; font-weight: 500; }
form.formular { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: var(--leise); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file] {
  font: inherit; padding: 10px 12px; border: 1px solid #c9d1db; border-radius: 8px; width: 100%; background: #fff; }
input:focus { outline: 2px solid var(--gruen); outline-offset: 1px; border-color: var(--gruen); }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.haken input { margin-top: 5px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis { padding: 12px 16px; border-radius: 10px; margin: 20px 0 0; }
.hinweis.ok { background: var(--gruen-hell); color: #0f4d31; }
.hinweis.fehler { background: #fdecec; color: #8a1c22; }
.leise { color: var(--leise); }
.karte { border: 1px solid var(--linie); border-radius: var(--rund); padding: 24px; background: #fff; }
.seite { padding: 48px 0 0; }

/* Startseite */
.held { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 85% -10%, #e4f3ed 0, transparent 60%); }
.held-raster { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.held p.gross { font-size: 1.2rem; color: var(--leise); max-width: 34em; }
.held .aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.fenster-bild { border-radius: 14px; box-shadow: 0 24px 60px rgba(23,32,42,.25); background: var(--nacht); }
.marken-zeile { display: flex; gap: 22px; flex-wrap: wrap; color: var(--leise); font-size: .93rem; margin-top: 22px; }
.marken-zeile span::before { content: "✓ "; color: var(--gruen); font-weight: 700; }
.abschnitt { padding: 64px 0 0; }
.abschnitt > .breite > p.einleitung { color: var(--leise); max-width: 46em; font-size: 1.08rem; }
.raster3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.raster2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.merkmal { border: 1px solid var(--linie); border-radius: var(--rund); padding: 22px; }
.merkmal .ikone { width: 40px; height: 40px; border-radius: 10px; background: var(--gruen-hell); color: var(--gruen-dunkel); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.merkmal p { color: var(--leise); margin: 0; }
.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.schritte li { list-style: none; border-left: 3px solid var(--gruen); padding: 4px 0 4px 18px; }
.schritte li::before { counter-increment: s; content: counter(s); display: block; font-weight: 800; color: var(--gruen); font-size: 1.4rem; }
.schritte { padding: 0; }
.preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.preis { border: 1px solid var(--linie); border-radius: var(--rund); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.preis.haupt { border: 2px solid var(--gruen); box-shadow: 0 10px 30px rgba(3,50,70,.14); }
.preis .betrag { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.preis .betrag small { font-size: .95rem; font-weight: 500; color: var(--leise); }
.preis ul { padding-left: 1.1em; margin: 0; color: var(--leise); }
.preis .knopf { margin-top: auto; text-align: center; }
.video-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.video-platz { aspect-ratio: 16/9; border-radius: var(--rund); background: var(--nacht); color: #c9d1db; display: grid; place-items: center; text-align: center; padding: 20px; }
details { border-bottom: 1px solid var(--linie); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--leise); margin: 10px 0 0; }
.nacht { background: var(--nacht); color: #fff; border-radius: 18px; padding: 40px; margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.nacht p { color: #c9d1db; margin: 0; }

/* Kundenbereich / Admin */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.kachel { background: var(--flaeche); border-radius: var(--rund); padding: 18px; }
.kachel b { display: block; font-size: 1.7rem; }
.kachel span { color: var(--leise); font-size: .92rem; }
.schluessel { font: 600 1.05rem/1.4 Consolas, "Cascadia Mono", monospace; background: var(--flaeche); padding: 10px 14px; border-radius: 8px; display: inline-block; user-select: all; word-break: break-all; }
table.liste { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.liste th, table.liste td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
table.liste th { color: var(--leise); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tabelle { overflow-x: auto; }
.marke-vorschau { background: var(--nacht); border-radius: 10px; padding: 14px; display: inline-block; min-width: 200px; }
.marke-vorschau img { max-height: 40px; display: block; }
.marke-vorschau span { color: #fff; font-weight: 600; display: block; margin-top: 6px; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile input[type=number] { width: 110px; }
.zeile input[type=text] { width: auto; flex: 1; min-width: 140px; }
.etikett { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--flaeche); color: var(--leise); }
.etikett.gruen { background: var(--gruen-hell); color: #0f4d31; }
.etikett.gelb { background: #fff4d6; color: #6b4e00; }
.recht h2 { font-size: 1.3rem; margin-top: 1.6em; }
.recht p, .recht li { color: #2c3540; }

@media (max-width: 880px) {
  .held-raster, .raster3, .raster2, .schritte, .preise, .video-raster { grid-template-columns: 1fr; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .held { padding-top: 40px; }
  .kopf nav { gap: 12px; font-size: .95rem; }
}
.abstand { margin-top: 20px; }
.abstand-klein { margin-top: 14px; }
.ohne-abstand { margin-top: 0; }
code { font: .9em Consolas, "Cascadia Mono", monospace; background: var(--flaeche); padding: 1px 5px; border-radius: 4px; }
.fuss-marke { display: flex; align-items: center; gap: 12px; }
.fuss-marke p { margin: 0; }
.mockup { border-radius: 18px; box-shadow: 0 24px 60px rgba(23,32,42,.22); display: block; }
.ausgerichtet { align-items: center; }
.haken-liste { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.haken-liste li::before { content: "✓"; color: var(--gruen); font-weight: 800; margin-right: 10px; }
.code { background: var(--nacht); border-radius: 14px; padding: 6px 0 4px; color: #e6edf3; box-shadow: 0 16px 40px rgba(23,32,42,.18); }
.code-kopf { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa1b3; padding: 10px 20px 0; }
.code pre { margin: 0; padding: 8px 20px 14px; font: .9rem/1.55 Consolas, "Cascadia Mono", monospace; white-space: pre; overflow-x: auto; }
.merkmal code { background: var(--gruen-hell); color: #0f4d31; }
/* Ausschnitt um das Kassensystem (x 230–930, y 60–760 von 1152 × 896) */
.held-bild { aspect-ratio: 1; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 60px rgba(23,32,42,.22); }
.held-buehne { position: relative; width: 164.6%; margin-left: -32.9%; margin-top: -8.6%; }
.held-buehne > img { display: block; width: 100%; max-width: none; height: auto; }
/* Display im Foto: x 397–709, y 187–389 von 1152 × 896 (wie bilder/montage.mjs, Motiv kasse) */
.held-display { position: absolute; left: 34.462%; top: 20.871%; width: 27.083%; height: 22.545%; background: #1c2026;
  border-radius: 2px; overflow: hidden; }
.held-display img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  animation: ablauf 12s infinite both; filter: blur(.2px); }
.held-display::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 38%, rgba(255,255,255,0) 60%); }
/* 6 Takte à 2 s: Verbinden, Karte, PIN, Bearbeitung, Erfolg (2 Takte) */
.held-display img:nth-child(2) { animation-delay: 2s; }
.held-display img:nth-child(3) { animation-delay: 4s; }
.held-display img:nth-child(4) { animation-delay: 6s; }
.held-display img.lang { animation-name: ablauf-lang; animation-delay: 8s; }
@keyframes ablauf { 0% { opacity: 0 } 2% { opacity: 1 } 16.7% { opacity: 1 } 18.7% { opacity: 0 } 100% { opacity: 0 } }
@keyframes ablauf-lang { 0% { opacity: 0 } 2% { opacity: 1 } 31% { opacity: 1 } 33.3% { opacity: 0 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .held-display { display: none; } }
.tid-feld { width: 9.5em !important; flex: none !important; min-width: 0 !important; }
.nacht .knopf { background: #a6d6c4; color: #033246 !important; }
.nacht .knopf:hover { background: #bfe3d4; }
.video { margin: 0; }
.video video { width: 100%; height: auto; display: block; border-radius: var(--rund); background: var(--nacht); box-shadow: 0 16px 40px rgba(23,32,42,.18); }
.video figcaption { color: var(--leise); margin-top: 10px; font-size: .95rem; }
