:root {
  --bg: #f2f0ea;
  --bg-soft: #e6e3d8;
  --surface: #fbfaf6;
  --heading: #101412;
  --text: #262b29;
  --muted: #565d5a;
  --accent: #c4311c;
  --accent-dark: #9f2615;
  --accent-light: #ff9d8a;
  --line: #d2cfc3;
  --dark: #000;
  --on-dark: #ecebe5;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(16, 20, 18, 0.14);
  --font-text: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Bahnschrift", "Franklin Gothic Medium", "Segoe UI Semibold", system-ui, -apple-system, Roboto, "Arial Narrow", Arial, sans-serif;
  --header-h: 64px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@view-transition { navigation: auto; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: clamp(17px, 0.4vw + 16px, 19px);
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.dark { background: var(--dark); color: var(--on-dark); }
.dark h1, .dark h2, .hero h1 { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); position: relative; }
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav { display: none; gap: 24px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.nav a[aria-current="true"] { border-bottom-color: var(--accent-light); color: #fff; font-weight: 700; }

.hcall {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
}
.hcall:hover { background: var(--accent-dark); }
.hcall span { display: none; }
.hcall svg, .nav-toggle svg { width: 20px; height: 20px; flex: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .hcall { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { gap: 32px; }
  .hcall { padding: 0 16px; }
  .hcall span { display: inline; }
}

/* Hero: headline on black, one tall photo of a wrench set stepping down the page */
.hero { scroll-margin-top: 80px; background: var(--dark); color: var(--on-dark); }
.hero-text { padding-top: 48px; padding-bottom: 32px; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.75rem, 2.6vw + 1rem, 3.1rem); margin-bottom: 16px; max-width: 19ch; hyphens: manual; }
.lead { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem); max-width: 40ch; margin-bottom: 24px; color: var(--on-dark); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero-photo { margin: 0; background: #000; }
.hero-photo img { width: 100%; height: 240px; object-fit: cover; object-position: 50% 0; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: clamp(580px, 82vh, 760px); }
  .hero-text {
    align-self: center;
    margin: 0;
    max-width: none;
    padding: 96px 48px 96px max(24px, calc((100vw - 1120px) / 2 + 24px));
  }
  .hero-photo { position: relative; }
  .hero-photo img { position: absolute; inset: 0; height: 100%; object-position: 40% 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; }
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Sections */
.section { padding: 64px 0; scroll-margin-top: 80px; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-title { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); max-width: 18ch; }

/* Beim Anruf: a job ticket with dotted lines to fill in aloud */
.anruf { background: var(--bg); }
.anruf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.anruf-intro p { max-width: 38ch; margin-top: 16px; }
.ticket {
  position: relative;
  margin: 0;
  padding: 32px 24px 24px 32px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--accent);
}
.ticket::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 16px;
  bottom: 16px;
  width: 8px;
  background: radial-gradient(circle at 0 50%, var(--bg) 4px, transparent 4.5px) 0 0 / 8px 24px repeat-y;
}
.ticket h3 { font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ticket dl { margin: 0; }
.ticket .row { padding: 16px 0; border-bottom: 2px dotted var(--line); }
.ticket .row:last-child { border-bottom: 0; padding-bottom: 0; }
.ticket dt { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 1.15rem; }
.ticket dd { margin: 4px 0 0; color: var(--muted); max-width: 44ch; }
.anruf-note { margin-top: 24px; max-width: 44ch; color: var(--muted); }
@media (min-width: 900px) {
  .anruf-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 96px; align-items: center; }
}

/* Photo band: an open socket set */
.band { margin: 0; background: #1d221a; }
.band img { width: 100%; height: 260px; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 768px) { .band img { height: clamp(240px, 32vw, 420px); } }

/* Öffnungszeiten */
.besuch { background: var(--bg-soft); }
.besuch-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hours { margin: 24px 0 0; border-top: 2px solid var(--heading); }
.hours div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; color: var(--heading); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.where { font-style: normal; font-size: 1.15rem; margin-top: 24px; }
.where b { font-family: var(--font-head); color: var(--heading); }
.besuch-note { max-width: 40ch; margin-top: 16px; color: var(--muted); }
.bigtime {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--heading);
  font-size: clamp(2.5rem, 7vw + 1rem, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.bigtime .u { font-size: 0.4em; letter-spacing: 0; margin-left: 0.15em; }
.bigtime small { display: block; font-size: 0.35em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
@media (min-width: 900px) {
  .besuch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
}

/* Kontakt */
.kontakt h2 { margin-bottom: 32px; }
.kontakt .bignum {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 6vw + 1rem, 4.5rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  margin-bottom: 32px;
  min-height: 44px;
}
.contact { display: grid; gap: 32px; }
.contact address { font-style: normal; font-size: 1.15rem; }
.contact address a { display: inline-block; padding: 8px 0; min-height: 44px; color: var(--on-dark); text-underline-offset: 4px; overflow-wrap: anywhere; word-break: break-word; hyphens: none; }
.contact .go { display: grid; gap: 16px; justify-items: start; }
.contact .go p { max-width: 36ch; color: #c9c8c0; }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Footer */
.site-footer { padding: 48px 0 96px; font-size: 0.95rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .name { font-weight: 700; color: #fff; }
.site-footer .links { display: flex; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-underline-offset: 4px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 48px; } }

/* Call bar (phones) */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(110%);
  transition: transform 0.3s ease-out;
}
.callbar.show { transform: translateY(0); }
.callbar .btn { width: 100%; }
@media (min-width: 768px) { .callbar { display: none; } }

/* Legal */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: 24px; }
.legal a { overflow-wrap: anywhere; }
.todo { background: #f3dfa6; color: #4a2c00; padding: 0 4px; border-radius: 4px; }

/* Reveal: only with JS and motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
  .js .rv.in { opacity: 1; transform: none; }
}
