:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --line:rgba(17,24,39,.10);
  --card:#ffffff;
  --shadow: 0 10px 28px rgba(17,24,39,.08);
  --radius: 18px;

  /* "Urlaubslook": Himmel + Türkis + Sand */
  --sky:#5aa9e6;
  --aqua:#4fd1c5;
  --sand:#fde68a;
  --sun:#facc15;

  --max: 1120px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color:var(--text);
  line-height:1.6;
}



/* === Performance: move multi-layer fixed backgrounds off the scrolling surface (Edge/IE smooth scroll) === */
body{
  position: relative;
  isolation: isolate;
}

/* Ensure content stays above fixed background layer */
body > *{
  position: relative;
  z-index: 1;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.78)),
    url('../img/background.png') center/cover no-repeat,
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.92)),
    url('../img/hero.jpg') center/cover no-repeat,
    radial-gradient(900px 520px at 10% -10%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(45,212,191,.16), transparent 55%),
    linear-gradient(180deg, rgba(246,231,193,.28), transparent 30%),
    var(--bg);
  transform: translateZ(0);
  will-change: transform;
}

a{color:inherit}
a:hover{opacity:.92}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}

.header{
  position:sticky; top:0; z-index:10;

  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px; text-decoration:none;
}
.badge{
  width:36px; height:36px; border-radius:12px;
  background: conic-gradient(from 210deg, var(--sky), var(--aqua), var(--sun), var(--sky));
  box-shadow: 0 10px 22px rgba(56,189,248,.18);
}
.brand b{letter-spacing:.2px}
.brand .small{color:var(--muted)}

.navlinks{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.navlinks a{
  text-decoration:none;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color: rgba(17,24,39,.92);
}
.navlinks a:hover{border-color:var(--line); background: rgba(17,24,39,.03)}
.navbtn{
  text-decoration:none;
  padding:10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(45,212,191,.16));
  border:1px solid rgba(17,24,39,.12);
}

.hero{padding:26px 0 18px}
.heroGrid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(2, 1fr);
  align-items:stretch;
}
@media (max-width: 900px){
  .heroGrid{ grid-template-columns: 1fr; }
}

.card{
  background: rgba(255,255,255,.90);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.heroText{padding:18px}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color: rgba(75,85,99,.92);
}
.kdot{
  width:8px;height:8px;border-radius:99px;background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(45,212,191,.14);
}
.h1{
  margin:10px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height:1.07;
}
.lead{color: rgba(55,65,81,.92); font-size: 16.5px; margin: 0 0 14px}
p{margin: 0 0 12px}

.ctaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:11px 14px;
  border-radius: 14px;
  border:1px solid rgba(17,24,39,.12);
  text-decoration:none;
  background: rgba(255,255,255,.75);
}
.btnPrimary{
  background: linear-gradient(135deg, rgba(56,189,248,.24), rgba(45,212,191,.22));
  border-color: rgba(17,24,39,.14);
}
.btnSmall{padding:9px 12px; border-radius:12px; font-size:14px}

.heroMedia{
  overflow:hidden;
  position:relative;
  min-height: 320px;
}
.heroMedia img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: saturate(1.06) contrast(1.02);
}
.heroMedia::after{content:"";position:absolute;inset:0;background: transparent;}

.pills{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px}
.pill{
  border:1px solid rgba(17,24,39,.10);
  background: rgba(246,231,193,.35);
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  color: rgba(17,24,39,.85);
}

.section{padding:26px 0}
.section h2{margin:0 0 12px; font-size:22px}

h3{margin:18px 0 10px; font-size:18px; line-height:1.25}

.h1Sub{
  font-size:32px;
  margin-top:6px;
}

.mt12{margin-top:12px}
.mt8{margin-top:8px}

.hpField{position:absolute;left:-9999px;top:-9999px}

.formActions{margin-top:16px;text-align:center}

.formSideImage{
  max-width:70%;
  height:auto;
  border-radius:12px;
}

.muted{color: var(--muted)}

.grid3{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, 1fr);
}

/* 4-spaltiges Grid (Startseite Ablauf) */
.grid4{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px){
  .grid4{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 700px){
  .grid4{grid-template-columns: 1fr;}
}

@media (max-width: 900px){.grid3{grid-template-columns:1fr}}
.grid2{
  display:grid; gap:14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px){.grid2{grid-template-columns:1fr}}

.pad{padding:18px}

.kv{
  display:flex; justify-content:space-between; gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.kv:last-child{border-bottom:none}
.kv span:first-child{color: rgba(75,85,99,.95)}
.kv b{font-weight:700}

.gallery{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 900px){.gallery{grid-template-columns:1fr}}
.gMain{overflow:hidden}
.gMain img{width:100%; height:100%; object-fit:cover; display:block; min-height: 320px}
.gSide{display:grid; gap:14px; grid-template-columns: 1fr 1fr;}
.gSide img{width:100%; height:160px; object-fit:cover; display:block; border-radius: var(--radius)}
.gTile{
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
}

.list{margin:0; padding-left: 18px; color: rgba(17,24,39,.85)}
.list li{margin: 8px 0}

.notice{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(56,189,248,.25);
  background: rgba(56,189,248,.07);
  color: rgba(17,24,39,.84);
}

.footer{
  border-top:1px solid var(--line);
  padding:18px 0 28px;
  color: rgba(75,85,99,.92);
  font-size: 13.5px;
  background: linear-gradient(180deg, rgba(246,231,193,.20), rgba(255,255,255,0));
  
  margin-top:auto;
  flex-shrink:0;
}
.footerRow{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  flex-wrap:wrap;
}
.footer a{color: rgba(17,24,39,.86); text-decoration:none}
.footer a:hover{text-decoration:underline}

.form{display:grid; gap:10px}
.input, textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.96);
  color: var(--text);
  padding: 11px 12px;
  outline:none;
}
.input:focus, textarea:focus{border-color: rgba(45,212,191,.55); box-shadow: 0 0 0 4px rgba(45,212,191,.18)}
textarea{min-height:120px; resize:vertical}
.label{font-size:13px; color: rgba(75,85,99,.95)}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (max-width: 900px){.row2{grid-template-columns:1fr}}

.small{font-size:12.5px; color: rgba(75,85,99,.95)}
.hr{height:1px; background: var(--line); margin:12px 0}

/* Kleine "Urlaubs"-Details */
.iconline{display:flex; gap:10px; align-items:flex-start}
.icon{
  width:28px;height:28px;border-radius:10px;
  background: rgba(45,212,191,.14);
  border:1px solid rgba(45,212,191,.24);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
  margin-top:2px;
}
.icon svg{width:16px;height:16px;opacity:.8}

.anchor{scroll-margin-top:86px}


/* Anchor offset for fixed/sticky header */
/* Smooth scrolling for in-page navigation */
html { scroll-behavior: smooth; }

/* Prevent anchor targets from being hidden behind the header */
:target { scroll-margin-top: 96px; }

/* Explicit start-page anchors */
#urlaubsgefuehl, #galerie, #ablauf, #fakten { scroll-margin-top: 96px; }



html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure the main content area grows to push the footer down */
main{ flex: 1 0 auto; }
/* Header-Logo: feste Höhe, damit der Header nicht "aufbläht" */
.brandLogo{
  height:42px;
  width:auto;
  display:block;
}

/* Eigene Fehlermeldungen unter Feldern (rot) */
.field-error{
  display:none;
  font-size:13px;
  margin-top:4px;
  color:#dc2626;
}

/* Fehlermeldungen erst nach Submit anzeigen */
form.was-validated input:invalid + .field-error,
form.was-validated textarea:invalid + .field-error{
  display:block;
}
/* FAQ TOC layout: text left, image right inside blue box */
.faq-toc-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
  align-items:start;
}
.faq-toc-image img{
  width:100%;
  height:auto;
  display:block;
  margin-top:28px;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
@media (max-width: 900px){
  .faq-toc-grid{
    grid-template-columns: 1fr;
  }
}


/* Mobile-Fix: Submit-Button Textfarbe schwarz wie Desktop */
@media (max-width: 900px){
  .btnPrimary{
    color: #111827;
  }
}


/* Mobile-Fix: Date-Felder dürfen nicht über den Container hinausgehen */
@media (max-width: 900px){
  input[type="date"]{
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .row2 > div{
    min-width: 0;
  }
}


/* === OVERRIDE FIX: Date-Inputs (Mobile/Tablet) – gleiche Höhe wie andere .input Felder ===
   Problem: Einige Browser (v. a. iOS/iPadOS WebKit) rendern input[type=date] sichtbar niedriger bis Fokus.
   Lösung: Auf Touch-Geräten eine feste Control-Höhe setzen, die zur Höhe der anderen .input Felder passt,
   plus vertikale Zentrierung des internen Value-Containers.
*/
input[type="date"].input{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

/* Touch-Geräte: konsistente Feldhöhe (Mobile + Tablet) */
@media (hover: none) and (pointer: coarse){
  input[type="date"].input{
    /* entspricht optisch der Höhe der anderen Inputs (Padding 11/12) */
    height:46px;
    padding:0 12px;      /* horizontal wie .input */
    line-height:46px;    /* vertikal zentriert */
  }

  /* WebKit: inneren Wert-Container auf gleiche Höhe zwingen */
  input[type="date"].input::-webkit-date-and-time-value{
    padding:0;
    margin:0;
    line-height:46px;
    min-height:46px;
    display:flex;
    align-items:center;
  }
}

/* iOS/iPadOS zusätzlich: native Appearance neutralisieren */
@supports (-webkit-touch-callout: none) {
  input[type="date"].input{
    -webkit-appearance:none;
    appearance:none;
  }
}


/* === FINAL BUTTON FIX: immer schwarze Schrift + immer Standardschriftart (alle Geräte, inkl. iPad) === */
button,
.btn,
.btnPrimary {
  font: inherit;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}


/* === Galerie Lightbox === */
.lightbox-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}
.lightbox-backdrop.active{display:flex;}
.lightbox{
  max-width:90vw;
  max-height:90vh;
  background:#000;
  border-radius:14px;
  overflow:hidden;
  position:relative;
}
.lightbox img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.lightbox-close{
  position:absolute;
  top:10px; right:10px;
  background: rgba(255,255,255,.85);
  border:none;
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  font-size:14px;
}
.gallery-more{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  cursor:pointer;
}


/* === FIX: Galerie-Sidecards (Innenbilder) ohne weißen Rest unten === */
.gSide .gTile{
  padding:0 !important;
  height:160px;                 /* gleiche Kachelhöhe wie vorgesehen */
  display:flex;
  align-items:stretch;
  overflow:hidden;
}
.gSide .gTile img{
  width:100%;
  height:100% !important;       /* Bild füllt die Card */
  object-fit:cover;
  display:block;
  border-radius:0 !important;   /* Radius kommt von der Card */
}
/* Button-Kachel optisch zentrieren */
.gSide .gallery-more{
  height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* === FIX: Lightbox (kein Abschneiden + Navigation klickbar) === */
.lightbox-backdrop{
  overflow:auto;
}
.lightbox{
  width:min(92vw, 1100px);
  height:min(92vh, 720px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}


/* === UPDATE: Startseite Galerie – Innenbilder sichtbar größer (Cards bleiben groß, Bilder füllen sie) === */
:root{
  --gSideTileH: 220px; /* sichtbar größer als vorher (160px) */
}

.gSide{
  grid-auto-rows: var(--gSideTileH);
}

.gSide .gTile{
  height: var(--gSideTileH) !important;
  padding:0 !important;
  overflow:hidden;
  display:flex;
  align-items:stretch;
}

.gSide .gTile img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
  border-radius:0 !important;
}

/* "Alle Fotos ansehen" mittig in der gleich hohen Kachel */
.gSide .gallery-more{
  height: var(--gSideTileH) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center;
  padding: 0 14px;
}

/* Etwas kleiner auf sehr kleinen Screens */
@media (max-width: 480px){
  :root{ --gSideTileH: 200px; }
}


/* === Lightbox Navigation Buttons links/rechts am Bild === */
.lightbox-prev,
.lightbox-next{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border:none;
  border-radius:999px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:26px;
  line-height:1;
  z-index:5;
}
.lightbox-prev{ left:12px; }
.lightbox-next{ right:12px; }

.lightbox-prev:hover,
.lightbox-next:hover{
  background:#ffffff;
}


/* === Lightbox Fix: schwarzer Rand links entfernen + Hintergrund weiß === */
.lightbox-backdrop{
  background: rgba(0,0,0,.75); /* Overlay bleibt dunkel */
}

.lightbox{
  background:#ffffff !important; /* Hintergrund der Bildfläche weiß */
}

.lightbox img{
  background:#ffffff !important; /* verhindert schwarze Ränder bei Hochkantbildern */
  display:block;
}


/* === HARD FIX: keinerlei Rahmen oben/unten/links/rechts in der Lightbox === */
/* Die weiße Fläche kommt von der .lightbox-Box. Wir machen sie transparent
   und lassen nur noch das Bild selbst den verfügbaren Platz füllen. */

.lightbox{
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lightbox img#lightboxImg{
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}


/* === FINAL: Lightbox Buttons mit weißem Hintergrund === */
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  background:#ffffff !important;
  color:#000000 !important;
  border:none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
  background:#f2f2f2 !important;
}


/* === Lightbox: Schließen-Button noch weiter nach unten schieben === */
.lightbox-close{
  top: 48px !important; /* weiter nach unten */
}



/* Konditionen: Preis + Link rechts untereinander */
.kvRight{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 6px;
}
/* "Alle Details" wie Galerie-Link, aber ohne eigene Zentrierung */
.kvRight .detailsMore{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  padding: 0;
}


/* === Konditionen Details Overlay === */
.details-backdrop{
  padding: 18px;
  z-index: 1000; /* über der Galerie */
}
.detailsbox{
  position: relative;
  width: min(92vw, 720px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.detailsbox h2{
  margin: 6px 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

/* Link "Alle Details" optisch wie Galerie-Trigger */
.detailsMore{
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  line-height: 1.1;
  opacity: .95;
}
.detailsMore:hover{opacity:.92}


/* === FIX: Lightbox Pfeil-Icon Zentrierung (‹ ›) === */
.lightbox-prev .lbIcon,
.lightbox-next .lbIcon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  line-height:1;
  margin:0;
  padding:0;
  transform: translateY(-2px); /* optische Zentrierung trotz Font-Metrik */
}


/* Details-Overlay: visuelle Abschnittstrennung */
.details-section{margin-top:6px}
.details-section .iconline{margin-bottom:6px}
.details-section .icon{
  font-weight:700;
  font-size:14px;
}


/* === Details-Overlay: Abstand unter letzter KV-Zeile (z. B. "Rauchen nicht erlaubt") angleichen === */
.detailsbox .details-section .kv:last-child{
  padding-bottom: 6px; /* etwas weniger Luft nach unten als Standard (10px) */
}
.detailsbox .details-section + .hr{
  margin-top: 6px; /* HR näher an die letzte KV-Zeile rücken */
}

/* === DATE INPUT TYPO FIX: Schriftart/-größe/-farbe wie andere Felder (browser- und geräteübergreifend) === */
/* Grundsätzlich: alle Form-Controls sollen die globale Typografie erben */
input.input,
textarea,
select{
  font: inherit;
  font-size: 1em;
  letter-spacing: inherit;
  -webkit-text-size-adjust: 100%;
}

/* Date-Inputs: Native UI überschreibt oft Font/Color – wir setzen explizit */
input[type="date"].input{
  font: inherit;
  font-size: 1em;
  color: var(--text);
  -webkit-text-fill-color: var(--text); /* iOS Safari */
}

/* Wenn leer (required => :invalid), wirkt der "vorgelegte" Datums-Text wie Placeholder */
input[type="date"].input:invalid{
  color: rgba(75,85,99,.75);
  -webkit-text-fill-color: rgba(75,85,99,.75);
}
input[type="date"].input:focus{
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

/* WebKit: interne Date-Edit-Teile typografisch angleichen (Safari/Chrome iOS/macOS) */
input[type="date"].input::-webkit-datetime-edit,
input[type="date"].input::-webkit-datetime-edit-text,
input[type="date"].input::-webkit-datetime-edit-month-field,
input[type="date"].input::-webkit-datetime-edit-day-field,
input[type="date"].input::-webkit-datetime-edit-year-field{
  font: inherit;
  font-size: 1em;
  line-height: inherit;
}

/* Optional: Kalender-Icon farblich neutral halten */
input[type="date"].input::-webkit-calendar-picker-indicator{
  opacity: .85;
  cursor: pointer;
}

/* === UPDATE: Mehr Abstand vor Überschriften im Konditionen-Overlay === */
.detailsbox .details-section{
  margin-top: 22px; /* deutlich mehr Abstand vor jedem Abschnitt */
}

.detailsbox .details-section:first-of-type{
  margin-top: 10px; /* erster Block etwas kompakter */
}

.detailsbox .details-section .iconline{
  margin-bottom: 10px; /* mehr Luft unter Überschriftzeile */
}
