:root {
  --background: #f6f1e8;
  --foreground: #1c1612;
  --primary: #9c3b2a;
  --primary-foreground: #faf6f1;
  --muted: #efe6d8;
  --muted-foreground: #5f564c;
  --border: #e3d7c6;
  --card: #fbf7f1;
  --accent: #f3e7d6;
  --max: 80rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--foreground);
  color: var(--background);
  padding: 0.6rem 0.9rem;
  z-index: 30;
}

.skip:focus { top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-bar,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-bar { padding-top: 0.8rem; padding-bottom: 0.8rem; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  text-decoration: none;
  color: var(--foreground);
  line-height: 0.9;
}

.logo { width: 52px; height: 52px; flex: none; }

.wordmark span {
  display: flex;
  flex-direction: column;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.wordmark small {
  margin-top: 0.28rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8d6432;
  font-weight: 650;
}

.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--primary);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
}

.lead {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--muted-foreground);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg { transition: transform 0.2s ease; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(156, 59, 42, 0.28);
}

.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost { border-color: var(--border); }

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost:hover svg { transform: translateY(3px); }

.btn:active { transform: scale(0.98); }

.monthly {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.monthly-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
}

.hero-visual { position: relative; }

.corner {
  display: none;
  position: absolute;
  left: 0;
  top: 2rem;
  width: 1rem;
  height: 80%;
  border-left: 1px solid rgba(156, 59, 42, 0.5);
  border-top: 1px solid rgba(156, 59, 42, 0.5);
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--muted);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 22, 18, 0.75), rgba(28, 22, 18, 0.1) 46%, transparent);
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  color: var(--primary-foreground);
}

.hero-caption p { margin: 0; }

.where {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 246, 241, 0.75);
}

.caption-line {
  margin-top: 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.15;
}

.pill {
  display: none;
  flex: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(250, 246, 241, 0.45);
  border-radius: 999px;
  font-size: 0.75rem;
}

.termin {
  background: var(--primary);
  color: var(--primary-foreground);
  scroll-margin-top: 5rem;
}

.termin-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.termin .eyebrow,
.termin .year { color: rgba(250, 246, 241, 0.72); }

.termin h2 {
  margin: 0.75rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 520;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  line-height: 1;
}

.termin h2 em { font-style: italic; font-weight: 500; }

.year {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.termin-facts {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 241, 0.25);
}

.fact { display: flex; gap: 0.75rem; }

.fact svg { flex: none; margin-top: 0.15rem; }

.fact p { margin: 0; }

.fact .label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 241, 0.65);
}

.fact .value { margin-top: 0.25rem; font-weight: 600; }

.fact .sub { font-size: 0.9rem; color: rgba(250, 246, 241, 0.72); }

.fact a { text-decoration: none; }

.fact a:hover { text-decoration: underline; }

.besuch,
.ablauf-grid,
.leitung { scroll-margin-top: 5rem; }

.besuch {
  display: grid;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.besuch h2,
.ablauf h2 {
  margin: 1rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 520;
  font-size: clamp(2.4rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.besuch h2 { max-width: 10ch; }

.note {
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tabs button {
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--foreground);
  color: var(--background);
}

.tabs button:hover:not([aria-selected="true"]) { color: var(--foreground); }

.panel { min-height: 8rem; margin-top: 1.5rem; }

.panel h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 520;
}

.panel p {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.panel.is-in { animation: rise 0.35s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ablauf {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ablauf-grid {
  display: grid;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.steps { display: grid; }

.step {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.step-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--primary);
}

.step h3 {
  margin: 1rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 520;
}

.step p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.leitung {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.leitung h2 {
  margin: 0.75rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 520;
}

.wordmark:focus-visible,
.btn:focus-visible,
.tabs button:focus-visible,
.fact a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .header-bar,
  .wrap { padding-left: 2rem; padding-right: 2rem; }

  .hero { padding-top: 4rem; }

  .lead { font-size: 1.25rem; }

  .hero-frame { aspect-ratio: 5 / 4; }

  .hero-caption { padding: 2rem; }

  .caption-line { font-size: 1.875rem; }

  .pill { display: inline-flex; }
}

@media (min-width: 768px) {
  .termin-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .termin-facts {
    padding-top: 0;
    padding-left: 2rem;
    border-top: 0;
    border-left: 1px solid rgba(250, 246, 241, 0.25);
  }

  .besuch {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 5rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .besuch-panel {
    padding-left: 2.5rem;
    border-left: 1px solid var(--border);
  }

  .ablauf-grid {
    grid-template-columns: 0.7fr 1.3fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .step {
    padding: 0 1.1rem 0 1.25rem;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .leitung {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .header-bar,
  .wrap { padding-left: 3rem; padding-right: 3rem; }

  .hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

  .hero-visual { padding-left: 1rem; }

  .hero-frame { aspect-ratio: 0.94; }

  .corner { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg, .panel.is-in { transition: none; animation: none; }
}
