/* ==========================================================================
   Hufschmiede Landingpages – gemeinsame Basis
   Themes (restaurant.css, kita.css, start.css) überschreiben nur die Tokens
   im :root-Block und ergänzen eigene Dekoration.
   ========================================================================== */

/* Fallback-Schriften mit angepasster Laufweite (gemessen gegen Georgia/Arial),
   damit der Wechsel auf die Webfonts keine Layout-Verschiebung erzeugt. */
@font-face { font-family: 'Playfair Fallback'; src: local('Georgia'); font-weight: 400; font-style: normal; size-adjust: 101%; }
@font-face { font-family: 'Playfair Fallback'; src: local('Georgia Italic'), local('Georgia-Italic'); font-weight: 400; font-style: italic; size-adjust: 94.4%; }
@font-face { font-family: 'Playfair Fallback'; src: local('Georgia Bold'), local('Georgia-Bold'); font-weight: 700; font-style: normal; size-adjust: 88.7%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400 500; size-adjust: 96.3%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600; size-adjust: 91.2%; }
@font-face { font-family: 'Fredoka Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 500 700; size-adjust: 93.9%; }

:root {
  /* Fluid type scale */
  --step--1: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
  --step-0: clamp(1rem, 0.96rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --section: clamp(3.5rem, 7vw, 7rem);

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 12px;
  --radius-l: 22px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  --shadow-s: 0 4px 14px rgba(0, 0, 0, 0.08);

  /* Theme-Defaults (hell) */
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --surface: #ffffff;
  --text: #1e1e1e;
  --muted: #5a5a58;
  --accent: #9d1c10;
  --accent-hover: #7d150b;
  --accent-2: #b7b095;
  --on-accent: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --font-head: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  --font-body: 'Barlow', 'Barlow Fallback', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent-hover); }

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

address { font-style: normal; }
strong { font-weight: 600; }

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

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-s);
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--on-accent); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 48rem; }

.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-l);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;                 /* >= 48px Touch-Ziel */
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-s);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--text);
}
.btn--ghost:hover { background: rgba(127, 127, 127, 0.12); color: var(--text); }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}

.btn-note {
  margin-top: var(--space-xs);
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.badge::before {
  content: '';
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 0;
  margin: 0;
  list-style: none;
}
.pill-list li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: 0.2em; }
.card p { color: var(--muted); }
.card .icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--accent);
  margin-bottom: var(--space-xs);
}
.card .icon svg { width: 1.6rem; height: 1.6rem; }
.card ul { padding-left: 1.2em; color: var(--muted); }

/* ---------- Media block (Bild + Text) ---------- */
.media {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 52rem) {
  .media { grid-template-columns: 1fr 1fr; }
  .media--flip > .media__img { order: 2; }
}
.media__img img {
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.media__body h3 { font-size: var(--step-2); }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding: 0; margin: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 3.6rem var(--space-m) var(--space-m);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: var(--space-s); left: var(--space-m);
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-xs); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-m);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  min-height: 3.25rem;
  padding: 0.9rem 0;
  font-weight: 600;
  font-size: var(--step-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 0 var(--space-m); color: var(--muted); }

/* ---------- Notice ---------- */
.notice {
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-m);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}
.notice h2, .notice h3 { margin: 0; font-size: var(--step-1); }
.notice p { margin: 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  gap: var(--space-l);
  align-items: start;
}
@media (min-width: 52rem) { .contact { grid-template-columns: 1.2fr 1fr; } }

.contact-list {
  display: grid;
  gap: var(--space-s);
  padding: 0; margin: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
}
.contact-list .icon {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
}
.contact-list .icon svg { width: 1.3rem; height: 1.3rem; }
.contact-list a { font-weight: 600; font-size: var(--step-1); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); }

.contact-card {
  padding: var(--space-l);
  border-radius: var(--radius-l);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}
.contact-card h3 { color: inherit; font-size: var(--step-2); }
.contact-card p { opacity: 0.9; }
.contact-card .btn--primary {
  background: var(--on-accent);
  border-color: var(--on-accent);
  color: var(--accent);
}
.contact-card .btn--primary:hover { background: #fff; border-color: #fff; color: var(--accent-hover); }
.contact-card .btn--ghost { color: var(--on-accent); }
.contact-card .btn--ghost:hover { color: var(--on-accent); background: rgba(255, 255, 255, 0.15); }

/* ---------- Header / Footer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-0);
}
.brand img { height: 2.1rem; width: auto; }
.brand .brand__mark { height: 2.4rem; width: 2.4rem; }
.brand span { line-height: 1.1; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72em;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}
.site-nav .switch-link {
  display: none;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav .switch-link:hover { color: var(--accent); text-decoration: underline; }
.site-nav .btn { min-height: 2.75rem; padding-block: 0.5rem; }
@media (min-width: 40rem) { .site-nav .switch-link { display: inline-flex; align-items: center; gap: 0.4rem; } }

.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--step--1);
}
.site-footer .container {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 52rem) { .site-footer .container { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: var(--space-s);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal {
  grid-column: 1 / -1;
  padding-top: var(--space-m);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  justify-content: space-between;
}
.site-footer .legal ul { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); }

/* ---------- Hero-Grundgerüst ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 7rem);
  overflow: clip;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg picture,
.band__bg picture,
.choice__bg picture { height: 100%; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__inner { max-width: 44rem; }
.hero h1 { margin-block: var(--space-s); }
.hero .lead { margin-bottom: var(--space-m); }

/* ---------- Switch-Banner (Wechsel zur anderen Landingpage) ---------- */
.switch-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  border: 1px dashed var(--border);
  background: var(--surface);
}
.switch-banner p { margin: 0; }
.switch-banner strong { display: block; font-family: var(--font-head); font-size: var(--step-1); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption { margin-top: 0.4rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Abstands-Utilities ---------- */
.mt-m { margin-top: var(--space-m); }
.mt-l { margin-top: var(--space-l); }
.mt-xl { margin-top: var(--space-xl); }
.btn-row--center { justify-content: center; }
.lead--light { color: #e6e1d5; }
.section--trust { padding-block: var(--space-m) var(--space-l); }
