/* ==========================================================================
   Revia Care – Stylesheet
   Farben, Schriften und Masse stammen 1:1 aus den bisherigen Wix-Embeds.
   Komponenten verwenden Container-Queries: jede Sektion reagiert auf ihre
   eigene Breite (wie vorher die Embeds), nicht auf die Fensterbreite.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hurricane"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hurricane-latin-400-normal.woff2") format("woff2"); }

:root {
  --navy-900: #0E2545;      /* Kopf- und Fusszeile */
  --navy: #16355D;          /* Überschriften */
  --navy-soft: #1F3C61;     /* Fliesstext */
  --gold: #B8925A;          /* Knöpfe, Akzente */
  --gold-soft: #C9A46A;     /* Gold auf Navy */
  --gold-line: #DFCEB5;
  --rule-gold: #CEB58E;     /* Trennlinie oben */
  --rule-light: #EFE3D0;    /* Trennlinie unten */
  --cream: #FAF8F4;
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Hurricane", "Cormorant Garamond", cursive;

  --gutter: max(20px, 5vw);
  --header-h: 104px;
  /* Massstab: 1 Design-Pixel. Unter 1025 px Breite normal (1px), darüber
     proportional zur Bildschirmbreite (Referenz 1920 px, mindestens 70 %). */
  --k: 1px;
  color-scheme: light;
}
@media (min-width: 1025px) {
  :root {
    --k: clamp(0.7px, calc(100vw / 1920), 1px);
    --header-h: calc(104 * var(--k));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + calc(8 * var(--k)));
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy-soft);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: calc(3 * var(--k)); border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 6px;
  background: var(--white); color: var(--navy); font: 500 14px/1.2 var(--sans);
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(1504 * var(--k)), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* Trennlinien zwischen den Sektionen (volle Breite, wie auf Wix) */
.rule { display: block; height: 0; margin: 0; border: 0; border-top: 1px solid var(--rule-light); }
.rule--gold { border-top-color: var(--rule-gold); }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--navy-900);
  color: var(--white);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(calc(24 * var(--k)), 9.9vw, calc(190 * var(--k))) 0 clamp(calc(16 * var(--k)), 1.82vw, calc(35 * var(--k)));
}
.brand-link {
  display: inline-flex; align-items: center; gap: calc(19 * var(--k));
  text-decoration: none; color: var(--white);
}
.brand-link__logo { display: block; height: calc(76 * var(--k)); width: auto; }
.brand-link__word {
  font: 600 calc(42 * var(--k))/1 var(--serif);
  letter-spacing: 0.012em;
  white-space: nowrap;
  padding-top: calc(4 * var(--k));
}
.brand-link__word span { color: var(--gold); }

.site-nav ul {
  display: flex; align-items: center; gap: clamp(calc(28 * var(--k)), 4vw, calc(77 * var(--k)));
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  display: inline-block; padding: calc(8 * var(--k)) 0;
  font: 400 calc(17 * var(--k))/1.2 var(--sans);
  letter-spacing: 0.035em;
  color: var(--white); text-decoration: none;
  transition: color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-soft); }

.menu-toggle {
  display: none;
  width: calc(44 * var(--k)); height: calc(44 * var(--k)); margin-right: calc(-10 * var(--k));
  border: 0; background: none; color: var(--white); cursor: pointer;
  place-items: center;
}
.menu-toggle svg { width: calc(26 * var(--k)); height: calc(26 * var(--k)); }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .site-header__inner { padding: 0 16px; }
  .brand-link { gap: 10px; }
  .brand-link__logo { height: 46px; }
  .brand-link__word { font-size: 25px; padding-top: 2px; }
  .menu-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-900);
    border-top: 1px solid rgba(201, 164, 106, .35);
    display: none;
  }
  .menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 14px; }
  .site-nav a { display: block; padding: 12px 20px; font-size: 15px; }
  /* Startseite: offenes Menü deckt Foto und Welle ganz ab (gleiche Höhe wie .hero) */
  body:has(.hero) .site-nav { box-sizing: border-box; min-height: max(36vw, 300px); }
  body:has(.hero) .menu-open .site-nav { display: flex; flex-direction: column; justify-content: center; }
  body:has(.hero) .site-nav ul { padding: 10px 0; }
}
@media (max-width: 640px) {
  body:has(.hero) .site-nav { min-height: 54.2vw; }
}
@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .brand-link__logo { height: 40px; }
  .brand-link__word { font-size: 21px; letter-spacing: 0.02em; }
}

/* ==========================================================================
   Hero – alle Masse proportional zur Fensterbreite (Referenz 1920 px)
   ========================================================================== */
.hero {
  position: relative;
  height: 30.78vw;               /* 591 px bei 1920 */
  min-height: 300px;
  overflow: hidden;
  background: #EFE6DA;
  isolation: isolate;
}
.hero__bg, .hero__splash, .hero__wave { position: absolute; display: block; pointer-events: none; }
.hero__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -3; }
.hero__glow {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 30% 46% at 74.8% 47%, rgba(251, 250, 246, .62) 0%, rgba(251, 250, 246, .38) 45%, rgba(251, 250, 246, 0) 100%);
}
.hero__splash {
  left: 0; top: 0;
  width: 41.77vw;                 /* 802 px */
  height: 100%;
  object-fit: cover; object-position: 50% 40%;
  z-index: -1;
}
.hero__wave {
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 9.04vw;    /* 7680 × 694 */
  z-index: 1;
}
.hero__content {
  position: absolute; z-index: 2;
  left: 61.17vw; top: 7.2vw;          /* Titel bleibt bei 62.3 vw */
  width: 25vw;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title {
  align-self: center;                  /* Titel, Zeile und Knopf auf einer Mittelachse */
  margin: 0;
  font: 700 clamp(30px, 3.33vw, 76px)/1.07 var(--serif);
  color: var(--navy);
  letter-spacing: 0.002em;
}
.hero__title span { display: block; }
.hero__tagline {
  display: flex; align-items: center; gap: 0.38em;
  margin: 0.95vw 0 0;
  font: 700 clamp(9px, 0.72vw, 16px)/1.2 var(--sans);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.hero__tagline::before, .hero__tagline::after {
  content: ""; display: block; height: 1.5px; width: 2.45em; background: currentColor; opacity: .9;
}
.hero__tagline::after { margin-left: -0.3em; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  background: linear-gradient(180deg, #C29E6E, #A07A4A);   /* Gold der Monatsknöpfe */
  color: var(--white);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(120, 88, 48, .25);
  font: 400 clamp(12px, 0.94vw, 21px)/1 var(--sans);
  letter-spacing: 0.09em;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn-gold:hover { background: #A07A4A; box-shadow: 0 4px 12px rgba(120, 88, 48, .32); }
.cta-arrow {
  display: inline-grid; place-items: center; flex: none;
  width: 1.95em; height: 1.95em; margin-right: -0.35em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: transform .2s ease, background .2s ease;
}
.cta-arrow svg { width: 1.1em; height: 1.1em; }
.btn-gold:hover .cta-arrow, .btn-gold:focus-visible .cta-arrow { transform: translateX(3px); background: rgba(255, 255, 255, .32); }
.hero__cta { margin-top: 1.82vw; width: 15.6vw; min-width: 150px; height: 3.39vw; min-height: 38px; }

/* Mittlere Breiten: etwas mehr Höhe, damit Text und Bild Luft haben */
@media (max-width: 1100px) {
  .hero { height: 36vw; }
  .hero__splash { width: 47vw; }
  .hero__content { left: 52.64vw; top: 8vw; width: 36vw; }
  .hero__title { font-size: clamp(26px, 4.4vw, 48px); }
  .hero__tagline { font-size: clamp(8px, 1vw, 11px); margin-top: 1.4vw; }
  .hero__cta { margin-top: 2.4vw; width: 22vw; height: 4.6vw; }
}

/* Handy: gleicher Aufbau wie am Desktop, nur verkleinert.
   Die Welle liegt über dem unteren Teil des Fotos. */
@media (max-width: 640px) {
  .hero { height: 54.2vw; min-height: 0; }
  .hero__bg { object-position: 60% 40%; }
  .hero__splash {
    left: -16vw; top: -2vw; bottom: auto;
    width: 72vw; height: 55.4vw;
    object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 78%, transparent 100%);
  }
  .hero__glow { background: radial-gradient(ellipse 40% 55% at 74% 46%, rgba(251, 250, 246, .7) 0%, rgba(251, 250, 246, .4) 50%, rgba(251, 250, 246, 0) 100%); }
  .hero__content { left: 50vw; top: 13.7vw; width: 47.5vw; }
  .hero__title { font-size: 6.77vw; line-height: 1.06; }
  .hero__tagline { font-size: 1.19vw; letter-spacing: 0.55em; margin-top: 2.25vw; gap: 0.6em; }
  .hero__tagline::before, .hero__tagline::after { width: 3em; height: 1px; }
  .hero__tagline::after { margin-left: -0.55em; }
  .hero__cta {
    align-self: center; margin: 3vw 0 0;
    width: 35.7vw; min-width: 0; height: 8.46vw; min-height: 0;
    font-size: 2.13vw; letter-spacing: 0.1em; gap: 0.6em;
  }
  .hero__wave { height: 9.04vw; }
}

/* ==========================================================================
   Verbindung zwischen Pflegepool und Personalvermittlung (Creme-Band)
   ========================================================================== */
.band { background: var(--cream); }
.verb-wrap { container-type: inline-size; container-name: verb; }
.verb {
  --v-navy: #16355D; --v-navy-soft: #1F3C61; --v-gold: #C9A46A;
  width: 100%;
  padding: calc(12 * var(--k)) 2px calc(14 * var(--k));
  display: grid;
  grid-template-columns: fit-content(62%) 1px minmax(0, 1fr);
  column-gap: clamp(calc(24 * var(--k)), 2.6vw, calc(40 * var(--k)));
  align-items: center;
}
.verb__title {
  margin: 0;
  font: 600 min(calc(50 * var(--k)), max(calc(36 * var(--k)), 3.33cqw))/1.1 var(--serif);
  color: var(--v-navy);
}
.verb__title span { display: block; }
.verb__line { align-self: stretch; width: 1px; margin: calc(6 * var(--k)) 0; background: var(--v-gold); }
.verb__text {
  margin: 0;
  font: 400 min(calc(18 * var(--k)), max(calc(15 * var(--k)), 1.2cqw))/1.6 var(--sans);
  color: var(--v-navy-soft);
}
@container verb (max-width: 760px) {
  .verb {
    --u: 1cqw;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0 18px;
  }
  .verb__title {
    font-size: calc(6.9 * var(--u) * clamp(0.9, var(--title-fit, 1), 1.04));
    line-height: 1.11;
    white-space: nowrap;
  }
  .verb__line {
    justify-self: start; align-self: start;
    width: calc(5.5 * var(--u)); height: max(1px, calc(0.26 * var(--u)));
    margin: calc(1.7 * var(--u)) 0 0;
  }
  .verb__text {
    margin-top: calc(3 * var(--u));
    font-size: calc(2.75 * var(--u));
    line-height: 1.43;
    text-align: justify;
    hyphens: auto;
  }
}

/* ==========================================================================
   Allgemeine Sektionsabstände
   ========================================================================== */
.sec-kalender { padding: calc(22 * var(--k)) 0 calc(31 * var(--k)); }
.sec-ablauf { padding: calc(13 * var(--k)) 0 calc(22 * var(--k)); }
.sec-komp { padding: calc(26 * var(--k)) 0 calc(8 * var(--k)); }
.sec-about { padding: calc(38 * var(--k)) 0 calc(65 * var(--k)); }

@media (max-width: 640px) {
  .sec-kalender { padding: 22px 0 24px; }
  .sec-ablauf { padding: 20px 0 14px; }
  .sec-komp { padding: 22px 0 22px; }
  .sec-about { padding: 24px 0 30px; }
}