/* =========================================================================
   Vinyon — Brand stylesheet
   Based on VIN_Manual_260525 (Kapitel 01–04)
   ========================================================================= */

/* --- Fonts -------------------------------------------------------------- */
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/HostGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/HostGrotesk-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/HostGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/HostGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* Display / serif — Fraunces (SIL OFL, free for commercial/web use).
     Variable axis: weight 300–600. */
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand colors (Kapitel 01) */
  --c-offwhite: #fffffc;
  --c-dark-green: #1d2b21;
  --c-sage: #a9d8b7;
  --c-signal: #81ff8d;     /* CTA / interactive — digital only */
  --c-muted-green: #2d3f33;
  --c-dark-sage: #95bc9d;

  /* Semantic roles */
  --bg: var(--c-offwhite);
  --bg-invert: var(--c-dark-green);
  --text: var(--c-dark-green);
  --text-invert: var(--c-offwhite);
  --accent: var(--c-signal);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.75rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.875rem;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1rem; max-width: 60ch; }

a { color: inherit; text-decoration: none; }

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

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--invert {
  background: var(--bg-invert);
  color: var(--text-invert);
}

/* --- Buttons (Signal Green for CTA, digital only) ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--c-dark-green); }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-offwhite) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-dark-green) 10%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.site-header__logo { height: 56px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
.site-nav a { font-size: var(--fs-small); font-weight: 500; }
.site-nav a:hover { color: var(--c-muted-green); }

.nav-toggle { display: none; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-invert);
  color: var(--text-invert);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer__logo { height: 36px; margin-bottom: 1.5rem; }
.site-footer__cobrand {
  font-size: var(--fs-small);
  opacity: 0.8;
  max-width: 38ch;
}
.site-footer__legal {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--fs-small);
}
.site-footer__legal a { opacity: 0.8; }
.site-footer__legal a:hover { opacity: 1; text-decoration: underline; }

/* --- Splash / Hero (coming-soon) ---------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.splash { background: var(--c-dark-green); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  overflow: hidden;
  color: var(--text-invert);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(29, 43, 33, 0.45) 20%, rgba(29, 43, 33, 0.78) 100%),
    rgba(29, 43, 33, 0.7);
}

/* Top bar — pinned to top, centered */
.hero__top {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-top: clamp(1.75rem, 6vh, 3.75rem);
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 5vh, 3.5rem);
}
/* newsletter pinned toward the bottom */
.hero__newsletter { margin-top: auto; }

/* headline: top (in flow) on mobile, vertically centered on desktop */
.hero__headline {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: clamp(5rem, 18vh, 10rem) 0 0;
}

/* Co-branding lockup */
.lockup {
  --logo-h: clamp(96px, 10.5vw, 150px);
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  justify-content: center;
}
.lockup__logo { height: var(--logo-h); width: auto; }
.lockup__divider {
  width: 1px;
  align-self: center;
  /* sized & offset relative to the logo so it scales identically everywhere */
  height: calc(var(--logo-h) * 0.34);
  transform: translateY(calc(var(--logo-h) * 0.05));
  background: var(--accent);
}
.lockup__tagline {
  margin: 0 0 0 clamp(0.85rem, 2vw, 1.5rem);
  align-self: center;
  /* align tagline top with the x-height (top of "nyon") */
  transform: translateY(0.9em);
  text-align: left;
  font-size: var(--fs-small);
  line-height: 1.35;
  opacity: 0.92;
  max-width: 32ch;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
}

/* Newsletter */
.hero__newsletter {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero__newsletter .cr_form { width: 100%; }
.hero__newsletter .formbox,
.hero__newsletter .editable_content { width: 100%; }

/* Pill input + circular send button */
.cr_form-component--email {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.cr_form-inputgroup--typeemail { flex: 1; min-width: 0; }
.hero__newsletter input[type="email"] {
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--text-invert);
  padding: 1em 1.4em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--c-dark-green) 35%, transparent);
  backdrop-filter: blur(4px);
}
.hero__newsletter input[type="email"]::placeholder {
  color: var(--c-sage);
  opacity: 1;
}
.hero__newsletter input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero__newsletter .cr_button {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--c-dark-green);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hero__newsletter .cr_button:hover { transform: translateY(-2px); }
.hero__newsletter .cr_button svg { display: block; }

/* reCAPTCHA — required by the CleverReach form (not shown in XD) */
.hero__newsletter [rel="recaptcha"] {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.hero__newsletter-note {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-body);
  line-height: 1.5;
  opacity: 0.9;
}
.hero__newsletter-note strong { font-weight: 700; }

.clever_form_error { outline: 2px solid #ff6b6b !important; }
.clever_form_note { color: #ffb4b4; font-size: var(--fs-small); }

/* Floating legal footer */
.hero__legal {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 3vh, 1.75rem);
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  font-size: var(--fs-small);
}
.hero__legal a { opacity: 0.75; }
.hero__legal a:hover { opacity: 1; text-decoration: underline; }

/* --- Message / status pages (newsletter double opt-in) ------------------ */
.message { background: var(--bg); color: var(--text); }

.message__wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.75rem, 6vh, 3.75rem) var(--gutter) clamp(4rem, 9vh, 6rem);
}

/* Co-brand lockup on light background */
.message__top {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-top: clamp(0.5rem, 3vh, 2rem);
}
.message .lockup__divider { background: var(--c-dark-green); }
.message .lockup__tagline { opacity: 0.78; }

/* Centered content block, vertically centered in the remaining space */
.message__card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  gap: clamp(1.25rem, 3vh, 1.75rem);
}

/* Icon badge */
.message__icon {
  width: clamp(76px, 13vw, 104px);
  height: clamp(76px, 13vw, 104px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-sage) 32%, transparent);
  color: var(--c-dark-green);
}
.message__icon svg { width: 44%; height: 44%; display: block; }
/* success variant: a touch of signal-green energy */
.message__icon--success {
  background: color-mix(in srgb, var(--c-signal) 30%, var(--c-sage) 20%);
}

.message__card h1 { margin: 0; }
.message__card p { margin: 0; max-width: 44ch; opacity: 0.85; }
.message__lead { font-size: var(--fs-h3); opacity: 1 !important; }

/* Email address echo (filled by ?email= param) */
.message__email { font-weight: 600; opacity: 1; }

/* Secondary action: resend / back */
.message__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
}
.message__link {
  font-weight: 600;
  color: var(--c-muted-green);
  border-bottom: 1px solid color-mix(in srgb, var(--c-muted-green) 40%, transparent);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.message__link:hover { color: var(--c-dark-green); border-color: currentColor; }

/* Floating legal footer (reuses .hero__legal positioning, dark text) */
.message__legal {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 3vh, 1.75rem);
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  font-size: var(--fs-small);
}
.message__legal a { opacity: 0.6; }
.message__legal a:hover { opacity: 1; text-decoration: underline; }

/* --- Legal pages -------------------------------------------------------- */
.legal { max-width: 1040px; }
.legal h1 {
  margin-bottom: 1.5rem;
  /* long German compound words shouldn't overflow on small screens */
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  margin-top: 2.5rem;
}
.legal address {
  font-style: normal;
  margin-bottom: 1.5rem;
}
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; }
.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
}
.back-link:hover { color: var(--c-muted-green); }

/* Desktop: headline vertically centered in the viewport */
@media (min-width: 721px) {
  .hero__headline {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
  }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  .lockup { gap: 0.7rem; }
  .lockup { --logo-h: clamp(60px, 17vw, 88px); }
  .lockup__tagline { font-size: 0.5rem; max-width: none; }
  .hero__newsletter .cr_button { width: 3em; height: 3em; }
}
