/* MessePrint Hamburg — single stylesheet. No external requests, no webfonts. */

:root {
  --ink: #0b0c0d;          /* near-black base */
  --ink-2: #121315;        /* raised surface */
  --ink-3: #17181b;
  --line: #26282c;
  /* Media aspect ratios — wide, natural crops; swappable in one place. */
  --ratio-hero: 16 / 9;
  --ratio-split: 16 / 9;
  --ratio-slide: 16 / 9;
  --fg: #f2f1ef;
  --muted: #a2a4a8;
  --accent: #f4510a;
  --accent-hi: #ff6a2a;
  --accent-fg: #0b0c0d;
  --focus: #ffc400;

  --bg: var(--ink);
  --surface: var(--ink-2);
  --border: var(--line);
  --text: var(--fg);
  --text-muted: var(--muted);

  --maxw: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); border-top: 1px solid var(--border); }
.lead { color: var(--text-muted); font-size: 1.05em; max-width: 60ch; }

/* Section eyebrow / index label */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 1.25rem; font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); flex: none;
}

/* Light editorial band */
.section-light {
  --bg: #f4f2ef;
  --surface: #ffffff;
  --border: #dcd7d1;
  --text: #14151a;
  --text-muted: #55585f;
  background: var(--bg);
  color: var(--text);
  border-top: 0;
}
.section-light .lead, .section-light .muted { color: var(--text-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-fg);
  padding: 0.75rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 13, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-mark {
  width: 26px; height: 26px; flex: none; position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; width: 11px; height: 11px; border: 2px solid var(--accent);
}
.brand-mark::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brand-mark::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-claim {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.langs { display: flex; align-items: center; gap: 0.1rem; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 32px; padding: 0 0.3rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-decoration: none; color: var(--muted); border: 1px solid transparent;
}
.langs a[aria-current="true"] { color: var(--fg); border-color: var(--line); background: var(--ink-3); }
.langs a:hover { color: var(--accent); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.9rem 1.6rem;
  font-size: 0.95rem; font-weight: 650; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-fg); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-fg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section); border-top: 0; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: 1rem; max-width: 15ch; }
.hero-problems {
  display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; list-style: none; padding: 0;
  margin: 0 0 1.25rem; font-size: 0.95rem; color: var(--fg);
}
.hero-problems li { position: relative; padding-left: 0.9rem; color: var(--muted); }
.hero-problems li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--accent);
}
.hero p.lead { margin-bottom: 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.1rem; }
.hint { color: var(--muted); font-size: 0.88rem; max-width: 56ch; }
.hero-note {
  margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--line);
  color: var(--muted); font-size: 0.9rem; max-width: 58ch;
}
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: var(--ratio-hero); object-fit: cover; object-position: center;
  filter: contrast(1.03) saturate(0.95);
}
.hero-figure figcaption {
  position: absolute; left: 0; bottom: 0; margin: 0;
  background: rgba(11, 12, 13, 0.85); color: var(--muted);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 0.8rem;
}
/* Viewfinder corners, used sparingly */
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent);
  pointer-events: none; z-index: 2;
}
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.trustbar {
  border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.1rem;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ----------------------------------------------------------- split block */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.media-first > .split-media { order: -1; }
}
.split-media { position: relative; background: var(--ink-3); }
.split-media video, .split-media img { width: 100%; display: block; }
/* Videos keep their native aspect ratio (width/height attributes) — no crop. */
.split-media video { height: auto; background: #000; }
.split-media img { aspect-ratio: var(--ratio-split); object-fit: cover; }
.media-caption {
  color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding-top: 0.7rem;
}

/* ------------------------------------------------------- problems matrix */
.matrix {
  display: grid; list-style: none; margin: 2rem 0 0; padding: 0;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .matrix { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .matrix { grid-template-columns: repeat(3, 1fr); } }
.matrix li {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.15rem 1.25rem; font-size: 0.98rem; font-weight: 550;
  display: flex; align-items: baseline; gap: 0.75rem;
}
.matrix li span.num {
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); font-weight: 700;
}

/* --------------------------------------------------------- capabilities */
.caps {
  display: grid; list-style: none; margin: 2rem 0 0; padding: 0; gap: 0;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
@media (min-width: 900px) { .caps { grid-template-columns: repeat(4, 1fr); } }
.caps li {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.1rem 1.3rem; min-height: 104px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 550; line-height: 1.25;
}
.caps li b {
  font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-muted); font-weight: 600;
}

/* ------------------------------------------------------------- carousel */
.carousel { margin-top: 2rem; }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 420px);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; margin-top: 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--line); }
.slide { scroll-snap-align: start; background: var(--ink-2); border: 1px solid var(--line); }
.slide video, .slide img { width: 100%; aspect-ratio: var(--ratio-slide); object-fit: cover; background: #000; }
.slide-body { padding: 0.9rem 1rem 1.15rem; }
.slide-body h3 { margin: 0 0 0.3rem; }
.slide-body p { margin: 0; color: var(--muted); font-size: 0.88rem; max-width: none; }
.carousel-controls { display: flex; gap: 0.5rem; }
.carousel-controls button {
  width: 48px; height: 48px; border: 1px solid var(--border); background: transparent;
  color: var(--text); font-size: 1rem; cursor: pointer; line-height: 1;
}
.carousel-controls button:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) { .carousel-controls button { width: 44px; height: 44px; } }

/* --------------------------------------------------------------- lists */
.checklist { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.7rem; }
.checklist li {
  position: relative; padding-left: 1.5rem; font-size: 0.98rem; color: var(--text);
  border-bottom: 1px solid var(--border); padding-bottom: 0.7rem;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}

/* -------------------------------------------------------------- location */
.callout {
  border: 1px solid var(--border); background: var(--surface);
  padding: 1.25rem 1.35rem; margin-top: 1.75rem;
}
.callout h3 { margin-bottom: 0.5rem; }
.callout address { font-style: normal; color: var(--text-muted); }
.distance {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 650; letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

/* ------------------------------------------------------------------ faq */
.faq-col { max-width: 760px; }
.faq { margin-top: 1.75rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); background: transparent; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; gap: 1rem; justify-content: space-between;
  align-items: flex-start; padding: 1.05rem 0; font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; color: var(--text-muted); font-size: 0.97rem; max-width: 62ch; }

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  color: var(--muted); font-size: 0.92rem; background: var(--ink);
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h3 {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg);
  margin-bottom: 0.9rem;
}
.site-footer address { font-style: normal; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: grid; gap: 0.4rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  display: grid; gap: 0.6rem; font-size: 0.8rem; color: var(--muted);
}
.footer-bottom p { max-width: 78ch; margin: 0; }

/* --------------------------------------------------------- sticky mobile */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 0.5rem; padding: 0.55rem;
  background: rgba(11, 12, 13, 0.96); border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; min-height: 48px; padding-inline: 0.5rem; font-size: 0.82rem; }
body { padding-bottom: 78px; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------------- legal pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.1rem; }
.prose a { color: var(--accent); }

@media (max-width: 560px) {
  .brand-claim { display: none; }
  .langs a { min-width: 30px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Compact header below 720px: email CTA lives in the sticky bar instead. */
@media (max-width: 719px) {
  .header-inner { min-height: 62px; }
  .header-actions .btn { display: none; }
  .brand-name { font-size: 0.82rem; }
  .brand-mark { width: 22px; height: 22px; }
  .langs { overflow-x: auto; scrollbar-width: none; }
  .langs::-webkit-scrollbar { display: none; }
}

/* ------------------------------------------------- section anchor nav */
:target { scroll-margin-top: 84px; }
.section[id], main [id] { scroll-margin-top: 84px; }

.section-nav { display: none; align-items: center; gap: 0.25rem; }
.section-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; color: var(--muted); border: 1px solid transparent;
  white-space: nowrap;
}
.section-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 40px; padding: 0 0.75rem; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: var(--accent); position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .section-nav { display: flex; }
}

/* Mobile / tablet: collapsible panel below the header bar. */
@media (max-width: 1079px) {
  .header-inner { flex-wrap: wrap; row-gap: 0.5rem; }
  .section-nav[hidden] { display: none; }
  .section-nav {
    order: 3; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.35rem 0 0.6rem; border-top: 1px solid var(--line);
  }
  .section-nav.is-open { display: flex; }
  .section-nav a { min-height: 46px; font-size: 0.9rem; padding: 0 0.25rem; }
}

.lang-note { color: var(--muted); opacity: 0.85; font-size: 0.78rem; }

/* Footer: four-column structure with sub-headings */
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
.footer-sub { margin-top: 1.2rem; }
.site-footer .footer-grid a { text-decoration: none; }
.site-footer .footer-grid a:hover { text-decoration: underline; }
