/* Auto Halat: Diagonalschnitt-Hero, Datenblatt, Tagesstrahl. Abstände nur aus 4, 8, 16, 24, 32, 48, 64, 96. */
@view-transition { navigation: auto; }

:root {
  --bg: #f3f1ec;
  --soft: #e6e2d8;
  --surface: #ffffff;
  --heading: #14181c;
  --text: #2a2f34;
  --muted: #545b62;
  --accent: #f2b705;
  --accent-dark: #d9a200;
  --line: #cbc6ba;
  --ink: #14181c;
  --ink-soft: #1d2329;
  --on-dark: #f3f1ec;
  --on-dark-muted: #c3c8cd;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --r: 4px;
  --shadow: 0 8px 32px rgba(20, 24, 28, 0.2);
  --h: 72px;
  --pad: var(--s4);
  --section: var(--s7);

  --head: "Bahnschrift", "Arial Narrow", "Segoe UI Semibold", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) { :root { --pad: var(--s5); --section: var(--s8); } }
@media (min-width: 1200px) { :root { --pad: var(--s6); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-width: 767px) { body { padding-bottom: var(--s8); } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; font-family: var(--head); color: var(--heading); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0; }
p { margin: 0; max-width: 60ch; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--heading); outline-offset: 4px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .dark :focus-visible, .site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }

/* Kopfzeile: dunkel, wie die Titelseite */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--h); background: var(--ink); color: var(--on-dark); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12); }
.bar { display: flex; align-items: center; gap: var(--s2); height: 100%; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.375rem; line-height: 1.1; color: #ffffff; text-decoration: none; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; gap: var(--s2); }
.brand::before { content: ""; width: 8px; height: 24px; background: var(--accent); border-radius: 2px; }

.hcall {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; min-width: 44px; padding: 0 var(--s3);
  background: var(--accent); color: var(--ink); border-radius: var(--r);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s ease-out;
}
.hcall:hover { background: var(--accent-dark); }
.hcall span { display: none; }
.hcall svg, .nav-toggle svg { width: 24px; height: 24px; flex: none; }

.nav-toggle {
  display: none; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s2);
  background: none; border: 0; border-radius: var(--r);
  color: #ffffff; font: inherit; font-weight: 600; cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: var(--s2) var(--pad) var(--s4);
  background: var(--ink); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0s linear 0.2s;
}
.nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav a { display: flex; align-items: center; min-height: 56px; font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: #ffffff; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.nav a:first-child { border-top: 0; }
.nav a[aria-current="true"] { color: var(--accent); }
html:not(.js) .nav { display: none; }

@media (min-width: 768px) {
  .bar { gap: var(--s5); }
  .brand { margin-right: 0; }
  .nav { position: static; margin-left: auto; flex-direction: row; gap: var(--s5); padding: 0; background: none; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  html:not(.js) .nav { display: flex; }
  .nav a { min-height: 44px; border: 0; font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--on-dark-muted); transition: color 0.18s ease-out; }
  .nav a:first-child { border: 0; }
  .nav a:hover { color: #ffffff; }
  .nav a[aria-current="true"] { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .hcall span { display: inline; }
  .nav-toggle, .js .nav-toggle { display: none; }
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 var(--s5);
  border-radius: var(--r); border: 0;
  background: var(--accent); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none;
  transition: background-color 0.18s ease-out, transform 0.18s ease-out;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.textlink { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: opacity 0.18s ease-out; }
.textlink:hover { opacity: 0.8; }

/* Fotos: überall gleiche Ecken und gleicher Schatten */
.photo { width: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }

/* Titelseite: Foto im Diagonalschnitt */
.hero { background: var(--ink); color: var(--on-dark); scroll-margin-top: var(--h); overflow: hidden; }
.hero-inner { max-width: 1280px; margin-inline: auto; display: grid; }
.hero-photo { order: -1; margin: 0; }
.hero-photo img { width: 100%; height: 208px; object-fit: cover; object-position: 50% 30%; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.hero-text { padding: var(--s4) var(--pad) var(--s6); }
.eyebrow { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.hero h1 { color: #ffffff; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); max-width: 11em; }
.lead { margin-top: var(--s3); font-size: 1.1875rem; max-width: 34ch; color: var(--on-dark); }
.hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.hero-actions .btn { width: 100%; }
.hero-actions .textlink { color: #ffffff; }
.fakten { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); max-width: 36ch; }
.fakten li { padding-block: var(--s2); border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-weight: 600; color: #ffffff; }
.fakten li span { display: inline-block; min-width: 6.5em; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-muted); }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 5fr 6fr; min-height: 600px; }
  .hero-photo { order: 2; }
  .hero-photo img { height: 100%; min-height: 600px; object-position: 50% 40%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-text { align-self: center; padding: var(--s7) var(--s5) var(--s7) var(--pad); }
  .hero-actions .btn { width: auto; }
}

/* Abschnitte */
.section { padding-block: var(--section); scroll-margin-top: var(--h); }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); max-width: 12em; }

.werkstatt { display: grid; gap: var(--s6); align-items: center; }
.werkstatt .photo { aspect-ratio: 6 / 5; }
.werkstatt p { margin-top: var(--s3); }
.datenblatt { margin: var(--s5) 0 0; padding: 0; max-width: 48ch; border-top: 3px solid var(--heading); }
.datenblatt div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s3); padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.datenblatt dt { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.datenblatt dd { margin: 0; font-weight: 600; color: var(--heading); }
.werkstatt .btn { margin-top: var(--s5); }
@media (min-width: 1024px) {
  .werkstatt { grid-template-columns: 6fr 5fr; gap: var(--s7); }
  .werkstatt .photo { aspect-ratio: 1 / 1; }
}

/* Tagesstrahl: Öffnungszeiten als Balken auf einer Uhrzeitenleiste */
.strahl { list-style: none; margin: var(--s6) 0 0; padding: 0; position: relative; }
.strahl li { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s2); align-items: center; padding-block: var(--s1); }
.tag { font-family: var(--head); font-weight: 700; font-size: 1.125rem; line-height: 1; color: var(--heading); }
.spur { position: relative; height: 48px; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.balken { position: absolute; top: 4px; bottom: 4px; left: var(--l); width: var(--w); display: flex; align-items: center; justify-content: center; background: var(--ink); color: #ffffff; border-radius: 2px; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.skala { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s2); margin-top: var(--s2); }
.skala ol { list-style: none; margin: 0; padding: 0; position: relative; height: 24px; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.skala li { position: absolute; left: var(--p); transform: translateX(-50%); }
.zeit-note { margin-top: var(--s5); color: var(--muted); }
.zeit-note a { color: var(--heading); font-weight: 600; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .strahl li, .skala { grid-template-columns: 6rem 1fr; gap: var(--s3); }
  .balken { font-size: 1rem; }
}

/* Fotoband */
.band-foto { margin: 0; background: var(--ink); }
.band-foto img { width: 100%; height: 160px; object-fit: cover; }
@media (min-width: 768px) { .band-foto img { height: 320px; } }

/* Kontakt */
.dark { background: var(--ink); color: var(--on-dark); padding-block: var(--section); scroll-margin-top: var(--h); }
.dark h2 { color: #ffffff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); max-width: 14em; }
.dark .sub { margin-top: var(--s3); font-size: 1.1875rem; max-width: 40ch; }
.bignum {
  display: inline-block; margin-top: var(--s5);
  font-family: var(--head); font-weight: 700; color: var(--accent); line-height: 1.3; padding-block: var(--s1);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
  transition: opacity 0.18s ease-out;
}
.bignum:hover { opacity: 0.85; }
.contact { margin-top: var(--s6); display: grid; gap: var(--s5); }
.contact address { font-style: normal; font-size: 1.125rem; }
.contact address a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.fax { margin-top: var(--s2); color: var(--on-dark-muted); }
@media (min-width: 768px) { .contact { grid-template-columns: auto 1fr; gap: var(--s7); align-items: end; } }

/* Fuß */
.site-footer { background: #0e1114; color: var(--on-dark); padding-block: var(--s6); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; align-items: center; }
.site-footer .name { font-family: var(--head); font-weight: 700; font-size: 1.125rem; color: #ffffff; }
.site-footer .links { display: flex; gap: var(--s4); }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

/* Feste Anrufleiste auf dem Handy */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s3) var(--pad) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: var(--shadow); }
.callbar .btn { width: 100%; }
.js .callbar { transform: translateY(100%); transition: transform 0.25s ease-out; }
.js .callbar.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .callbar { transition: none; } }
@media (min-width: 768px) { .callbar { display: none; } }

/* Rechtliche Seiten */
.legal { padding-block: var(--s7) var(--s8); }
.legal h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); margin-bottom: var(--s6); }
.legal h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s2); }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: var(--s4); margin: var(--s3) 0 0; }
.legal li + li { margin-top: var(--s2); }
.legal a { text-underline-offset: 4px; }
.todo { background: #fbe7a1; color: var(--heading); padding: 0 var(--s1); border-radius: 4px; }

/* Bewegung: einmal einblenden, nur mit Skript und nur ohne Bewegungsreduzierung */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
