/* Gemeinsames Design aller Vorlagen
   ------------------------------------------------------------------
   Diese Datei NICHT in den Vorlagen-Ordnern ändern, sondern hier in
   vorlagen/_quelle/basis.css und danach bauen.py ausführen.
   Farben, Icons und Schriften setzt bauen.py an den @@-Stellen ein.
   Keine externen Dateien: Schrift, Icons und Fotos liegen lokal (DSGVO). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/geist.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader.woff2") format("woff2");
}

:root {
  --bg: #f4f5f6;
  --surface: #fcfcfd;
  --text: #17181b;
  --muted: #4f525a;
  --line: #dfe1e5;

  --radius: 14px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font);
  --display-weight: 600;
  --display-tracking: -0.02em;
  --btn-radius: 999px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #18191c;
    --text: #ecedef;
    --muted: #a6a8ae;
    --line: #2a2c31;
  }
}

/* Farben und Formen: Gasthaus und Restaurant */
:root {
  --accent: #92400e;
  --accent-ink: #fffaf3;
  --accent-soft: #f8e8d4;
  --accent-fg: #92400e;
  --radius: 12px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --display-weight: 500;
  --display-tracking: -0.01em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #fbbf24;
    --accent-ink: #1c1305;
    --accent-soft: #2a1f0d;
    --accent-fg: #fbbf24;
  }
}

/* Grundlagen */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-fg); outline-offset: 3px; border-radius: 6px; }

/* Icons: Phosphor-SVGs als Maske, nehmen die Textfarbe an */
.icon {
  display: inline-block; flex: none;
  width: 1.25em; height: 1.25em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.i-arrow-right { --i: url("../icons/arrow-right.svg"); }
.i-baby { --i: url("../icons/baby.svg"); }
.i-beer-stein { --i: url("../icons/beer-stein.svg"); }
.i-bread { --i: url("../icons/bread.svg"); }
.i-briefcase { --i: url("../icons/briefcase.svg"); }
.i-buildings { --i: url("../icons/buildings.svg"); }
.i-cake { --i: url("../icons/cake.svg"); }
.i-calendar-check { --i: url("../icons/calendar-check.svg"); }
.i-car { --i: url("../icons/car.svg"); }
.i-carrot { --i: url("../icons/carrot.svg"); }
.i-check { --i: url("../icons/check.svg"); }
.i-chef-hat { --i: url("../icons/chef-hat.svg"); }
.i-clock { --i: url("../icons/clock.svg"); }
.i-confetti { --i: url("../icons/confetti.svg"); }
.i-cooking-pot { --i: url("../icons/cooking-pot.svg"); }
.i-drop-half { --i: url("../icons/drop-half.svg"); }
.i-drop { --i: url("../icons/drop.svg"); }
.i-envelope-simple { --i: url("../icons/envelope-simple.svg"); }
.i-file-text { --i: url("../icons/file-text.svg"); }
.i-fire { --i: url("../icons/fire.svg"); }
.i-first-aid { --i: url("../icons/first-aid.svg"); }
.i-flower { --i: url("../icons/flower.svg"); }
.i-fork-knife { --i: url("../icons/fork-knife.svg"); }
.i-gavel { --i: url("../icons/gavel.svg"); }
.i-hammer { --i: url("../icons/hammer.svg"); }
.i-handshake { --i: url("../icons/handshake.svg"); }
.i-hard-hat { --i: url("../icons/hard-hat.svg"); }
.i-house-line { --i: url("../icons/house-line.svg"); }
.i-house { --i: url("../icons/house.svg"); }
.i-leaf { --i: url("../icons/leaf.svg"); }
.i-lightning { --i: url("../icons/lightning.svg"); }
.i-map-pin { --i: url("../icons/map-pin.svg"); }
.i-package { --i: url("../icons/package.svg"); }
.i-paint-roller { --i: url("../icons/paint-roller.svg"); }
.i-phone { --i: url("../icons/phone.svg"); }
.i-plant { --i: url("../icons/plant.svg"); }
.i-plug-charging { --i: url("../icons/plug-charging.svg"); }
.i-ruler { --i: url("../icons/ruler.svg"); }
.i-scales { --i: url("../icons/scales.svg"); }
.i-scroll { --i: url("../icons/scroll.svg"); }
.i-shield-check { --i: url("../icons/shield-check.svg"); }
.i-shovel { --i: url("../icons/shovel.svg"); }
.i-snowflake { --i: url("../icons/snowflake.svg"); }
.i-solar-panel { --i: url("../icons/solar-panel.svg"); }
.i-sparkle { --i: url("../icons/sparkle.svg"); }
.i-stethoscope { --i: url("../icons/stethoscope.svg"); }
.i-storefront { --i: url("../icons/storefront.svg"); }
.i-sun { --i: url("../icons/sun.svg"); }
.i-thermometer-simple { --i: url("../icons/thermometer-simple.svg"); }
.i-tooth { --i: url("../icons/tooth.svg"); }
.i-translate { --i: url("../icons/translate.svg"); }
.i-tree { --i: url("../icons/tree.svg"); }
.i-truck { --i: url("../icons/truck.svg"); }
.i-umbrella { --i: url("../icons/umbrella.svg"); }
.i-users-three { --i: url("../icons/users-three.svg"); }
.i-wall { --i: url("../icons/wall.svg"); }
.i-wheelchair { --i: url("../icons/wheelchair.svg"); }
.i-wine { --i: url("../icons/wine.svg"); }
.i-wrench { --i: url("../icons/wrench.svg"); }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--btn-radius); border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

/* Kopfzeile */

.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em;
}
.brand-name { font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); letter-spacing: 0; }

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); }

.header .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }

@media (max-width: 1023px) {
  .nav { display: none; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .header .btn .label-long { display: none; }
}
@media (min-width: 421px) {
  .header .btn .label-short { display: none; }
}

/* Hero */

.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .hero--foto-links .wrap { grid-template-columns: 1fr 1.05fr; }
  .hero--foto-links .hero-photo { order: -1; }
}

.hero h1 { font-size: clamp(2.15rem, 1.4rem + 2.4vw, 3.25rem); max-width: 17ch; }
.hero-lead { margin-top: 20px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 44ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-photo { animation: fade .9s ease-out .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* Vertrauens-Leiste direkt unter dem Hero */

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul {
  list-style: none; margin: 0; padding: 22px 0;
  display: grid; gap: 16px 32px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 1000px) {
  .facts ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .facts li { white-space: nowrap; }
}
@media (max-width: 520px) {
  .facts ul { grid-template-columns: 1fr; }
}
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.facts .icon { color: var(--accent-fg); width: 1.5em; height: 1.5em; }

/* Abschnitte */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* Leistungen: zwei Bereiche, bewusst ungleich breit */

.services { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .services { grid-template-columns: 1.25fr 1fr; }
}

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
}
.service-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service--tall .service-photo { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .service--tall .service-photo { aspect-ratio: 5 / 4; }
  .service--wide { grid-template-rows: auto 1fr; }
}
.service-body { padding: 26px 26px 30px; }
.service h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.service h3 .icon { color: var(--accent-fg); }

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li.preis { justify-content: space-between; gap: 16px; }
.checks .betrag { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.service .hinweis { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.checks .icon { color: var(--accent-fg); margin-top: .2em; width: 1.1em; height: 1.1em; }

/* Ablauf: Zeitstrahl statt Karten */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 44px; height: 2px; background: var(--accent-fg);
}
.steps h3 { font-size: 1.15rem; display: flex; align-items: baseline; gap: 10px; }
.steps h3::before { content: counter(step); color: var(--muted); font-weight: 400; font-size: .95rem; font-variant-numeric: tabular-nums; }
.steps--plain h3::before { content: none; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Über uns */

.about { background: var(--surface); border-block: 1px solid var(--line); }
.about .wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .about .wrap { grid-template-columns: 1fr 1.1fr; }
}
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.about h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.about p { margin-top: 16px; color: var(--muted); max-width: 58ch; }
.about-sign { margin-top: 24px; font-weight: 600; }
.about-sign span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }

/* Einsatzgebiet */

.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.places li {
  padding: 9px 18px; border-radius: var(--btn-radius);
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 500;
}
.places li:first-child { background: var(--accent-soft); border-color: transparent; }

/* Kontakt */

.contact { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1.2fr 1fr; }
}
.contact-call {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 18px; justify-content: space-between;
}
.contact-call h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.contact-call p { opacity: .9; max-width: 40ch; }
.contact-phone {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.contact-phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-call .btn-ghost { border-color: color-mix(in oklab, var(--accent-ink) 45%, transparent); color: var(--accent-ink); align-self: flex-start; }
.contact-call .btn-ghost:hover { border-color: var(--accent-ink); }

.contact-info {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  display: grid; gap: 26px; align-content: start;
}
.contact-info h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.contact-info h3 .icon { color: var(--accent-fg); }
.contact-info address, .contact-info p { font-style: normal; margin-top: 6px; color: var(--muted); }
.contact-info a { color: var(--text); text-underline-offset: 3px; }
.hours { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; color: var(--muted); }
.hours dt { color: var(--text); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Fußzeile */

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer .powered { flex-basis: 100%; font-size: .8125rem; letter-spacing: .01em; }
.footer .powered a { font-weight: 600; }

/* Rechtstexte (Impressum, Datenschutz) */

.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal dl { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 8px 24px; margin: 0; }
.legal dt { font-weight: 500; }
.legal dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
}
.todo { background: var(--accent-soft); color: var(--text); padding: 0 .3em; border-radius: 4px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
.back .icon { transform: scaleX(-1); }
.back:hover { color: var(--text); }
