/* ==========================================================================
   CSW — Sommer 2027 Kampagnen-Landingpage
   Design tokens & components per design-system.md
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --color-primary: #5AC0BE;
  --color-primary-600: #43A9A7;
  --color-primary-700: #2E8B89;
  --color-primary-100: #E4F4F3;
  --color-accent: #CF142B;
  --color-accent-600: #B10F23;
  --color-accent-100: #FBE3E6;
  --color-sand-50: #FBF8F3;
  --color-sand-100: #F4EDE2;
  --color-sand-200: #E7DBC9;
  --color-ink-900: #1C2B2A;
  --color-ink-700: #3A4746;
  --color-ink-500: #5B6665;
  --color-ink-300: #9AA3A2;
  --color-white: #FFFFFF;
  --color-on-dark-80: rgba(255, 255, 255, 0.8);
  --color-overlay: rgba(20, 43, 42, 0.42);
  --color-overlay-strong: rgba(20, 43, 42, 0.62);
  --color-success: #2E8B4F;
  --color-warning: #C8791E;
  --color-error: #CF142B;
  --color-ghost-hover: rgba(20, 43, 42, 0.05);
  --color-placeholder: #DDDDDD;
  --color-placeholder-text: #666666;
  --color-divider: rgba(28, 43, 42, 0.2);
  --color-success-wash: rgba(46, 139, 79, 0.06);
  --color-legal-divider: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-base: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(40px, 6vw, 72px);
  --fs-h1: clamp(32px, 4vw, 48px);
  --fs-h2: clamp(26px, 3vw, 34px);
  --fs-h3: 22px;
  --fs-eyebrow: 14px;
  --fs-lead: clamp(18px, 2vw, 21px);
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-xs: 13px;
  --fs-btn: 16px;

  /* Spacing (8px scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1360px;
  --section-py: clamp(64px, 9vw, 128px);
  --measure: 68ch;

  /* Radius / Elevation / Border */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --border-hairline: 1px solid var(--color-sand-200);
  --shadow-sm: 0 1px 2px rgba(20, 43, 42, 0.06), 0 2px 4px rgba(20, 43, 42, 0.05);
  --shadow-md: 0 6px 16px rgba(20, 43, 42, 0.10);
  --shadow-lg: 0 18px 40px rgba(20, 43, 42, 0.16);
  --shadow-focus: 0 0 0 3px rgba(90, 192, 190, 0.45);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 560ms;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-ink-700);
  background: var(--color-sand-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-700);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus ring on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 {
  color: var(--color-ink-900);
  font-weight: 700;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-700);
  display: block;
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-ink-700);
  max-width: var(--measure);
}

.section-title {
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-head {
  margin-bottom: var(--space-10);
}

.section-head .lead {
  margin-top: var(--space-4);
}

/* ---------- Campaign Mark ("2027" accent underline) ---------- */
.campaign-year {
  position: relative;
  display: inline-block;
}

.campaign-year::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  z-index: -1;
}

.campaign-year {
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--fs-btn);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 28px;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
  min-height: 44px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-accent-600);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-700);
}

.btn--outline:hover {
  background: var(--color-primary-100);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink-700);
}

.btn--ghost:hover {
  color: var(--color-ink-900);
  background: var(--color-ghost-hover);
}

.btn--on-photo {
  background: var(--color-white);
  color: var(--color-ink-900);
  box-shadow: var(--shadow-md);
}

.btn--on-photo:hover {
  background: var(--color-sand-50);
}

.btn--small { padding: 10px 20px; min-height: 44px; }
.btn--large { padding: 18px 36px; }
.btn--block { width: 100%; }

/* ---------- Header (shared) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 72px;
  background: var(--color-on-dark-80);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

.site-header.is-scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-bottom: var(--border-hairline);
}

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

/* Logo must never shrink: the global img max-width:100% rule would collapse
   the logo to a sliver when flex space runs out (401–430px band) */
.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language / Campaign badge */
.badge-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 14px;
  line-height: 1.2;
}

.badge-pill--lang {
  background: var(--color-primary-100);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-700);
}

/* EN/DE dropdown styled like the static lang pill (appearance-none select) */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  cursor: pointer;
  /* room for the custom chevron */
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232E8B89' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.lang-select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.badge-pill--campaign {
  background: var(--color-primary);
  color: var(--color-ink-900);
  letter-spacing: 0.06em;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px; /* header height */
}

.hero__frame {
  position: relative;
  min-height: 88vh;
  border-radius: var(--radius-lg);
  /* 1392px at 1440 viewport = var(--space-6) side gutters per spec */
  max-width: 1392px;
  width: calc(100% - var(--space-12)); /* keep 24px gutters below 1392px */
  margin-inline: auto;
  overflow: hidden;
  background: var(--color-sand-100);
  box-shadow: var(--shadow-lg);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: hero-scale-in 900ms var(--ease-emphasis) both;
}

@keyframes hero-scale-in {
  from { transform: scale(1.06); }
  to { transform: scale(1.00); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-overlay-strong), transparent 60%);
  transition: background var(--dur-base) var(--ease-standard);
  pointer-events: none;
}

.hero.is-playing .hero__scrim {
  background: linear-gradient(to top, var(--color-overlay), transparent 60%);
}

.hero__content {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: var(--space-16);
  max-width: 760px;
  z-index: 2;
}

.hero .eyebrow {
  color: var(--color-white);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-on-dark-80);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero play button corner overrides live after .video-play (cascade order). */

/* ---------- Video component ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-placeholder); /* gray box while poster/video asset pending */
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-overlay-strong), transparent 40%);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}

.video-frame.is-playing .video-frame__scrim {
  opacity: 0;
}

.video-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-placeholder);
  color: var(--color-placeholder-text);
  font-size: var(--fs-sm);
  text-align: center;
  padding: var(--space-4);
}

.video-frame.is-playing .video-frame__placeholder,
.video-frame.has-poster .video-frame__placeholder,
.hero__frame.is-playing .video-frame__placeholder,
.hero__frame.has-poster .video-frame__placeholder {
  display: none;
}

.video-play[hidden] {
  display: none;
}

/* Center play button (highlights) */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-white);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: transform var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard);
}

.video-play:hover {
  background: var(--color-primary-100);
}

/* Hero play button — bottom-right per spec.
   Declared AFTER .video-play base so top/left/transform overrides win the cascade. */
.hero__frame .video-play--corner {
  position: absolute;
  top: auto;
  left: auto;
  right: var(--space-6);
  bottom: var(--space-6);
  transform: none;
  z-index: 3;
}

.video-play--corner:hover {
  background: var(--color-primary-100);
}

.video-play svg {
  width: 20px;
  height: 20px;
}

.video-play__pulse {
  animation: play-pulse 2s var(--ease-standard) infinite;
}

@keyframes play-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

.video-caption {
  font-size: var(--fs-sm);
  color: var(--color-ink-500);
  margin-top: var(--space-3);
}

/* ---------- Media Highlights ---------- */
.highlights {
  padding-block: var(--section-py);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

/* ---------- Destination sections (Malta / Gozo) ---------- */
.destination {
  padding-block: var(--section-py);
}

.destination--warm {
  background: var(--color-sand-100);
}

.destination__feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

.destination--flip .feature-media {
  order: 2;
}

.destination--flip .destination__feature-text {
  order: 1;
}

.feature-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-standard);
}

.feature-media:hover img {
  transform: scale(1.04);
}

.destination__feature-text h3 {
  font-size: var(--fs-h2);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.destination__feature-text p {
  margin-bottom: var(--space-5);
  max-width: var(--measure);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-ink-700);
  margin-bottom: var(--space-2);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary-700);
  margin-top: 4px;
}

/* Place cards */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.place-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.place-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.place-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-standard);
}

.place-card:hover .place-card__media img {
  transform: scale(1.04);
}

.place-card__body {
  padding: var(--space-5);
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: var(--space-3);
}

.loc-chip svg {
  width: 14px;
  height: 14px;
}

.place-card__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.place-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-ink-500);
}

/* ---------- Wohnen ---------- */
.wohnen {
  padding-block: var(--section-py);
}

.wohnen__banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 9;
  min-height: 260px;
  margin-bottom: var(--space-8);
}

.wohnen__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wohnen__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  pointer-events: none;
}

.wohnen__banner-caption {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-5);
  color: var(--color-white);
  font-size: var(--fs-sm);
  z-index: 1;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.gallery-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-standard);
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-tile figcaption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-3);
  color: var(--color-white);
  font-size: var(--fs-sm);
  background: var(--color-overlay);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* ---------- Trust / Teal band ---------- */
.trust {
  background: var(--color-primary);
  padding-block: var(--section-py);
  color: var(--color-ink-900);
}

.trust .eyebrow,
.trust .section-title {
  color: var(--color-ink-900);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--space-16);
}

.stat {
  text-align: center;
  padding: var(--space-5) var(--space-6);
}

.stat + .stat {
  border-left: 1px solid var(--color-divider);
}

.stat__numeral {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-ink-900);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--color-ink-900);
  margin-top: var(--space-2);
}

.host-block {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-12);
  align-items: center;
}

.host-portrait {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  /* real host-1.jpg is 263×171 landscape — 3:2 frame avoids heavy 4:5 cover-crop */
  aspect-ratio: 3 / 2;
}

.host-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.host-quote {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-ink-900);
  max-width: var(--measure);
}

.host-signature {
  font-size: var(--fs-sm);
  color: var(--color-ink-900);
  margin-top: var(--space-5);
}

/* ---------- CTA / Anfrage ---------- */
.anfrage {
  background: var(--color-sand-100);
  padding-block: var(--section-py);
}

.anfrage__panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-12);
}

.anfrage__panel .section-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-4);
}

.anfrage__sub {
  font-size: var(--fs-lead);
  color: var(--color-ink-500);
  margin-bottom: var(--space-8);
  max-width: var(--measure);
}

/* Form baseline */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-ink-700);
  margin-bottom: var(--space-2);
}

.form-field .required {
  color: var(--color-primary-700);
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--color-ink-900);
  background: var(--color-white);
  border: 1.5px solid var(--color-sand-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-ink-300);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--color-error);
  background: var(--color-accent-100);
}

.field-error {
  font-size: var(--fs-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: none;
}

.form-field.is-invalid .field-error {
  display: block;
}

.form-summary {
  font-size: var(--fs-sm);
  color: var(--color-error);
  margin-bottom: var(--space-4);
}

.form-submit-row {
  grid-column: 1 / -1;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--color-white);
  border-radius: var(--radius-pill);
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-ink-500);
}

.reassurance li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reassurance svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* Success panel */
.form-success {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border: 1.5px solid var(--color-success);
  border-radius: var(--radius-md);
  background: var(--color-success-wash);
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}

.form-success h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
}

.form-success p {
  color: var(--color-ink-700);
}

/* ---------- Footer (shared) ---------- */
.site-footer {
  background: var(--color-ink-900);
  color: var(--color-on-dark-80);
  padding-top: var(--space-20);
  padding-bottom: var(--space-10);
}

.site-footer a {
  color: var(--color-on-dark-80);
}

.site-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand-chip {
  display: inline-block;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand-chip img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-heading {
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.footer-legal {
  border-top: 1px solid var(--color-legal-divider);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-xs);
}

.footer-legal nav {
  display: flex;
  gap: var(--space-5);
}

/* ---------- Cookie banner (shared) ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-primary);
  padding: var(--space-5) var(--space-6);
  display: none;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-emphasis),
              opacity var(--dur-base) var(--ease-emphasis);
}

.cookie-banner.is-visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  font-size: var(--fs-sm);
  color: var(--color-ink-700);
  max-width: var(--measure);
}

.cookie-banner__text a {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-emphasis),
              transform var(--dur-slow) var(--ease-emphasis);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .host-block {
    grid-template-columns: 1fr;
  }

  .host-portrait {
    max-width: 340px;
  }
}

@media (max-width: 900px) {
  .destination__feature {
    grid-template-columns: 1fr;
    margin-bottom: var(--space-8);
  }

  .destination--flip .feature-media {
    order: 0; /* image above text on mobile regardless of desktop side */
  }

  .destination--flip .destination__feature-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 60px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero__frame {
    border-radius: 0;
    margin-inline: 0;
    width: 100%; /* edge-to-edge on mobile */
    min-height: 76vh;
  }

  .hero__content {
    padding: var(--space-6);
    /* keep hero actions clear of the bottom-right corner play button */
    padding-bottom: calc(var(--space-6) + 64px);
  }

  /* edge-to-edge hero stays square on mobile */
  .hero__media {
    border-radius: 0;
  }

  .badge-pill--campaign {
    white-space: nowrap;
    font-size: var(--fs-xs);
  }

  /* fixed height instead of aspect-ratio: min-height would win and force overflow */
  .wohnen__banner {
    aspect-ratio: auto;
    width: 100%;
    height: 260px;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

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

  .gallery-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-3);
  }

  .gallery-tile {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--color-divider);
  }

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

  .site-header__cta {
    padding: 10px 20px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: var(--space-4);
  }

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

  .anfrage__panel {
    padding: var(--space-6);
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* Compact header band: 401–505px — campaign pill still visible and space is
   tight; shrink paddings/gaps so logo + pill + lang select + CTA all fit.
   Base layout needs ~504px (measured content 503.9px), so the compact
   treatment must extend up to 505px. */
@media (min-width: 401px) and (max-width: 505px) {
  .site-header__inner {
    padding-inline: 10px;
    gap: 8px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .badge-group {
    gap: 6px;
  }

  .badge-pill--campaign {
    font-size: var(--fs-xs);
    padding: 5px 8px;
    letter-spacing: 0.02em;
  }

  .badge-pill--lang,
  .lang-select {
    font-size: var(--fs-xs);
    padding: 4px 6px;
  }

  .lang-select {
    padding-right: 22px;
    background-position: right 8px center;
  }

  .site-header__cta {
    padding: 10px 8px;
  }
}

@media (max-width: 400px) {
  .badge-pill--campaign {
    display: none;
  }

  .site-header__inner {
    padding-inline: 12px;
    gap: 8px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .badge-pill--lang,
  .lang-select {
    font-size: var(--fs-xs);
    padding: 4px 6px;
  }

  .lang-select {
    padding-right: 22px;
    background-position: right 8px center;
  }

  .site-header__cta {
    padding: 10px 8px;
  }
}

/* ---------- Reduced motion (mandatory) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 140ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__media {
    animation: none;
  }

  .video-play__pulse {
    animation: none;
  }

  .spinner {
    animation-duration: 700ms !important;
  }
}
