/* ZART AUF WEISS – Website-Stile */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }

:root {
  --nav: #a1c4c9;
  --accent: #42818f;
  --footer: #020202;
  --text: #111;
  --muted: #666;
  --line: #e4e4e4;
  --max: 980px;
  --mono: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 var(--mono); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopfbild */
.site-header { height: clamp(150px, 42vw, 460px); background: #ddd center / cover no-repeat; }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--nav); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; max-width: 1200px; }
.site-nav a { display: block; padding: 14px 0; font: 500 15px/1.2 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: #444; text-decoration: none; }
.site-nav a:hover { color: #000; }
.site-nav a.is-active { color: #fff; }
.nav-toggle { display: none; }

/* Inhalt */
.site-main { max-width: var(--max); margin: 0 auto; padding: 56px 20px 80px; }
.blk { margin: 0 0 48px; }
.blk:last-child { margin-bottom: 0; }
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte p { margin: 0 0 .1em; min-height: 1.5em; }
.rte h2, .rte h3, .rte h4, .blk-heading { font-family: var(--sans); font-weight: 400; color: #444; letter-spacing: .5px; line-height: 1.3; }
.blk-heading { font-size: 22px; margin-bottom: 20px; }
h2.blk-heading { font-size: 26px; }
.rte h2 { font-size: 24px; margin: 1.2em 0 .5em; }
.rte h3 { font-size: 20px; margin: 1.2em 0 .5em; }
.rte h4 { font-size: 17px; margin: 1em 0 .4em; }
.rte ul, .rte ol { margin: .6em 0; padding-left: 1.4em; }
.rte blockquote { margin: 1em 0; padding-left: 1em; border-left: 2px solid var(--nav); font-style: italic; }
.rte .accent { color: var(--accent); }
.rte .small { font-size: 13px; }
.rte .large { font-size: 19px; }

/* Bild + Text */
.blk-media { display: grid; gap: 28px 36px; align-items: start; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
.blk-media.mt-small { grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); }
.blk-media.mt-large { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.blk-media.mt-right { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
.blk-media.mt-right.mt-small { grid-template-columns: minmax(0, 72fr) minmax(0, 28fr); }
.blk-media.mt-right.mt-large { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.blk-media.mt-right .mt-img { order: 2; }
.blk-media.mt-noimg { grid-template-columns: 1fr; }
.mt-img { margin: 0; }
.mt-img img { width: 100%; }

/* Einzelbild */
.blk-image { margin-left: 0; margin-right: 0; }
.blk-image.img-small { max-width: 320px; }
.blk-image.img-medium { max-width: 560px; }
.blk-image.img-center { margin-left: auto; margin-right: auto; }
.blk-image.img-right { margin-left: auto; }
.blk-image img { width: 100%; }
.blk-image figcaption, .video-cap { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Galerie */
.blk-gallery figure { margin: 0; }
.gal-masonry { columns: 3 220px; column-gap: 4px; }
.gal-masonry figure { break-inside: avoid; margin-bottom: 4px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.gal-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.blk-gallery img { width: 100%; }

/* Spalten */
.blk-columns { display: grid; gap: 28px; align-items: start; }
.blk-columns.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-columns.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.blk-columns.cols-1 { grid-template-columns: 1fr; }
.blk-columns .col > .blk { margin-bottom: 28px; }
.blk-columns .col > .blk:last-child { margin-bottom: 0; }
.blk-columns .blk-media { grid-template-columns: 1fr; }
.blk-columns .blk-media.mt-right .mt-img { order: 0; }

/* Video (lädt erst nach Klick) */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #717677 center / cover no-repeat; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; cursor: pointer; font: 13px/1.5 var(--sans); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.play-icon { width: 72px; height: 72px; border-radius: 50%; border: 2px solid #fff; position: relative; }
.play-icon::after { content: ""; position: absolute; left: 28px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-play:hover .play-icon { background: rgba(255, 255, 255, .15); }
.video-note { max-width: 32em; text-align: center; opacity: .9; }

/* Schaufenster-Produkt (ohne Preise / Warenkorb) */
.blk-product { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 28px 36px; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.blk-product:last-child { border-bottom: 0; padding-bottom: 0; }
.prod-main img { width: 100%; }
.prod-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prod-thumb { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; width: 54px; height: 54px; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb.is-active { border-color: #444; }
.prod-name { font: 400 20px/1.3 var(--sans); color: #444; margin: 0 0 16px; letter-spacing: .5px; }
.blk-columns .blk-product { grid-template-columns: 1fr; border-bottom: 0; padding-bottom: 0; }

.btn { display: inline-block; margin-top: 22px; padding: 10px 22px; background: var(--nav); color: #222; text-decoration: none; font: 500 13px/1.3 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; }
.btn:hover { background: var(--accent); color: #fff; }
.blk-button .btn { margin-top: 0; }

.blk-divider { border: 0; border-top: 1px solid var(--line); }
.sp-small { height: 8px; } .sp-medium { height: 32px; } .sp-large { height: 80px; }

/* Footer */
.site-footer { background: var(--footer); color: #ddd; text-align: center; padding: 64px 20px 40px; font-size: 12px; }
.site-footer a { color: #fff; }
.footer-logo img { margin: 0 auto; max-width: 240px; }
.footer-title { font: 400 28px/1.2 var(--sans); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; }
.footer-who { margin: 28px 0 0; font: 400 16px var(--sans); }
.footer-note { margin: 24px auto 0; max-width: 40em; }
.footer-links { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 48px/1 var(--sans); cursor: pointer; padding: 12px 18px; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Admin-Leiste (nur für angemeldete Personen sichtbar) */
.admin-bar { position: fixed; bottom: 16px; right: 16px; z-index: 50; display: flex; gap: 8px; font: 13px var(--sans); }
.admin-bar a { background: #222; color: #fff; padding: 8px 12px; border-radius: 4px; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* Mobil */
@media (max-width: 760px) {
  .site-main { padding: 36px 16px 60px; }
  .blk { margin-bottom: 36px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 56px; height: 50px; padding: 0 16px; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: #222; }
  .site-nav ul { display: none; flex-direction: column; padding: 0 16px 12px; gap: 0; }
  .site-nav.is-open ul { display: flex; }
  .site-nav a { padding: 11px 0; }
  .blk-media, .blk-media.mt-right, .blk-media.mt-small, .blk-media.mt-large, .blk-media.mt-right.mt-small, .blk-media.mt-right.mt-large { grid-template-columns: 1fr; }
  .blk-media.mt-right .mt-img { order: 0; }
  .blk-columns.cols-2, .blk-columns.cols-3 { grid-template-columns: 1fr; }
  .blk-product { grid-template-columns: 1fr; }
  .gal-masonry { columns: 2; }
}
