/* ================================================
   FERIEN IN DIERHAGEN – Design System
   Ästhetik: Natürlich & Strandnah · Ostsee-Feeling
   ================================================ */

/* ----------------------------------------
   CUSTOM PROPERTIES
---------------------------------------- */
:root {
  /* Farbpalette – Ostsee */
  --sea-deep:   #1E4A6B;   /* Tiefes Ostseblau */
  --sea-mid:    #2E7CAA;   /* Mittleres Meer */
  --sea-light:  #A8D4E8;   /* Helles Morgenmeer */
  --sky:        #C8DFF0;   /* Ostsee-Himmel */
  --foam:       #F7F3ED;   /* Meeresschaum / Hintergrund */
  --sand:       #E8D5B0;   /* Trockener Sand */
  --dune:       #C9B99A;   /* Düne */
  --reed:       #7A8C6E;   /* Schilf / Grün */
  --rust:       #C4734A;   /* Terrakotta / Akzent */
  --dark:       #1A2733;   /* Fast Schwarz */
  --text:       #2C3E50;   /* Haupttext */
  --text-muted: #5A6E7F;   /* Gedämpfter Text */
  --white:      #FFFFFF;

  /* Typografie */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Abstände */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Radien */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Schatten */
  --shadow-xs: 0 1px 4px rgba(30, 74, 107, 0.07);
  --shadow-sm: 0 2px 12px rgba(30, 74, 107, 0.09);
  --shadow-md: 0 8px 32px rgba(30, 74, 107, 0.12);
  --shadow-lg: 0 20px 60px rgba(30, 74, 107, 0.15);

  /* Übergänge */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  /* Layout */
  --container-max: 1200px;
  --nav-height:    72px;
}

/* ----------------------------------------
   RESET & BASE
---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--foam);
  overflow-x: hidden;
}

img, video, iframe, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sea-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--sea-deep);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Fokus-Stile für Accessibility */
:focus-visible {
  outline: 3px solid var(--sea-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------
   CONTAINER & LAYOUT
---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

/* ----------------------------------------
   TYPOGRAFIE
---------------------------------------- */
.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin-bottom: var(--space-xs);
}

.section__eyebrow--center {
  text-align: center;
}

.section__eyebrow--light {
  color: var(--sea-light);
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.section__heading em {
  font-style: italic;
  color: var(--sea-mid);
}

.section__heading--center {
  text-align: center;
  margin-inline: auto;
}

.section__heading--light {
  color: var(--white);
}

/* ----------------------------------------
   BUTTONS
---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--sea-deep);
  color: var(--white);
  border-color: var(--sea-deep);
  box-shadow: 0 4px 20px rgba(30, 74, 107, 0.3);
}

.btn--primary:hover {
  background: var(--sea-mid);
  border-color: var(--sea-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 74, 107, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--sea-deep);
  border-color: var(--sea-deep);
}

.btn--outline:hover {
  background: var(--sea-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--send svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----------------------------------------
   NAVIGATION
---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(247, 243, 237, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.nav--scrolled .nav__logo {
  color: var(--sea-deep);
}

.nav__logo-wave {
  width: 32px;
  height: 20px;
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav--scrolled .nav__link {
  color: var(--text);
}

.nav--scrolled .nav__link:hover {
  color: var(--sea-deep);
  background: rgba(30, 74, 107, 0.07);
}

.nav__link--cta {
  background: var(--sea-deep);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-xl);
  margin-left: var(--space-xs);
}

.nav__link--cta:hover {
  background: var(--sea-mid) !important;
  transform: translateY(-1px);
}

.nav--scrolled .nav__link--cta {
  background: var(--sea-deep);
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav--scrolled .nav__toggle:hover {
  background: rgba(30, 74, 107, 0.07);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav--scrolled .nav__toggle-bar {
  background: var(--dark);
}

/* Mobile nav open state */
.nav__toggle.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.is-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   HERO
---------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hintergrund – Ostsee-Gradient */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    #7BBCD5 0%,
    #A8D4E8 60%,
    #C8DFF0 100%
  );
}

.hero__horizon {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(
    180deg,
    #C8DFF0 0%,
    #5A9EC4 40%,
    #2E7CAA 100%
  );
  filter: blur(2px);
}

.hero__sea {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    #2E7CAA 0%,
    #1E4A6B 60%,
    #162E44 100%
  );
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(30,74,107,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--nav-height) var(--space-md) 8rem;
  max-width: 760px;
  animation: heroReveal 1.1s var(--ease-out) both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(30, 74, 107, 0.6);
  margin-bottom: var(--space-sm);
  animation: heroReveal 1.1s 0.1s var(--ease-out) both;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-sm);
  animation: heroReveal 1.1s 0.2s var(--ease-out) both;
}

.hero__heading em {
  font-style: italic;
  color: var(--sand);
  text-shadow: 0 1px 8px rgba(30, 74, 107, 0.6), 0 2px 20px rgba(30, 74, 107, 0.4);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-md);
  animation: heroReveal 1.1s 0.3s var(--ease-out) both;
}

.hero__br {
  display: none;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  animation: heroReveal 1.1s 0.4s var(--ease-out) both;
}

.hero__badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroReveal 1.1s 0.5s var(--ease-out) both;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-xl);
}

/* Wave SVG am Hero-Boden */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 120px;
}

.wave__path {
  animation: waveFloat 6s ease-in-out infinite;
}

.wave__path--2 {
  animation: waveFloat 6s 1.5s ease-in-out infinite;
}

@keyframes waveFloat {
  0%, 100% { d: path("M0,60 C180,100 360,20 540,60 C720,100 900,20 1080,60 C1260,100 1380,40 1440,55 L1440,120 L0,120 Z"); }
  50%       { d: path("M0,70 C180,30 360,110 540,70 C720,30 900,110 1080,70 C1260,30 1380,80 1440,65 L1440,120 L0,120 Z"); }
}

/* ----------------------------------------
   APARTMENT SECTION
---------------------------------------- */
.apartment {
  background: var(--foam);
}

.apartment__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.apartment__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-size: 1.02rem;
}

.apartment__facts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--sea-light);
}

.apartment__facts li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.fact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--sky);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--sea-deep);
}

.fact__icon svg {
  width: 14px;
  height: 14px;
}

/* Bild-Frame */
.apartment__visual {
  position: relative;
}

.apartment__img-frame {
  position: relative;
}

.apartment__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.apartment__img-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.apartment__img-placeholder svg {
  width: 100%;
  height: 100%;
}

/* Dekorativer Rahmen hinter dem Bild */
.apartment__img-deco {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 2px solid var(--sand);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ----------------------------------------
   AMENITIES SECTION
---------------------------------------- */
.amenities {
  background: var(--white);
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.amenity-card {
  padding: var(--space-md) var(--space-sm);
  background: var(--foam);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.amenity-card:hover {
  background: var(--white);
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.amenity-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(135deg, var(--sky) 0%, var(--sea-light) 100%);
  border-radius: 50%;
  color: var(--sea-deep);
}

.amenity-card__icon svg {
  width: 24px;
  height: 24px;
}

.amenity-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.amenity-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------
   GALLERY SECTION
---------------------------------------- */
.gallery {
  background: var(--foam);
  padding-bottom: var(--space-md);
}

.gallery__header {
  margin-bottom: var(--space-lg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-xs);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  grid-column: span 4;
}

.gallery__item--large {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 8;
}

.gallery__img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover .gallery__img-wrap img {
  transform: scale(1.05);
}

/* Farbige Platzhalter */
.gallery__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ph-from, #1E4A6B), var(--ph-to, #A8D4E8));
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover .gallery__placeholder {
  transform: scale(1.04);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(transparent, rgba(30, 74, 107, 0.7));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: var(--space-md);
  padding: 0.6rem var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--dune);
  max-width: 480px;
  margin-inline: auto;
}

/* ----------------------------------------
   LOCATION SECTION
---------------------------------------- */
.location {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--sea-deep) 0%,
    var(--sea-mid) 50%,
    var(--sea-deep) 100%
  );
  padding-block: 0;
  overflow: hidden;
}

.location__wave-top,
.location__wave-bottom {
  width: 100%;
  line-height: 0;
}

.location__wave-top svg,
.location__wave-bottom svg {
  width: 100%;
  height: 80px;
}

.location__inner {
  padding-block: var(--space-xl);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.location__desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  margin-bottom: var(--space-md);
}

.location__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.location__highlights li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.location__highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 0.7rem;
  flex-shrink: 0;
  color: var(--sand);
  font-weight: 700;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.location__map iframe {
  display: block;
  width: 100%;
  height: 380px;
}

.location__map-credit {
  margin-top: 0.5rem;
  text-align: right;
}

.location__map-credit a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  transition: color var(--transition);
}

.location__map-credit a:hover {
  color: var(--white);
}

/* ----------------------------------------
   PRICES SECTION
---------------------------------------- */
.prices {
  background: var(--foam);
}

.prices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: start;
}

.prices__subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

/* Preistabelle */
.prices__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-sm);
}

.prices__table thead {
  background: var(--sea-deep);
  color: var(--white);
}

.prices__table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prices__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--foam);
  color: var(--text);
}

.prices__table tbody tr:last-child td {
  border-bottom: none;
}

.prices__table tbody tr:hover {
  background: var(--foam);
}

.prices__row--highlight td {
  background: rgba(46, 124, 170, 0.06);
  font-weight: 600;
}

.prices__price {
  font-weight: 700;
  color: var(--sea-deep);
  white-space: nowrap;
}

.prices__price--special {
  color: var(--rust);
}

.prices__notes {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--sand);
}

.prices__notes li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-left: 0.5rem;
}

.prices__notes li::before {
  content: '✓ ';
  color: var(--reed);
  font-weight: 700;
}

/* Kalender-Widget */

/* ----------------------------------------
   CONTACT SECTION
---------------------------------------- */
.contact {
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 1.02rem;
}

.contact__details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact__detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.contact__detail-item a {
  color: var(--sea-mid);
  font-weight: 600;
}

.contact__detail-item a:hover {
  color: var(--sea-deep);
}

.contact__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--foam);
  border-radius: 50%;
  color: var(--sea-deep);
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 16px;
  height: 16px;
}

/* Formular */
.contact__form-wrap {
  background: var(--foam);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form__required {
  color: var(--rust);
}

.form__input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--dune);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus {
  outline: none;
  border-color: var(--sea-mid);
  box-shadow: 0 0 0 3px rgba(46, 124, 170, 0.15);
}

.form__input::placeholder {
  color: var(--dune);
}

.form__textarea {
  resize: vertical;
  min-height: 110px;
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%235A6E7F' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* Datenschutz-Checkbox */
.form__group--privacy {
  margin-top: var(--space-xs);
}

.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form__checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--dune);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all var(--transition);
  margin-top: 1px;
}

.form__checkbox:checked + .form__checkbox-custom {
  background: var(--sea-deep);
  border-color: var(--sea-deep);
}

.form__checkbox:checked + .form__checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.form__checkbox-label a {
  color: var(--sea-mid);
  text-decoration: underline;
}

.form__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.form__success {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: var(--space-sm);
  background: rgba(122, 140, 110, 0.12);
  border: 1px solid var(--reed);
  border-radius: var(--radius-md);
  color: var(--reed);
  font-size: 0.9rem;
  font-weight: 600;
}

.form__success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--reed);
}

.form__success[hidden] {
  display: none;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-xl) var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-md);
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--sea-light);
  margin-bottom: var(--space-sm);
}

.footer__address {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer__nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-sm);
}

.footer__nav ul,
.footer__legal-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a,
.footer__legal-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
  text-decoration: none;
}

.footer__nav a:hover,
.footer__legal-nav a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__ostsee {
  color: var(--rust);
}

/* ----------------------------------------
   SCROLL-TO-TOP BUTTON
---------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--sea-deep);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--sea-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------
   SCROLL ANIMATIONS
---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   RESPONSIVE – TABLET (max 1024px)
---------------------------------------- */
@media (max-width: 1024px) {
  .apartment__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .apartment__visual {
    display: none;
  }

  .location__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .prices__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------------------
   RESPONSIVE – MOBILE (max 768px)
---------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-xl:  4rem;
    --space-lg:  3rem;
  }

  /* Mobile Navigation */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(247, 243, 237, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
    pointer-events: none;
    border-bottom: 1px solid var(--sand);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--text) !important;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Hero */
  .hero__br {
    display: block;
  }

  .hero__heading {
    font-size: 2.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Galerie */
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    padding-inline: var(--space-sm);
  }

  .gallery__item {
    grid-column: span 1;
  }

  .gallery__item--large,
  .gallery__item--wide {
    grid-column: span 2;
  }

  /* Preise */
  .prices__table th,
  .prices__table td {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }

  /* Formular */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Amenities */
  .amenities__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .amenities__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item--large,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ----------------------------------------
   REVIEWS SECTION
---------------------------------------- */
.reviews {
  background: var(--white);
  padding-block: var(--space-xl);
}

.reviews__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-card {
  background: var(--foam);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 3px solid var(--sand);
}

.review-card__stars {
  font-size: 1.3rem;
  color: #C59021;
  letter-spacing: 2px;
}

.review-card__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.review-card__footer {
  margin-top: auto;
}

.review-card__source {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-card__source a {
  color: var(--sea-mid);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.review-card__source a:hover {
  text-decoration-color: var(--sea-mid);
}

.reviews__cta-note {
  text-align: center;
  margin-top: var(--space-sm);
}

.reviews__link {
  color: var(--sea-mid);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.reviews__link:hover {
  text-decoration-color: var(--sea-mid);
}

@media (max-width: 640px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   LIGHTBOX
   (zuvor via JavaScript injiziert)
---------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 39, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.lightbox__figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__figure figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

/* ----------------------------------------
   NAV SCROLLSPY – aktiver Link
   (zuvor via JavaScript injiziert)
---------------------------------------- */

.nav__link--active {
  color: var(--sea-light) !important;
}

.nav--scrolled .nav__link--active {
  color: var(--sea-deep) !important;
}

/* ----------------------------------------
   REVEAL-ANIMATIONEN – gestaffelte Verzögerung
   via CSS Custom Property --reveal-delay
   (gesetzt vom JavaScript)
---------------------------------------- */

.reveal {
  transition-delay: var(--reveal-delay, 0s);
}

/* ----------------------------------------
   CONTACT FORM 7 – Theme-Integration
   Überschreibt CF7-Standard-Styles mit
   dem Design-System des Themes.
---------------------------------------- */

/* Fehlermeldungen */
.wpcf7-not-valid-tip {
  color: var(--rust);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  display: block;
}

/* Validation-Feedback auf Input-Ebene */
.wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--rust) !important;
  box-shadow: 0 0 0 3px rgba(196, 115, 74, 0.15) !important;
}

/* Lade-Spinner */
.wpcf7 .ajax-loader {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Erfolgs- und Fehlermeldungen */
.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background: rgba(122, 140, 110, 0.12) !important;
  color: var(--reed) !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: rgba(196, 115, 74, 0.1) !important;
  color: var(--rust) !important;
}

.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: rgba(196, 115, 74, 0.08) !important;
  color: var(--rust) !important;
}

/* CF7-Einrichtungs-Hinweisbox (wird nach Einrichtung nicht mehr angezeigt) */
.cf7-notice {
  background: var(--sand);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.cf7-notice a {
  color: var(--sea-mid);
  font-weight: 600;
}

/* CF7 Formularlayout */
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.cf7-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

/* Labels */
.wpcf7 label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Text-, E-Mail-, Datum-, Zahl-Felder */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--dune);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--sea-mid);
  box-shadow: 0 0 0 3px rgba(46, 124, 170, 0.15);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--dune);
}

.wpcf7 textarea {
  resize: vertical;
  min-height: 110px;
}

/* Acceptance / Datenschutz-Checkbox */
.wpcf7 .wpcf7-acceptance {
  margin-top: var(--space-xs);
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sea-deep);
  cursor: pointer;
}

/* Submit-Button */
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sea-deep);
  color: var(--white);
  border: 2px solid var(--sea-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--sea-mid);
  border-color: var(--sea-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 74, 107, 0.35);
}

@media (max-width: 600px) {
  .cf7-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   PRINT
---------------------------------------- */
@media print {
  .nav,
  .scroll-top,
  .hero__wave,
  .location__wave-top,
  .location__wave-bottom {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
    background: none;
    color: var(--dark);
  }

  .hero__content {
    padding: 0;
  }

  .hero__heading,
  .section__heading--light {
    color: var(--dark);
  }

  .location {
    background: none;
    color: var(--dark);
  }

  .section__eyebrow--light,
  .location__desc,
  .location__highlights li {
    color: var(--text);
  }
}


/* ============================================================
   CONTENT-SEITEN (Impressum, Datenschutz, etc.)
   page.php – page-header + page-content
============================================================ */

/* --- Page Header (Mini-Hero) -------------------------------- */

.page-header {
  position: relative;
  background: var(--sea-deep);
  padding: calc(var(--nav-height) + 3.5rem) 0 0;
  overflow: hidden;
}

.page-header__inner {
  padding-bottom: 3rem;
  text-align: center;
}

.page-header__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sea-light);
  margin-bottom: 0.75rem;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.page-header__wave {
  display: block;
  line-height: 0;
}

.page-header__wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* --- Page Content ------------------------------------------ */

.page-content {
  background: var(--foam);
  padding: 3rem 0 5rem;
}

.page-content__inner {
  max-width: 780px;
}

/* --- Page Article (Gutenberg-Inhalte) ---------------------- */

.page-article__body {
  color: var(--text);
  line-height: 1.85;
}

.page-article__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--sea-deep);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sea-light);
}

.page-article__body h2:first-child {
  margin-top: 0;
}

.page-article__body h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 0.5rem;
}

.page-article__body p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.page-article__body strong {
  color: var(--text);
  font-weight: 600;
}

.page-article__body a {
  color: var(--sea-mid);
  text-decoration: underline;
  text-decoration-color: var(--sea-light);
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.page-article__body a:hover {
  color: var(--sea-deep);
}

.page-article__body ul,
.page-article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.page-article__body li {
  margin-bottom: 0.4rem;
}

.page-article__body hr {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 2.5rem 0;
}

/* --- Zurück-Button ----------------------------------------- */

.page-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
}

/* --- Print-Optimierung ------------------------------------- */

@media print {
  .page-header {
    background: none;
    padding-top: 1rem;
  }
  .page-header__eyebrow { color: var(--text-muted); }
  .page-header__title   { color: var(--dark); }
  .page-header__wave    { display: none; }
  .nav, .footer, .scroll-top, .page-back { display: none; }
}

/* --- Flatpickr – Buchungskalender im Ostsee-Design ---------- */

/* Wrapper im CF7-Formular */
.cf7-calendar-wrap {
  margin-bottom: 1.25rem;
}

.cf7-calendar-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--text);
}

.cf7-calendar-info {
  font-size: 0.9rem;
  color: var(--sea-mid);
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  background: rgba(46, 124, 170, 0.1);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.cf7-calendar-error {
  font-size: 0.9rem;
  color: var(--rust);
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  background: rgba(196, 115, 74, 0.1);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}


/* Flatpickr-Container: volle Breite */
#dierhagen-calendar-container .flatpickr-calendar {
  width: 100% !important;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sky);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* Monatsleiste */
#dierhagen-calendar-container .flatpickr-months {
  background: var(--sea-mid);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0.25rem 0;
}

/* Vendor-CSS setzt height:34px + overflow:hidden – beides überschreiben */
#dierhagen-calendar-container .flatpickr-months .flatpickr-month {
  height: auto !important;
  min-height: 46px;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vendor-CSS setzt position:absolute + transform + height:34px – alles zurücksetzen */
#dierhagen-calendar-container .flatpickr-current-month {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto !important;
  height: auto !important;
  left: auto !important;
  padding: 6px 0 !important;
  transform: none !important;
}

#dierhagen-calendar-container .flatpickr-month,
#dierhagen-calendar-container .flatpickr-current-month,
#dierhagen-calendar-container .flatpickr-current-month .numInputWrapper,
#dierhagen-calendar-container .flatpickr-current-month .cur-month {
  color: var(--white) !important;
  fill: var(--white);
}

#dierhagen-calendar-container .flatpickr-current-month input.cur-year {
  color: var(--white);
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--white);
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

/* Wochentag-Kopfzeile */
.flatpickr-weekdays {
  background: var(--sea-mid);
}

span.flatpickr-weekday {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Einzelne Tage */
.flatpickr-day {
  border-radius: var(--radius-sm);
  color: var(--text);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--sky);
  border-color: var(--sky);
}

/* Ausgewählte Tage (Start + Ende) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: var(--sea-mid);
  border-color: var(--sea-mid);
  color: var(--white);
}

/* Tage im gewählten Zeitraum */
.flatpickr-day.inRange {
  background: rgba(168, 212, 232, 0.5);
  border-color: rgba(168, 212, 232, 0.5);
  box-shadow: -5px 0 0 rgba(168, 212, 232, 0.5), 5px 0 0 rgba(168, 212, 232, 0.5);
  color: var(--text);
}

/* Belegte / deaktivierte Tage */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  background: none;
  color: var(--text-muted);
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Heutiger Tag */
.flatpickr-day.today {
  border-color: var(--sea-mid);
}

.flatpickr-day.today:hover {
  background: var(--sea-mid);
  border-color: var(--sea-mid);
  color: var(--white);
}

/* --- Utility: Screenreader-only ----------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
