/* PrintRegistry – Homepage
   Farben aus der Software (index.html :root) übernommen, Petrol #0f766e ist gesetzt. */

@font-face {
  font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype");
}

:root {
  --petrol:        #0f766e;  /* Hauptfarbe, Logo, Buttons */
  --petrol-dark:   #115e59;  /* Hover */
  --petrol-deep:   #134e4a;  /* dunkle Flächen */
  --petrol-light:  #ccfbf1;  /* Hinterlegungen, Badges */
  --petrol-text:   #0f766e;  /* Petrol als Schrift (im Dunkelmodus heller) */
  --logo-bg:       #0b1f1e;

  --bg:            #f4f5f7;  /* = Software --bg */
  --surface:       #ffffff;  /* = Software --panel */
  --surface-2:     #eef1f2;
  --text:          #1c1f26;  /* = Software --text */
  --text-muted:    #6b7280;  /* = Software --muted */
  --border:        #e2e4e9;  /* = Software --border */
  --warn:          #b45309;
  --warn-bg:       #fef3c7;
  --hero-bg:       #0b1220;  /* wie GitHub-Banner */
  --hero-bg-2:     #13203a;

  --radius:        12px;
  --maxw:          clamp(1100px, 78vw, 1640px);   /* Desktop-Breite: Laptop 1100 … 2560er-Monitor 1640 (vorher fix 1100) */
  --gutter:        clamp(16px, 4vw, 56px);         /* Seitenrand: Handy 16 px … großer Monitor 56 px */
  --abschnitt:     clamp(56px, 7vw, 120px);        /* Abstand oben/unten je Abschnitt */
  --font-head:     "Chakra Petch", system-ui, sans-serif;
  --font-body:     system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #14161c;  /* = Software dunkel */
    --surface:     #1d2028;
    --surface-2:   #232733;
    --text:        #e7e9ee;
    --text-muted:  #9ca3af;
    --border:      #2c2f3a;
    --petrol-light:#123b38;
    --petrol-text: #2dd4bf;
    --warn:        #fbbf24;
    --warn-bg:     #3a2a0a;
    --hero-bg:     #0b0e14;
    --hero-bg-2:   #111a2c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Schrift wächst mit dem Bildschirm: Handy/Laptop 16 px, 1440 px ≈ 16,5 px, Full-HD ≈ 18,5 px, 2560 px 21 px */
html { font-size: clamp(16px, calc(10px + 0.45vw), 21px); scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-text); }
h1, h2, h3, .wordmark { font-family: var(--font-head); font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.7rem); margin: 0 0 .45em; }
h3 { font-size: 1.18rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.faq { max-width: 1000px; }
.muted { color: var(--text-muted); }
.small { font-size: .9em; }
:focus-visible { outline: 3px solid var(--petrol-text); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--petrol); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons & Badges */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.3em; border-radius: var(--radius);
       background: var(--petrol); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--petrol);
       transition: background .15s, border-color .15s; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); }
.btn-ghost { background: transparent; color: var(--petrol-text); border-color: currentColor; }
.btn-ghost:hover { background: var(--petrol-light); border-color: var(--petrol-text); }
.btn-sm { padding: .4em .9em; font-size: .9rem; }
.badge { display: inline-block; background: var(--petrol-light); color: var(--petrol-text); border-radius: 999px;
         padding: .15em .75em; font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
               backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-row { display: flex; align-items: center; gap: 16px; height: clamp(64px, 4.2rem, 80px); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: clamp(28px, 1.9rem, 36px); width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: .4em .7em; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--petrol-text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: transparent; color: var(--text-muted); border: 0; padding: .35em .7em; font: 700 .8rem var(--font-body); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--petrol); color: #fff; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text);
            width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
         background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: .8em .5em; border-bottom: 1px solid var(--border); border-radius: 0; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .btn-github .label { display: none; }
}
@media (max-width: 520px) {
  .btn-github { display: none; }   /* GitHub bleibt im Hero und in der Fußzeile erreichbar */
  .header-actions { gap: 6px; }
}
@media (max-width: 420px) {
  .brand img { height: 24px; }
  .header-row { gap: 8px; }
}

/* Hero – angelehnt an das GitHub-Banner */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--hero-bg-2), transparent 60%), var(--hero-bg);
        color: #e7e9ee; padding: 72px 0 0; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
                background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
                background-size: 32px 32px; }
.hero .wrap { position: relative; }
.hero-logo { width: min(520px, 100%); margin: 18px 0 18px; }
.hero h1 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.9rem); margin: 0 0 .5em; max-width: 30ch; }
.hero .lead { font-size: 1.15rem; color: #b6bdca; max-width: 60ch; }
/* Desktop: Text links, Screenshot rechts */
@media (min-width: 1100px) {
  .hero { padding: clamp(64px, 6vw, 110px) 0 clamp(64px, 6vw, 110px); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(40px, 4vw, 80px); align-items: center; }
  .hero-text .hero-actions { margin-bottom: 0; }
  .hero-logo { width: min(460px, 100%); }
  .hero .shot { border-radius: 16px; border-bottom: 1px solid #2a3547; max-width: none; margin: 0;
                box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(45,212,191,.12), 0 0 90px rgba(15,118,110,.25); }
}
.hero .badge { background: rgba(45,212,191,.12); color: #2dd4bf; border: 1px solid rgba(45,212,191,.4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; padding: 0; list-style: none; }
.chips li { background: #1b2433; border: 1px solid #2a3547; color: #d6dbe4; border-radius: 999px; padding: .3em .9em; font-size: .9rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero .btn-ghost { color: #e7e9ee; border-color: #3a4558; }
.hero .btn-ghost:hover { background: #1b2433; border-color: #2dd4bf; }
.shot { border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid #2a3547; border-bottom: 0;
        box-shadow: 0 -10px 60px rgba(15,118,110,.25); background: #fff; max-width: 980px; margin: 0 auto; }
.shot-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #1b2433; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4558; }
.shot-bar code { margin-left: 10px; font-size: .8rem; color: #9ca3af; }

/* Abschnitte */
section.block { padding: var(--abschnitt) 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 70ch; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head p { font-size: 1.08rem; }
.section-head .kicker { color: var(--petrol-text); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .4em; display: block; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 1.6vw, 30px); }
.alt .card { background: var(--bg); }
.grid { display: grid; gap: clamp(16px, 1.5vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: clamp(24px, 4vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--petrol-light); color: var(--petrol-text);
        display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.icon svg { width: 22px; height: 22px; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--petrol-text); }
.tag.warn { color: var(--warn); }

/* Zielgruppen */
.for-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.for-list li { padding-left: 32px; position: relative; }
.for-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 5px;
  background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
blockquote.quote { margin: 0; padding: 20px 24px; border-left: 4px solid var(--petrol); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote.quote p { font-style: italic; }
blockquote.quote cite { font-style: normal; font-weight: 600; color: var(--text-muted); }

/* Ablauf */
.flow { margin-bottom: 36px; }
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.flow-head h3 { margin: 0; color: var(--petrol-text); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px 16px; }
.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center;
                    background: var(--petrol); color: #fff; font: 700 .95rem var(--font-head); margin-bottom: 10px; }
.steps li strong { display: block; margin-bottom: 4px; }
.steps li span { color: var(--text-muted); font-size: .92rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--petrol-light); color: var(--text); margin-top: 14px; }
.note strong { color: var(--petrol-text); }

/* Screenshots */
.gallery { display: grid; gap: clamp(16px, 1.5vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: clamp(32px, 3vw, 48px); }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); aspect-ratio: 16/10; object-fit: cover; object-position: top left; width: 100%; background: #fff; }
.gallery figcaption { font-size: .88rem; color: var(--text-muted); margin-top: 6px; }

/* Plattformen */
.platform h3 { font-size: 1.25rem; }
.platform .variant { font-weight: 700; color: var(--petrol-text); margin: 10px 0 2px; }
.platform.recommended { border-color: var(--petrol); }
.info-bar { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--petrol); border-radius: var(--radius); font-size: .95rem; }

/* Tabellen */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
th:first-child, td:first-child { text-align: left; }
thead th { font-family: var(--font-head); font-size: 1.05rem; background: var(--surface-2); }
thead th.hl { background: var(--petrol); color: #fff; }
tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--petrol-text); font-weight: 700; }
.no { color: var(--text-muted); }
.hw table { min-width: 480px; }
details.hw { margin-top: 24px; }
details.hw > summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--petrol-text); }
details.hw h4 { margin: 20px 0 8px; }

/* Lizenz-Hinweise */
.bullets { padding-left: 1.2em; margin: 0 0 20px; }
.bullets li { margin-bottom: 4px; }

/* Gutes tun */
.good { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--petrol-deep); color: #e7f5f3;
        border-radius: 18px; padding: 32px; }
.good h2 { color: #fff; }
.good h2 em { font-style: normal; color: #5eead4; }
.good .heart { width: 96px; height: 96px; border-radius: 50%; background: var(--petrol); display: flex; align-items: center; justify-content: center; }
.good .heart svg { width: 48px; height: 48px; }
.good .chips li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #e7f5f3; }
.good .small { color: #b5d8d3; }
@media (max-width: 640px) { .good { grid-template-columns: 1fr; padding: 24px; } .good .heart { width: 72px; height: 72px; } }

/* Roadmap */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.timeline li { border-top: 4px solid var(--petrol); }
.timeline li.later { border-top-color: var(--border); }

/* Download */
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -12px 0 20px; }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dl-card h3 { margin: 4px 0 0; font-size: 1.25rem; }
.dl-card.recommended { border-color: var(--petrol); }
.dl-card > .muted { margin-bottom: 8px; min-height: 3.2em; }
.dl-card .ver { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: var(--text-muted); overflow-wrap: anywhere; }
.dl-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dl-note { margin-top: 20px; }
.dl-note p { margin: 0 0 .5em; }
.guide-links { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-btn { background: var(--surface-2); color: var(--petrol-text); border: 1px solid var(--border); border-radius: 8px;
             padding: .35em .7em; font: 600 .85rem var(--font-body); cursor: pointer; }
.guide-btn:hover { border-color: var(--petrol-text); background: var(--petrol-light); }
.alt .guide-btn { background: var(--surface); }

/* Feedback-Aufruf */
.fb-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 24px;
          padding: 22px 24px; border: 2px solid var(--petrol); border-radius: 16px; background: var(--surface); }
.fb-cta h3 { margin: 0 0 .2em; }
.fb-cta p { margin: 0; }
.fb-cta img { border-radius: 12px; }
@media (max-width: 720px) { .fb-cta { grid-template-columns: 1fr; text-align: left; } .fb-cta img { display: none; } }

/* ---------- Pop-ups ---------- */
body.modal-offen { overflow: hidden; }
dialog.modal { padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text);
               width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(8, 14, 22, .72); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border);
              background: var(--surface); flex-shrink: 0; }
.modal-head > img { border-radius: 8px; flex-shrink: 0; }
.modal-titles { min-width: 0; }
.modal-kicker { display: block; font-size: .75rem; font-weight: 700; color: var(--petrol-text); letter-spacing: .04em; text-transform: uppercase; }
.modal-head h2 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.modal-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
               color: var(--text); font-size: 1.05rem; cursor: pointer; }
.modal-close:hover { border-color: var(--petrol-text); color: var(--petrol-text); }

.modal-pdf { height: calc(100dvh - 32px); }
.pdf-body { flex: 1; min-height: 0; background: #525659; position: relative; }
.pdf-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.pdf-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
                gap: 14px; padding: 24px; text-align: center; background: var(--surface); }
.pdf-fallback[hidden] { display: none; }
.pdf-fallback img { border-radius: 14px; }
@media (max-width: 640px) {
  .modal-pdf .modal-actions .btn { display: none; }
  dialog.modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}

/* Feedback-Formular */
.modal-fb { width: min(760px, calc(100% - 32px)); }
.modal-fb form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-fb .modal-head > img { border-radius: 0; height: 28px; width: auto; }
.fb-body { overflow-y: auto; padding: 20px 24px 8px; flex: 1; min-height: 0; overscroll-behavior: contain; }
.fb-body[hidden] { display: none; }
.fb-intro h2 { margin: 10px 0 .3em; font-size: 1.6rem; }
.fb-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fb-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.fb-field input, .fb-field select, .fb-field textarea, .rate-note textarea {
  font: 400 1rem var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: .6em .75em; width: 100%; }
.fb-field textarea, .rate-note textarea { resize: vertical; min-height: 64px; }
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus, .rate-note textarea:focus { outline: 2px solid var(--petrol); outline-offset: 0; border-color: var(--petrol); }
.fb-sec { margin: 22px 0 10px; font-size: 1.1rem; color: var(--petrol-text); }
.fb-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-muted); margin: -4px 0 8px; }

.rate { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; background: var(--bg); }
.rate legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.rate legend + * { clear: both; }
.rate-t { display: block; font-weight: 700; }
.rate-h { display: block; font-size: .85rem; color: var(--text-muted); }
.rate.low { border-color: #dc2626; }
.rate.fehlt { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 40px; padding: 0 10px;
              border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-weight: 700; cursor: pointer;
              transition: background .12s, border-color .12s; user-select: none; }
.scale .na span { font-weight: 500; font-size: .85rem; color: var(--text-muted); }
.scale label:hover span { border-color: var(--petrol-text); }
.scale input:focus-visible + span { outline: 3px solid var(--petrol-text); outline-offset: 2px; }
.scale input:checked + span { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.scale input[value="0"]:checked + span, .scale input[value="1"]:checked + span { background: #dc2626; border-color: #dc2626; }
.scale input[value="2"]:checked + span { background: #d97706; border-color: #d97706; }
.scale .na input:checked + span { background: var(--surface-2); border-color: var(--text-muted); color: var(--text); }
.rate-note { margin-top: 10px; }
.rate-note[hidden] { display: none; }
.rate-note label { display: block; font-size: .88rem; font-weight: 600; color: #dc2626; margin-bottom: 6px; }
@media (max-width: 420px) {
  .scale span { min-width: 36px; padding: 0 6px; }
  .fb-body { padding: 16px; }
  .modal-foot { padding: 10px 16px; }
  .modal-foot .btn { flex: 1; justify-content: center; padding: .7em .8em; white-space: nowrap; }
}

/* Feedback: Bilder anhängen */
.fb-bilder { margin-bottom: 14px; }
.fb-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px;
           border: 2px dashed var(--border); border-radius: 12px; background: var(--bg); color: var(--petrol-text);
           font-weight: 600; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.fb-drop:hover, .fb-drop.ueber { border-color: var(--petrol); background: var(--petrol-light); }
.fb-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fb-drop.arbeitet { opacity: .6; pointer-events: none; }
.fb-drop.voll { display: none; }
.fb-bilder > p { margin: 6px 0 0; font-weight: 400; }
.fb-bild-liste { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fb-bild-liste li { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.fb-bild-liste img { display: block; width: 100%; height: 96px; object-fit: cover; object-position: top left; }
.fb-bild-liste span { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-bild-weg { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0;
               background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .9rem; }
.fb-bild-weg:hover { background: #dc2626; }

/* „Ich bin kein Roboter“ */
.robot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
         border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 10px 14px; margin: 6px 0 14px;
         transition: border-color .2s, box-shadow .2s; }
.robot.robot-fehlt { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.robot-box { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; cursor: pointer;
             font: 600 1rem var(--font-body); color: var(--text); text-align: left; }
.robot-haken { width: 28px; height: 28px; flex-shrink: 0; border: 2px solid var(--text-muted); border-radius: 6px; background: var(--surface);
               display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.robot-box:hover .robot-haken { border-color: var(--petrol-text); }
.robot[data-zustand="laeuft"] .robot-haken { border-color: var(--petrol); border-top-color: transparent; border-radius: 50%; animation: robot-dreh .8s linear infinite; }
.robot[data-zustand="ok"] .robot-haken { background: var(--petrol); border-color: var(--petrol); }
.robot[data-zustand="ok"] .robot-haken::after { content: ""; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.robot[data-zustand="ok"] .robot-box { cursor: default; color: var(--petrol-text); }
.robot[data-zustand="fehler"] .robot-haken { border-color: #dc2626; }
.robot[data-zustand="fehler"] .robot-status { color: #dc2626; }
.robot-status[hidden], .robot-text[hidden] { display: none; }
.robot-marke { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.robot-marke img { border-radius: 5px; }
.robot-marke small { font-size: .72rem; line-height: 1.2; }
@keyframes robot-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .robot[data-zustand="laeuft"] .robot-haken { animation: none; } }

.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 12px; }
.fb-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--petrol); flex-shrink: 0; }
.fb-error { color: #fff; background: #dc2626; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.fb-error[hidden] { display: none; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--border);
              background: var(--surface); flex-shrink: 0; }
.modal-foot[hidden] { display: none; }
.modal-foot .btn[disabled] { opacity: .6; cursor: wait; }
/* Galerie: zum Vergrößern anklicken */
.gallery .zoom { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.gallery .zoom img { transition: transform .2s, box-shadow .2s; }
.gallery .zoom:hover img { box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: translateY(-2px); }
.zoom-icon { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
             background: var(--petrol); color: #fff; display: flex; align-items: center; justify-content: center;
             box-shadow: 0 4px 12px rgba(0,0,0,.25); opacity: .92; }
.zoom-icon svg { width: 20px; height: 20px; }
.gallery .zoom:hover .zoom-icon { opacity: 1; }

/* Bildansicht */
.modal-bild { width: min(1400px, calc(100% - 32px)); }
.bild-body { position: relative; flex: 1; min-height: 0; overflow: auto; background: var(--surface-2); padding: 16px;
             display: flex; align-items: flex-start; justify-content: center; }
.bild-body img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); background: #fff; }
.bild-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
            background: rgba(15,118,110,.92); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2;
            box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.bild-nav:hover { background: var(--petrol-dark); }
.bild-zurueck { left: max(8px, calc(50% - 720px)); }
.bild-weiter { right: max(8px, calc(50% - 720px)); }
@media (max-width: 640px) { .bild-nav { width: 38px; height: 38px; font-size: 1.6rem; } .bild-body { padding: 8px; } }

/* Newsletter: Bestätigen-/Abmelden-Seite (newsletter.php) */
.nl-seite { max-width: 560px; }
.nl-seite-karte { text-align: center; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nl-seite-karte img { border-radius: 14px; }
.nl-seite-karte h1 { font-size: 1.6rem; margin: 8px 0 0; }
.nl-seite-karte form { margin-top: 10px; }

/* Newsletter */
.btn-nl { padding: .4em .8em; }
@media (max-width: 900px) { .btn-nl .label { display: none; } }
.nl-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.modal-nl { width: min(520px, calc(100% - 32px)); }
.modal-nl .modal-head > img, .modal-fb .modal-head > img { border-radius: 0; height: 28px; width: auto; }
.nl-body { overflow-y: auto; padding: 20px 24px 16px; }
.nl-body h2 { margin: 0 0 .3em; font-size: 1.6rem; }
.nl-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 16px 0 18px; }
.nl-tabs[hidden] { display: none; }
.nl-tab { flex: 1; border: 0; background: transparent; color: var(--text-muted); font: 700 .95rem var(--font-body);
          padding: .55em; border-radius: 9px; cursor: pointer; }
.nl-tab[aria-selected="true"] { background: var(--surface); color: var(--petrol-text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.nl-form[hidden] { display: none; }
.nl-form .btn { width: 100%; justify-content: center; margin: 4px 0 10px; }
.nl-status { text-align: center; padding: 16px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nl-status[hidden] { display: none; }
.nl-status h3 { margin: 0; font-size: 1.25rem; }
.nl-foot { border-top: 1px solid var(--border); margin: 12px 0 0; padding-top: 10px; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--petrol-text); text-decoration: underline; font: inherit; cursor: pointer; }
.modal-info { width: min(640px, calc(100% - 32px)); }
.info-body { overflow-y: auto; padding: 8px 24px 20px; }
.info-body h3 { font-size: 1rem; margin: 18px 0 4px; color: var(--petrol-text); }
.info-body p { margin: 0; color: var(--text); font-size: .95rem; }
.info-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 640px) {
  dialog.modal-nl { height: auto; max-height: calc(100dvh - 24px); width: calc(100% - 24px); margin: auto; border-radius: 16px; }
}

.fb-done { padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fb-done[hidden] { display: none; }
.fb-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--petrol); color: #fff; font-size: 2.2rem;
                display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 700 1.4rem var(--font-head); color: var(--petrol-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); padding-bottom: 8px; }

/* Kaffee */
.coffee { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.coffee .qr { background: #fff; padding: 10px; border-radius: 14px; width: 200px; border: 1px solid var(--border); }
@media (max-width: 640px) { .coffee { grid-template-columns: 1fr; } .coffee .qr { width: 170px; } }

/* Fußzeile */
.site-footer { padding: 36px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--petrol-text); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; }

/* Unterseiten (Impressum, Datenschutz) */
.page { padding: 48px 0 72px; max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .6em; }
.page h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.page dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 16px; margin: 0; }
.page dt { font-weight: 600; }
.page dd { margin: 0; }
@media (max-width: 520px) { .page dl { grid-template-columns: 1fr; } .page dd { margin-bottom: 8px; } }
.ph { background: var(--warn-bg); color: var(--warn); padding: 0 .3em; border-radius: 4px; }
[data-lang-only] { display: none; }
html[lang="de"] [data-lang-only="de"], html[lang="en"] [data-lang-only="en"] { display: block; }

/* Logo je nach Farbmodus */
.logo-dark-bg { display: none; }
@media (prefers-color-scheme: dark) { .logo-light-bg { display: none; } .logo-dark-bg { display: block; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Neu in Beta 1.3.2 */
.neu-132 { margin-top: clamp(28px, 3vw, 44px); padding: clamp(20px, 2vw, 32px); border: 1px solid var(--border);
           border-left: 4px solid var(--petrol); border-radius: var(--radius); background: var(--surface); }
.alt .neu-132 { background: var(--bg); }
.neu-132 h3 { margin: 0 0 14px; font-size: 1.3rem; color: var(--petrol-text); }
.neu-liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px 32px;
             grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.neu-liste li { position: relative; padding-left: 28px; }
.neu-liste li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px;
  background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
