:root {
  color-scheme: dark;
  --green-950: #07130a;
  --green-900: #0c2111;
  --green-800: #183a1f;
  --green-700: #24532d;
  --rose-gold: #ffdabb;
  --rose-gold-muted: rgba(255, 218, 187, 0.72);
  --rose-gold-soft: rgba(255, 218, 187, 0.12);
  --text: #fff7ef;
  --muted: rgba(255, 247, 239, 0.7);
  --line: rgba(255, 218, 187, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Lato, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 218, 187, 0.16), transparent 34rem),
    linear-gradient(135deg, var(--green-950), var(--green-800));
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  align-content: center;
  gap: 20px;
}

.hero,
.portfolio-shell,
.info-strip,
.banner-shell,
.journey-shell,
.content-shell,
.admin-hero,
.admin-card,
.admin-alert,
.legal-hero,
.legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(12, 33, 17, 0.94), rgba(7, 19, 10, 0.9));
  box-shadow: var(--shadow);
}

.hero {
  min-height: 480px;
  padding: clamp(32px, 7vw, 84px);
  display: grid;
  align-content: center;
  justify-items: start;
  border-radius: 8px;
}

.brand-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 2px solid var(--rose-gold);
  border-radius: 50%;
  color: var(--rose-gold);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--rose-gold-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.notice {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  border: 1px solid var(--rose-gold);
  background: var(--rose-gold);
  color: var(--green-950);
  font-weight: 800;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--rose-gold-soft);
  color: var(--rose-gold);
  font-weight: 700;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.banner-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 8px;
}

.banner-shell p:not(.section-label) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.banner-link {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid var(--rose-gold);
  border-radius: 8px;
  color: var(--green-950);
  background: var(--rose-gold);
  font-weight: 800;
  text-decoration: none;
}

.journey-shell {
  display: grid;
  gap: 22px;
  padding: 30px;
  border-radius: 8px;
}

.journey-intro {
  max-width: 780px;
}

.journey-intro p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.journey-steps article {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 218, 187, 0.2);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.06);
}

.journey-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--rose-gold);
  color: var(--green-950);
  font-weight: 900;
}

.journey-steps h3 {
  font-size: 1.12rem;
}

.journey-steps p,
.journey-choice p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.journey-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 218, 187, 0.28);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.08);
}

.journey-choice strong {
  color: var(--rose-gold);
  font-size: 1.08rem;
}

.journey-choice-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-shell,
.content-shell {
  padding: 26px;
  border-radius: 8px;
}

.portfolio-shell::after {
  content: "Hinweis: Dieser Bereich zeigt feste MUN Token-Daten. Ihr echtes Guthaben sehen Sie oben in der entsperrten Wallet.";
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 218, 187, 0.28);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.07);
  color: var(--muted);
  line-height: 1.5;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.token-grid div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.06);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
}

dd {
  margin: 6px 0 0;
  color: var(--rose-gold);
  font-size: 1.15rem;
  font-weight: 800;
}

.contract {
  overflow-wrap: anywhere;
  margin: 18px 0 0;
  color: var(--rose-gold-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.06);
}

.info-card h3 {
  color: var(--text);
  font-size: 1.18rem;
}

.info-card p:not(.info-type) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.info-card time,
.info-type {
  color: var(--rose-gold-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card time {
  display: block;
  margin-top: 14px;
}

.info-strip {
  padding: 18px 22px;
  border-radius: 8px;
  color: var(--muted);
}

.info-strip p {
  margin: 0;
}

.admin-shell {
  align-content: start;
}

.admin-hero,
.admin-card,
.admin-alert {
  padding: 26px;
  border-radius: 8px;
}

.admin-form {
  display: grid;
  gap: 20px;
}

.admin-card {
  display: grid;
  gap: 16px;
}

.admin-card label,
.admin-checkbox-line {
  display: grid;
  gap: 8px;
  color: var(--rose-gold-muted);
  font-weight: 800;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.08);
  color: var(--text);
  padding: 13px 14px;
}

.admin-card textarea {
  resize: vertical;
  min-height: 110px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-checkbox-line input {
  width: auto;
}

.admin-alert p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-alert-success {
  border-color: rgba(117, 224, 153, 0.7);
  color: #c6ffd8;
}

.admin-alert-danger {
  border-color: rgba(255, 124, 124, 0.7);
  color: #ffd3d3;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-link-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.legal-shell {
  align-content: start;
}

.legal-hero,
.legal-card {
  padding: 26px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.legal-hero p:not(.section-label),
.legal-card p,
.legal-list {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-card {
  display: grid;
  gap: 16px;
}

.legal-definition-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-definition-list div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 218, 187, 0.06);
}

.legal-definition-list dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
}

.legal-list li + li {
  margin-top: 10px;
}

.legal-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-nav {
  justify-content: center;
}

.legal-nav .secondary-action {
  min-width: 150px;
}

.site-footer {
  padding: 22px 0 0;
  color: var(--muted);
  text-align: center;
}

.site-footer nav {
  justify-content: center;
}

.site-footer p {
  max-width: 760px;
  margin: 12px auto 0;
  line-height: 1.55;
}

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

  .journey-choice {
    display: grid;
  }

  .journey-choice-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 20px 0;
  }

  .hero {
    min-height: 520px;
    padding: 28px;
  }

  .actions,
  .admin-actions {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .banner-shell {
    display: grid;
  }

  .banner-link {
    width: 100%;
  }

  .journey-shell {
    padding: 22px;
  }

  .journey-steps,
  .token-grid,
  .info-grid,
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .journey-steps,
  .journey-choice-actions,
  .token-grid,
  .info-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
