@import url("fonts.css");

/* =========================================================================
   Schischule Kellerjoch – Designsystem
   ========================================================================= */

:root {
  /* Farben */
  --ink:        #101f2b;
  --ink-soft:   #1b3040;
  --ink-deep:   #0a151d;
  --red:        #e2001a;
  --red-dark:   #b60015;
  --snow:       #ffffff;
  --paper:      #f4f6f8;
  --paper-warm: #fbfcfd;
  --muted:      #5d6b78;
  --muted-soft: #8b98a4;
  --line:       rgb(16 31 43 / 0.12);
  --line-soft:  rgb(16 31 43 / 0.07);

  /* Typografie */
  --font-sans:  "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.16rem, 1.09rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.4rem, 1.26rem + 0.7vw, 1.9rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.5vw, 2.85rem);
  --step-4:  clamp(2.2rem, 1.6rem + 3vw, 4.4rem);
  --step-5:  clamp(2.7rem, 1.6rem + 5.4vw, 6.6rem);

  /* Raster */
  --container: 78rem;
  --gutter:    clamp(1.25rem, 5vw, 3.25rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h:  4.5rem;

  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgb(16 31 43 / 0.05), 0 4px 14px rgb(16 31 43 / 0.05);
  --shadow-md: 0 2px 6px rgb(16 31 43 / 0.06), 0 18px 44px rgb(16 31 43 / 0.10);
  --shadow-lg: 0 4px 12px rgb(16 31 43 / 0.08), 0 34px 80px rgb(16 31 43 / 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 60em) {
  :root { --header-h: 5.75rem; }
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
img, video { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Typografie --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.eyebrow {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.prose { max-width: 62ch; color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 700; }

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

/* --- Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 58rem; }

.section {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) - 1px);
}

.section--flush { padding-block: 0; }

.section--paper { background: var(--paper); }

/* Panorama als dezenter Sektionshintergrund (das Bild hat den Weißverlauf bereits eingebrannt) */
.section--panorama {
  background-color: var(--snow);
  background-image: url("../img/panorama.jpg");
  background-image: image-set(
    url("../img/panorama-1920.webp") type("image/webp"),
    url("../img/panorama.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}

@media (max-width: 55.99em) {
  .section--panorama { background-size: 200% auto; }
}

.section--ink {
  background: var(--ink);
  color: rgb(255 255 255 / 0.82);
}

.section--ink h2, .section--ink h3, .section--ink strong { color: var(--snow); }
.section--ink .prose { color: rgb(255 255 255 / 0.72); }
.section--ink .lead { color: rgb(255 255 255 / 0.9); }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head .prose { margin-top: 1.5rem; }
.u-center .section-head { margin-inline: auto; }

.rule {
  width: 3.5rem;
  height: 3px;
  border: 0;
  margin: 1.75rem 0 0;
  background: var(--red);
  border-radius: 2px;
}
.u-center .rule { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--snow);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  --btn-bg: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgb(226 0 26 / 0.3);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--snow);
  box-shadow: var(--shadow-md);
}

.section--ink .btn--ghost,
.hero .btn--ghost {
  --btn-fg: var(--snow);
  border-color: rgb(255 255 255 / 0.45);
}

.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover {
  --btn-bg: var(--snow);
  --btn-fg: var(--ink);
}

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}
.u-center .btn-row { justify-content: center; }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}
.link-arrow::after {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.link-arrow:hover::after { width: 2.6em; }

/* --- Skip-Link ---------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--snow);
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --- Header ------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--snow);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(10 21 29 / 0.55), transparent);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.header.is-solid {
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 40px rgb(16 31 43 / 0.07);
}

.header.is-solid::after { opacity: 0; }

/* Header versteckt sich beim Runterscrollen */
.header.is-hidden { transform: translateY(-100%); }
.header { transition-property: background-color, box-shadow, color, transform; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  position: relative;
  flex: none;
  height: clamp(2.1rem, 4.2vw, 2.9rem);
  aspect-ratio: 150 / 72;
}

/* Beide Logovarianten liegen deckungsgleich übereinander, getauscht wird per
   Deckkraft. Sie stecken in je einem eigenen <picture>, sind also keine
   DOM-Geschwister – jede Variante muss daher selbst positioniert werden. */
.brand__mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s var(--ease);
}

.brand__logo--light { opacity: 1; }
.brand__logo--dark  { opacity: 0; }
.header.is-solid .brand__logo--light { opacity: 0; }
.header.is-solid .brand__logo--dark  { opacity: 1; }

.brand__text {
  display: none;
  line-height: 1.15;
}

@media (min-width: 30em) {
  .brand__text { display: block; }
}

.brand__name {
  display: block;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Navigation Desktop */
.nav { display: none; }

@media (min-width: 60em) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 2.5vw, 2.4rem);
  }
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.header__cta { display: none; }

@media (min-width: 72em) {
  .header__cta {
    display: inline-flex;
    padding: 0.75em 1.5em;
  }
}

.header__partner {
  display: none;
  flex: none;
  transition: opacity 0.3s var(--ease);
}

@media (min-width: 66em) {
  .header__partner { display: block; }
}

.header__partner img { height: 2.6rem; width: auto; }
.header:not(.is-solid) .header__partner { filter: brightness(0) invert(1); opacity: 0.9; }

/* Burger */
.burger {
  --burger-fg: currentColor;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

@media (min-width: 60em) { .burger { display: none; } }

.burger:hover { background: currentColor; }
.burger:hover .burger__box { mix-blend-mode: difference; }

.burger__box {
  position: relative;
  width: 1.4rem;
  height: 0.75rem;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--burger-fg);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}

.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 50%; translate: 0 -50%; }
.burger__box span:nth-child(3) { bottom: 0; }

.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(0.365rem) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-0.365rem) rotate(-45deg); }

/* --- Mobile-Menü -------------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  background: var(--ink);
  color: var(--snow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease),
              visibility 0s linear 0.45s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

@media (min-width: 60em) { .menu { display: none; } }

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.menu__list li {
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: 0.13s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: 0.18s; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: 0.23s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: 0.28s; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: 0.33s; }

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.55rem;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.menu__link:hover { color: var(--red); }

.menu__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}

.menu__foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: grid;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.66);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.36s;
}

.menu.is-open .menu__foot { opacity: 1; }
.menu__foot a { color: var(--snow); }

body.is-locked { overflow: hidden; }

/* Bei offenem Menü liegt hinter dem Header die dunkle Menüfläche */
body.is-locked .header {
  background: transparent;
  color: var(--snow);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.is-locked .header::after { opacity: 0; }
body.is-locked .brand__logo--light { opacity: 1; }
body.is-locked .brand__logo--dark { opacity: 0; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(5rem, 16vh, 11rem);
  background: var(--ink-deep);
  color: var(--snow);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  animation: heroZoom 22s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(10 21 29 / 0.86) 0%, rgb(10 21 29 / 0.42) 34%, rgb(10 21 29 / 0.06) 62%, rgb(10 21 29 / 0.32) 100%);
}

.hero__inner { position: relative; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.85em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: clamp(0.12em, 0.6vw, 0.24em);
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.92);
}

.hero__eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.hero h1 {
  margin-top: 1.4rem;
  max-width: 16ch;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-shadow: 0 2px 40px rgb(10 21 29 / 0.35);
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.35;
  color: rgb(255 255 255 / 0.92);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1.1em;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__facts svg { flex: none; opacity: 0.85; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.7), transparent);
  animation: scrollCue 2.4s ease-in-out infinite;
}

@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

@media (max-width: 47.99em) {
  .hero__scroll { display: none; }

  /* Hochformat schneidet das Querformat stark an – Motiv über den Text schieben */
  .hero__media img { object-position: 62% 34%; }

  .hero__scrim {
    background: linear-gradient(to top,
      rgb(10 21 29 / 0.93) 0%,
      rgb(10 21 29 / 0.78) 38%,
      rgb(10 21 29 / 0.28) 68%,
      rgb(10 21 29 / 0.42) 100%);
  }
}

/* --- Split-Layout ------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.05fr 0.95fr; }
  .split--flip > *:first-child { order: 2; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split__media img,
.split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split__media--tall img,
.split__media--tall video { aspect-ratio: 3 / 4; }

.split__media--video video,
.split__media--video img { aspect-ratio: 16 / 9; }

@media (max-width: 55.99em) {
  .split__media--tall img,
  .split__media--tall video { aspect-ratio: 4 / 3; }
}

/* --- Karten ------------------------------------------------------------- */

.cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--snow);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

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

.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: rgb(226 0 26 / 0.08);
  color: var(--red);
}

.card h3 { font-size: var(--step-1); }

.card p {
  font-size: 0.97rem;
  color: var(--muted);
  margin-top: -0.25rem;
}

.card__foot { margin-top: auto; padding-top: 0.5rem; }

/* --- Bildband (Parallax) ------------------------------------------------ */

.band {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 62vh, 40rem);
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--snow);
  text-align: center;
}

.band__media { position: absolute; inset: -12% 0; z-index: -2; }

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(10 21 29 / 0.62), rgb(10 21 29 / 0.5) 50%, rgb(10 21 29 / 0.68)),
    radial-gradient(ellipse at center, rgb(10 21 29 / 0.42), transparent 70%);
}

.band h2 {
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 3px rgb(10 21 29 / 0.45), 0 2px 40px rgb(10 21 29 / 0.55);
}

.band .eyebrow,
.band .lead { text-shadow: 0 1px 3px rgb(10 21 29 / 0.5); }

.band .lead { color: rgb(255 255 255 / 0.92); margin-top: 1.2rem; }

/* --- Highlight-Box ------------------------------------------------------ */

.callout {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: rgb(255 255 255 / 0.82);
  box-shadow: var(--shadow-md);
}

.callout h3 { color: var(--snow); }
.callout strong { color: var(--snow); }

.callout__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.callout__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding-top: 0.7rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.callout__list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--red);
  translate: 0 -0.2em;
}

.callout__note {
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.6);
}

/* Hinweis-Zeile */
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-warm);
  font-size: 0.95rem;
  color: var(--muted);
}

.notice svg { color: var(--red); translate: 0 0.2em; }

/* --- Preistabellen ------------------------------------------------------ */

.pricing { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.price-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.price-block__head h3 {
  font-size: var(--step-2);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.price-block__head p {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

table.price {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

table.price th,
table.price td {
  padding: 0.95rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

table.price thead th {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
  vertical-align: bottom;
}

table.price th[scope="row"],
table.price thead th:first-child {
  text-align: left;
  white-space: normal;
  min-width: 13rem;
  padding-left: 0;
  font-weight: 600;
}

table.price td:last-child,
table.price th:last-child { padding-right: 0; }

@media (min-width: 48em) {
  table.price thead th:not(:first-child) { width: 9.4%; }
  table.price thead th:first-child { width: auto; }
}

table.price tbody tr { transition: background-color 0.25s var(--ease); }
table.price tbody tr:hover { background: var(--paper); }

table.price td { font-weight: 600; }

/* Barzahlungsspalte dezent abgesetzt – ohne Wertung, die Preise sind nicht
   in jeder Zeile günstiger */
table.price .is-highlight { font-weight: 700; }
table.price thead th.is-highlight { color: var(--ink); }

@media (min-width: 48em) {
  table.price td.is-highlight,
  table.price thead th.is-highlight {
    background: rgb(16 31 43 / 0.04);
    box-shadow: inset 1px 0 0 var(--line-soft);
  }
}

/* Mobile: Zeilen werden zu Karten */
@media (max-width: 47.99em) {
  .table-wrap { overflow: visible; }

  table.price,
  table.price tbody,
  table.price tr,
  table.price td,
  table.price th { display: block; width: 100%; }

  table.price thead { display: none; }

  table.price tbody tr {
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--snow);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  table.price tbody tr:hover { background: var(--snow); }

  table.price th[scope="row"] {
    min-width: 0;
    padding: 0.9rem 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.02rem;
    font-weight: 700;
  }

  table.price td {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.6rem 1.1rem;
    text-align: right;
    white-space: nowrap;
  }

  table.price td::before {
    content: attr(data-label);
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  table.price td:last-child { border-bottom: 0; padding-right: 1.1rem; }
}

.scroll-hint {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

@media (min-width: 48em) and (max-width: 68em) {
  .scroll-hint { display: block; }
}

/* --- Webcam ------------------------------------------------------------- */

.webcam {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-soft);
  text-decoration: none;
  color: var(--snow);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}

.webcam:hover { transform: translateY(-4px); }

.webcam img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.webcam:hover img { transform: scale(1.04); }

.webcam__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.95em;
  border-radius: 999px;
  background: rgb(10 21 29 / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.webcam__badge i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(226 0 26 / 0.6); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgb(226 0 26 / 0); }
}

.webcam__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 3.5rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgb(10 21 29 / 0.9), transparent);
}

.webcam__caption strong {
  display: block;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.webcam__caption span {
  font-size: var(--step--1);
  color: rgb(255 255 255 / 0.75);
}

/* --- Partner ------------------------------------------------------------ */

.section--partner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--partner .band__media { position: absolute; inset: 0; z-index: -2; }
.section--partner .band__media img { width: 100%; height: 100%; object-fit: cover; }

.section--partner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.87);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.partners a {
  flex: 0 1 clamp(8rem, 14vw, 11rem);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.partners a:hover {
  background: rgb(255 255 255 / 0.9);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.partners img {
  width: auto;
  max-height: 3.6rem;
  filter: grayscale(100%) contrast(1.15);
  opacity: 0.85;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}

.partners a:hover img { filter: grayscale(0); opacity: 1; }

.partners-more {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- Kontakt ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.04);
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-card p,
.contact-card a {
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 600;
  color: var(--snow);
}

.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--red); text-decoration: underline; }

.contact-card small {
  font-size: var(--step--1);
  font-weight: 400;
  color: rgb(255 255 255 / 0.62);
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--ink-deep);
  color: rgb(255 255 255 / 0.62);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.footer h2 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--snow);
  margin-bottom: 1.1rem;
}

.footer__brand img { height: 3rem; width: auto; margin-bottom: 1.25rem; }

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--snow); }

.footer__social {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease);
}

.footer__social + .footer__social { margin-left: 0.5rem; }

.footer__social:hover {
  background: var(--snow);
  border-color: var(--snow);
  color: var(--ink-deep);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.45);
}

.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --- Rechtsseiten ------------------------------------------------------- */

.page-head {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--snow);
}

.page-head .eyebrow { color: rgb(255 255 255 / 0.55); }
.page-head h1 {
  font-size: var(--step-4);
  text-transform: none;
  margin-top: 0.8rem;
}
.page-head p { margin-top: 1.2rem; max-width: 55ch; color: rgb(255 255 255 / 0.7); }

.legal { max-width: 48rem; }

.legal h2 {
  font-size: var(--step-2);
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal h3 {
  font-size: var(--step-1);
  margin-top: 2rem;
}

.legal p,
.legal ul { margin-top: 1rem; color: var(--muted); }

.legal ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal li::marker { color: var(--red); }
.legal strong { color: var(--ink); }
.legal a { color: var(--red); }

.legal address {
  font-style: normal;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--red);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}

.legal__meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted-soft);
}

/* --- Scroll-Reveal ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

/* --- Utilities ---------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media print {
  .header, .menu, .hero__scroll, .footer__social { display: none !important; }
  body { color: #000; background: #fff; }
}
