/* ==========================================================================
   Lokale Schriften - frueher via Google Fonts geladen, jetzt aus /fonts/
   Identische woff2-Dateien und Angaben wie von Google ausgeliefert
   (Subsets: latin + latin-ext).
   ========================================================================== */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../../../fonts/eb-garamond-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../../../fonts/playfair-display-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../../../fonts/playfair-display-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../../fonts/playfair-display-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../../../fonts/playfair-display-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../../../fonts/playfair-display-variable-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../../../../fonts/playfair-display-variable-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1a1a1a;
  --bg-deep: #141414;
  --surface: #232120;
  --gold: #b08d57;
  --gold-soft: #cbab7c;
  --text: #ece7de;
  /* --muted lag vorher bei #a79c8d (rund 6,6:1 auf dem Grundton). Fuer die
     langen Fliesstexte und die kleinen Versalzeilen ist das zu knapp - jetzt
     rund 8,3:1, ohne dass der warme Grauton verloren geht */
  --muted: #b5aa9a;
  --border: rgba(176, 141, 87, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: var(--gold) var(--bg-deep);
  scrollbar-width: thin;
}

/* Browser surfaces themed to match the palette rather than left as defaults */
::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 3px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  filter: grayscale(15%) sepia(6%) contrast(1.05) brightness(0.96);
}

.container {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.rule {
  width: 46px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 1.75rem 0;
}

.rule.center {
  margin: 1.75rem auto;
}

.lede {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.2rem;
}

.center-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-family: "EB Garamond", serif;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 20, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

/* Logo = Signet (Ring mit N) + Wortmarke. Im Kopf einzeilig, im Hero
   gestapelt und mit Zusatzzeile. Das Signet ist eine reine Strichzeichnung -
   fuer die Reiterleiste liegt in img/logo-mark.svg eine kraeftigere Fassung */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand-mark {
  display: block;
  flex: none;
  width: 2rem;
  color: var(--gold);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.brand-mark .mark-inner {
  stroke-width: 0.9;
  opacity: 0.35;
}

.brand-mark .mark-letter {
  stroke: var(--gold-soft);
  stroke-width: 3;
  stroke-linecap: square;
}

.brand-word {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.22em;
  /* Sperrung erzeugt rechts eine Luecke - hier wieder ausgleichen */
  margin-right: -0.22em;
}

.logo:hover .brand-mark {
  color: var(--gold-soft);
}

/* Hero-Fassung: Signet ueber der Wortmarke */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-mark-lg {
  width: clamp(3.4rem, 7vw, 4.4rem);
  margin-bottom: 1.6rem;
}

.brand-word-lg {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  margin: 0 -0.24em 0 0;
  color: var(--text);
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-soft);
}

/* Haarlinien links und rechts der Zusatzzeile */
.brand-sub::before,
.brand-sub::after {
  content: "";
  width: clamp(1.5rem, 6vw, 3.25rem);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.brand-sub::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.brand-mark-sm {
  width: 1.75rem;
  margin: 0 auto 1.25rem;
}

/* Menue faehrt als Dropdown-Panel unter dem Menue-Knopf aus - auf allen
   Bildschirmgroessen, statt nur mobil */
.main-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  z-index: 5;
  width: min(260px, calc(100vw - 3rem));
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  /* visibility nimmt die Links im geschlossenen Zustand aus der Tab-Reihenfolge */
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0s linear 0.3s;
}

.nav-wrap.nav-open .main-nav {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0s;
}

.main-nav a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  padding: 1rem 1.4rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:last-child {
  border-bottom: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-soft);
  background: rgba(176, 141, 87, 0.1);
  font-weight: 700;
}

/* Menue-Knopf */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.35rem;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--gold);
  color: var(--bg-deep);
}

.nav-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
  flex: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle-bars {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero (Startseite) */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Das Bild darf heller stehen als vorher (0.45), weil die Abdunklung jetzt
     gezielt in der Bildmitte sitzt - dort, wo die Schrift liegt */
  filter: grayscale(25%) contrast(1.05) brightness(0.58);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.62) 42%, rgba(8, 8, 8, 0.22) 78%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(15, 15, 15, 0) 26%, rgba(15, 15, 15, 0) 62%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 1.5rem;
  /* faengt die Stellen ab, an denen doch einmal ein heller Bildteil hinter
     der Schrift liegt */
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.75);
}

/* Live-Anzeige: geoeffnet / geschlossen, ersetzt die frueheren Hero-Buttons */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.25rem 0 0;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  background: rgba(16, 16, 16, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-shadow: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.status-badge.is-open .status-dot {
  background: var(--gold);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(176, 141, 87, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-badge.is-open .status-dot {
    animation: none;
  }
}

/* Page hero (Unterseiten) */
.page-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-deep);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.split .split-text {
  max-width: 42ch;
}

.split.reverse .split-media {
  order: 2;
}

/* Zitat - der ruhige Mittelpunkt zwischen Hero und den drei Punkten */
.quote-section {
  padding: 7rem 0;
}

.pull-quote {
  /* in rem statt ch: das kursive Garamond hat eine sehr schmale Nullbreite,
     eine ch-Angabe wuerde den Satz auf wenige Woerter je Zeile quetschen */
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

/* Statt eines grossen Anfuehrungszeichens die Haarlinie der Seite */
.pull-quote::before {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 0 auto 2.75rem;
  background: var(--gold);
}

.pull-quote blockquote {
  margin: 0;
  font-style: italic;
  /* volle Textfarbe statt --muted: das Zitat traegt die Seite */
  color: var(--text);
  font-size: clamp(1.4rem, 2.9vw, 2.05rem);
  line-height: 1.5;
  text-wrap: balance;
}

.pull-quote figcaption {
  margin-top: 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.pull-quote figcaption span {
  display: block;
  margin-top: 0.5rem;
  letter-spacing: 0.16em;
  font-weight: 400;
  text-transform: none;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Values / three-up */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.values h2 {
  font-size: 1.1rem;
}

.values p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Info strip (Öffnungszeiten / Adresse) */
.info-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.info-grid h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  margin-bottom: 0.75rem;
}

.info-grid p {
  color: var(--muted);
  margin: 0;
}

/* Speisekarte: fuenf Gaenge, die beim Scrollen von der Seite hereinfahren */
.menu-hero {
  padding: 7rem 0 4rem;
}

.menu-hero .lede {
  margin: 0 auto;
}

.kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-soft);
}

/* Duenne Fortschrittslinie ganz oben - nur dort, wo scroll()-Timelines laufen */
.course-progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  .course-progress {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    height: 2px;
    pointer-events: none;
  }

  .course-progress span {
    display: block;
    height: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    animation: course-progress linear both;
    animation-timeline: scroll(root block);
  }

  @keyframes course-progress {
    to {
      transform: scaleX(1);
    }
  }
}

.courses {
  --overhang: clamp(1.5rem, 5vw, 6rem);
  padding: 2rem 0 5rem;
  /* die Bilder ragen ueber den Textrand hinaus - hier abschneiden,
     damit nie quer gescrollt werden muss */
  overflow: hidden;
}

.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Bild und Textkarte liegen in derselben Zelle uebereinander (siehe grid-row
     unten) - align-content zentriert diese Zelle in der 88vh-Zeile */
  align-content: center;
  min-height: 88vh;
  padding: 3.5rem 0;
}

.course-media {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: calc(72% + var(--overhang));
  margin: 0 calc(var(--overhang) * -1) 0 auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* Jeder zweite Gang kommt von der anderen Seite */
.course:nth-child(even) .course-media {
  margin: 0 auto 0 calc(var(--overhang) * -1);
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  /* liegt in der gleichen Zelle wie das Bild und haengt vertikal an dessen
     Mitte - so ist die Karte immer auf einen Blick zu sehen, ohne nachzuscrollen */
  align-self: center;
  justify-self: start;
  width: min(27rem, 88%);
  padding: 1.9rem 2.1rem 2.1rem;
  background: rgba(20, 20, 20, 0.92);
  border-left: 1px solid var(--gold);
}

.course:nth-child(even) .course-text {
  justify-self: end;
  border-left: none;
  border-right: 1px solid var(--gold);
}

.course-num {
  position: absolute;
  top: -3rem;
  right: 1.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--gold);
  /* die Ziffer liegt teils auf dem Foto - der Schatten haelt sie auch dort lesbar */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.course:nth-child(even) .course-num {
  right: auto;
  left: 1.4rem;
}

@supports (-webkit-text-stroke: 1px currentColor) {
  .course-num {
    color: transparent;
    -webkit-text-stroke: 1px var(--gold-soft);
  }
}

.course-index {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.course-text h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.course-desc {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-style: italic;
}

.course-price {
  margin: 0;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

/* Startzustand: liegt von Anfang an im CSS, damit nichts aufblitzt.
   Ohne JS setzt der noscript-Block in der Seite alles wieder sichtbar. */
.course-media {
  opacity: 0;
  transform: translateX(4rem);
  clip-path: inset(0 0 0 100%);
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    clip-path 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.course:nth-child(even) .course-media {
  transform: translateX(-4rem);
  clip-path: inset(0 100% 0 0);
}

.course-media img {
  transform: scale(1.12);
  transition: transform 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.course-text {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
}

.course.is-visible .course-media {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.course.is-visible .course-media img,
.course.is-visible .course-text {
  opacity: 1;
  transform: none;
}

.menu-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2.5rem;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .course .course-media,
  .course .course-media img,
  .course .course-text {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.contact-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: inline-block;
  min-width: 9rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form button {
  justify-self: start;
  background: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  background: var(--bg-deep);
}

.site-footer .brand-mark svg {
  stroke-width: 1.8;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 780px) {
  .course {
    grid-template-rows: auto auto;
    align-content: start;
    min-height: 0;
    padding: 2.5rem 0;
  }

  .course-media,
  .course:nth-child(even) .course-media {
    grid-row: 1;
    width: auto;
    margin-left: calc(var(--overhang) * -1);
    margin-right: calc(var(--overhang) * -1);
    aspect-ratio: 4 / 3;
  }

  .course-text {
    /* auf dem Handy wieder gestapelt statt ueberlagert - Bild oben, Karte darunter */
    grid-row: 2;
    align-self: start;
    width: min(27rem, 92%);
    margin-top: -3.5rem;
  }

  .course-num {
    top: -2.4rem;
  }

  .course-media {
    transform: translateX(2rem);
  }

  .course:nth-child(even) .course-media {
    transform: translateX(-2rem);
  }

  .menu-hero {
    padding: 5rem 0 3rem;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split .split-media {
    order: -1 !important;
  }

  .values,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 480px) {
  .course-media,
  .course:nth-child(even) .course-media {
    aspect-ratio: 1 / 1;
  }

  .course-text {
    width: 100%;
  }
}

/* Rechtliche Links zur Hauptseite (Demo-Hinweis) */
.demo-note-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.demo-note-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-note-links a:hover,
.demo-note-links a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Hinweis beim Absenden des Demo-Formulars */
.form-status {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 1px solid var(--gold);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status[hidden] {
  display: none;
}
