@import url("theme.css?v=20261019-brand-colors");

@font-face {
  font-family: "Quicksand";
  src: url("assets/Quicksand-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("assets/Urbanist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fdfdfc;
  --selection-bg: #6A00FF;
  --selection-fg: #fff;
  --selection-inverse-bg: #fff;
  --selection-inverse-fg: #6A00FF;
  --side: clamp(1.5rem, 5.4vw, 7rem);
  --space-1: clamp(.65rem, 1vw, 1rem);
  --space-2: clamp(1.1rem, 1.8vw, 1.75rem);
  --space-3: clamp(1.75rem, 3vw, 3rem);
  --space-4: clamp(3.5rem, 7vw, 8rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--orange);
  background: var(--page);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
}

/* Textauswahl auf weißen Flächen: violetter Hintergrund, weiße Schrift. */
::selection { color: var(--selection-fg); background: var(--selection-bg); }
::-moz-selection { color: var(--selection-fg); background: var(--selection-bg); }

/* Alternative Textauswahl: orange Hintergrund, weiße Schrift.
--selection-bg: var(--orange);
--selection-fg: var(--page);
--selection-inverse-bg: var(--page);
--selection-inverse-fg: var(--orange);
*/

/* Textauswahl in orangefarbenen Flächen: Weiß als Kontrastfläche. */
.statement ::selection,
.site-footer ::selection,
.background-section ::selection,
.contact-form-section ::selection,
.nav-link.is-active::selection { color: var(--selection-inverse-fg); background: var(--selection-inverse-bg); }

.statement ::-moz-selection,
.site-footer ::-moz-selection,
.background-section ::-moz-selection,
.contact-form-section ::-moz-selection,
.nav-link.is-active::-moz-selection { color: var(--selection-inverse-fg); background: var(--selection-inverse-bg); }

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

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  padding: clamp(1.75rem, 4vw, 4.75rem) var(--side) 0;
  font-size: clamp(1.35rem, 1.85vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 1.12em;
  padding: 0 .18em .05em;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.nav-link.is-active { color: var(--page); background: var(--orange); }

.primary-nav { display: flex; gap: clamp(1.25rem, 2.8vw, 3.75rem); }
.primary-nav a, .site-footer a { transition: opacity 160ms ease; }
.primary-nav a:hover, .site-footer a:hover { opacity: .62; }

.menu-toggle { display: none; border: 0; border-radius: 0; color: var(--page); background: var(--orange); cursor: pointer; }
.menu-toggle-lines { display: grid; width: 1.35rem; gap: .24rem; }
.menu-toggle-lines span { display: block; height: 2px; background: currentColor; transform-origin: center; transition: transform 240ms ease, opacity 180ms ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero { min-height: calc(100svh - clamp(11rem, 17vw, 16rem)); }

h1 {
  margin: clamp(4.5rem, 10vh, 8.5rem) var(--side) 0;
  font-size: clamp(5.5rem, 11vw, 13rem);
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -0.055em;
}

.statement {
  margin: 0;
  color: var(--page);
  background: var(--orange);
  font-size: clamp(1.05rem, 1.35vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

.statement-problem {
  width: min(49vw, 60rem);
  margin-top: clamp(4.5rem, 9vh, 8rem);
  padding: var(--space-2) var(--side) var(--space-2);
}

.statement-problem p { margin: 0; }
.statement-problem p:nth-child(2) { font-weight: 700; }

.statement-purpose {
  width: min(66vw, 82rem);
  margin-top: var(--space-1);
  padding: var(--space-1) var(--side);
  font-weight: 700;
}

.site-footer {
  padding: var(--space-2) var(--side);
  background: var(--orange);
  color: var(--page);
  font-size: clamp(.8rem, .95vw, 1.15rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: .7rem clamp(1.75rem, 2.7vw, 3.5rem); }

@media (max-width: 760px) {
  :root { --side: clamp(1.25rem, 6vw, 2rem); }
  body.menu-open { overflow: hidden; }
  .site-header { position: relative; z-index: 20; align-items: center; justify-content: space-between; gap: 1rem; padding-top: max(3.75rem, calc(env(safe-area-inset-top, 0px) + 1rem)); animation: none; opacity: 1; transform: none; }
  .site-header.menu-is-open .brand-mark { position: relative; z-index: 30; visibility: visible; }
  .menu-toggle { position: relative; z-index: 30; display: grid; place-items: center; width: 3.35rem; height: 2.7rem; padding: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) { transform: translateY(.48rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) { transform: translateY(-.48rem) rotate(-45deg); }
  .primary-nav { position: fixed; z-index: 25; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(1.25rem, 5vw, 2rem); padding: max(6.5rem, calc(env(safe-area-inset-top) + 5.5rem)) var(--side) max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem)); color: var(--page); background: var(--orange); visibility: hidden; transform: translateX(-100%); transition: transform 360ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 360ms; }
  .primary-nav.is-open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .primary-nav .nav-link { height: auto; padding: 0; font-size: clamp(2.9rem, 14vw, 4.5rem); font-weight: 780; line-height: .86; letter-spacing: -.055em; }
  .primary-nav .nav-link.is-active { padding: .03em .14em .08em; color: var(--orange); background: var(--page); }
  /* Keep the footer below the initial mobile viewport so Home remains scrollable. */
  .hero { min-height: calc(100svh - 7rem); padding-bottom: clamp(4.5rem, 12vw, 6.5rem); }
  h1 { margin-top: clamp(4.75rem, 16vw, 6.5rem); font-size: clamp(4.75rem, 24vw, 7rem); }
  .statement-problem, .statement-purpose { width: calc(100% - var(--side)); }
  .statement-problem { margin-top: clamp(3.25rem, 12vw, 4.75rem); }
  .statement-purpose { margin-top: var(--space-1); }
  .site-footer { padding-top: 1.25rem; padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem)); }
  .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 1.15rem; }
  .menu-toggle { width: 3.1rem; height: 2.55rem; }
  h1 { font-size: clamp(4.4rem, 23vw, 5.25rem); }
  .statement { font-size: 1rem; line-height: 1.31; }
  .site-footer { font-size: .92rem; }
  .site-footer nav { grid-template-columns: 1fr; gap: .72rem; }
}

@media (max-height: 700px) and (max-width: 700px) {
  .primary-nav { gap: 1rem; padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 4.5rem)); }
  .primary-nav .nav-link { font-size: clamp(2.65rem, 12vw, 3.7rem); }
}

@media (prefers-reduced-motion: reduce) { .menu-toggle-lines span, .primary-nav { transition: none; } }

@media (prefers-reduced-motion: no-preference) {
  .site-header, h1, .statement { animation: appear 600ms both cubic-bezier(.2,.8,.2,1); }
  h1 { animation-delay: 100ms; }
  .statement-problem { animation-delay: 220ms; }
  .statement-purpose { animation-delay: 320ms; }
  @keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 760px) {
  .site-header { animation: none; opacity: 1; transform: none; }
}
