/* ===== Base ===== */

html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{--fs-base:clamp(16px,0.7vw+14px,18.5px)}
body{font-size:var(--fs-base)}
.cta{font-size:16px;line-height:1}


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

:root {
  --brand-green: #072e1f;
  --brand-sand: #e0ebc6;
  --gold-1: #f4d483;
  --gold-2: #d5a53a;
  --offer-gap: 32px;
  --topbar-h: 80px;
}

/* Footer immer am Seitenende */
html, body { margin: 0; height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--brand-green);
  color: #222;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  
}
html.smooth-scroll { scroll-behavior: smooth; }
body.modal-open { overflow: hidden; }


header { padding-top: 0; } 

/* ===== Topbar (zentriert & robust) ===== */
/* ===== Topbar (simpel): Flex + absolut zentrierter Brand ===== */
.topbar {
  position: fixed; inset: 0 auto auto 0;
  width: 100%; height: var(--topbar-h);
  background: var(--brand-green);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0 20px;
}

/* Linke Seite: Menü-Button-Container */
.topbar .menu-btn {
  display: grid; align-items: center;
}
.topbar .menu-btn button{
  background: none; border: 0; color: var(--brand-sand); padding: 0;
  display: inline-grid; place-items: center; z-index: 101; cursor: pointer;
}
.menu-btn .icon { width: 24px; height: 24px; display: block; }

/* MITTE: absolut zentriert, unabhängig von CTA vorhanden/fehlend */
.topbar-text{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center; color: var(--brand-sand);
  pointer-events: none;              /* nichts abfangen außer dem Link */
  max-width: min(92vw, 720px);
}
.topbar-text .brand-link{
  display: inline-block; color: var(--brand-sand); text-decoration: none; padding: 2px 6px;
  pointer-events: auto;              /* Link bleibt klickbar */
}
.topbar-text .brand-link:hover{ text-decoration: none; }
.topbar-text .brand-link:focus-visible{ outline: 2px solid var(--gold-2); outline-offset: 4px; }
.topbar-text h2{ margin:0; font-size:2rem; letter-spacing:1px; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-text p { margin:0; font-size:1.3rem; opacity:.8; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

#menu-toggle{
    z-index:300;
}


/* Rechte Seite: CTA-Container (wenn vorhanden) einfach rechts stehen lassen */
.cta {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  border-radius: 25px; padding: 12px 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: bold; color: #3f2e08; text-decoration: none; border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover  {  transform: translateY(-1px) scale(1.02); }
.cta:active { transform: translateY(0); }

/* Mobile Tweaks */
@media (max-width: 768px){
  .topbar-text h2 { font-size: 1.5rem; width: 300px;}
  .topbar-text p  { font-size: 1rem; }
}

/* CTA mobil fixieren (optional; unabhängig vom Centering) */
@media (max-width: 768px){
  .topbar .cta{
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1001; width: auto; max-width: min(86vw, 340px);
    white-space: nowrap; padding-inline: 18px;
    transition: transform .25s ease, opacity .25s ease, box-shadow .2s ease;
  }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.cta-hidden { padding-bottom: 0 !important; }
  body.cta-hidden .topbar .cta,
  body.modal-open .topbar .cta { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
}

/* ===== Hero (robust auf iOS, Scroll-driven) ===== */
.hero {
  position: relative;              /* containing block für Overlay */
  text-align: center;
  width: 100%;
  height: 100svh;                  /* statt 100vh: stabil auf iOS */
  /*padding-top: 50px;*/
}

.hero-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  /*max-width: 95vw;*/
  height: 100svh;                   /* statt 85vh */
  /*margin: 5svh auto;               /* statt 5vh */
  background: url('/img_castle/hero.jpg') no-repeat center / cover;
  /*border-radius: 25px;*/
  isolation: isolate;              /* eigener Stacking-Context wie in .section-2 */
  z-index: 0;
  will-change: background-position;/* nur hier, wo animiert wird */
}

.hero-img::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);     /* etwas kräftiger fürs Premium-Look & Lesbarkeit */
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: absolute; inset: 0;    /* jetzt relativ zu .hero */
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.hero-content h1 {
  position: absolute; top: 10%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; color: #fff; font-size: clamp(4rem, calc(7vw + 1rem), 9rem); width: 90%;
}

/* Scroll-driven Parallax – explizite Range für fast-viewport-hohe Elemente */
@keyframes hero-parallax {
  from { background-position: 50% 0%; }
  to   { background-position: 50% 60%; }
}

/* WICHTIG: eigener Keyframes-Name, damit er nicht von anderen Blöcken überschrieben wird */
@supports (animation-timeline: view()) {
  .hero-img {
    animation-name: hero-parallax;
    animation-duration: 1s;        /* spielt keine Rolle, Timeline steuert Progress */
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();     /* ViewTimeline des Elements selbst */
    /* Wenn Element fast „cover“ ist, explizit steuern, wann animiert wird: */
    animation-range: entry 0% cover 60%;
  }
}

/* Progressive Enhancement: Fallback-Klasse (falls du JS nutzt), bleibt optional */
.hero-img.scrolled { background-position: 50% 80%; transition: background-position .5s ease; }

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; will-change: auto; }
}

/* Mobile: explizit kein fixed-Attachment (iOS) */
@media (max-width: 768px) {
  .hero-img { background-attachment: scroll; }
  .hero-content h1{ top:20%;}
}


/* ===== Content-Header ===== */
.content-header { display: grid; place-items: center; text-align: center; color: var(--brand-sand); }
.content-header h2{ font-size: clamp(2rem, 6vw + 1rem, 5rem); }
.content-header h2.reveal-up {
  transform: translateY(36px); opacity: 0; transform-origin: center;
  transition: transform 1000ms ease, opacity 1000ms ease; will-change: transform;
  transition-duration: 2000ms;
}
.content-header h2.reveal-up.in-view { transform: translateY(0); opacity: 1; }
@media (max-width: 600px) {
  .content-header { padding-inline: 12px; }
  .content-header h2 { max-inline-size: 22rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.smooth-scroll { scroll-behavior: auto; }
  .content-header h2.reveal-up { transform: none; opacity: 1; transition: none; }
}

/* ===== Galerie ===== */
.gallery {
  position: relative; width: 90%; padding: 2em; margin: 2rem auto;
  background: var(--brand-sand); border-radius: 25px;
}
@media (max-width: 600px) { .gallery { width: 85vw; padding: 1em; } }

.gallery__container { width: 100%; margin: 0 auto; }
.gallery__heading { color: var(--brand-green); font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 800; margin: 0 0 10px; }
/* verhindert, dass Inhalt beim Sticky-Header verdeckt wird, wenn zu #gallery-title gescrollt wird */
.gallery__heading { scroll-margin-top: 96px; } /* an deine tatsächliche Header/Sticky-Höhe anpassen */


/* Filter */
.gallery__filters {
  position: sticky; top: calc(var(--topbar-h) + 16px); z-index: 2;
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px auto 14px; padding: .4rem .5rem;
  background: var(--brand-sand); border-radius: 25px; justify-content: space-evenly; width: fit-content;
}
.gallery__filters.is-stuck { box-shadow: 0 2px 8px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.16); }

.gallery__btn {
  font-size: 1.5em; appearance: none; background: none; border: none; color: var(--brand-green);
  padding: .45rem .9rem; border-radius: 999px; cursor: pointer; font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
@media (hover:hover){ .gallery__btn:hover { transform: translateY(-1px); background-color: var(--brand-green); color: var(--brand-sand); } }
.gallery__btn.is-active, .gallery__btn[aria-pressed="true"] { background: var(--brand-green); color: var(--brand-sand); }

@media (max-width: 600px) {
  .gallery__filters { top: calc(var(--topbar-h) + 8px); padding: .3rem .4rem; margin: 6px auto 10px; font-size: .6em; gap: 2px; width: 100%; }
  .gallery__btn { padding: .3rem .5rem; }
}

/* Grid */
.gallery__grid {
  margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px; background: none;
}
@media (max-width: 600px){
  .gallery__grid { margin: 0 auto; padding: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px),1fr)); gap: 12px; }
}
@media (min-width: 768px){  .gallery__grid { gap: 18px; } }
@media (min-width: 1024px){ .gallery__grid { gap: 20px; } }
@media (min-width: 1280px){ .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.gallery__item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery__thumb {
  display: block; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 20px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.gallery__thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px;
  transition: transform .25s ease, filter .25s ease;
}
@media (hover:hover){ .gallery__thumb:hover img { transform: scale(1.02); filter: brightness(.97); } }

.gallery__caption { color: var(--brand-green); font-size: .95rem; line-height: 1.35; }
.gallery__item[hidden] { display: none !important; }

/* ===== Gallery Anchors=====*/

/* 1) Respektiere Bewegungspräferenzen: Smooth-Scroll nur wenn erlaubt */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 2) Unsichtbarer Sprunganker vor der Galerie */
.gallery__anchor {
  position: relative;
  inline-size: 1px;
  block-size: 1px;
  /* WICHTIG: verhindert, dass der Anker unter Fixed/Sticky-Headern verschwindet */
  scroll-margin-top: var(--gallery-offset, 96px);
}

/* Optional: Setze die Offset-Variable zentral, z.B. Topbar + Filterhöhe + Puffer */
:root {
  --gallery-offset: 96px; /* an deine tatsächlichen Höhen anpassen */
}

/* 3) Falls deine Button-Styles nur <button> targeten, sorge dafür, 
      dass Anker identisch aussehen/fühlen */
.gallery__btn {
  display: inline-block;
  text-decoration: none;
  /* bestehende Button-Styles hier wiederholen/erben */
}
/* Wenn du :focus-visible Styles für A11y hast, auch hier anwenden */
.gallery__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}




/* Lightbox */
/* Lightbox */
/* Lightbox */ .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 1000; } .lightbox[aria-hidden="false"] { display: flex; } .lightbox__inner { position: relative; background: var(--brand-sand); border-radius: 16px; padding: 24px; max-width: min(92vw, 1200px); max-height: 88vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); } .lightbox__img { display: block; max-width: 100%; max-height: 80vh; border-radius: 12px; } .lightbox__close { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: var(--brand-green); color: var(--brand-sand); font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; } /* Extra Mobile Tuning */ @media (max-width: 480px){ .gallery__container { width: min(96%, 720px); } .lightbox__inner { padding: 8px; } .lightbox__close { top: 4px; right: 6px; } }

/* Motion */
@media (prefers-reduced-motion: reduce){
  .gallery__thumb img, .gallery__btn { transition: none; }
}


/* ===== Offers / Text-Box ===== */
.section-offer {width: 100%;margin: 2rem auto;/* padding: 20px; *//* border-radius: 25px; */background: transparent;}
@media (max-width: 600px) { .section-offer {padding: 0; } }

.text-box {margin: 1em auto;}
.text-box .inquiry-note {
  margin: 0 auto; color: var(--brand-sand); text-align: center; padding-bottom:  2rem;
  font-size: clamp(1rem, 1vw + 1rem, 2rem); width: 90vw;
}
.text-box h2 {
  text-align: center; margin: 1rem auto; font-size: clamp(2rem, 6vw + 1rem, 5rem); color: var(--brand-sand);
}
.offer-row {display: flex;justify-content: flex-start;width: 100%; margin-top: 20px;flex-direction: column;/* align-content: center; */}

/* Split Card */
.offer-row > .split-card {/* flex: 1 1 420px; */}
.split-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: #e0ebc6;
  color: var(--brand-green);
  /* border-radius: 25px; */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.split-card__content { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; color: var(--brand-green); }
.split-card__content h3 { margin: 0; font-size: clamp(1.4rem, 2vw + 1rem, 2.2rem); font-weight: 800; }
.split-card__content p { text-align:center; font-size: clamp(1rem, calc(1rem + 0.8vw), 1.6rem); line-height: 1.4; max-width: 80%; }
.offer-cta {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #3f2e08; border: none; border-radius: 25px; padding: 12px 22px;
  display: inline-flex; align-items: center; font-weight: bold; text-decoration: none;
  box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .2s ease, box-shadow .2s ease;
}
.offer-cta:hover  { transform: translateY(-1px) scale(1.02); }
.offer-cta:active { transform: translateY(0) scale(1);   }
.offer-cta:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.split-card__content .offer-cta { align-self: center; margin-top: .5rem; }

@media (max-width: 768px) {
  .split-card { grid-template-columns: 1fr; }
  .split-card__content { align-items: center; text-align: center; }
}


/* ===== Section-2 (Parallax light) ===== */
/* ===== Section-2 (Parallax light) ===== */
.section-2 {
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: 70px 0 6svh;           /* svh statt vh: stabil auf iOS */
  text-align: center;
  position: relative;             /* neuer containing block */
}

.section-2-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  height: 85vh;
  height: 85svh;                  /* bevorzugt „small viewport“ */
  background: url('/img_castle/img4.jpg') no-repeat center / cover;
  /*border-radius: 25px;*/
  isolation: isolate;             /* eigener Stacking-Context */
  z-index: 0;                     /* klar unter nachfolgenden Geschwistern */
  margin-bottom: clamp(16px, 4vh, 40px); /* Abstand vor Footer */
}

.section-2-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);    /* etwas leichter für eleganteren Look */
  z-index: 1;
  pointer-events: none;
}

.section-2-content {
  position: absolute; inset: 0; z-index: 2;      /* über dem Verdunkler, aber im isolierten Kontext */
  display: flex; align-items: center; justify-content: center;
}

.section-2-content h1 {
  width: 90%; margin: 0; text-align: center; color: #fff;
  font-size: clamp(3rem, 7vw + 1rem, 8rem);
  line-height: 1.05; text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* Scroll-driven Parallax nur, wo unterstützt */
@keyframes parallax-bg { from { background-position: 50% 0%; } to { background-position: 50% 60%; } }
@supports (animation-timeline: view()) {
  .section-2-img { will-change: background-position; animation: parallax-bg linear both; animation-timeline: view(); }
}

/* Mobile: kein fixed-Attachment */
@media (max-width: 768px){
  .section-2-img { background-attachment: scroll; }
}

/* ===== Footer ===== */
.footer {
  width: 100%; display: block; margin-top: auto; padding: 28px 0;
  background: #072e1f; color: #e0ebc6; font-size: 1rem;
  border-top: 1px solid rgba(224,235,198,0.18);
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.12); position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 3px; background: rgba(224,235,198,0.35); border-radius: 999px;
}
.footer-content {
  margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px;
}
.footer-title { margin: 0; color: #e0ebc6; font-weight: 800; letter-spacing: .3px; font-size: clamp(1.25rem, 1.2vw + 1rem, 2rem); justify-self: start; }
.footer-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; justify-self: end; color: #e0ebc6; text-align: right; }
.footer-links a {
  color: #e0ebc6; text-decoration: none; font-size: 1.05rem;
  padding: .45rem .75rem; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.footer-links a:hover { background-color: #e0ebc6; color: #072e1f; box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.footer-links a:focus-visible { outline: 2px solid #e0ebc6; outline-offset: 2px; }

/* Vereinheitlichung: vorher 700px → 768px */
@media (max-width: 768px) {
  .footer { padding: 20px 0; }
  .footer-content { grid-template-columns: 1fr; row-gap: 10px; text-align: center; justify-items: center; }
  .footer-title { justify-self: center; }
  .footer-links { gap: 10px; justify-content: center; justify-self: center; text-align: center; width: 100%; }
  .footer-links a { padding: .45rem .75rem; font-size: 1rem; }
  .footer-links a:last-child {
    display: block; width: min(92%, 340px); margin: 6px auto 0;
    background: var(--brand-sand); color: var(--brand-green);
    box-shadow: 0 6px 18px rgba(0,0,0,.18); text-align: center;
  }
}


/* --------Date---------*/
/* --------Date---------*/
.section-form{
  /* füllt den verbleibenden Platz im Body-Flex-Layout */
  flex: 1 0 auto;

  /* zentriert die Reservation-Form in der Mitte */
  display: grid;
  place-items: center;

  /* angenehmer Innenabstand */
  padding: 24px 16px;

  /* WICHTIG: keine viewport-basierten Minhöhen hier */
  min-height: auto;
}

#inhalt{

     margin-bottom: 100px;
  margin-top: 100px;
}

/* Optional: wenn auf dieser Seite die mobile CTA NICHT gebraucht wird,
   kannst du die Klasse cta-hidden am <body> setzen und dir das zusätzliche
   Bottom-Padding sparen. Ansonsten reicht ein kleines Extra-Polster: */
@media (max-width: 768px){
  .section-form{
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}


/* ===== CTA Modal ===== */
.modal#ctaModal { 
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.5);
  align-items: center; justify-content: center;
}
.modal#ctaModal[aria-hidden="false"] { display: flex; }

.modal__inner {
  background: var(--brand-sand); color: #072e1f;
  width: min(92vw, 350px); border-radius: 16px;
  padding: 24px 20px 20px; position: relative;
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
}

.modal__close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 0; background: var(--brand-green); color: var(--brand-sand);
  font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer;
}

.modal__actions {
  display: grid; gap: 12px; margin-top: 16px;
}

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #3f2e08;
}
.btn--primary:hover { transform: translateY(-1px); }

.btn--secondary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #3f2e08;
}
.btn--secondary:hover { transform: translateY(-1px); }

/* Mobile Safe Area */
@media (max-width: 768px){
  .modal__inner { width: min(94vw, 560px); }
}


/* ===== Off-Canvas Drawer ===== */
.drawer { position: fixed; inset: 0; z-index: 1100; display: grid; visibility: hidden; }
.drawer[aria-hidden="false"] { visibility: visible; }

.drawer__backdrop {
  grid-area: 1 / 1 / 2 / 2;
  background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.drawer__inner {
  grid-area: 1 / 1 / 2 / 2;
  width: min(86vw, 320px); height: 100%;
  background: var(--brand-sand); color: var(--brand-green);
  transform: translateX(-100%); transition: transform .25s ease;
  box-shadow: 8px 0 28px rgba(0,0,0,.25);
  display: flex; flex-direction: column; padding: 16px;
}
.drawer[aria-hidden="false"] .drawer__inner { transform: translateX(0); }
.drawer[aria-hidden="false"] .drawer__backdrop { opacity: 1; pointer-events: auto; }

.drawer__close {
  align-self: flex-end; border: 0; background: var(--brand-green); color: var(--brand-sand);
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-size: 20px; cursor: pointer;
}
.drawer__brand { text-decoration: none; color: inherit; display: grid; gap: 2px; margin: 10px 0 14px; }
.drawer__brand strong { font-size: 1.25rem; line-height: 1.15; }
.drawer__brand span   { font-size: .95rem; opacity: .85; }

.drawer__nav { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 6px; }
.drawer__nav a {
  display: block; padding: 11px 12px; border-radius: 12px; color: var(--brand-green); text-decoration: none;
  font-weight: 700; transition: background-color .15s ease, transform .12s ease;
}
.drawer__nav a:hover { background: rgba(7,46,31,.09); transform: translateX(2px); }
.drawer__nav a:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

.drawer__lang { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(7,46,31,.18); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #3f2e08; font-weight: 700; text-decoration: none;
  padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(213,165,58,.35);
}
.lang-switch:hover { box-shadow: 0 10px 26px rgba(213,165,58,.45); transform: translateY(-1px); }

/* ===== Brandmark im Topbar-Text (fix) ===== */
:root{
  --brandmark-w: min(680px, 72vw);
  --brandmark-h: calc(var(--topbar-h) * 0.9); /* sichtbare Höhe innerhalb der Topbar */
  --brandmark-opacity: .22;                    /* 0.18–0.26 je nach Geschmack */
}

/* eigener Stacking-Context, Text darüber */
.topbar-text{
  isolation: isolate;
}

/* Silhouette hinter der Schrift als Deko-Layer */
.topbar-text::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: block;                 /* WICHTIG: sonst greifen width/height nicht */
  width: var(--brandmark-w);
  height: var(--brandmark-h);     /* Höhe setzen (oder alternativ: aspect-ratio) */
  /* alternativ (wenn du die genaue Proportion kennst):
     aspect-ratio: 16 / 7; height:auto; */

  background: url("/img_castle/Logo_freigestellt.png") no-repeat center / contain;

  opacity: var(--brandmark-opacity);
  z-index: 0;
  pointer-events: none;
}

/* Text sauber darüber legen */
.topbar-text .brand-link{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

/* Optional: mehr Luft, wenn nötig */
@media (max-width: 768px){
  :root { --brandmark-w: min(520px, 84vw); --brandmark-h: calc(var(--topbar-h) * 0.85); }
}




/* Split Card: Bild als Vollflächen-Hintergrund, Text rechts 2/3 */
.offer-row > .split-card { /* unverändert leer lassen oder entfernen */ }

.split-card {
  position: relative;
  display: block;
  min-height: 550px;
  background: transparent;
  color: var(--brand-green);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}




/* Vollflächiger Hintergrund + Overlay */
.split-card__content {
  position: relative;
  min-height: inherit;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  background-position-y: 70%;
  background-repeat: no-repeat;
}

#split-card__content_event{
  background-position-y: 10%;}

.split-card__content::before {
  content: "";
  position: absolute;
  inset: 0;
  /* leichtes rechtslastiges Overlay für Lesbarkeit */
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.22) 60%,
    rgba(0,0,0,0.30) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Text rechts 2/3 */
.split-card__inner {
  position: relative;
  z-index: 1;
  width: 33.3334%;
  max-width: 450px;
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  color: var(--brand-sand);
  text-align: center;
  background-color: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);  /* für Safari */
  border-radius: 25px;
}

#split-card__inner_wedding{
  margin-right: 100px;
  margin-left: auto;
}

#split-card__inner_event{
  margin-right: auto;
  margin-left: 100px;
}


.split-card__inner h3 {
  margin: 0;
  color: var(--brand-sand);
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.4rem);
  font-weight: 800;
  text-align: center;
}

.split-card__inner p {
  max-width: 42ch;
  font-size: clamp(1rem, calc(1rem + 0.6vw), 1.5rem);
  line-height: 1.45;
}

/* CTA bleibt wie gehabt, nur Ausrichtung angepasst */
.split-card__inner .offer-cta { align-self: center; margin-top: .5rem; }



/* Responsive */
@media (max-width: 1050px) {
  #split-card__inner_wedding{
  margin-right: 50px;
  margin-left: auto;
}

#split-card__inner_event{
  margin-right: auto;
  margin-left: 50px;
}
}

/* Responsive */
@media (max-width: 768px) {
  .split-card { min-height: 600px; }
  .split-card__content  {justify-content: flex-end; background-position-y:10%;}
  #split-card__inner_wedding{margin: 0 auto; }
  #split-card__inner_event{margin: 0 auto; }
  #split-card__content_wedding{justify-content: flex-start; }
  #split-card__content_event {background-position-x: 73%;}
  .split-card__inner {
    width: 100%;
    margin-left: 0;
    text-align: center;
    align-items: center;
  }
  .split-card__inner .offer-cta { align-self: center; }
}



/* Pfeile ausblenden in beiden Varianten */
.flatpickr-calendar.smh-mobile.arrowTop::before,
.flatpickr-calendar.smh-mobile.arrowTop::after,
.flatpickr-calendar.smh-mobile.arrowBottom::before,
.flatpickr-calendar.smh-mobile.arrowBottom::after,
.flatpickr-calendar.smh-right-pos.arrowTop::before,
.flatpickr-calendar.smh-right-pos.arrowTop::after,
.flatpickr-calendar.smh-right-pos.arrowBottom::before,
.flatpickr-calendar.smh-right-pos.arrowBottom::after{
  display: none !important;
}


/* hoher z-index auch mobil */
.flatpickr-calendar.smh-mobile{ z-index:2147483646; }
