/* ============================================================
   HERZ & VERSTAND — Landingpage
   ============================================================ */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Variable.woff2") format("woff2-variations"),
       url("../fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAFAF7;
  --ink: #121210;
  --ink-soft: #3A3A36;
  --grey: #8B877E;
  --line: rgba(18, 18, 16, 0.12);

  --contact: #6dc6d9;
  --contact-hover: #e52420;
  --btn-contact: #e52420;
  --btn-contact-hover: #6dc6d9;

  --font: "Figtree", system-ui, sans-serif;
  --track-wide: 0.14em;
  --track-tight: -0.025em;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--paper);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--contact); color: var(--ink); }
:focus-visible { outline: 2px solid var(--contact); outline-offset: 3px; border-radius: 2px; }

.wrap { padding-inline: var(--gutter); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--grey);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--contact); }

.h-xl { font-size: clamp(2.4rem, 6.8vw, 7.6rem); }
.h-sm { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.display, h1, h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: var(--track-tight);
  line-height: 0.96;
}
.outline-word { color: transparent; -webkit-text-stroke: 2px var(--paper); text-stroke: 2px var(--paper); }

/* ---------- Pill-Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 100rem;
  border: 0;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  white-space: nowrap;
  background: var(--btn-contact);
  color: var(--paper);
  transition: background 0.35s var(--ease-expo), color 0.35s var(--ease-expo), transform 0.3s var(--ease-expo);
}
.btn-pill:hover { background: var(--btn-contact-hover); color: #0A2126; }
.btn-pill:active { transform: scale(0.97); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: clamp(1.1rem, 2.5vw, 1.6rem);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand img {
  height: clamp(3.89rem, 7.49vw, 5.4rem);
  width: auto;
}
.brand { display: inline-flex; }

/* ---------- Hero (fullscreen Video) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
  overflow: hidden;
  background: var(--paper);
  color: var(--paper);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,9,0.82) 0%, rgba(10,10,9,0.3) 40%, rgba(10,10,9,0.08) 66%, rgba(10,10,9,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-title { line-height: 0.87; }
.hero-title .indent { padding-left: clamp(1.5rem, 10vw, 9rem); }
.hero-meta { margin-top: clamp(2rem, 5vh, 3.5rem); }

.hero-subclaim {
  font-family: var(--font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-tight);
  line-height: 0.98;
  font-size: clamp(0.88rem, 0.72rem + 1.2vw, 1.36rem);
  max-width: 22ch;
  margin-bottom: 1.1rem;
}
@media (min-width: 900px) {
  .hero-subclaim { white-space: nowrap; max-width: none; }
}

.hero-claim {
  max-width: 30rem;
  font-weight: 500;
  color: rgba(250,250,247,0.82);
}
@media (min-width: 900px) {
  .hero-claim { max-width: 46rem; }
}

/* ---------- Impressum-Link (fixiert unten rechts) ---------- */
.legal-link {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(1.1rem, 2.5vw, 1.6rem);
  z-index: 45;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: rgba(250,250,247,0.65);
  transition: color 0.3s;
}
.legal-link:hover { color: var(--paper); }

/* ============================================================
   Kontakt-Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 10, 9, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0s linear 0.4s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-soft), visibility 0s;
}

.modal-box {
  position: relative;
  width: min(100%, 54rem);
  max-height: 94vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox: Scrollbar-Leiste ausblenden, Inhalt bleibt scrollbar als Sicherheitsnetz */
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 40px 80px -20px rgba(10,10,9,0.45), 0 10px 30px -8px rgba(10,10,9,0.25);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  transform: scale(0.94) translateY(18px);
  opacity: 0;
  transition: transform 0.55s var(--ease-expo), opacity 0.5s var(--ease-expo);
}
.modal-box::-webkit-scrollbar { display: none; } /* Chrome/Safari: Scrollbar-Leiste ausblenden */
.modal-overlay.is-open .modal-box { transform: scale(1) translateY(0); opacity: 1; }

.modal-close {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.25rem);
  right: clamp(0.85rem, 2vw, 1.25rem);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18,18,16,0.06);
  transition: background 0.3s, transform 0.4s var(--ease-expo);
}
.modal-close:hover { background: rgba(18,18,16,0.12); transform: rotate(90deg); }

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.modal-info .eyebrow { margin-bottom: 0.6rem; }
.modal-info h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1rem; }
.modal-contact-list { border-top: 1px solid var(--line); margin-top: 0.4rem; }
.modal-contact-list address { font-style: normal; }
.modal-contact-list li {
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.modal-contact-list .k {
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--grey);
}
.modal-contact-list a { font-weight: 500; transition: color 0.3s; }
.modal-contact-list a:hover { color: var(--contact-hover); }

.form-field { margin-bottom: 0.9rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--grey);
  margin-bottom: 0.35rem;
}
.form-field input, .form-field textarea {
  width: 100%;
  font: inherit;
  font-weight: 500;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--contact);
  background: rgba(255,255,255,0.85);
}
.form-field textarea { resize: vertical; min-height: 4.2rem; }

.btn-submit { width: 100%; justify-content: center; margin-top: 0.2rem; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.form-error {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #b31d19;
  line-height: 1.5;
}
.form-error a { text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.form-success[hidden] { display: none !important; }
.form-success .check {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--contact);
  display: grid;
  place-items: center;
  color: #0A2126;
  animation: pop 0.5s var(--ease-expo);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.form-success p { max-width: 32ch; color: var(--ink-soft); font-weight: 500; }

/* ============================================================
   Cookie-Consent-Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  max-width: 40rem;
  margin-inline: auto;
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-radius: 1.1rem;
  box-shadow: 0 30px 60px -18px rgba(10,10,9,0.4);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.6s var(--ease-expo), opacity 0.5s var(--ease-expo);
  pointer-events: none;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: var(--contact-hover); }
.cookie-actions { display: flex; gap: 0.7rem; margin-top: 1.1rem; flex-wrap: wrap; }
.btn-cookie {
  padding: 0.65rem 1.3rem;
  border-radius: 100rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-cookie-solid { background: var(--ink); color: var(--paper); }
.btn-cookie-solid:hover { background: var(--contact-hover); }
.btn-cookie-ghost { border: 1px solid var(--line); color: var(--ink-soft); }
.btn-cookie-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   Impressum-Seite
   ============================================================ */
.legal-page { background: var(--paper); color: var(--ink); min-height: 100%; }
.legal-header {
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.legal-header .brand img { filter: none; }
.legal-main { padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem); max-width: 48rem; margin-inline: auto; }
.legal-main h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.legal-section { margin-top: 2.75rem; }
.legal-section h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--grey);
  margin-bottom: 0.9rem;
}
.legal-section p, .legal-section address { font-style: normal; color: var(--ink-soft); margin-bottom: 0.6rem; }
.legal-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-section a:hover { color: var(--contact-hover); }
.legal-placeholder {
  display: inline-block;
  background: rgba(229, 36, 32, 0.1);
  color: #b31d19;
  padding: 0.1rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.85em;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--ink-soft);
}
.legal-back:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 2rem 1.5rem; }
  .hero-title .indent { padding-left: 0.5rem; }
  .legal-link { right: 1rem; bottom: 1rem; }

  /* Video: nicht mehr bildschirmfüllend in der Höhe, sondern 70%,
     dafür randlos über die volle Breite (kein Left/Right-Margin).
     Oberkante ungefähr auf Höhe der Kontakt-Button-Mitte.
     Der abdunkelnde Verlauf liegt auf der gesamten Hero-Fläche (.hero::after),
     nicht auf der Video-Box — Video und weißer Seitenhintergrund gehen
     dadurch nahtlos ineinander über, keine sichtbare Kante. */
  .hero-media {
    inset: auto;
    top: 2.6rem;
    left: 0;
    width: 100%;
    height: 70vh;
    height: 70dvh;
  }
  .hero-media video { width: 100%; height: 100%; object-fit: cover; }

  /* Headline & Subline: deutlich größer, breitenfüllend — Größe so gewählt,
     dass die längste Zeile "Offline …" ohne Umbruch in eine Zeile passt */
  .h-xl { font-size: clamp(3rem, 16.5vw, 7.2rem); }
  .offline-line { white-space: nowrap; }
  .hero-subclaim { font-size: clamp(1.4rem, 6.5vw, 2rem); max-width: none; }

  /* Fließtext: Umbruch nach dem ersten Satz entfällt, freier Fluss */
  .sentence-break { display: none; }

  /* Abstand Headline → Subline um ca. 30% reduziert */
  .hero-meta { margin-top: clamp(1.4rem, 3.5vh, 2.45rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
