/* Gerken Media – Website
   Schwarz-Weiß, Schrift Outfit, eckige Formen. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #f4f4f4;
  --white: #ffffff;
  --muted: #6b6b6b;
  --muted-dark: rgba(255, 255, 255, 0.6);
  --line: rgba(0, 0, 0, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --max: 1200px;
  --gutter: 40px;
  --section: 128px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ---------- Typografie ---------- */
.display { font-size: 4.75rem; font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.h2 { font-size: 3.375rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
.h3 { font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: 0; }
.card-title { font-size: 2rem; font-weight: 400; line-height: 1.15; letter-spacing: 0; }
.stat { font-size: 2.75rem; font-weight: 400; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.small { font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--muted); }
.label { font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dark { background: var(--ink); color: var(--white); }
.dark .lead, .dark .body, .dark .small, .dark .label { color: var(--muted-dark); }
.white-bg { background: var(--white); }
.paper-bg { background: var(--paper); }

/* Geometrisches &-Zeichen aus dem Outfit-Stilset ss01 */
.amp { font-feature-settings: "ss01" 1; }

/* ---------- Layout ---------- */
.section { padding: var(--section) var(--gutter); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; gap: 64px; }
.row > * { flex: 1 1 0; min-width: 0; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-40 { gap: 40px; } .gap-48 { gap: 48px; } .gap-56 { gap: 56px; } .gap-72 { gap: 72px; }
.side-label { flex: 0 0 280px !important; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow .num { color: var(--ink); }
.dark .eyebrow .num { color: var(--white); }
.eyebrow .rule { width: 24px; height: 1px; background: var(--line); }
.dark .eyebrow .rule { background: var(--line-dark); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head .body { max-width: 380px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 24px; border: 1px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0;
  transition: opacity 0.2s var(--ease); white-space: nowrap;
}
.btn:hover { opacity: 0.8; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn-ghost-dark { border-color: rgba(15, 15, 14, 0.2); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); }
.nav-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; height: 96px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { width: 146px; height: 40px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a, .nav-tel { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.72); transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-tel:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--white); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:first-child { top: 14px; } .nav-toggle span:last-child { top: 24px; }
.nav.open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }
.nav-drawer { display: none; }

/* ---------- Hero Startseite ---------- */
.hero { position: relative; min-height: calc(92vh - 96px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade-x { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.7) 40%, rgba(17,17,17,0.25) 75%, rgba(17,17,17,0.1) 100%); }
.hero-shade-y { position: absolute; left: 0; right: 0; bottom: 0; height: 320px; background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,0.92) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; padding: 160px 0 64px; }
.facts { display: grid; grid-template-columns: repeat(var(--facts, 3), 1fr); gap: 32px; padding-bottom: 56px; }
.fact { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Kunden-Ticker ---------- */
.logos { padding: 56px 0; background: var(--white); text-align: center; }
.ticker { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; overscroll-behavior-x: contain; margin-top: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker::-webkit-scrollbar { display: none; }
.ticker.dragging { cursor: grabbing; }
.ticker-track { display: flex; gap: clamp(32px, 4vw, 56px); width: max-content; padding: 0 10%; }
.ticker img { width: 100px; height: 100px; object-fit: contain; flex: none; -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* ---------- Bilder ---------- */
.img { width: 100%; object-fit: cover; background: #e8e8e8; }
.full-bleed { width: calc(100% + 2 * var(--gutter)); max-width: none; margin: 74px calc(-1 * var(--gutter)) 0; }

/* ---------- Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--white); padding: 8px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card .img { height: 190px; }
.card-body { padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-top svg { width: 20px; height: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head svg { width: 22px; height: 22px; flex: none; }
.card-name { font-size: max(1.25rem, 17px); font-weight: 500; line-height: 1.25; letter-spacing: 0; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { background: var(--white); padding: 10px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease); }
.service-card:hover { transform: translateY(-4px); }
.service-card .img { height: 320px; }
.service-card .card-body { padding: 24px 18px 18px; gap: 14px; }

/* ---------- Kennzahlen LED ---------- */
.led-facts { display: flex; gap: 24px; padding: 8px 0; }
.led-facts .fact { flex: 1; border-top-color: rgba(255, 255, 255, 0.5); padding-top: 20px; gap: 12px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--paper); transition: background 0.2s var(--ease); }
.chip:hover { background: #e6e6e6; }
.chip svg { width: 12px; height: 12px; }
.chip .label { color: var(--ink); }
.chips-right { justify-content: flex-end; max-width: 480px; }
.spec { padding: 9px 12px; border: 1px solid rgba(15, 15, 14, 0.14); }
.spec .label { color: var(--ink); }

/* ---------- Masonry ---------- */
.masonry { columns: 3; column-gap: 24px; }
.masonry figure { break-inside: avoid; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.masonry figcaption { display: flex; flex-direction: column; gap: 6px; }
.masonry figcaption .small { color: var(--ink); }
.masonry .is-hidden { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- Listen / Zeilen ---------- */
.list-rows > * { border-top: 1px solid var(--line); }
.dark .list-rows > * { border-top-color: var(--line-dark); }
.benefit { display: flex; gap: 24px; padding: 28px 0; }
.benefit:first-child { border-top: 0; }
.benefit .label { flex: 0 0 40px; color: var(--ink); padding-top: 6px; }
.info-row { display: flex; gap: 32px; padding: 28px 0; }
.info-row .label { flex: 0 0 160px; color: var(--ink); padding-top: 4px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.contact-row:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-row svg { width: 20px; height: 20px; flex: none; }
.contact-row .label { flex: 0 0 96px; }
.contact-row .val { color: var(--white); font-size: 16px; }

.panel { background: var(--white); padding: 12px 32px; }
.note { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px dashed rgba(15, 15, 14, 0.2); }
.note svg { width: 20px; height: 20px; flex: none; }

/* ---------- CTA ---------- */
.cta { background: var(--white); border-top: 1px solid var(--line); padding: 88px var(--gutter); }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.band { padding: 88px var(--gutter); }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

/* ---------- Seitenkopf ---------- */
.page-head { padding: 88px var(--gutter) 96px; }
.page-head .display { max-width: 900px; }
.page-head .lead { max-width: 640px; }
.crumb { display: flex; gap: 10px; font-size: 14px; color: var(--muted-dark); }
.crumb a { color: rgba(255, 255, 255, 0.72); } .crumb a:hover { color: #fff; } .crumb .cur { color: #fff; }
.head-row { display: flex; gap: 64px; align-items: flex-end; }
.head-row .head-text { flex: 1.1 1 0; min-width: 0; }
.head-row .img { flex: 1 1 0; height: 480px; min-width: 0; }

.richtext { max-width: 760px; }
.richtext h2 { font-size: 3.375rem; font-weight: 400; line-height: 1.1; margin: 0 0 24px; }
.richtext h3 { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 28px 0 12px; }
.richtext h3:first-child { margin-top: 0; }
.richtext p { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal p { margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; color: var(--muted); }

/* ---------- Galerie DTF ---------- */
.video-band video { width: 100%; height: 720px; object-fit: cover; background: var(--ink); }
.gallery { display: flex; gap: 16px; height: 560px; }
.gallery .big { flex: 1.25; }
.gallery .col { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.gallery .col img { flex: 1; min-height: 0; }
.gallery img { height: 100%; }

/* ---------- Kontakt / Formular ---------- */
.form { background: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form .label { color: var(--ink); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 15px 16px; background: var(--paper); border: 1px solid rgba(15, 15, 14, 0.12); border-radius: 0;
  font: 400 15px/1.4 "Outfit", sans-serif; color: var(--ink); outline: none;
}
.form textarea { height: 160px; resize: none; }
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form ::placeholder { color: rgba(15, 15, 14, 0.4); }
.form .pair { display: flex; gap: 16px; }
.form .pair > * { flex: 1; }
.form .consent { flex-direction: row; align-items: flex-start; gap: 12px; }
.form .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { align-self: flex-start; min-width: 240px; border: 0; }
.form-status { font-size: 15px; padding: 14px 16px; background: var(--paper); }
.contact-card { background: var(--ink); color: var(--white); padding: 36px 32px 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 88px var(--gutter) 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col .label { color: var(--white); }
.footer a, .footer .small { color: rgba(255, 255, 255, 0.72); }
.footer a.small:hover, .footer a[aria-current="page"] { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.social { display: flex; gap: 14px; padding-left: 8px; }
.social svg { width: 20px; height: 20px; }
.social a:hover { opacity: 0.6; }

/* ---------- Tablet ---------- */
@media (max-width: 1199.98px) {
  :root { font-size: 13px; --gutter: 32px; --section: 96px; }
  .nav-links, .nav-tel, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { height: 80px; padding: 0 20px; }
  .nav-drawer { padding: 8px 20px 28px; flex-direction: column; gap: 22px; }
  .nav.open .nav-drawer { display: flex; }
  .nav-drawer a { font-size: 15px; color: rgba(255, 255, 255, 0.72); }
  .nav-drawer .btn { align-self: flex-start; color: var(--ink); }
  .hero { min-height: 0; }
  .hero-media { height: 460px; bottom: auto; }
  .hero-shade-x { height: 460px; bottom: auto; background: linear-gradient(180deg, rgba(17,17,17,0) 55%, rgba(17,17,17,1) 100%); }
  .hero-shade-y { display: none; }
  .hero-copy { max-width: 100%; padding: 500px 0 56px; }
  .row, .head-row, .section-head { flex-direction: column; align-items: flex-start; gap: 40px; }
  .row > *, .head-row > * { flex: none; width: 100%; }
  .side-label { flex: none !important; }
  .head-row .img { height: 420px; }
  .masonry { columns: 2; }
  .chips-right { justify-content: flex-start; max-width: none; }
  .video-band video { height: 480px; }
  .gallery { height: 440px; }
  .footer { padding: 72px 32px 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Smartphone ---------- */
@media (max-width: 809.98px) {
  :root { font-size: 9.5px; --gutter: 20px; --section: 72px; }
  .hero-media, .hero-shade-x { height: 340px; }
  .hero-copy { padding: 370px 0 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 48px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card .img { height: 220px; }
  .card-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .led-facts, .form .pair, .gallery, .info-row { flex-direction: column; }
  .gallery { height: auto; }
  .gallery .big { height: 360px; flex: none; }
  .gallery .col img { height: 240px; flex: none; }
  .info-row { gap: 10px; }
  .info-row .label { flex: none; }
  .head-row .img { height: 280px; }
  .panel { padding: 4px 20px; }
  .form { padding: 28px 22px; }
  .contact-card { padding: 28px 22px 12px; }
  .contact-row .label { flex-basis: 72px; }
  .video-band video { height: 300px; }
  .footer { padding: 56px 20px 32px; }
  .footer-cols { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}

/* ---------- Standort ---------- */
.standort { position: relative; background: var(--paper); min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.map { position: absolute; inset: 0; }
.map-img, .map iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.map iframe { filter: grayscale(1) contrast(1.05); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.map-pin .dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: var(--ink); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.map-pin .pulse { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; background: rgba(17,17,17,.16); animation: pulse 2.4s ease-out infinite; }
.map-pin .pin-label { position: absolute; left: 20px; top: -46px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; }
@keyframes pulse { 0% { transform: scale(.35); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map-credit { position: absolute; right: 8px; bottom: 6px; margin: 0; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.8); padding: 2px 6px; }
.map.loaded .map-pin, .map.loaded .map-credit { display: none; }
.standort-inner { position: relative; z-index: 1; padding: 80px var(--gutter); pointer-events: none; }
.standort-card { pointer-events: auto; background: var(--white); padding: 40px; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.08); }
.standort-card .btn svg { width: 16px; height: 16px; }
.map-load { align-self: flex-start; background: none; border: 0; padding: 0; font: 600 14px "Outfit", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--ink); }
.map-note { font-size: 12px; margin-top: -12px; }
.standort.is-live .map-load, .standort.is-live .map-note { display: none; }
@media (max-width: 809.98px) {
  .standort { flex-direction: column; min-height: 0; align-items: stretch; }
  .map { position: relative; height: 360px; }
  .map-pin { left: 50%; }
  .standort-inner { padding: 0; }
  .standort-card { max-width: none; box-shadow: none; padding: 32px var(--gutter) 56px; }
}
@media (prefers-reduced-motion: reduce) { .map-pin .pulse { animation: none; opacity: .5; } }

/* ---------- Cookie-Abfrage ---------- */
.consent { position: fixed; left: 24px; bottom: 24px; z-index: 100; width: min(460px, calc(100vw - 32px)); animation: consent-in .4s var(--ease) both; }
.consent[hidden] { display: none; }
.consent-box { background: var(--white); color: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(0,0,0,.18); }
.consent-title { font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.consent .small a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-options { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.consent-options[hidden] { display: none; }
.consent-opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.consent-opt > span { display: flex; flex-direction: column; gap: 2px; }
.consent-opt strong { font-weight: 600; font-size: 15px; }
.consent-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.consent-opt input:disabled { opacity: .5; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.consent-actions .btn { padding: 14px 18px; }
.consent-actions [hidden] { display: none; }
.consent-link, .footer-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.consent-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); margin-left: 4px; }
.footer-btn { color: rgba(255,255,255,.72); }
.footer-btn:hover { color: #fff; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 809.98px) {
  .consent { left: 0; right: 0; bottom: 0; width: 100%; }
  .consent-box { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-left: 0; border-right: 0; border-bottom: 0; }
  .consent-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

/* Sehr schmale Displays (unter 380 px): Überschriften etwas kleiner, damit nichts abgeschnitten wird */
@media (max-width: 379.98px) {
  :root { font-size: 7.5px; --gutter: 16px; }
  .display, .h2 { overflow-wrap: break-word; }
  .btn { white-space: normal; text-align: left; }
  .contact-row .val, .footer a { overflow-wrap: anywhere; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px; }
}
