:root {
  --bg-deep: #0c130f;
  --bg-forest: #14201a;
  --panel: rgba(28, 54, 42, 0.92);
  --panel-solid: #1c362a;
  --panel-line: #3b5c47;
  --gold: #dcbd7f;
  --gold-deep: #c19b57;
  --cream: #f5e8cf;
  --text: #e9dcc3;
  --text-soft: #b9ad95;
  --ink: #2b2415;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(90deg, rgba(8, 14, 11, 0.68) 0%, rgba(8, 14, 11, 0.3) 55%, rgba(8, 14, 11, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 14, 11, 0.12) 0%, rgba(8, 14, 11, 0.66) 100%),
    url("../assets/hintergrund.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

a { color: inherit; }

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

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Fallende Blätter ---------- */
.leaves {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -40px;
  fill: currentColor;
  opacity: 0.55;
  animation: fall linear infinite;
  will-change: transform;
}

@keyframes fall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  50%  { transform: translate3d(38px, 55vh, 0) rotate(180deg); }
  100% { transform: translate3d(-18px, 112vh, 0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .leaf { animation: none; display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Kopfzeile ---------- */
.top {
  position: relative;
  z-index: 3;
  padding-top: 26px;
}

.top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  width: fit-content;
}

.brand img { width: 50px; height: 50px; }

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.15;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.top-logo {
  display: block;
  height: auto;
  width: min(370px, 42vw);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}

.nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
}

.nav a {
  white-space: nowrap;
  padding: 8px 18px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(24, 46, 36, 0.78);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav .lang { display: inline-flex; border: 1px solid var(--panel-line); border-radius: 6px; overflow: hidden; background: rgba(24, 46, 36, 0.78); }
.nav .lang a { padding: 8px 12px; border: 0; border-radius: 0; background: transparent; font-weight: 700; letter-spacing: 0.08em; }
.nav .lang a[aria-current="true"] { color: var(--ink); background: linear-gradient(180deg, #e6cb92 0%, var(--gold-deep) 100%); }

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--panel-solid);
  border-color: var(--gold-deep);
  color: var(--cream);
}

/* ---------- Bausteine ---------- */
.kicker {
  margin: 0 0 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
  margin: 0;
  line-height: 1.12;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.2s, border-color 0.2s;
}

.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, #e6cb92 0%, var(--gold-deep) 100%);
  box-shadow: 0 10px 26px -12px rgba(220, 189, 127, 0.55);
}

.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }

.foot-legal { font-size: 0.88rem; color: var(--text-soft); text-decoration: none; }
.foot-legal:hover { color: var(--cream); }

.btn-disabled,
.btn-disabled:hover {
  opacity: 0.55;
  filter: grayscale(0.5);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn-line {
  color: var(--text);
  background: rgba(18, 38, 29, 0.55);
  border-color: var(--panel-line);
}

.btn-line:hover { border-color: var(--gold-deep); color: var(--cream); }

.btn svg { flex: none; }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.card-head img {
  width: 52px;
  height: 52px;
  flex: none;
}

.card-head .kicker { margin: 0 0 2px; font-size: 0.64rem; letter-spacing: 0.2em; }

.card-head strong {
  font-weight: 500;
  color: var(--cream);
  font-size: 1rem;
}

.card h2 { font-size: 2.05rem; margin-bottom: 10px; }

.card p.lead {
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--panel-line);
}

.fineprint {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------- Hinweis ---------- */
.notice {
  position: relative;
  z-index: 2;
  margin-top: 34px;
}

.notice-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 28px;
  background: rgba(32, 24, 10, 0.82);
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.pill {
  flex: none;
  padding: 5px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #e6cb92 0%, var(--gold-deep) 100%);
  border-radius: 999px;
}

.notice h2 { font-size: 1.5rem; margin-bottom: 6px; }

.notice p { margin: 0; color: var(--text); font-size: 0.98rem; max-width: 760px; }

.notice + .notice { margin-top: 16px; }

.notice-box.engine {
  align-items: center;
  background: rgba(14, 26, 20, 0.82);
  border-color: var(--panel-line);
}

.ue-logo { flex: none; width: auto; height: 78px; }

.ue-credit {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-soft);
  opacity: 0.8;
}

@media (max-width: 560px) {
  .notice-box { flex-direction: column; gap: 14px; padding: 22px; }
  .ue-logo { height: 64px; }
}

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 90px 0 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 430px);
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.1rem);
  margin-bottom: 26px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.hero-text {
  max-width: 470px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

/* ---------- Startseite: Abschnitte ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 40px 0 100px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 40px;
  max-width: 560px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  padding: 28px 26px 30px;
  background: rgba(20, 40, 31, 0.78);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
}

.feature .num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
}

.feature h3 { font-size: 1.35rem; margin-bottom: 10px; }

.feature p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }

.cta {
  margin-top: 70px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: rgba(20, 40, 31, 0.78);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
}

.cta h2 { font-size: 1.9rem; margin-bottom: 6px; }

.cta p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.cta .btn { width: auto; min-width: 250px; }

/* ---------- Download-Seite ---------- */
.dl-hero {
  position: relative;
  z-index: 2;
  padding: 70px 0 40px;
  text-align: center;
}

.dl-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); margin-bottom: 18px; }

.dl-hero p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.05rem;
}

.dl-main {
  position: relative;
  z-index: 2;
  padding: 26px 0 100px;
}

.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dl-card .btn { margin-top: 22px; }

.meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 26px;
  font-size: 0.92rem;
}

.meta dt { color: var(--text-soft); }

.meta dd { margin: 0; color: var(--cream); text-align: right; }

.hash {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-line);
}

.hash span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hash code {
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  color: var(--gold);
  word-break: break-all;
  line-height: 1.5;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 22px 56px;
  counter-increment: step;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  background: rgba(12, 22, 17, 0.6);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 6px;
  width: 1px;
  background: var(--panel-line);
}

.steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cream);
  font-weight: 600;
}

.steps span { font-size: 0.9rem; color: var(--text-soft); }

.dl-card h2, .dl-steps h2 { font-size: 1.6rem; margin-bottom: 22px; }

/* ---------- Changelog ---------- */
.log-main {
  position: relative;
  z-index: 2;
  padding: 26px 0 100px;
}

.log-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.log-entry { padding: 30px 32px; }

.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-line);
}

.log-head h2 { font-size: 1.8rem; }

.log-head time {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.log-intro {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--cream);
}

.log-entry h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  color: var(--gold);
}

.log-entry p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.log-entry ul { margin: 0 0 12px; padding-left: 20px; }

.log-entry li { margin: 8px 0; font-size: 0.95rem; color: var(--text); }

.log-entry li::marker { color: var(--gold-deep); }

.log-entry li strong { color: var(--cream); font-weight: 600; }

.log-entry li ul { margin: 8px 0 4px; }

.log-entry li li { margin: 3px 0; }

.log-empty {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 32px;
}

.log-empty h2 { font-size: 1.6rem; margin-bottom: 8px; }

.log-empty p { margin: 0; color: var(--text-soft); }

@media (max-width: 560px) {
  .log-entry, .log-empty { padding: 24px 22px; }
}

/* ---------- Fußzeile ---------- */
.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(59, 92, 71, 0.6);
  background: rgba(8, 14, 11, 0.55);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 32px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.foot-by {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-by img { height: 34px; width: auto; }

.foot-by a { text-decoration: none; color: var(--text); }

.foot-version {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .top-inner { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .top-logo { margin: 0 auto; width: min(340px, 82vw); }
  .nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 1.15rem; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .nav a { padding: 8px 14px; }
  .card { padding: 24px 22px; }
  .cta { padding: 30px 24px; }
  .cta .btn { width: 100%; }
  .foot-inner { padding: 22px 20px; }
}
