/* =========================================================
   Gervarta – statische Website
   ========================================================= */

:root {
  --bg: #1d1d1d;
  --surface: #333437;
  --nav-pill: rgba(255, 255, 255, 0.09);
  --text: #a4a4a4;
  --heading: #ffffff;
  --muted-line: #a4a4a4;
  --red: #cf0303;
  --red-bright: #ff0000;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-frame: 18px;
  --frame: 10px;
  --gutter: 48px;
  --inner: 20px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h5 { color: var(--heading); margin: 0; }

p { margin: 0 0 18px; }

ul { list-style: none; margin: 0; padding: 0; }

strong { color: var(--heading); font-weight: 700; }

.container {
  max-width: calc(1344px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  transition: background-color .25s ease, color .25s ease;
}

.btn--outline {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.btn--outline:hover { background: #fff; color: var(--bg); }

.btn--lg { font-size: 18px; padding: 13px 38px; }

/* ---------- Hero ---------- */
.hero-wrap { padding: var(--frame); }

.hero {
  position: relative;
  min-height: calc(100vh - 2 * var(--frame));
  background: var(--surface);
  border-radius: var(--radius-frame);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}

.hero__globe {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(62vw, 960px);
  aspect-ratio: 1;
  transform: translateY(-58%);
  pointer-events: none;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.nav__logo img { width: 190px; height: auto; }

.nav__menu ul {
  display: flex;
  background: var(--nav-pill);
  border-radius: 100px;
  padding: 6px 8px;
}

.nav__menu a {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  transition: background-color .2s ease;
}

.nav__menu a:hover { background: rgba(255, 255, 255, .08); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__cta { padding: 12px 28px; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}

.lang a {
  color: var(--text);
  padding: 6px 8px;
  border-radius: 100px;
  transition: color .2s ease;
}

.lang a:hover,
.lang a[aria-current="page"] { color: #fff; }

.lang a[aria-current="page"] { background: var(--nav-pill); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(29, 29, 29, .97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu ul { text-align: center; }

.mobile-menu li a {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  padding: 10px;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--inner) 120px;
}

.hero__title {
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-left: 10px solid var(--red);
  padding-left: 20px;
  max-width: 1000px;
}

.hero__title span { display: block; }

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  margin-top: 56px;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__features svg {
  width: 52px;
  height: 52px;
  flex: none;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__features svg .dots circle { fill: #fff; stroke: none; }

.hero__features h3 {
  font-size: 18px;
  max-width: 240px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--offset { margin-top: 50px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 1.2px;
  background: var(--red-bright);
  flex: none;
}

.section h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Scroll-gesteuerte Textfarbe (Wort für Wort) */
.reveal-text .word {
  color: var(--text);
  font-weight: 200;
  transition: color .35s ease;
}

.reveal-text .word.is-lit { color: #fff; }
.reveal-text strong .word.is-lit { font-weight: 700; }

/* Zweispaltiger Intro-Block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 829fr) minmax(0, 484fr);
  gap: 40px;
  padding: 0 var(--inner);
}

.split--bottom .split__side { align-self: end; }

.split__main { padding-top: 40px; }

.split__side p { color: #fff; }

.split__side .btn { margin-top: 30px; }

/* Bilder */
.media {
  margin: 60px var(--inner) 0;
}

.media img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.media--inset { padding: 0 var(--inner); }

/* Feature-Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 50px var(--inner) 0;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--muted-line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color .25s ease, transform .25s ease;
}

.card:hover { border-color: #fff; transform: translateY(-3px); }

.card__icon,
.values svg {
  flex: none;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__icon { width: 60px; height: 60px; }

.card h3,
.values h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.card p,
.values p { margin: 0; }

/* Mission */
.mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.mission__text { padding: 48px var(--inner) 0; }

.mission__text h2 { margin-bottom: 70px; }

.mission__text p { color: #fff; }

.mission__box {
  border: 1px solid var(--muted-line);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  display: flex;
  align-items: center;
}

.values { display: grid; gap: 34px; }

.values li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.values svg { width: 42px; height: 42px; margin-top: 18px; }

.values h3 { margin-bottom: 6px; }

/* Kontakt */
.section--contact {
  background: var(--surface);
  padding: 48px 0 80px;
  margin-top: 80px;
}

.section--contact .container > * { margin-left: var(--inner); margin-right: var(--inner); }

.section--contact h2 { max-width: 1100px; margin-bottom: 70px; }

.contact__address {
  font-style: normal;
  color: #fff;
}

.contact__address a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer-wrap { padding: var(--frame); }

.footer {
  background: var(--surface);
  border-radius: var(--radius-frame);
  padding: 40px var(--gutter) 0;
  text-align: center;
  overflow: hidden;
}

.footer__logo { display: inline-block; }
.footer__logo img { width: 258px; }

.footer__legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.footer__logo + .footer__legal { margin-top: 36px; }
.footer__legal li { color: var(--text); }

.footer a { color: var(--text); transition: color .2s ease; }
.footer a:hover { color: #fff; }

.footer__bottom {
  margin: 60px calc(-1 * var(--gutter) + 10px) 0;
  border-top: 1px solid var(--muted-line);
  padding: 28px 20px;
  font-size: 15px;
}

.footer__bottom p { margin: 0; }

/* Back-to-top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Rechtsseiten ---------- */
.legal-nav {
  background: var(--surface);
  border-radius: var(--radius-frame);
  padding: 20px var(--gutter);
}

.legal { max-width: 860px; }

.legal h1 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  border-left: 8px solid var(--red);
  padding-left: 18px;
  margin: 8px 0 48px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 10px;
}

.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.legal__note {
  margin-top: 48px;
  padding: 16px 20px;
  border: 1px solid var(--muted-line);
  border-radius: var(--radius-md);
  font-size: 16px;
}

/* ---------- Einblend-Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-up.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav__menu a { padding: 8px 12px; font-size: 15px; }
}

@media (max-width: 1200px) {
  .nav__menu,
  .nav__cta { display: none; }

  .nav__toggle { display: flex; }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }

  .split,
  .mission { grid-template-columns: 1fr; }

  .split__main { padding-top: 0; }

  .hero__globe { width: 90vw; right: -30%; opacity: .55; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --inner: 8px; }

  body { font-size: 16px; }

  .section { padding: 56px 0; }

  .hero__content { padding-bottom: 60px; }

  .hero__title {
    font-size: clamp(28px, 8.4vw, 40px);
    border-left-width: 6px;
    padding-left: 14px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero__features { flex-direction: column; margin-top: 40px; }

  .hero__globe { width: 120vw; right: -50%; top: 30%; }

  .btn--lg { width: 100%; padding: 13px 20px; font-size: 16px; }

  .mission__text h2,
  .section--contact h2 { margin-bottom: 36px; }

  .footer__logo img { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .reveal-text .word { transition: none; }
}
