/* ================================================================
   Meine perfekte Urlaubswoche – Das Wangerland
   v4: Wangerland-Brand #335381 · Akzent #E84520 · Fredericka
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Design-Tokens ───────────────────────────────────────────── */
:root {
  /* Brand */
  --c-primary:     #335381;   /* Wangerland-Blau */
  --c-primary-dk:  #253f64;   /* hover-dunkel */
  --c-accent:      #E84520;   /* Rot-Orange Akzent */
  --c-accent-dk:   #c4381a;   /* hover */

  /* Neutrals */
  --c-ink:         #1e2a35;
  --c-ink-mid:     #4a5a68;
  --c-ink-soft:    #8a9aaa;
  --c-sand:        #f0ebe1;
  --c-sand-warm:   #e0d8cc;
  --c-paper:       #fafaf8;
  --c-white:       #ffffff;

  /* Typo */
  --f-display: 'Fredericka the Great', Georgia, serif;
  --f-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Abstände */
  --sp-xs:  .375rem;
  --sp-sm:  .75rem;
  --sp-md:  1.25rem;
  --sp-lg:  2rem;
  --sp-xl:  3rem;
  --sp-2xl: 5rem;

  /* Borders */
  --br-fine:   1px solid rgba(30,42,53,.1);
  --br-medium: 1px solid rgba(30,42,53,.18);
  --r-sm: 2px;

  /* Maße */
  --nav-h:         64px;
  --footer-nav-h:  60px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-sand);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Platz für feste Footer-Nav */
  padding-bottom: var(--footer-nav-h);
}
/* Signage & Admin brauchen keine Footer-Nav */
body.signage-mode,
body.no-footer-nav { padding-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .18s; }
a:hover { color: var(--c-accent); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--c-ink);
}

/* ─────────────────────────────────────────────────────────────
   HEADER / NAVIGATION
───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 300;
  height: var(--nav-h);
  background: var(--c-primary);
  display: flex; align-items: center;
  padding: 0 var(--sp-lg);
  gap: var(--sp-lg);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}

/* Spacer zwischen Logo und Burger */
.header-spacer { flex: 1; }

/* ── Hamburger-Button ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background .15s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.12); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
/* Hamburger → X (wenn offen) */
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Drawer-Overlay ── */
.nav-drawer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 290;
  background: rgba(30,42,53,.45);
  backdrop-filter: blur(2px);
}
.nav-drawer-overlay.is-open { display: block; }

/* ── Drawer ── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: var(--c-primary);
  z-index: 295;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.25);
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
  height: var(--nav-h);
  flex-shrink: 0;
}
.nav-drawer-title {
  font-family: var(--f-display);
  font-size: 1rem; color: rgba(255,255,255,.75);
}
.nav-drawer-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.65); font-size: 1.4rem; line-height: 1;
  padding: .25rem .5rem; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-drawer-close:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav-drawer-list {
  list-style: none;
  padding: var(--sp-md) 0;
  overflow-y: auto; flex: 1;
}
.nav-drawer-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--sp-lg);
  color: rgba(255,255,255,.75);
  font-size: .9rem; font-weight: 400;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-drawer-list li a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.nav-drawer-list li a.active {
  color: #fff;
  border-left-color: var(--c-accent);
  background: rgba(255,255,255,.06);
}
.nav-drawer-list li a .nav-date {
  font-size: .75rem; color: rgba(255,255,255,.4);
}
.nav-drawer-list li a.active .nav-date { color: rgba(255,255,255,.6); }

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.day-hero {
  position: relative;
  min-height: 380px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--c-primary);
}

/* Küsten-Fallback-Bild */
.day-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80');
  background-size: cover; background-position: center 40%;
  opacity: .3;
  pointer-events: none;
}

.day-hero-bg-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .38; z-index: 1;
}

/* Gradient-Dimmer – weißes Overlay statt blau */
.day-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.70) 50%,
    rgba(255,255,255,.20) 100%
  );
}

.day-hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1140px;
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

/* Obere Zeile: Titel + Wetter nebeneinander, untenbündig */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.hero-title-col { flex: 1; min-width: 0; }

.day-label {
  font-family: var(--f-body);
  font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(30,42,53,.5);
  margin-bottom: var(--sp-sm);
}
.day-label strong { color: var(--c-accent); letter-spacing: .22em; }

/* Alle Überschriften im Hero: #e84520 */
.day-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  color: #e84520;
}

.day-date {
  margin-top: var(--sp-sm);
  font-size: .88rem; font-weight: 300;
  color: rgba(30,42,53,.6); letter-spacing: .03em;
}

/* Wetter-Widget: proportional zur Titelgröße */
.weather-hero {
  flex-shrink: 0;
  text-align: right;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end; /* untenbündig mit dem Titel */
  padding-bottom: .15rem;    /* optische Baseline-Ausrichtung */
}
.weather-hero .wi-emoji {
  /* skaliert proportional: ~60% der Titelgröße */
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  display: block; margin-bottom: .3rem;
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(330deg) brightness(.85);
}
.weather-hero .wi-temp {
  font-family: var(--f-display);
  /* gleiche clamp-Basis wie .day-title, leicht kleiner */
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  color: #e84520; line-height: 1;
}
.weather-hero .wi-text {
  font-size: .76rem; color: var(--c-ink-mid); margin-top: .3rem;
}

/* ── Nordsee-Zitat ── */
.nordsee-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(30,42,53,.65);
  line-height: 1.5;
  letter-spacing: .01em;
  border-left: 2px solid #e84520;
  padding-left: var(--sp-md);
  margin: 0;
  max-width: 680px;
}

/* ─────────────────────────────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────────────────────────────── */
.page-main {
  max-width: 1140px; margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-2xl);
}

/* .day-image-full entfernt */

/* ── Karten-Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--c-sand-warm);
  border: 1px solid var(--c-sand-warm);
  margin-bottom: var(--sp-xl);
  align-items: stretch;
  overflow: visible; /* Datepicker-Kalender darf herausragen */
}
.card {
  background: var(--c-paper);
  padding: var(--sp-xl) var(--sp-lg);
  transition: background .18s;
  display: flex;
  flex-direction: column;
}
.card:hover { background: var(--c-white); }

/* Gezeiten-Karte: Liste füllt verfügbaren Raum */
.card .card-body:has(.tide-list) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card .tide-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card .tide-list li {
  flex: 1; /* Gezeiten-Einträge gleichmäßig verteilen */
}

.card-icon { display: flex; align-items: center; margin-bottom: var(--sp-md); }
.card-icon svg {
  width: 20px; height: 20px;
  stroke: #e84520; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.card-title {
  font-family: var(--f-display);
  font-size: 1.2rem; color: var(--c-ink);
  margin-bottom: var(--sp-sm);
}

.card-body {
  font-size: .875rem; line-height: 1.75;
  color: var(--c-ink-mid); white-space: pre-wrap;
}
.card-body:empty::before {
  content: 'Noch keine Informationen eingetragen.';
  color: var(--c-ink-soft); font-style: italic; font-size: .82rem;
}

/* ── Gezeiten ── */
.tide-list { list-style: none; border: var(--br-fine); flex: 1; display: flex; flex-direction: column; }
.tide-list li {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: 1rem var(--sp-sm);
  border-bottom: var(--br-fine); font-size: .84rem;
  transition: background .15s;
  flex: 1; /* gleichmäßig verteilen */
}
.tide-list li:last-child { border-bottom: none; }
.tide-list li:hover { background: var(--c-sand); }
.tide-list li img { width: 22px; height: 22px; object-fit: contain; opacity: .7; flex-shrink: 0; }
.tide-type {
  font-weight: 500; min-width: 2rem;
  font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-accent);
}
.tide-time { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.tide-height { margin-left: auto; color: var(--c-ink-soft); font-size: .76rem; }

/* ── Inline-Pagination (innerhalb Main) ── */
.day-pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--sp-xl); padding-top: var(--sp-lg);
  border-top: var(--br-fine);
}
.day-pagination a, .day-pagination .disabled {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .73rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: var(--r-sm);
  border: var(--br-medium);
}
.day-pagination a { color: var(--c-primary); transition: background .18s, color .18s, border-color .18s; }
.day-pagination a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.day-pagination .disabled { color: var(--c-ink-soft); border-color: rgba(30,42,53,.07); opacity: .45; }
.day-pagination .page-info { font-size: .76rem; color: var(--c-ink-soft); letter-spacing: .04em; }

/* ─────────────────────────────────────────────────────────────
   FOOTER-NAVIGATION (festgepinnt unten)
───────────────────────────────────────────────────────────── */
.footer-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--footer-nav-h);
  background: var(--c-white);
  border-top: var(--br-medium);
  display: flex; align-items: stretch;
}

.footer-nav-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: 0 var(--sp-lg);
  font-family: var(--f-body);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-ink-mid);
  background: none; border: none; cursor: pointer;
  text-decoration: none;
  transition: color .18s, background .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-nav-btn:hover { color: var(--c-accent); background: rgba(232,69,32,.04); }
.footer-nav-btn.disabled {
  color: var(--c-ink-soft); opacity: .4; pointer-events: none; cursor: default;
}
.footer-nav-btn svg {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Mittelteil: Tages-Dots oder Info */
.footer-nav-center {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: .45rem;
}
.footer-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-sand-warm);
  transition: background .18s, transform .18s;
  flex-shrink: 0;
}
.footer-dot.active {
  background: var(--c-primary);
  transform: scale(1.35);
}

/* ─────────────────────────────────────────────────────────────
   SITE FOOTER (Info-Zeile)
───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,.35);
  text-align: center; padding: var(--sp-lg);
  font-size: .72rem; letter-spacing: .07em;
  border-top: 1px solid rgba(0,0,0,.1);
}
.site-footer a { color: rgba(255,255,255,.35); }
.site-footer a:hover { color: rgba(255,255,255,.7); }

/* ─────────────────────────────────────────────────────────────
   ADMIN
───────────────────────────────────────────────────────────── */
body.admin-body { background: var(--c-sand); padding-bottom: 0; }

.admin-wrap { max-width: 960px; margin: var(--sp-xl) auto; padding: 0 var(--sp-lg) var(--sp-2xl); }
.admin-wrap h1 {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 400; color: var(--c-ink);
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-md); border-bottom: var(--br-fine);
}

.admin-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
  border-bottom: var(--br-medium);
}
.admin-tabs a {
  padding: .6rem 1.1rem; font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-mid);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .18s, border-color .18s;
}
.admin-tabs a:hover { color: var(--c-primary); }
.admin-tabs a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg) var(--sp-xl); }
.field-full { grid-column: 1 / -1; }

label {
  display: block; font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-ink-mid); margin-bottom: .4rem;
}
input[type="text"], input[type="url"], input[type="password"], textarea, input[type="file"] {
  width: 100%; padding: .7rem .9rem;
  border: var(--br-medium); border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: .9rem;
  background: var(--c-white); color: var(--c-ink);
  transition: border-color .18s; outline: none;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
input:focus, textarea:focus { border-color: var(--c-primary); }

.btn {
  background: var(--c-primary); color: #fff;
  border: 2px solid var(--c-primary); border-radius: var(--r-sm);
  padding: .7rem 1.75rem;
  font-family: var(--f-body); font-size: .76rem;
  font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  cursor: pointer; transition: background .18s, color .18s;
}
.btn:hover { background: transparent; color: var(--c-primary); }
.btn-danger { background: transparent; border-color: var(--c-accent); color: var(--c-accent); }
.btn-danger:hover { background: var(--c-accent); color: #fff; }

.alert {
  padding: .85rem 1.1rem; border-left: 3px solid;
  margin-bottom: var(--sp-lg); font-size: .88rem;
}
.alert-success { background: #f0f7f2; border-color: #2d855a; color: #1d5a3a; }
.alert-error   { background: #fdf2f2; border-color: var(--c-accent); color: #7a1a0a; }

/* Login */
.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: var(--c-primary);
}
.login-box {
  background: var(--c-paper); padding: 3rem 2.5rem;
  width: 100%; max-width: 400px;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.login-box img { display: block; margin: 0 auto var(--sp-xl); max-width: 180px; }
.login-box h2 {
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 400;
  color: var(--c-ink); text-align: center;
  margin-bottom: var(--sp-xl);
}
.login-box .field-wrap { margin-bottom: var(--sp-md); }

/* ─────────────────────────────────────────────────────────────
   SWIPE-ANIMATION
───────────────────────────────────────────────────────────── */
.swipe-wrapper { overflow: hidden; }

@keyframes slideInLeft  { from { opacity:0; transform:translateX( 40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
.anim-slide-left  { animation: slideInLeft  .3s cubic-bezier(.25,.46,.45,.94) both; }
.anim-slide-right { animation: slideInRight .3s cubic-bezier(.25,.46,.45,.94) both; }

/* ─────────────────────────────────────────────────────────────
   DIGITAL SIGNAGE
───────────────────────────────────────────────────────────── */
body.signage-mode { background: #0d1e2e; overflow: hidden; padding-bottom: 0; }

.signage-wrap {
  width: 100vw; height: 100vh;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: 48px 1fr;
  background: #0d1e2e;
}

.signage-header {
  grid-column: 1 / -1;
  background: var(--c-primary);
  border-bottom: 1px solid rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
}
.signage-header img { height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.signage-header-title {
  font-family: var(--f-display); font-size: .85rem; color: rgba(255,255,255,.5);
}
.signage-clock {
  font-family: var(--f-body); font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.5); letter-spacing: .06em;
}

.signage-day {
  display: flex; flex-direction: column; overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}
.signage-day:last-child { border-right: none; }

.signage-day-head {
  background: rgba(51,83,129,.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .42rem .55rem; text-align: center; flex-shrink: 0;
}
.signage-day-head.today { background: rgba(232,69,32,.35); }
.signage-day-head .sd-name {
  font-family: var(--f-display); font-size: .82rem;
  color: rgba(255,255,255,.9);
}
.signage-day-head .sd-date {
  font-size: .56rem; color: rgba(255,255,255,.4);
  margin-top: 1px; letter-spacing: .07em;
}

.signage-weather {
  display: flex; align-items: center; gap: .3rem;
  padding: .28rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: rgba(0,0,0,.12); flex-shrink: 0;
}
.signage-weather .sw-emoji { font-size: .95rem; }
.signage-weather .sw-temp { font-family: var(--f-display); font-size: .82rem; color: rgba(255,255,255,.8); }
.signage-weather .sw-desc { font-size: .52rem; color: rgba(255,255,255,.35); margin-left: auto; }

.signage-body {
  flex: 1; overflow: hidden;
  padding: .45rem .5rem; display: flex; flex-direction: column; gap: .28rem;
}
.signage-section-title {
  font-size: .48rem; text-transform: uppercase;
  letter-spacing: .11em; color: rgba(106,160,181,.8);
  font-weight: 500; margin-bottom: .08rem;
}
.signage-section-body {
  font-size: .58rem; line-height: 1.38; color: rgba(255,255,255,.6);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}

.signage-day-image { width: 100%; height: 50px; object-fit: cover; opacity: .35; flex-shrink: 0; }

.signage-tides {
  flex-shrink: 0; padding: .28rem .5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.1);
}
.signage-tide-entry {
  display: flex; align-items: center; gap: .28rem;
  font-size: .54rem; color: rgba(255,255,255,.5);
  padding: .08rem 0; font-variant-numeric: tabular-nums;
}
.signage-tide-entry img { width: 12px; height: 12px; object-fit: contain; opacity: .55; }
.signage-tide-entry .st-type {
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  min-width: 1.4rem; color: rgba(255,255,255,.65);
}
.signage-tide-entry .st-height { margin-left: auto; color: rgba(255,255,255,.3); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0 var(--sp-md); gap: var(--sp-md); }
  .day-hero { min-height: 280px; }
  .page-main { padding: var(--sp-lg) var(--sp-md) var(--sp-xl); }
  .admin-form-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .footer-nav-btn { padding: 0 var(--sp-md); }
  .nordsee-quote { font-size: .95rem; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .day-hero-inner { padding: var(--sp-xl) var(--sp-md) var(--sp-lg); gap: var(--sp-md); }
  .hero-top { gap: var(--sp-md); }
  .weather-hero .wi-emoji { font-size: 1.6rem; }
  .weather-hero .wi-temp  { font-size: clamp(1.4rem, 6vw, 2rem); }
  .nordsee-quote { font-size: .9rem; padding-left: var(--sp-sm); }
  .footer-nav-btn span { display: none; }
  .footer-nav-btn { padding: 0 var(--sp-lg); }
  .signage-wrap { grid-template-columns: repeat(4, 1fr); }
  .signage-day:nth-child(n+7) { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   KACHEL: Icon + Titel nebeneinander (card-header)
───────────────────────────────────────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: var(--sp-md);
}
.card-header .card-icon {
  margin-bottom: 0;   /* Reset des alten block-margin */
  flex-shrink: 0;
}
.card-header .card-title {
  margin-bottom: 0;   /* Kein extra Abstand – kommt vom card-header gap */
}

/* Leertext */
.card-empty {
  color: var(--c-ink-soft);
  font-style: italic;
  font-size: .82rem;
}

/* ─────────────────────────────────────────────────────────────
   HELGOLAND-KACHEL
───────────────────────────────────────────────────────────── */
.card--helgoland {
  display: flex;
  flex-direction: column;
}
.card--helgoland .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Fahrten-Liste */
.helgoland-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--br-fine);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex: 1; /* Liste streckt sich zur vollen Kartenhöhe */
}

.helgoland-trip {
  display: flex;
  align-items: stretch;
  border-bottom: var(--br-fine);
  transition: background .15s;
  flex: 1; /* Jeder Eintrag bekommt gleich viel Platz */
}
.helgoland-trip:last-child { border-bottom: none; }
.helgoland-trip:hover { background: var(--c-sand); }

/* Datums-Spalte links */
.helgoland-trip-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem .85rem;
  background: rgba(51,83,129,.06);
  border-right: var(--br-fine);
  width: 110px;       /* feste Breite statt min-width */
  min-width: 110px;
  max-width: 110px;
  gap: .25rem;
  flex-shrink: 0;     /* niemals schmaler werden */
}
.ht-dayhint {
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-primary);
}
.ht-date {
  font-size: .78rem;
  color: var(--c-ink-mid);
  font-variant-numeric: tabular-nums;
}

/* Zeit & Hafen rechts */
.helgoland-trip-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem var(--sp-md);
  gap: .4rem;
  flex: 1;
}
.ht-time, .ht-port {
  font-size: .875rem;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.ht-time { font-variant-numeric: tabular-nums; }
.ht-port { color: var(--c-ink-mid); }
.ht-time svg, .ht-port svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0; /* inline style überschreiben */
}

/* Ticket-Hinweis am Kartenende */
.helgoland-ticket {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: var(--sp-md);
  padding: .75rem var(--sp-sm);
  background: rgba(232,69,32,.05);
  border: 1px solid rgba(232,69,32,.15);
  border-radius: var(--r-sm);
  font-size: .78rem;
  color: var(--c-ink-mid);
  line-height: 1.5;
  flex-shrink: 0; /* Ticket-Hinweis schrumpft nicht */
}
.helgoland-ticket strong {
  color: var(--c-ink);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   POLAROID-KACHEL
───────────────────────────────────────────────────────────── */
.card--polaroid {
  background: var(--c-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  /* Aus dem normalen Karten-Hover rausnehmen */
}
.card--polaroid:hover { background: var(--c-paper); }

.polaroid-inner {
  background: #fff;
  padding: 12px 12px 36px 12px;
  box-shadow:
    2px 3px 10px rgba(0,0,0,.18),
    0   1px  3px rgba(0,0,0,.10);
  transform: rotate(var(--rot, -1.5deg));
  transition: transform .35s cubic-bezier(.25,.46,.45,.94),
              box-shadow .35s;
  max-width: 100%;
  cursor: default;
}
.card--polaroid:hover .polaroid-inner {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    4px 8px 20px rgba(0,0,0,.22),
    0   2px  6px rgba(0,0,0,.12);
}

.polaroid-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Leichte Sättigung wie bei einem echten Foto */
  filter: saturate(1.05) contrast(1.02);
}

.polaroid-caption {
  margin-top: 10px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  font-size: .72rem;
  color: var(--c-ink-mid);
  letter-spacing: .04em;
  /* Handschrift-Optik durch kursiv */
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   HERO: CSS-Variable für dynamisches Hintergrundbild
───────────────────────────────────────────────────────────── */
.day-hero {
  --hero-bg: none;
}
/* Wenn --hero-bg gesetzt, Fallback-::after überschreiben */
.day-hero[style*="--hero-bg"] .day-hero-bg-image {
  opacity: .45;
}

/* ─────────────────────────────────────────────────────────────
   ADMIN: Feld-Hinweise & Link-Syntax
───────────────────────────────────────────────────────────── */
.field-hint {
  margin-top: .35rem;
  font-size: .72rem;
  color: var(--c-ink-soft);
  line-height: 1.5;
}
.field-hint code {
  background: var(--c-sand-warm);
  padding: .1em .4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: .95em;
  color: var(--c-primary);
}
.field-hint-inline {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ink-soft);
}

/* ─────────────────────────────────────────────────────────────
   FRONTEND: Links in Kacheln
───────────────────────────────────────────────────────────── */
.card-body a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .25rem .25rem 0 0;
  padding: .38rem .85rem;
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.card-body a::after {
  content: '→';
  font-size: .75em;
  transition: transform .18s;
}
.card-body a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.card-body a:hover::after {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────
   AUSFLUGSTIPP-KACHEL
───────────────────────────────────────────────────────────── */
.card--excursion {
  border-top: 2px solid #e84520;
}

.excursion-link-wrap {
  margin-top: var(--sp-md);
  padding-top: var(--sp-sm);
  border-top: var(--br-fine);
}

.excursion-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #e84520;
  border: 1.5px solid #e84520;
  padding: .45rem 1rem;
  border-radius: var(--r-sm);
  transition: background .18s, color .18s;
  text-decoration: none;
}
.excursion-link:hover {
  background: #e84520;
  color: #fff;
}
.excursion-link svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HÖRGARN-KACHEL
   Maritimes Audio-Player-Design
═══════════════════════════════════════════════════════════════ */

.card--hoergarn {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card--hoergarn .card-header {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
  margin-bottom: 0;
}

/* ── Bildbereich ── */
.hoergarn-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.hoergarn-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card--hoergarn:hover .hoergarn-img {
  transform: scale(1.03);
}

/* Wellen-Maske am unteren Bildrand */
.hoergarn-wave-overlay {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  pointer-events: none;
}
.hoergarn-wave-overlay svg {
  width: 100%; height: 100%;
}

/* ── Player-Bereich ── */
.hoergarn-players {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.hoergarn-player {
  padding: .85rem var(--sp-lg);
  border-top: var(--br-fine);
  background: var(--c-paper);
  transition: background .18s;
}
.hoergarn-player:first-child { border-top: none; }
.hoergarn-player--hoch {
  background: rgba(51,83,129,.04);
}
.hoergarn-player:hover { background: var(--c-white); }

/* Label-Zeile */
.hoergarn-player-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .6rem;
}
.hg-label-icon {
  width: 15px; height: 15px;
  stroke: #e84520; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.hoergarn-player-label span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-mid);
}
.hoergarn-player--hoch .hoergarn-player-label span {
  color: var(--c-primary);
}
.hoergarn-player--hoch .hg-label-icon {
  stroke: var(--c-primary);
}

/* Controls */
.hoergarn-controls {
  display: flex;
  align-items: center;
  gap: .85rem;
}

/* Play/Pause-Button */
.hg-btn-play {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #e84520;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .15s;
  padding: 0;
}
.hg-btn-play:hover,
.hg-btn-play.is-playing {
  background: #e84520;
}
.hg-btn-play svg {
  width: 14px; height: 14px;
  stroke: #e84520; fill: #e84520;
  transition: stroke .18s, fill .18s;
}
.hg-btn-play:hover svg,
.hg-btn-play.is-playing svg {
  stroke: #fff; fill: #fff;
}
.hg-btn-play:active { transform: scale(.93); }

/* Hochdeutsch-Button in Primärblau */
.hoergarn-player--hoch .hg-btn-play {
  border-color: var(--c-primary);
}
.hoergarn-player--hoch .hg-btn-play svg {
  stroke: var(--c-primary); fill: var(--c-primary);
}
.hoergarn-player--hoch .hg-btn-play:hover,
.hoergarn-player--hoch .hg-btn-play.is-playing {
  background: var(--c-primary);
}
.hoergarn-player--hoch .hg-btn-play:hover svg,
.hoergarn-player--hoch .hg-btn-play.is-playing svg {
  stroke: #fff; fill: #fff;
}

/* Fortschritt */
.hg-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.hg-progress-bar {
  height: 4px;
  background: var(--c-sand-warm);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.hg-progress-bar:hover { height: 6px; margin-top: -1px; }
.hg-progress-fill {
  height: 100%;
  width: 0%;
  background: #e84520;
  border-radius: 2px;
  transition: width .1s linear;
}
.hoergarn-player--hoch .hg-progress-fill {
  background: var(--c-primary);
}

/* Zeit-Anzeige */
.hg-time {
  display: flex;
  gap: .25rem;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-soft);
}
.hg-sep { opacity: .5; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hoergarn-img { height: 160px; }
  .hg-btn-play  { width: 36px; height: 36px; }
}

/* Hörgarn Kurzbeschreibung */
.hoergarn-description {
  padding: var(--sp-md) var(--sp-lg) var(--sp-sm);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--c-ink-mid);
  border-top: var(--br-fine);
}

/* ═══════════════════════════════════════════════════════════════
   HOCHWASSER-COUNTDOWN-KACHEL
═══════════════════════════════════════════════════════════════ */

.card--highwater {
  background: linear-gradient(160deg, #f0f4f9 0%, var(--c-paper) 100%);
  border-top: 3px solid var(--c-primary);
  position: relative;
  overflow: hidden;
}

/* Dezentes Wellen-Muster im Hintergrund */
.card--highwater::before {
  content: '';
  position: absolute;
  bottom: -12px; left: -10px; right: -10px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40'%3E%3Cpath d='M0 20 Q50 5 100 20 Q150 35 200 20 Q250 5 300 20 Q350 35 400 20' fill='none' stroke='rgba(51,83,129,.07)' stroke-width='3'/%3E%3C/svg%3E") repeat-x bottom;
  pointer-events: none;
}

/* Icon – größer, in Primärfarbe */
.card-icon--hw {
  margin-bottom: 0;
}
.hw-svg-icon {
  width: 28px;
  height: 28px;
  stroke: var(--c-primary);
  fill: var(--c-primary);
}

/* Datum + Uhrzeit */
.hw-info {
  margin: var(--sp-sm) 0 var(--sp-md);
}
.hw-when {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}
.hw-day {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.hw-time-big {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--c-primary);
  line-height: 1;
  letter-spacing: -.01em;
}
.hw-height {
  font-size: .82rem;
  color: var(--c-ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Countdown-Block */
.hw-countdown-wrap {
  margin-top: var(--sp-sm);
  padding: var(--sp-md) var(--sp-md);
  background: rgba(51,83,129,.06);
  border-radius: var(--r-sm);
  border: 1px solid rgba(51,83,129,.1);
}
.hw-countdown-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: .6rem;
  text-align: center;
}
.hw-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.hw-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  background: var(--c-white);
  border-radius: var(--r-sm);
  padding: .5rem .4rem .35rem;
  border: 1px solid rgba(51,83,129,.12);
  box-shadow: 0 1px 4px rgba(51,83,129,.06);
}
.hw-cd-val {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.hw-cd-lbl {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-top: .2rem;
}
.hw-cd-sep {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-primary);
  opacity: .4;
  line-height: 1;
  margin-bottom: .75rem; /* optischer Ausgleich zur Beschriftung */
}

/* Puls-Animation in den letzten 30 Minuten */
@keyframes hw-pulse-anim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,69,32,.25); }
  50%       { box-shadow: 0 0 0 8px rgba(232,69,32,.0); }
}
.hw-pulse .hw-cd-unit {
  border-color: rgba(232,69,32,.3);
  animation: hw-pulse-anim 1.8s ease-in-out infinite;
}
.hw-pulse .hw-cd-val { color: var(--c-accent); }
.hw-pulse .hw-cd-sep { color: var(--c-accent); }

/* ═══════════════════════════════════════════════════════════════
   WERBEBANNER-KACHEL
═══════════════════════════════════════════════════════════════ */
.card--banner {
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--c-sand);
}
.banner-tile-link {
  display: block;
  position: relative;
  text-decoration: none;
  line-height: 0;
}
.banner-tile-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.banner-tile-link:hover .banner-tile-img { opacity: .9; }

/* „Anzeige"-Badge */
.banner-tile-badge {
  position: absolute;
  bottom: var(--sp-sm);
  right: var(--sp-sm);
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.8);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 2px;
  line-height: 1.5;
  backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════════════════════
   RESTAURANT-SLIDER
═══════════════════════════════════════════════════════════════ */
.card--restaurant { padding: 0; overflow: hidden; }
.card--restaurant .card-header { padding: var(--sp-lg) var(--sp-lg) var(--sp-sm); }
.card--restaurant .card-body   { padding: 0 var(--sp-lg) var(--sp-lg); }

/* Slider-Wrapper */
.rest-slider {
  position: relative;
  overflow: hidden;
  background: var(--c-sand);
  line-height: 0;
}

/* Slides */
.rest-slide {
  display: none;
  width: 100%;
}
.rest-slide.is-active { display: block; }

.rest-slide-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: opacity .35s ease;
}

/* Pfeile */
.rest-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(255,255,255,.85);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .15s, transform .15s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.rest-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.rest-arrow--prev { left: .6rem; }
.rest-arrow--next { right: .6rem; }
.rest-arrow svg {
  width: 16px; height: 16px;
  stroke: var(--c-primary); fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* Dots */
.rest-dots {
  position: absolute;
  bottom: .55rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .35rem; z-index: 10;
}
.rest-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
  transition: background .2s, transform .2s;
}
.rest-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Zähler */
.rest-counter {
  position: absolute;
  top: .5rem; right: .65rem;
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.9);
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  padding: .15rem .5rem;
  border-radius: 2px;
  backdrop-filter: blur(2px);
  z-index: 10;
}

/* Restaurant-Überschrift */
.rest-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-ink-mid);
  padding: 0 var(--sp-lg) var(--sp-sm);
  letter-spacing: -.01em;
}

/* Card-Title in Restaurant-Kachel linksbündig */
.card--restaurant .card-title {
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════
   HOOKSIEL-LIFE RSS-KACHEL
═══════════════════════════════════════════════════════════════ */
.card--rss {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card--rss .card-header {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-sm);
  margin-bottom: 0;
}

/* Lade-Animation */
.rss-loading {
  display: flex;
  gap: .4rem;
  padding: var(--sp-lg);
  align-items: center;
}
.rss-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-sand-warm);
  animation: rss-bounce .9s ease-in-out infinite;
}
.rss-dot:nth-child(2) { animation-delay: .15s; }
.rss-dot:nth-child(3) { animation-delay: .30s; }
@keyframes rss-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); background: var(--c-primary); }
}

/* Artikel-Liste */
.rss-list { flex: 1; display: flex; flex-direction: column; }

.rss-item {
  display: flex;
  gap: .75rem;
  padding: .7rem var(--sp-lg);
  border-top: var(--br-fine);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  align-items: flex-start;
}
.rss-item:first-child { border-top: none; }
.rss-item:hover { background: var(--c-sand); }

/* Bild links */
.rss-item-img-wrap {
  flex-shrink: 0;
  width: 68px; height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-sand-warm);
}
.rss-item-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Text rechts */
.rss-item-body { flex: 1; min-width: 0; }

.rss-item-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.35;
  margin-bottom: .2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rss-item:hover .rss-item-title { color: var(--c-primary); }

.rss-item-date {
  font-size: .68rem;
  color: var(--c-ink-soft);
  margin-bottom: .2rem;
  letter-spacing: .03em;
}

.rss-item-excerpt {
  font-size: .75rem;
  color: var(--c-ink-mid);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer-Link */
.rss-footer-link {
  display: block;
  padding: .6rem var(--sp-lg);
  border-top: var(--br-fine);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary);
  text-decoration: none;
  transition: background .15s;
  margin-top: auto;
  text-align: center;
}
.rss-footer-link:hover { background: var(--c-sand); color: var(--c-accent); }

.rss-empty {
  padding: var(--sp-lg);
  color: var(--c-ink-soft);
  font-style: italic;
  font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════════
   HARLE KURIER
═══════════════════════════════════════════════════════════════ */
.card--harle {
  display: flex;
  flex-direction: column;
}
.card--harle .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.harle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border: var(--br-fine);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.harle-trip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: var(--br-fine);
  min-height: 80px;
}
.harle-trip:last-child { border-bottom: none; }
.harle-trip:hover { background: var(--c-sand); }

.harle-trip-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .75rem .85rem;
  background: rgba(51,83,129,.06);
  border-right: var(--br-fine);
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  flex-shrink: 0;
  gap: .2rem;
}

.harle-trip .helgoland-trip-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .75rem var(--sp-md);
  gap: .3rem;
}


/* ── RSS: Featured-Artikel (erster Artikel groß) ── */
.rss-featured-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: var(--br-fine);
  transition: background .15s;
}
.rss-featured-item:hover { background: var(--c-sand); }

.rss-featured-img-wrap {
  width: 100%;
  overflow: hidden;
  max-height: 200px;
}
.rss-featured-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.rss-featured-item:hover .rss-featured-img { transform: scale(1.03); }

.rss-featured-body {
  padding: var(--sp-md) var(--sp-lg);
}
.rss-featured-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.3;
  margin: .25rem 0 .4rem;
}
.rss-featured-item:hover .rss-featured-title { color: var(--c-primary); }

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP-KANAL-KACHEL
═══════════════════════════════════════════════════════════════ */
.card--whatsapp {
  padding: 0;
  overflow: hidden;
  border-top: 3px solid #25D366;
  display: flex;
  flex-direction: column;
}

.wa-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wa-card-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  flex: 1;
}

.wa-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.wa-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.wa-card-titles {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.wa-channel-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #25D366;
}

.wa-channel-name {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--c-ink);
  line-height: 1.1;
}

.wa-card-text {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--c-ink-mid);
}

.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(37,211,102,.35);
  transition: box-shadow .3s, transform .2s;
}

/* Shine-Sweep-Animation */
.wa-cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: wa-shine 2.4s ease-in-out infinite;
}

/* Puls-Ring */
.wa-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-shine {
  0%   { left: -75%; }
  60%  { left: 125%; }
  100% { left: 125%; }
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(37,211,102,.0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,.0); }
}

.wa-cta-btn:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(37,211,102,.5);
}
.wa-cta-btn:active {
  transform: translateY(0) scale(.98);
}
.wa-cta-btn svg {
  flex-shrink: 0;
  position: relative; /* über dem ::before shine */
}

/* ═══════════════════════════════════════════════════════════════
   INTERAKTIVE WETTERKARTE
═══════════════════════════════════════════════════════════════ */
.card--weather-interactive { padding: 0; overflow: hidden; }
.card--weather-interactive .card-header { padding: var(--sp-lg) var(--sp-lg) var(--sp-sm); margin-bottom: 0; }

/* Lade-Punkte */
.wi-loading { display:flex; gap:.4rem; padding:1.25rem var(--sp-lg); align-items:center; }
.wi-dot { width:7px; height:7px; border-radius:50%; background:var(--c-sand-warm); animation:wi-bounce .9s ease-in-out infinite; }
.wi-dot:nth-child(2){animation-delay:.15s} .wi-dot:nth-child(3){animation-delay:.3s}
@keyframes wi-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px);background:#e84520}}

/* Header: Temp + Min/Max + Wetterlage */
.wi-header { display:flex; align-items:center; gap:1rem; padding:.75rem var(--sp-lg) var(--sp-md); flex-wrap:wrap; }
.wi-temp-main { display:flex; align-items:baseline; gap:.2rem; }
.wi-temp-num { font-family:var(--f-display); font-size:3.2rem; font-weight:400; color:var(--c-ink); line-height:1; }
.wi-temp-unit { font-size:1.3rem; color:var(--c-ink-soft); }
.wi-vline { width:1px; height:2.5rem; background:var(--c-sand-warm); flex-shrink:0; }
.wi-temp-range { display:flex; flex-direction:column; gap:.2rem; }
.wi-range-lbl { font-size:.62rem; letter-spacing:.1em; text-transform:uppercase; color:var(--c-ink-soft); }
.wi-minmax { display:flex; align-items:baseline; gap:.3rem; }
.wi-max { font-size:1.1rem; font-weight:500; color:var(--c-ink); }
.wi-min { font-size:1.1rem; color:var(--c-ink-soft); }
.wi-slash { color:var(--c-sand-warm); }
.wi-cond { display:flex; flex-direction:column; align-items:center; gap:.3rem; margin-left:auto; }
.wi-cond-txt { font-size:.72rem; color:var(--c-ink-soft); text-align:center; max-width:72px; line-height:1.3; }

/* Akkordeon-Button */
.wi-acc-btn { width:100%; display:flex; align-items:center; justify-content:space-between; padding:.65rem var(--sp-lg); background:var(--c-sand); border:none; border-top:var(--br-fine); cursor:pointer; font-family:var(--f-body); transition:background .15s; }
.wi-acc-btn:hover { background:var(--c-sand-warm); }
.wi-acc-lbl { font-size:.72rem; font-weight:500; letter-spacing:.07em; text-transform:uppercase; color:var(--c-ink-mid); }

/* Akkordeon-Inhalt */
.wi-acc-body { display:none; border-top:var(--br-fine); }
.wi-acc-body.wi-acc-open { display:block; }
.wi-grid { display:grid; grid-template-columns:1fr 1fr; }
.wi-row { display:flex; align-items:center; gap:.6rem; padding:.75rem var(--sp-lg); border-bottom:var(--br-fine); }
.wi-row:nth-child(odd) { border-right:var(--br-fine); }
.wi-row--full { grid-column:1/-1; border-right:none; }
.wi-row:last-child, .wi-row--full { border-bottom:none; }
.wi-row-info { display:flex; flex-direction:column; gap:.1rem; }
.wi-row-lbl { font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; color:var(--c-ink-soft); }
.wi-row-val { font-size:.92rem; font-weight:500; color:var(--c-ink); }
.wi-row-sub { font-size:.72rem; color:var(--c-ink-soft); }

/* Status-Zeile */
.wi-status { display:flex; align-items:center; gap:.5rem; padding:.5rem var(--sp-lg); background:var(--c-sand); border-top:var(--br-fine); font-size:.65rem; color:var(--c-ink-soft); }
.wi-live-dot { width:6px; height:6px; border-radius:50%; background:#25D366; flex-shrink:0; animation:wi-live 2s ease-in-out infinite; }
@keyframes wi-live{0%,100%{opacity:1}50%{opacity:.3}}

/* ═══════════════════════════════════════════════════════════════
   VERANSTALTUNGS-SLIDER
═══════════════════════════════════════════════════════════════ */
.card--events {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card--events .card-header {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-sm);
  margin-bottom: 0;
}

/* Slide-Container */
.ev-slider-wrap { flex: 1; display: flex; flex-direction: column; }

.ev-slides { position: relative; flex: 1; }

.ev-slide {
  display: none;
  flex-direction: column;
}
.ev-slide.is-active { display: flex; }

/* Bild */
.ev-slide-img-wrap {
  width: 100%; overflow: hidden;
}
.ev-slide-img {
  width: 100%; height: 180px;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.ev-slide:hover .ev-slide-img { transform: scale(1.03); }

/* Inhalt */
.ev-slide-body {
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
  position: relative;
}

/* Copyright */
.ev-copyright {
  position: absolute;
  top: var(--sp-sm); right: var(--sp-md);
  font-size: .58rem;
  color: var(--c-ink-soft);
  opacity: .6;
  letter-spacing: .02em;
}

/* Wochentag-Badge */
.ev-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e84520;
  padding-top: 1.2rem; /* Platz für Copyright */
}

/* Titel */
.ev-title {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.3;
  margin: 0;
}

/* Datum */
.ev-date {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--c-ink-mid);
  font-variant-numeric: tabular-nums;
}

/* Beschreibung */
.ev-desc {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--c-ink-mid);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.ev-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary);
  text-decoration: none;
  transition: color .15s;
}
.ev-cta:hover { color: #e84520; }

/* Navigation */
.ev-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .6rem var(--sp-lg);
  border-top: var(--br-fine);
  background: var(--c-sand);
}

.ev-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--c-primary);
  background: transparent;
  color: var(--c-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  padding: 0;
}
.ev-arrow:hover { background: var(--c-primary); color: #fff; }

.ev-dots {
  display: flex;
  gap: .35rem;
  align-items: center;
}
.ev-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--c-sand-warm);
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.ev-dot.is-active {
  background: var(--c-primary);
  transform: scale(1.3);
}

.ev-location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  color: var(--c-ink-soft);
}

/* ═══════════════════════════════════════════════════════════════
   BUCHUNGSKACHEL
═══════════════════════════════════════════════════════════════ */
.card--booking {
  padding: 0;
  overflow: visible;  /* Datepicker darf über den Kartenrand hinausragen */
  position: relative;
  z-index: 10;
}

.booking-header {
  background: #335381;
  color: #fff;
  padding: .75rem 1.25rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.booking-header svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,.85);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.booking-body {
  padding: 1rem;
  background: #f4f6f9;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.booking-fields {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: flex-end;
}

.booking-field {
  flex: 1 1 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.booking-field--btn { flex: 0 0 auto; }

.booking-field label {
  font-size: .65rem;
  font-weight: 700;
  color: #335381;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* Input-Wrapper */
.wb-iw {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  border: 1.5px solid #c8d4e3;
  border-radius: 7px;
  padding: 0 .6rem;
  height: 40px;
  transition: border-color .18s, box-shadow .18s;
}
.wb-iw:focus-within {
  border-color: #335381;
  box-shadow: 0 0 0 3px rgba(51,83,129,.1);
}
.wb-iw svg {
  width: 14px; height: 14px;
  stroke: #8a9ab5; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.wb-iw input, .wb-iw select {
  border: none; outline: none;
  background: transparent;
  font-size: .85rem;
  color: #1e2d40;
  width: 100%;
  cursor: pointer;
  font-family: var(--f-body);
}
.wb-iw input::placeholder { color: #aab6c8; }
.wb-iw select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%238a9ab5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

/* Suchen-Button */
.booking-btn {
  height: 40px;
  background: #335381;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--f-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  transition: background .18s, transform .1s;
}
.booking-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}
.booking-btn:hover { background: #243d61; transform: translateY(-1px); }
.booking-btn:active { transform: translateY(0); }

/* Fehlermeldung */
.booking-error {
  margin-top: .6rem;
  padding: .5rem .75rem;
  background: #fdecea;
  border-left: 3px solid #c0392b;
  border-radius: 4px;
  font-size: .78rem;
  color: #a8302a;
}

/* Datepicker CI-Overrides */
.ui-datepicker { font-family: var(--f-body) !important; border-radius: 8px !important; }
.ui-datepicker .ui-datepicker-header { background: #335381 !important; border: none !important; border-radius: 8px 8px 0 0 !important; color: #fff !important; }
.ui-datepicker .ui-datepicker-title { color: #fff !important; font-weight: 700; }
.ui-datepicker .ui-datepicker-prev::after { content:"‹"; color:#fff; font-size:1.2rem; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.ui-datepicker .ui-datepicker-next::after { content:"›"; color:#fff; font-size:1.2rem; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display:none !important; }
.ui-datepicker td a:hover { background:#335381 !important; color:#fff !important; }
.ui-state-active, .ui-datepicker td .ui-state-active { background:#335381 !important; color:#fff !important; border-color:#335381 !important; }

/* Responsive */
@media (max-width: 600px) {
  .booking-field { flex: 1 1 calc(50% - .35rem); }
  .booking-field--btn { flex: 1 1 100%; }
  .booking-btn { width: 100%; justify-content: center; }
}
