/*
 * nicogleichmann.de
 * Farben, Schriften und Abstände stehen als Variablen in :root.
 * Schriften liegen lokal in assets/fonts (keine Verbindung zu Google).
 */

/* ---------- Schriften (SIL Open Font License, siehe assets/fonts) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-wght.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #12100d;
  --surface: #1b1713;
  --surface-raised: #221c15;
  --text: #f3ebdd;
  --text-soft: #c9bca7;
  --text-faint: #a09380;
  --gold: #d4b07a;
  --gold-strong: #e2c48e;
  --copper: #b5764c;
  --on-gold: #17120b;
  --line: rgba(243, 235, 221, 0.1);
  --line-strong: rgba(243, 235, 221, 0.2);
  --line-gold: rgba(212, 176, 122, 0.35);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;
  --header-height: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(181, 118, 76, 0.16), transparent 60%),
    radial-gradient(900px 520px at -10% 0%, rgba(212, 176, 122, 0.07), transparent 55%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 0.75rem;
}

.eyebrow {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-primary:hover {
  background: var(--gold-strong);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--line-gold);
  background: rgba(212, 176, 122, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-underline-offset: 0.3em;
  transition:
    color 200ms var(--ease),
    text-decoration-color 200ms var(--ease);
}

.text-link:hover {
  color: var(--gold-strong);
  text-decoration-color: currentColor;
}

.text-link .icon {
  transition: transform 200ms var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Header & Navigation ---------- */
.scroll-progress {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 13, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.logo {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-strong);
  text-decoration: none;
  transition:
    border-color 200ms var(--ease),
    background-color 200ms var(--ease);
}

.logo:hover {
  border-color: var(--gold);
  background: rgba(212, 176, 122, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition:
    color 200ms var(--ease),
    background-color 200ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current='true'] {
  color: var(--text);
}

.site-nav a[aria-current='true']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.site-nav .site-nav-cta {
  margin-left: 0.5rem;
  border: 1px solid var(--line-gold);
  color: var(--gold-strong);
}

.site-nav .site-nav-cta:hover {
  background: rgba(212, 176, 122, 0.1);
}

.site-nav .site-nav-cta[aria-current='true']::after {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

.nav-toggle-bars {
  position: relative;
  transform: translateY(-3px);
}

.nav-toggle-bars::before {
  content: '';
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(-6px) rotate(-90deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-strong);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: clamp(220px, 24vw, 300px);
  margin: 0;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 120, 74, 0.22), transparent);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 1.4rem 1.25rem 0.25rem;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.fact dd {
  margin: 0.4rem 0 0;
  font-variant-numeric: lining-nums;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.fact dd span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-soft);
}

/* ---------- Abschnitte ---------- */
.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 42rem;
}

.section-head h2 + p {
  margin-top: 1.25rem;
}

.stamp {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.825rem;
  color: var(--text-faint);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split--narrow-left {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.split--narrow-left .section-head {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.prose {
  max-width: 40rem;
  margin-top: 1.75rem;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose p:first-child {
  font-size: 1.15rem;
  color: var(--text);
}

/* Kurzprofil */
.profile-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.profile-list {
  margin: 1.25rem 0 0;
}

.profile-list div {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.profile-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.profile-list dd {
  margin: 0.2rem 0 0;
  color: var(--text);
}

/* Karten */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 250ms var(--ease),
    translate 250ms var(--ease);
}

/* translate statt transform, damit die Einblend-Animation nicht kollidiert */
.card:hover {
  border-color: var(--line-gold);
  translate: 0 -3px;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 0.55rem;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 + p {
  margin-top: 0.6rem;
}

/* ---------- Lumio ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(181, 118, 76, 0.16), transparent 70%),
    linear-gradient(160deg, var(--surface-raised), var(--surface));
}

.feature h2 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.feature-slogan {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.5em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold-strong);
}

.feature-text {
  max-width: 36rem;
  margin-top: 1.25rem;
}

.feature-copy .btn {
  margin-top: 2rem;
}

.feature-url {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.feature-list {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 1.35rem 0 1.35rem 2rem;
  border-top: 1px solid var(--line);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.feature-list h3 + p {
  margin-top: 0.4rem;
}

/* ---------- Weg / Zeitleiste ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(var(--line-gold), var(--line) 70%);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}

.timeline-item.is-done::before {
  border-color: var(--text-faint);
  background: var(--text-faint);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.timeline-item.is-current::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow:
    inset 0 0 0 3px var(--bg),
    0 0 0 5px rgba(212, 176, 122, 0.16);
}

.timeline-item.is-goal::before {
  border-color: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.85);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.timeline-date strong {
  color: var(--gold);
}

.timeline-item h3 {
  margin-top: 0.3rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.timeline-item h3 + p {
  margin-top: 0.4rem;
}

/* ---------- Werte ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.value {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-gold);
}

.value-numeral {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

.value h3 {
  margin-top: 1.25rem;
}

.value h3 + p {
  margin-top: 0.5rem;
}

.quote {
  max-width: 46rem;
  margin: clamp(4rem, 9vw, 6.5rem) auto 0;
  text-align: center;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.quote figcaption {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.quote figcaption::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 1.25rem;
  background: var(--gold);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-main h2 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.contact-lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.copy-feedback {
  min-height: 1.6em;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--gold);
}

.contact-side {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-side h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.contact-side p {
  margin-top: 0.75rem;
}

.contact-side .text-link {
  margin-top: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.footer-nav a:hover {
  color: var(--gold);
}

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page {
  padding-block: clamp(3.5rem, 8vw, 6rem) var(--section-space);
}

.page-header {
  max-width: 46rem;
}

.page-header h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.page-header h1 + p {
  margin-top: 1rem;
}

.legal {
  max-width: 46rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.legal h3 {
  margin-top: 1.75rem;
}

.legal p,
.legal ul {
  margin-top: 0.85rem;
}

.legal ul {
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  color: var(--gold);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--gold-strong);
}

.legal address {
  margin-top: 0.85rem;
  font-style: normal;
  color: var(--text);
}

.page-back {
  margin-top: 3rem;
}

.not-found {
  display: grid;
  min-height: calc(100svh - var(--header-height) - 8rem);
  align-content: center;
  padding-block: 4rem;
}

.not-found .eyebrow {
  font-size: 0.85rem;
}

.not-found h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.not-found p:not(.eyebrow) {
  max-width: 32rem;
  margin-top: 1.25rem;
}

.not-found .hero-actions {
  margin-top: 2rem;
}

/* ---------- Bewegung (nur wenn erwünscht und vom Browser unterstützt) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    .scroll-progress {
      display: block;
      position: fixed;
      inset: 0 0 auto;
      z-index: 60;
      height: 2px;
      background: linear-gradient(90deg, var(--copper), var(--gold-strong));
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
  }

  .hero-copy > *,
  .hero-portrait {
    animation: rise 900ms var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 240ms;
  }

  .hero-portrait {
    animation-delay: 200ms;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .split,
  .split--narrow-left,
  .feature,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--narrow-left .section-head {
    position: static;
  }

  .card-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Ohne JavaScript: Navigation als scrollbare Zeile */
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    padding: 0.5rem var(--gutter);
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    scrollbar-width: none;
  }

  .site-nav a {
    flex: none;
  }

  /* Mit JavaScript: Aufklappmenü */
  .has-js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    overflow: visible;
  }

  .has-js .site-nav.is-open {
    display: flex;
  }

  .has-js .site-nav a {
    padding: 0.85rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .has-js .site-nav a[aria-current='true']::after {
    left: auto;
    right: 0;
    bottom: 50%;
    transform: translateY(50%);
  }

  .has-js .site-nav .site-nav-cta {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border-bottom: 1px solid var(--line-gold);
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-portrait {
    grid-row: 1;
    justify-self: start;
    width: min(62%, 240px);
    margin: 0.75rem 0 0 0.875rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-actions .btn {
    overflow-wrap: anywhere;
  }
}
