:root {
  --ink: #171a1f;
  --muted: #5f6772;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --line: #e7e9ee;
  --accent: #f4a24f;
  --accent-strong: #eb9138;
  --accent-soft: #fff1df;
  --navy: #10151d;
  --shadow: 0 24px 70px rgba(16, 21, 29, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(16, 27, 36, 0.1);
  backdrop-filter: blur(16px);
}
.brand, .site-nav, .header-action { display: flex; align-items: center; }
.brand { gap: 12px; font-weight: 800; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.brand-text { letter-spacing: -0.02em; }
.site-nav { justify-content: center; gap: clamp(16px, 3vw, 34px); font-size: 0.95rem; }
.site-nav a, .header-action { opacity: 0.92; }
.site-nav a:hover, .header-action:hover { opacity: 1; }
.header-action {
  min-height: 42px; padding: 0 16px; border: 1px solid currentColor;
  border-radius: 999px; font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, 1120px) minmax(20px, 1fr);
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-image, .hero-shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-image { object-fit: cover; object-position: center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 17, 26, 0.92) 0%, rgba(10, 17, 26, 0.74) 34%, rgba(10, 17, 26, 0.12) 72%),
    linear-gradient(0deg, rgba(10, 17, 26, 0.34), rgba(10, 17, 26, 0.05));
}
.hero-content {
  position: relative; z-index: 2; grid-column: 2;
  width: min(860px, 100%); padding: 112px 0 94px;
}
.eyebrow, .section-kicker, .panel-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ffd4a7; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.95;
  letter-spacing: -0.04em; overflow-wrap: normal;
}
h1 span { display: inline; }
h1 span:last-child { color: var(--accent); }
h2 {
  margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.03em;
}
h3 { margin-bottom: 10px; font-size: 1.16rem; line-height: 1.25; }
.hero-copy {
  max-width: 560px; margin-bottom: 28px; color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 660px;
  margin: -8px 0 28px;
}
.project-badge span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 700;
}
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 800;
  cursor: pointer; transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--navy); background: var(--accent);
  box-shadow: 0 14px 30px rgba(244, 162, 79, 0.34);
}
.button-primary:hover { background: var(--accent-strong); }
.button-secondary {
  color: #fff; background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px);
}
.hero-panel {
  position: absolute; z-index: 2; right: clamp(20px, 5vw, 70px); bottom: clamp(22px, 7vh, 82px);
  width: min(350px, calc(100% - 40px)); padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 24px;
  background: rgba(17, 22, 31, 0.72); box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.hero-panel strong { display: block; margin-bottom: 16px; font-size: 1.34rem; line-height: 1.2; }
.status-stack { display: grid; gap: 8px; }
.status-stack span {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
}
.status-stack b { color: #fff; font-size: 1.18rem; }

.band-light { background: var(--soft); }
.intro-grid {
  display: grid; grid-template-columns: 140px minmax(240px, 420px) minmax(240px, 1fr);
  gap: 34px; padding: 44px 0; align-items: start;
}
.intro-grid h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.intro-grid p:last-child { margin-bottom: 0; color: var(--muted); }
.section { padding: clamp(74px, 10vw, 126px) 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }
.role-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role-card, .feature-card, .legal-card {
  min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 24px;
  background: #fff; box-shadow: 0 12px 34px rgba(23, 33, 43, 0.06);
}
.role-card-highlight {
  border-color: rgba(244, 162, 79, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 241, 223, 0.86), rgba(255, 255, 255, 0.96));
}
.role-card p, .feature-card p, .legal-card p { margin-bottom: 0; color: var(--muted); }
.role-icon {
  display: inline-flex; margin-bottom: 24px; color: var(--accent-strong);
  font-size: 0.86rem; font-weight: 900;
}
.band-dark { color: #fff; background: var(--navy); }
.band-dark .section-kicker { color: #ffd4a7; }
.band-dark .section-head p, .band-dark .flow-list p { color: rgba(255, 255, 255, 0.72); }
.split {
  display: grid; grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(32px, 7vw, 78px); align-items: start;
}
.flow-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.flow-list li {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 24px; background: rgba(255, 255, 255, 0.05);
}
.flow-list span {
  display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px;
  color: var(--navy); background: var(--accent); font-weight: 900;
}
.flow-list p { margin-bottom: 0; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { min-height: 178px; }
.feature-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 10px;
  box-shadow: none;
}
.band-accent {
  padding: 42px 0;
  background: linear-gradient(90deg, #1a2029 0%, #252c36 42%, var(--accent) 100%);
}
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric {
  padding: 20px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 24px;
  color: #fff; background: rgba(255, 255, 255, 0.09);
}
.metric strong { display: block; margin-bottom: 4px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.metric span { color: rgba(255, 255, 255, 0.88); }
.contact-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 162, 79, 0.20), transparent 30%),
    linear-gradient(180deg, rgba(255, 241, 223, 0.82), rgba(255, 255, 255, 0.98)),
    var(--paper);
}
.legal-grid {
  display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 7vw, 80px); align-items: start;
}
.legal-stack { display: grid; gap: 18px; }
.legal-card { min-height: auto; }
.legal-card h3 { margin-bottom: 14px; }

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.86);
  background: #0b1017;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-branding {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-logo {
  width: min(100%, 540px);
  height: auto;
}
.footer-copy {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
.footer-copy span:first-child { color: #fff; font-weight: 800; }
.footer-copy span:last-child { color: rgba(255,255,255,0.68); }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .intro-grid, .split, .legal-grid { grid-template-columns: 1fr; }
  .role-grid, .feature-grid, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 940px; align-items: start; }
  .hero-content { padding-top: 118px; }
  .hero-panel { left: 20px; right: auto; bottom: 30px; }
  .footer-branding { flex-direction: column; align-items: flex-start; }
  .footer-copy { justify-items: start; text-align: left; }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .wrap { width: min(100% - 28px, 1120px); }
  .site-header { padding: 12px 14px; }
  .brand-text { display: none; }
  .header-action { min-height: 38px; padding: 0 12px; font-size: 0.9rem; }
  .hero {
    min-height: 860px; display: block; padding: 0 20px;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 17, 26, 0.92) 0%, rgba(10, 17, 26, 0.68) 48%, rgba(10, 17, 26, 0.2) 100%),
      linear-gradient(90deg, rgba(10, 17, 26, 0.55), rgba(10, 17, 26, 0.08));
  }
  h1 { max-width: 100%; font-size: clamp(2.82rem, 12vw, 3.2rem); }
  h1 span { display: block; }
  .hero-actions, .footer-branding { flex-direction: column; }
  .hero-content { width: 100%; }
  .hero-panel {
    position: relative; left: auto; right: auto; bottom: auto; width: 100%; margin: 46px 0 30px;
  }
  .button { width: 100%; }
  .role-grid, .feature-grid, .metrics { grid-template-columns: 1fr; }
  .role-card, .feature-card { min-height: auto; }
  .flow-list li { grid-template-columns: 1fr; }
  .footer-logo { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Feinschliff: nicht-kommerzielles Projekt klarer herausstellen */
.legal-card:first-child {
  position: relative;
  overflow: hidden;
}

.legal-card:first-child::before {
  content: "Nicht-kommerziell";
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #6a3b05;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section:nth-of-type(3) {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

@media (max-width: 1120px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Feinschliff Ablauf-Sektion */
#ablauf .split {
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}

#ablauf .section-head {
  max-width: 430px;
  min-width: 0;
}

#ablauf .section-head h2 {
  max-width: 8.2ch;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

#ablauf .flow-list {
  min-width: 0;
}

@media (max-width: 920px) {
  #ablauf .split {
    grid-template-columns: 1fr;
  }

  #ablauf .section-head,
  #ablauf .section-head h2 {
    max-width: none;
  }

  #ablauf .section-head h2 {
    font-size: clamp(2rem, 8vw, 3.3rem);
    text-wrap: pretty;
  }
}

/* WebApp-Zugang prominent hervorheben */
.header-action-primary {
  color: var(--navy);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(244, 162, 79, 0.24);
}

.header-action-primary:hover {
  color: var(--navy);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.access-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 162, 79, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.access-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(23, 33, 43, 0.06);
}

.access-card span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 1.45rem;
}

.access-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-card-highlight {
  border-color: rgba(244, 162, 79, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 241, 223, 0.88), rgba(255, 255, 255, 0.98));
}

.legal-action {
  margin-top: 20px;
  margin-bottom: 0 !important;
}

@media (max-width: 1120px) {
  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .access-card {
    min-height: auto;
  }
}

.access-card span {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* Unterseite Impressum & Verantwortlichkeit */
.contact-teaser {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 162, 79, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 241, 223, 0.72), rgba(255, 255, 255, 0.98)),
    var(--paper);
}

.contact-teaser-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

.contact-teaser-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(23, 33, 43, 0.08);
}

.contact-teaser-card p {
  color: var(--muted);
}

.contact-teaser-card p a,
.legal-card a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.button-light {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.subpage-hero {
  padding: 140px 0 74px;
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.subpage-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.subpage-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.legal-page-section {
  background: var(--paper);
}

@media (max-width: 920px) {
  .contact-teaser-grid,
  .subpage-hero-grid {
    grid-template-columns: 1fr;
  }

  .subpage-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .subpage-hero {
    padding: 116px 0 58px;
  }

  .subpage-actions .button,
  .contact-teaser-card .button {
    width: 100%;
  }
}
