/* Elara Update-Server. Farben und Schrift wie in der Elara-Oberfläche (Barlow, Elara-Blau). */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }

:root {
  --stein: #e9ebe6;      /* Seitenhintergrund – wie Elara */
  --papier: #fbfbf8;     /* erhöhte Flächen */
  --tinte: #1c2126;      /* Text */
  --grau: #56606a;       /* Nebentext */
  --linie: #cfd3cb;      /* Linien */
  --blau: #2350c4;       /* Aktionen */
  --blau-dunkel: #1a3d99;
  --licht: #f6c453;      /* nur im Grundriss */
  --head: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stein); color: var(--tinte); font: 400 18px/1.55 var(--body); }
a { color: var(--blau); }
a:focus-visible, .btn:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }
h3 { font-size: 22px; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.top { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); font: 600 26px/1 var(--head); }
.top nav { display: flex; gap: 28px; }
.top nav a { color: var(--tinte); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--blau); }

main > section { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px;
  border: 1.5px solid var(--tinte); color: var(--tinte); background: transparent; font: 500 17px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(28,33,38,.06); }
.btn.primary { background: var(--blau); border-color: var(--blau); color: #fff; }
.btn.primary:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.btn.big { min-height: 56px; padding: 0 30px; font-size: 19px; }

/* Verwaltung */
.admin { max-width: 820px !important; }
.admin h1 { font-size: clamp(36px, 5vw, 48px); }
.admin h2 { font-size: 28px; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--linie); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form.narrow { max-width: 420px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=password], .form textarea, .form select {
  font: 400 17px/1.4 var(--body); padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: 8px; background: #fff; color: var(--tinte); }
.form input[type=file] { font: inherit; }
.form .btn { align-self: flex-start; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.danger { border-color: #b42318; color: #b42318; }
.btn.danger:hover { background: #fdecea; }
.hint { color: var(--grau); font-size: 15px; font-weight: 400; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.flash.ok { background: #e7f4ec; border: 1px solid #9fd0b4; color: #14532d; }
.flash.bad { background: #fff4e5; border: 1px solid #e8b260; color: #8a4b00; }
.pkg { background: var(--papier); border: 1px solid var(--linie); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.pkg-head { margin-bottom: 12px; }
.tag { display: inline-block; background: var(--blau); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: 14px; font-weight: 500; }

.status { background: var(--papier); border: 1px solid var(--linie); border-radius: 12px; padding: 18px 20px; margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.tag.off { background: #8b939b; }
.top:not(.top-product) nav { display: none; }
.top:not(.top-product) { max-width: 820px; }
.foot { text-align: center; padding: 24px 16px 32px; font-size: 14px; }
.foot a { color: var(--grau); }
.impressum h2 { margin-top: 8px; }
.imp-bild { max-width: 100%; height: auto; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form input.short { max-width: 120px; }
.form input[type=number] { font: inherit; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
.msg.unread { border-left: 4px solid var(--blau); padding-left: 12px; }
.msg-text { white-space: normal; margin: 6px 0 10px; }

/* ---------- Produktseite (index.php, datenschutz.php) ---------- */
.top.top-product { max-width: var(--wrap); flex-wrap: wrap; }
.top.top-product nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.top.top-product nav a { padding: 12px 10px; }
.brand .ra { color: var(--blau); }
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; border-top: 1px solid var(--linie); }
.foot a { padding: 12px 8px; }

.hero { display: flex; align-items: center; gap: 56px; flex-wrap: wrap-reverse; padding-top: 40px !important; }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(56px, 9vw, 96px); }
.eyebrow { font: 600 15px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.lead { font-size: 21px; max-width: 36em; }
.hero-icon { flex: 0 1 280px; width: 100%; max-width: 280px; height: auto; }
.status-line { color: var(--grau); font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill { background: var(--papier); border: 1px solid var(--linie); color: var(--tinte); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

.band { background: var(--papier); border-radius: 20px; margin-left: auto; margin-right: auto; }
main > section.band { max-width: calc(var(--wrap) - 48px); padding: 56px 40px; margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 32px; }
.grid3 h3, .features h3, .steps h3 { margin-bottom: 8px; }
.grid3 p, .feature p, .steps p, .reqs dd, .wide { color: var(--grau); }
.wide { max-width: 44em; margin-bottom: 24px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 16px; }
.feature { background: var(--papier); border: 1px solid var(--linie); border-radius: 14px; padding: 24px; }

.reqs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 24px 40px; }
.reqs dt { font: 600 20px/1.2 var(--head); margin-bottom: 6px; }
.reqs dd { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blau); color: #fff; font: 600 20px/1 var(--head); margin-bottom: 14px; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--papier); border: 1px solid var(--linie); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 20px/1.3 var(--head); }
.faq details p { padding: 0 0 18px; color: var(--grau); }

.prose { max-width: 820px !important; }
.prose h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 20px; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) { .hero-icon { max-width: 140px; } .hero { gap: 28px; } main > section.band { padding: 40px 24px; } }

/* Screenshots: Kollage auf der Startseite, Galerie-Seite */
.collage-wrap { display: flex; flex-direction: column; gap: 20px; }
.collage-wrap h2 { margin-bottom: 4px; }
.collage { display: grid; gap: 10px; width: 100%; max-width: 680px; height: 300px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage a { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--linie); background: var(--papier); min-height: 0; }
.collage img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .25s ease; }
.collage a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .collage img { transition: none; } .collage a:hover img { transform: none; } }
.collage a:first-child { grid-row: 1 / 3; }
.collage.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.collage.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.collage.n2 a:first-child { grid-row: auto; }
.collage.n3 { grid-template-columns: 2fr 1fr; }
.collage.n4 { grid-template-columns: 2fr 1fr 1fr; }
.collage.n4 a:last-child { grid-column: 2 / 4; }
@media (max-width: 700px) {
  .collage { height: auto; grid-template-columns: 1fr 1fr !important; grid-template-rows: none; grid-auto-rows: 100px; }
  .collage a:first-child { grid-column: 1 / 3; grid-row: span 2; }
  .collage.n4 a:last-child { grid-column: auto; }
  .collage.n1 a:first-child, .collage.n2 a { grid-column: auto; }
}

.gallery-page h1 { font-size: clamp(40px, 6vw, 60px); margin: 16px 0 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr)); gap: 36px 28px; margin-bottom: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--linie); box-shadow: 0 12px 32px rgba(28,33,38,.12); background: var(--papier); }
.gallery figcaption { font: 600 19px/1.3 var(--head); }
