:root {
  --bg: #fbf6ea;
  --bg-soft: #f3ead3;
  --surface: #ffffff;
  --heading: #172a4d;
  --text: #27324a;
  --muted: #4f5b75;
  --accent: #c8381f;
  --accent-dark: #a62c15;
  --blue: #2c5fb0;
  --yellow: #f4b72c;
  --green: #277a50;
  --grey: #6a7285;
  --line: #e2d6b8;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(23, 42, 77, 0.12);
  --head: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", 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(--body);
  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(--head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; height: calc(var(--header-h) - 1px); position: relative; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 44px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}
.blocks { display: inline-grid; grid-template-columns: 8px 8px; gap: 4px; flex: none; }
.blocks i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.blocks i:nth-child(2) { background: var(--yellow); }
.blocks i:nth-child(3) { background: var(--accent); }
.blocks i:nth-child(4) { background: var(--green); }

.nav { display: none; gap: 32px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="true"] { border-bottom-color: var(--accent); }

.hcall {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  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 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: 2px solid var(--heading);
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 479px) {
  .brand { font-size: 1.02rem; gap: 8px; min-width: 0; }
  .nav-toggle { padding: 0 12px; }
}
@media (max-width: 767px) {
  .nav {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .hcall { display: inline-flex; }
}

/* Buttons */
.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-line { background: transparent; color: var(--heading); border: 2px solid var(--heading); }
.btn-line:hover { background: var(--heading); color: #fff; }
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--heading);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Hero: Mosaik aus Foto und Farbklötzen */
.hero { padding: 32px 0 48px; scroll-margin-top: 80px; }
.hero-grid { display: grid; gap: 32px; }
.eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 2.4vw + 1rem, 3.5rem);
  margin-bottom: 16px;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.lead { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem); max-width: 36ch; margin-bottom: 24px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.mosaik { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m-foto {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.m-foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.m-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.6vw + 0.8rem, 1.75rem);
  line-height: 1.1;
  transition: transform 0.18s;
}
.m-tile:hover { transform: translateY(-2px); }
.m-tile small { font-family: var(--body); font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.m-blue { background: var(--blue); color: #fff; }
.m-yellow { background: var(--yellow); color: var(--heading); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .mosaik { grid-template-columns: 1fr 1fr; gap: 16px; }
  .m-foto img { aspect-ratio: 3 / 2; }
  .m-tile { min-height: 128px; padding: 24px; }
}

/* 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); margin-bottom: 32px; max-width: 22ch; }

/* Angebot */
.angebot { background: var(--surface); }
.zeile { display: grid; gap: 24px; margin-bottom: 48px; }
.zeile:last-child { margin-bottom: 0; }
.zeile .foto { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.zeile .foto img { width: 100%; height: auto; }
.zeile h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); margin-bottom: 8px; }
.zeile p { max-width: 52ch; margin-bottom: 16px; }
.zeile .tag-line { display: inline-block; width: 48px; height: 8px; border-radius: 4px; margin-bottom: 16px; }
.t-blue { background: var(--blue); }
.t-yellow { background: var(--yellow); }
@media (min-width: 900px) {
  .zeile { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; margin-bottom: 64px; }
  .zeile.rev .foto { order: 2; }
  .zeile .foto.quad { max-width: 440px; }
}

/* Öffnungszeiten: Wochenklötzchen */
.zeiten { background: var(--bg); }
.zeiten .intro { max-width: 56ch; margin-bottom: 32px; }
.woche { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.woche li {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas: "k t" "k z";
  column-gap: 16px;
  align-items: center;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(23, 42, 77, 0.07);
}
.woche .kurz {
  grid-area: k;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--blue);
}
.woche .y .kurz { background: var(--yellow); color: var(--heading); }
.woche .r .kurz { background: var(--accent); }
.woche .g .kurz { background: var(--green); }
.woche .zu .kurz { background: var(--grey); }
.woche .tag { grid-area: t; font-family: var(--head); font-weight: 700; color: var(--heading); align-self: end; line-height: 1.2; }
.woche .zeit { grid-area: z; align-self: start; color: var(--muted); }
.woche .zeit span { display: block; }
.zeiten .note { margin-top: 32px; max-width: 56ch; color: var(--muted); }

@media (min-width: 900px) {
  .woche { grid-template-columns: repeat(7, 1fr); gap: 16px; }
  .woche li {
    grid-template-columns: 1fr;
    grid-template-areas: "k" "t" "z";
    grid-template-rows: auto auto 1fr;
    row-gap: 8px;
    padding: 16px;
    align-items: start;
    align-content: start;
  }
  .woche .kurz { width: 100%; height: 72px; font-size: 1.5rem; }
  .woche .tag { align-self: start; margin-top: 8px; }
  .woche .zeit { font-size: 0.95rem; }
}

/* Kontakt */
.kontakt { background: var(--bg-soft); }
.kontakt-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .kontakt-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.bignum {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw + 0.8rem, 3.5rem);
  color: var(--heading);
  text-decoration: none;
  line-height: 1.1;
  margin: 0 0 24px;
  min-height: 44px;
}
.bignum:hover { color: var(--accent-dark); }
address { font-style: normal; margin-bottom: 16px; }
.mail { margin-bottom: 32px; }
.mail a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
.kontakt-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.kontakt .hinweis { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.kontakt .hinweis h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* Footer */
.site-footer { padding: 48px 0 96px; font-size: 0.95rem; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .name { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--heading); }
.site-footer .links { display: flex; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; 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(--bg);
  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.4rem; margin: 32px 0 8px; }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: 24px; }
.todo { background: #fbe3a6; 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; }
}
