:root {
  --color-bg: #f2f0eb;
  --color-surface: #fff;
  --color-text: #0a0a0a;
  --color-text-muted: #525252;
  --color-accent: #c45c3e;
  --color-accent-hover: #a84a2e;
  --color-accent-warm: #c45c3e;
  --color-border: #e0ddd6;
  --color-dark: #0a0a0a;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow: 0 4px 24px rgba(10, 10, 10, 0.06);
  --shadow-hover: 0 20px 48px rgba(10, 10, 10, 0.12);
  /* Feststehender Header: Zielbereich bei Hash-Navigation nicht unter der Leiste */
  --fixed-header-scroll-offset: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--fixed-header-scroll-offset);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  position: relative;
}

/* Tastatur: erster Fokus — Sprung zum Hauptinhalt */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 0;
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
}

/* Formular-Rückmeldung (ersetzt alert), barrierefreier Fokus + Live-Region */
.growodo-form-feedback {
  position: fixed;
  left: 50%;
  /* Über Footer + WhatsApp-Button, nicht in der gleichen unteren Leiste */
  bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  max-width: min(32rem, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 10060;
  isolation: isolate;
  outline: none;
}

.growodo-form-feedback:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 3px;
}

.growodo-form-feedback--success {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.growodo-form-feedback--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 640px;
}

/* Nav menu: Hamburger + Dropdown */
.nav-menu-wrap {
  position: relative;
  justify-self: end;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
}

.nav-toggle:hover {
  color: #fff;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 12rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
}

.nav--open .nav-menu {
  display: flex;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
}

.nav-menu a:hover {
  color: var(--color-accent);
  background: var(--color-bg);
}

.header.scrolled .nav-toggle {
  color: var(--color-text-muted);
}

.header.scrolled .nav-toggle:hover {
  color: var(--color-text);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s;
}

.header.scrolled {
  background: rgba(248, 246, 242, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header.scrolled .tagline {
  color: var(--color-text);
}

.header.scrolled .tagline {
  color: var(--color-text-muted);
}

.header.scrolled .social-link {
  color: var(--color-text-muted);
}

.header.scrolled .social-link:hover {
  color: var(--color-text);
}

.header.scrolled .nav-menu a {
  color: var(--color-text);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-social {
  display: flex;
  gap: 0.75rem;
  justify-self: start;
}

.nav .logo {
  justify-self: center;
}

.nav .nav-menu-wrap {
  justify-self: end;
}

.social-link {
  color: #fff;
}

.social-link:hover {
  color: rgba(255,255,255,0.9);
}

.logo {
  text-align: center;
}

.logo__heading {
  margin: 0;
  font: inherit;
  line-height: 0;
}

.logo__link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.logo__link:hover {
  opacity: 0.92;
}

.logo__link:focus-visible {
  outline: 2px solid var(--color-accent-warm, #a16207);
  outline-offset: 4px;
}

.logo__img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: min(220px, 50vw);
}

/* Startseite: Logo weiß über dem Hero (nur solange Header transparent ist) */
.header:not(.header--solid):not(.scrolled) .logo__img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.header:not(.header--solid):not(.scrolled) .logo__link:focus-visible {
  outline-color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
  .logo__img {
    height: 2.35rem;
    max-width: 260px;
  }
}

.tagline {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  margin-top: 0.25rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

/* Hero: Vollbild mit Haus im Hintergrund */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hochzeit-hero.png') center/cover no-repeat;
  filter: brightness(1.2) saturate(1.35) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.2) 45%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 2rem 1.5rem;
  max-width: 640px;
  margin-right: auto;
  margin-left: 2rem;
}

@media (max-width: 767px) {
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title__line {
  white-space: nowrap;
}

.hero-title__region {
  display: inline-block;
  font-size: 0.45em;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  vertical-align: 0.35em;
}

.hero-sub {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.25rem;
}

/* Hero: CTAs nebeneinander (Angebot + nächster Termin), gleiche Breite/Höhe */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.25rem;
}

.hero-ctas .hero-cta--angebot {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 22rem;
  width: 100%;
  padding: 1rem 1.75rem;
  box-sizing: border-box;
  text-align: left;
}

.hero-cta-angebot__eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.15rem;
}

.hero-cta-angebot__item {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .hero-ctas {
    justify-content: center;
  }

  .hero-ctas .hero-cta--angebot,
  .hero-next-event {
    max-width: min(100%, 22rem);
  }
}

/* Nächster Termin: ovale Pill wie .btn, akzentuiert */
.hero-next-event {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 22rem;
  width: 100%;
  padding: 1rem 1.75rem;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--color-accent) 0%, #b84d32 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 200, 160, 0.25),
    0 4px 20px rgba(196, 92, 62, 0.35),
    0 16px 48px rgba(196, 92, 62, 0.45);
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.hero-next-event:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--color-accent-hover) 0%, #9a3f28 100%);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 220, 190, 0.35),
    0 8px 28px rgba(196, 92, 62, 0.4),
    0 22px 56px rgba(168, 74, 46, 0.5);
}

.hero-next-event__eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

.hero-next-event__title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.hero-next-event__dates {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.25;
}

.hero-next-event__sub {
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.1rem;
}

/* Unser Angebot */
/* Alte URLs …#geschaeftsbereiche — gleicher sichtbarer Block wie #unser-angebot */
.legacy-fragment-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.business-areas {
  padding: 5.5rem 0;
  background: var(--color-surface);
}

.section-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.business-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.business-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.business-card__icon {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.business-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.business-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.business-card__links,
.business-card > .business-card__link {
  margin-top: auto;
}

.business-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.business-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Veranstaltungen */
.events {
  padding: 5.5rem 0;
  background: var(--color-dark);
  color: #fff;
}

.events .section-eyebrow {
  color: var(--color-accent);
}

.events .section-title {
  margin-bottom: 2.5rem;
  color: #fff;
}

.events-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.event-card {
  display: grid;
  align-items: start;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

@media (min-width: 600px) {
  .event-card--primary {
    grid-template-columns: 1fr 1fr;
  }
}

.event-card[data-href] {
  cursor: pointer;
}

.event-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .event-card--primary .event-card__image {
    justify-self: start;
    align-self: start;
    max-width: 200px;
  }
}

@media (max-width: 599px) {
  .event-card__image {
    max-width: 220px;
    margin: 0 auto 0.75rem;
  }
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card__image object {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.event-card__image--placeholder {
  background: linear-gradient(145deg, rgba(161, 98, 7, 0.4), rgba(35, 32, 28, 0.92));
  min-height: 8rem;
}

.event-card__image--placeholder span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 1rem;
  line-height: 1.4;
}

.event-card__content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.event-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.event-card__content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 0;
}

.event-card__content p:last-of-type {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 92, 62, 0.35);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn--secondary:hover {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn--light:hover {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--sm {
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
}

/* Welcome */
.welcome {
  padding: 5.5rem 0;
  background: var(--color-bg);
}

.welcome h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  text-align: center;
  letter-spacing: -0.02em;
}

.welcome-text {
  text-align: left;
  margin-bottom: 2rem;
}

.welcome-text p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.welcome-text strong {
  color: var(--color-text);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hours */
.hours {
  max-width: 600px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
}

.hours h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hours-notice {
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hours p {
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 1.5rem;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.contact-details {
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: center;
  font-style: normal;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-map {
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
}

.contact-map-link {
  margin-top: 0.5rem;
  text-align: center;
}

.contact-map-link a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-map-link a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-funding {
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer a {
  margin: 0 0.5rem;
}

/* WhatsApp Chat-Button unten rechts */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* Mobile polish */
@supports (height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

@media (max-width: 820px) {
  :root {
    --fixed-header-scroll-offset: 4.75rem;
  }

  .hero {
    /* Fix: iPhone (Chrome/Safari) — Hero-Inhalt nicht unter fixem Header */
    align-items: flex-start;
    padding-top: calc(var(--fixed-header-scroll-offset) + env(safe-area-inset-top, 0px));
    padding-bottom: 2.5rem;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8.5vw, 3.1rem);
  }

  .hero-title__line {
    white-space: normal;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .tagline {
    display: none;
  }

  .nav-social svg {
    width: 28px;
    height: 28px;
  }

  .nav-menu {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    margin-top: 0;
    min-width: 0;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0;
  }

  .nav-menu a {
    font-size: 0.9rem;
    padding: 0.9rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-ctas .hero-cta--angebot,
  .hero-next-event {
    max-width: 26rem;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-title__line {
    white-space: normal;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 1rem;
    bottom: 1rem;
  }
}
