/* Website zum Produkt: Startseite (/), Impressum, Datenschutzerklärung, Fehlerseite.
   Eigene, kleine Datei: Die Seiten laden weder die Verwaltung (app.css) noch ein Skript, und
   die getrennte Website erlaubt keine Stile in der Seite selbst – alles steht hier.
   Farben der Marke (resources/brand/LIESMICH.md) stehen fest in dieser Datei; nur Knöpfe und
   Verweise folgen dem Farbprofil der Plattform (--primary, --link aus App\Branding\Theme).
   Die Schrift liegt auf dem eigenen Server. */

@font-face { font-family: "Work Sans"; src: url("fonts/work-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    /* Ersatzwerte, falls das Farbprofil fehlt */
    --primary: #0B3FA8; --on-primary: #fff; --primary-strong: #09348A; --link: #0B3FA8;
    /* Marke */
    --ink: #0B1B3A; --blue: #0B3FA8; --blue-light: #1E63D8; --teal: #3FA9D6; --teal-light: #6FD0C7;
    --mint: #8FDCC8; --mint-light: #BFEFD9; --green: #6BBE45; --star: #FFCC00;
    --paper: #F3F7FC; --white: #fff; --rule: #D5DFEC; --soft: #485873;
    --ok: #2F7D32; --warn: #A15C00; --bad: #B42318;
    --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.3vw, 3.45rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.site-skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.site-skip:focus { left: 8px; }
.site-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }

/* Kopf */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-head .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.site-mark { width: 34px; height: 35px; flex: none; }
.site-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.site-tools { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a { font-size: .875rem; line-height: 1.2; padding: 7px 10px; border-radius: 6px; color: var(--soft); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); background: var(--paper); }
.lang-switch [aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }

.site-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: background .15s; }
.site-btn:hover { background: var(--primary-strong); }
.site-btn-small { padding: 9px 18px; font-size: .95rem; }

/* Einstieg: links der Text, rechts die Palette mit ihren Verpackungsteilen */
.site-hero { background: var(--paper); padding: clamp(40px, 7vw, 88px) 0 clamp(44px, 7vw, 84px); }
.site-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.site-hero-copy { padding-top: clamp(0px, 3vw, 40px); }
.site-hero h1 { margin-top: 18px; max-width: 12.5em; }
.site-hero-text { font-size: 1.16rem; line-height: 1.55; max-width: 31em; margin-top: 24px; color: var(--soft); }
.site-hero-action { margin-top: 34px; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.site-more { font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; box-shadow: inset 0 -2px 0 var(--green); }
.site-more::after { content: " ↓"; }
.site-more:hover { box-shadow: inset 0 -4px 0 var(--green); }

.site-pallet figcaption { margin-top: 18px; font-size: .9rem; line-height: 1.5; color: var(--soft); max-width: var(--measure); }
.pl { width: 100%; }
.pl-front { fill: #BDE6EA; } .pl-top { fill: #DDF4F2; } .pl-side { fill: #8CCEDD; }
.pl-line { fill: none; stroke: #1F7FA6; stroke-width: 1.5; stroke-linejoin: round; }
.pl-label { fill: var(--white); opacity: .8; }
.pl-film polygon { fill: var(--white); opacity: .34; }
.pl-film path { fill: none; stroke: var(--blue-light); stroke-width: 1.5; opacity: .55; }
.pl-strap { fill: var(--blue); }
.pl-pallet { fill: var(--blue); } .pl-pallet .pl-dark { fill: #082E7C; }
.pl-leader { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.pl-dot { fill: var(--ink); }
.pl-lens { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.pl-bag rect { fill: var(--mint-light); stroke: #2E9C83; stroke-width: 1.5; fill-opacity: .75; }
.pl-bag path { fill: none; stroke: #2E9C83; stroke-width: 1.5; stroke-dasharray: 2 3; }
.pl-buffer rect { fill: var(--ink); } .pl-buffer circle { fill: #5C6B86; }
.pl-num circle { stroke: var(--white); stroke-width: 3; }
.pl-num text { font-family: var(--font); font-size: 16px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.pl-num-sales circle { fill: var(--mint); } .pl-num-grouped circle { fill: var(--teal-light); }
.pl-num-transport circle { fill: var(--blue); } .pl-num-transport text { fill: var(--white); }

/* Liste zur Zeichnung: je Stufe die Teile, rechts der Stand der Erklärung */
.site-levels { counter-reset: level; margin-top: 10px; border-top: 2px solid var(--ink); }
.site-level { counter-increment: level; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.site-level::before { content: counter(level); grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; margin-top: 1px; }
.site-level-sales::before { background: var(--mint); } .site-level-grouped::before { background: var(--teal-light); }
.site-level-transport::before { background: var(--blue); color: var(--white); }
.site-level-name { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.site-level li { display: flex; align-items: baseline; justify-content: space-between; gap: 2px 16px; flex-wrap: wrap; padding: 3px 0; }
.site-part { font-size: .98rem; } .site-part span { color: var(--soft); font-size: .88rem; margin-left: 4px; }
.site-state { font-size: .88rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.site-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.site-state-present { color: var(--ok); } .site-state-expiring { color: var(--warn); }
.site-state-missing { color: var(--bad); } .site-state-review { color: var(--blue); }
.site-state-missing::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.site-state-expiring::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 2px currentColor; }

/* Das Problem in einem Satz: dunkles Band */
.site-problem { background: var(--ink); color: var(--white); padding: clamp(52px, 8vw, 104px) 0; }
.site-problem .site-kicker { color: var(--teal-light); }
.site-problem h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 17em; margin-top: 16px; letter-spacing: -.03em; }
.site-problem-text { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(28px, 5vw, 72px); max-width: 1000px; }
.site-problem-text p { color: #C9D4E6; max-width: var(--measure); }
.site-problem-text .site-answer { color: var(--white); font-weight: 600; font-size: 1.14rem; line-height: 1.5; padding-left: 18px; border-left: 4px solid var(--green); align-self: start; }

/* Drei Schritte: Text und Bildschirmfoto im Wechsel */
.site-steps { padding: clamp(52px, 8vw, 104px) 0 clamp(20px, 4vw, 48px); }
.site-intro { color: var(--soft); font-size: 1.12rem; margin-top: 12px; max-width: var(--measure); }
.site-step-list { counter-reset: step; }
.site-step { counter-increment: step; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 76px); align-items: start; padding: clamp(40px, 6vw, 84px) 0; border-bottom: 1px solid var(--rule); }
.site-step:last-child { border-bottom: 0; }
.site-step:nth-child(even) .site-step-copy { order: 2; }
.site-step:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.site-step-copy { max-width: var(--measure); }
.site-step-copy::before { content: counter(step); display: block; font-size: .95rem; font-weight: 700; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.site-step-copy > p { margin-top: 16px; font-size: 1.1rem; }
.site-points { margin-top: 20px; border-top: 1px solid var(--rule); }
.site-points li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--rule); font-size: .98rem; line-height: 1.5; color: var(--soft); }
.site-points li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 14px; height: 3px; background: var(--green); }

.site-shot picture { display: block; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(11, 27, 58, .38), 0 2px 6px rgba(11, 27, 58, .05); background: var(--paper); }
.site-shot figcaption { margin-top: 12px; font-size: .88rem; line-height: 1.5; color: var(--soft); max-width: var(--measure); }
.site-shot-wide { grid-column: 1 / -1; order: 3; width: 100%; max-width: 940px; margin: 0 auto; }
/* Die Seite hinter dem QR-Code: im Rahmen eines Telefons */
.site-shot-qr { width: min(300px, 78%); margin: 0 auto; }
.site-shot-qr picture { border: 9px solid var(--ink); border-radius: 38px; }

/* Merkmale, Grenzen, Kontakt: links die Überschrift, rechts der Inhalt */
.site-section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.site-section-tint { background: var(--paper); border-top: 0; }
.site-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(28px, 5vw, 76px); align-items: start; }
.site-split h2 { max-width: 9em; }
.site-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.site-facts div { padding: 16px 0 20px; border-top: 1px solid var(--rule); }
.site-facts dt { font-weight: 700; font-size: 1.04rem; letter-spacing: -.01em; }
.site-facts dd { margin-top: 5px; font-size: .96rem; line-height: 1.5; color: var(--soft); }
.site-limits { max-width: 40rem; }
.site-limits li { padding: 15px 0; border-top: 1px solid #C3D0E2; }
.site-limits li:first-child { border-top: 2px solid var(--ink); }
.site-contact p { max-width: var(--measure); }
.site-contact a { display: inline-block; margin-top: 12px; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -.02em; overflow-wrap: anywhere; }

/* Impressum und Datenschutzerklärung: Fließtext in gut lesbarer Zeilenlänge */
.site-doc { padding: clamp(36px, 6vw, 76px) 0 clamp(48px, 7vw, 88px); }
.site-doc h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 24px; }
.site-doc h2 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); letter-spacing: -.015em; line-height: 1.25; margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.site-doc h1, .site-doc h2, .site-doc p, .site-doc ul, .site-doc dl, .site-doc address { max-width: 42rem; overflow-wrap: break-word; }
.site-doc p + p, .site-doc p + ul, .site-doc ul + p, .site-doc address + p, .site-doc p + address, .site-doc address + ul { margin-top: 12px; }
.site-doc ul { padding-left: 22px; list-style: disc; }
.site-doc li + li { margin-top: 8px; }
.site-doc address { font-style: normal; }
.site-doc-lead { font-size: 1.12rem; color: var(--soft); }
.site-doc-note { color: var(--soft); font-size: .95rem; padding: 4px 0 4px 16px; border-left: 4px solid var(--green); margin-bottom: 8px; }
.site-doc-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.site-doc-facts dt { color: var(--soft); }
.site-doc-facts dd { overflow-wrap: anywhere; }
.site-doc-asof { color: var(--soft); font-size: .92rem; margin-top: 40px; }

/* Fuß */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: .9rem; color: var(--soft); }
.site-foot .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px 36px; flex-wrap: wrap; }
.site-foot-brand { display: flex; align-items: center; gap: 12px; }
.site-foot-brand .site-name { display: block; font-size: 1.3rem; }
.site-slogan { display: block; margin-top: 7px; padding-left: 9px; border-left: 3px solid var(--green); font-size: .68rem; font-weight: 600; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; color: var(--ink); }
.site-provider { display: flex; align-items: center; gap: 12px; }
.site-provider img { height: 56px; width: auto; }
.site-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.site-legal a { color: var(--soft); }
.site-legal [aria-current] { color: var(--ink); font-weight: 600; }

/* Fehlerseite der getrennten Website (404.html) */
.site-notfound { margin-top: 22px; }
.site-notfound li + li { margin-top: 10px; }

@media (max-width: 920px) {
    .site-hero-grid, .site-step, .site-step:nth-child(even), .site-split, .site-problem-text { grid-template-columns: minmax(0, 1fr); }
    .site-step:nth-child(even) .site-step-copy { order: 0; }
    .site-hero h1, .site-split h2 { max-width: none; }
    .site-pallet { max-width: 620px; }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .site-wrap { padding: 0 16px; }
    .site-head .site-wrap { padding-top: 10px; padding-bottom: 10px; }
    .site-name { font-size: 1.3rem; }
    .lang-switch a { padding: 7px 7px; }
    .site-hero-action .site-btn { width: 100%; }
    .site-facts { grid-template-columns: minmax(0, 1fr); }
    .site-level li { display: block; }
    .site-state { margin-top: 1px; }
    .site-foot .site-wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .site-btn { transition: none; } }
@media print { .site-head .site-tools, .site-skip { display: none; } .site-problem { background: #fff; color: #000; } .site-problem-text p { color: #000; } }
