/* ==========================================================================
   ARYAS GmbH – Corporate Website
   Aufbau: Tokens · Basis · Layout · Komponenten · Sections · Legal · Motion · Intro
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Markenfarben laut Logo-Paket */
  --ink: #191B1D;
  --anthracite: #1B1E22;
  --cream: #EFE9DE;
  --ivory: #F5F1ED;
  --white: #FFFFFF;

  /* Akzent: zurückhaltendes Blau */
  --blue: #1F4A86;           /* Text/Linien-Akzent (AA auf Elfenbein und Weiß) */
  --blue-deep: #16294A;      /* Datenpunkt */
  --blue-bright: #3F78C9;    /* Impulse, Glow */

  --ink-muted: #56585A;
  --ink-line: rgba(25, 27, 29, .13);
  --cream-muted: rgba(239, 233, 222, .66);
  --cream-line: rgba(239, 233, 222, .16);

  /* Typografie – Systemschriften, keine externen Requests.
     Für Webfonts: Dateien selbst hosten und hier vorn eintragen. */
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.9rem, 7.6vw, 6.75rem);
  --fs-h2: clamp(2.2rem, 5.2vw, 4.5rem);
  --fs-h3: clamp(1.6rem, 2.4vw, 2.1rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .8125rem;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 12vw, 11rem);
  --max: 1320px;
  --header-h: 4.5rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .25, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer :focus-visible { outline-color: var(--cream); }

::selection { background: var(--blue); color: var(--white); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section); background: var(--ivory); }
.section--white { background: var(--white); }

/* ---------- Typografie-Bausteine ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
}

.h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--blue); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 34em;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 3.25rem;
  padding: .85rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--blue); color: var(--white); }

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(25, 27, 29, .28);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--ivory); border-color: var(--ink); }

.btn--small { min-height: 2.75rem; padding: .55rem 1.3rem; font-size: .875rem; }

.arrow { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), opacity .8s var(--ease);
}
.header.is-scrolled, .header--solid {
  background: rgba(245, 241, 237, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ink-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.brand__icon { height: 2.1rem; width: auto; }
.brand__word { height: .82rem; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav__list { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav__link {
  position: relative;
  padding-block: .5rem;
  font-size: .875rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .2rem;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  margin-right: -.6rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 1.5rem; height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle span + span { margin-top: .45rem; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(.25rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-.25rem) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--ivory);
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: .5rem; }
  .nav__link {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 9vw, 3rem);
    letter-spacing: 0;
    color: var(--ink);
    line-height: 1.25;
  }
  .nav__link::after { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3.5rem, 9vh, 6rem);
  background: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
/* Hero-Animation: steht rechts neben dem Text; die Ränder laufen weich in den Hintergrund aus,
   weil das Video einen eigenen (wärmeren) Hintergrundton mitbringt */
.hero__media {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -3vw;
  width: min(66vw, 150vh);
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  object-fit: cover;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
  transition: filter .9s ease;
}
.hero__media.is-resetting { filter: opacity(0); }   /* weicher Neustart der Animation */

/* Headline im Takt der Animation: Netzwerk → Technology · Dashboards → Operations · Logo → Execution */
.hero--sync .hero__title .line { opacity: .2; transition: opacity 1.4s var(--ease); }
.hero--sync .hero__title .line.is-lit { opacity: 1; }

/* schmalere Fenster (hochkant/quadratisch): Animation weiter nach rechts, damit der Text frei bleibt */
@media (max-aspect-ratio: 3/2) {
  .hero__media { right: -8vw; width: 64vw; }
}.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero__brand img { height: 2.4rem; width: auto; }
.hero__title {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: italic; color: var(--blue); }
.hero__lead { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(2rem, 4vw, 3rem); }
/* Glas-Effekt: Netzwerklinien laufen weich hinter dem zweiten Button durch */
.hero .btn--ghost {
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vh, 3.5rem);
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .6875rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 3.5rem;
  background: linear-gradient(var(--ink), transparent);
  transform-origin: top;
  animation: scroll-hint 2.4s var(--ease) infinite;
}
@keyframes scroll-hint {
  0% { transform: scaleY(0); }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 820px) {
  .hero { align-items: flex-end; padding-bottom: 3rem; }
  /* mobil: Animation oben, Text darunter */
  .hero__media {
    top: 1.75rem;
    left: 50%;
    right: auto;
    width: 108vw;
    transform: translateX(-50%);
  }
  .hero__brand { letter-spacing: .14em; gap: .75rem; }
  .hero__brand img { display: none; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
/* ---------- Statement ---------- */
.statement__text {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  max-width: 17em;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6.4vw, 5.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.statement__text .w { transition: opacity .25s linear; }
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3.5rem, 8vw, 7rem);
  align-items: start;
}
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.value {
  padding-block: 1.6rem;
  border-top: 1px solid var(--ink-line);
}
.value__name {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}
.value__text { margin-top: .35rem; color: var(--ink-muted); font-size: .9375rem; }

@media (max-width: 820px) {
  .statement__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .values { grid-template-columns: 1fr; }
}

/* ---------- Säulen ---------- */
.pillars__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}
.pillars__head .h2 { margin-top: 1.5rem; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.pillar { position: relative; }
.pillar:nth-child(2) { margin-top: clamp(2rem, 5vw, 5rem); }
.pillar:nth-child(3) { margin-top: clamp(4rem, 10vw, 10rem); }

.pillar__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.pillar__img { position: absolute; inset: -12% 0; will-change: transform; }
.pillar__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}
.pillar__num {
  position: absolute;
  left: 1.25rem; top: 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--ink);
  padding: .1rem .6rem;
  border-radius: 999px;
  background: rgba(245, 241, 237, .82);
}
.pillar__body {
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
  margin-top: 1.6rem;
  position: relative;
}
.pillar__body::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease);
}
.pillar__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.pillar__text { margin-top: .85rem; color: var(--ink-muted); max-width: 30em; }
.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}
.pillar__tags li {
  padding: .3rem .8rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--ink-muted);
}

@media (hover: hover) {
  .pillar:hover .pillar__media img { transform: scale(1.07); }
  .pillar:hover .pillar__body::before { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .pillars__head { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; gap: clamp(3rem, 8vw, 4.5rem); }
  .pillar, .pillar:nth-child(2), .pillar:nth-child(3) { margin-top: 0; }
  .pillar {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
  }
  .pillar__body { margin-top: 0; }
}
@media (max-width: 640px) {
  .pillar { grid-template-columns: 1fr; gap: 0; }
  .pillar__media { aspect-ratio: 5 / 4; }
  .pillar__body { margin-top: 1.4rem; }
}

/* ---------- Warum ARYAS ---------- */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.why__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
.why__intro .h2 { margin-top: 1.5rem; }
.why__intro .lead { margin-top: 1.5rem; }

.why__list { counter-reset: why; }
.why__item {
  counter-increment: why;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: clamp(1.4rem, 2.6vw, 2.1rem);
  border-top: 1px solid var(--ink-line);
  transition: padding-left .5s var(--ease);
}
.why__item:last-child { border-bottom: 1px solid var(--ink-line); }
.why__item::before {
  content: counter(why, decimal-leading-zero);
  padding-top: .5em;
  font-size: var(--fs-small);
  letter-spacing: .14em;
  color: var(--blue);
}
.why__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.9vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.why__text { grid-column: 2; margin-top: .4rem; color: var(--ink-muted); }

@media (hover: hover) {
  .why__item:hover { padding-left: .75rem; }
}
@media (max-width: 820px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .why__item { grid-template-columns: 2.6rem minmax(0, 1fr); }
}

/* ---------- Kontakt ---------- */
.contact__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--cream);
}
.contact__visual-media { position: absolute; inset: -12% 0; will-change: transform; }
.contact__visual-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.contact__address { font-style: normal; line-height: 1.5; }
.contact__note { display: block; margin-top: .35rem; font-size: .875rem; color: var(--ink-muted); }
.contact__caption {
  position: absolute;
  left: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(245, 241, 237, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro .h2 { margin-top: 1.5rem; }
.contact__intro .lead { margin-top: 1.5rem; }
.contact__details {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
}
.contact__details dt {
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}
.contact__details dd { margin: .2rem 0 0; font-size: 1.0625rem; }
.contact__details a { text-decoration: none; border-bottom: 1px solid var(--ink-line); transition: border-color .3s; }
.contact__details a:hover { border-color: var(--blue); }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 60px -40px rgba(25, 27, 29, .25);
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field label .opt { letter-spacing: .08em; text-transform: none; }
.field input,
.field select,
.field textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .7rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(25, 27, 29, .35);
  border-radius: 0;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23191B1D' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .2rem center;
  background-size: .7rem;
  padding-right: 1.5rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
}
.form.was-validated .field :invalid { border-bottom-color: #B4412B; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.consent input {
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin: .15rem 0 0;
  accent-color: var(--blue);
}
.consent a { color: var(--ink); }
.form__footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form__status { font-size: .9375rem; color: var(--ink-muted); min-height: 1.5em; }
.form__status.is-error { color: #A23A26; }
.form__status.is-success { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact__visual { aspect-ratio: 16 / 10; }
  .form { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
}

/* ---------- Footer (einzige dunkle Fläche – Kontrast) ---------- */
.footer {
  background: var(--anthracite);
  color: var(--cream);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  color-scheme: dark;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
}
.footer__logo { width: clamp(8rem, 14vw, 11rem); height: auto; }
.footer__claim { margin-top: 1.5rem; max-width: 20em; color: var(--cream-muted); font-size: .9375rem; }
.footer__heading {
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer__list { margin-top: 1.1rem; display: grid; gap: .55rem; font-size: .9375rem; }
.footer__list a, .footer__list span { color: var(--cream-muted); text-decoration: none; transition: color .3s; }
.footer__list a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-line);
  font-size: .8125rem;
  color: var(--cream-muted);
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem)); padding-bottom: var(--section); }
.legal__inner { max-width: 46rem; }
.legal h1 {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal__note {
  margin-top: 2.5rem;
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--blue);
  background: var(--white);
  font-size: .9375rem;
}
.legal h2 {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
}
.legal p, .legal ul { margin-top: 1rem; color: #3A3C3E; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal li + li { margin-top: .35rem; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal a.btn { color: var(--ivory); text-decoration: none; }
.legal a.btn:hover { color: var(--white); }
.ph {
  padding: .08em .4em;
  background: rgba(31, 74, 134, .12);
  color: var(--ink);
  border-radius: 3px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .86em;
  overflow-wrap: anywhere;
}

.legal address { margin-top: 1rem; font-style: normal; color: #3A3C3E; }
.legal ol { margin-top: 1rem; padding-left: 1.4rem; color: #3A3C3E; }
.legal .stand { color: var(--ink-muted); font-size: .9375rem; }
.legal__sub { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--ink) !important; }
.legal .hinweis {
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--blue);
  background: var(--white);
  font-weight: 600;
  color: var(--ink);
}
.legal h2 { scroll-margin-top: calc(var(--header-h) + 1rem); }
/* AGB: Inhaltsverzeichnis */
.agb-toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--ink-line);
  font-size: .9375rem;
}
.legal .agb-toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.legal .agb-toc li { margin: 0 0 .3rem; break-inside: avoid; }
.agb-toc a { text-decoration: none; }
.agb-toc a:hover { text-decoration: underline; }
.agb-print { margin-top: 1.5rem; }
@media (max-width: 600px) { .legal .agb-toc ol { columns: 1; } }

/* ---------- Cookie-Hinweis ---------- */
.cookie-banner {
  position: fixed;
  left: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  z-index: 150;
  width: min(26rem, calc(100vw - 1.5rem));
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--ink-line);
  box-shadow: 0 24px 60px -24px rgba(25, 27, 29, .35);
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
}
.cookie-banner__text { margin-top: .5rem; font-size: .9375rem; line-height: 1.55; color: var(--ink-muted); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.1rem; }
.cookie-banner__link { font-size: .875rem; color: var(--ink); text-underline-offset: 3px; }

/* ---------- Motion: Reveal beim Scrollen ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
/* Clip liegt auf dem Bild, nicht auf dem beobachteten Element –
   ein vollständig geclipptes Element meldet dem IntersectionObserver keine Sichtbarkeit. */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease) var(--d, 0ms), transform 1.4s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in img { clip-path: inset(0 0 0 0); }

/* ---------- Motion: Hero-Einstieg ---------- */
.js .hero [data-hero] { opacity: 0; transform: translate3d(0, 1rem, 0); }
.js .hero__title .line > span { transform: translate3d(0, 110%, 0); }
.js.is-ready .hero [data-hero] {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) var(--d, .2s), transform 1s var(--ease) var(--d, .2s);
}
.js.is-ready .hero__title .line > span {
  transform: none;
  transition: transform 1.2s var(--ease) calc(.15s + var(--i, 0) * .12s);
}

/* ---------- Motion: Scroll-Effekte ---------- */
/* „Warum ARYAS“: Fortschrittslinie und Punkte, die beim Scrollen aktiv werden */
.js .why__list { position: relative; }
.js .why__list::before,
.js .why__list::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(-3rem, -3vw, -1.5rem);
  width: 1px;
  background: var(--ink-line);
}
.js .why__list::after {
  background: var(--blue);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.js .why__title, .js .why__text, .js .why__item::before { transition: opacity .6s var(--ease); }
.js .why__item:not(.is-active) .why__title,
.js .why__item:not(.is-active) .why__text { opacity: .32; }
.js .why__item:not(.is-active)::before { opacity: .4; }
@media (max-width: 820px) {
  .js .why__list::before, .js .why__list::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
  .js .why__item .why__title, .js .why__item .why__text { opacity: 1 !important; }
}

@media print {
  .header, .nav-toggle, .scroll-progress, .hero__media, .cookie-banner, .footer, .agb-toc, .agb-print, .skip-link { display: none; }
  .js [data-reveal], .js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
}
