/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Theme: Dark (Standard) ── */
:root {
  --bg:               #14141f;
  --bg-alt:           #181828;
  --card-bg:          #1c1c2e;
  --card-border:      #252538;
  --surface:          #161625;
  --surface-border:   #222235;

  --text:             #e8e8f2;
  --text-heading:     #f0f0ff;
  --text-muted:       #8b95a5;
  --text-subtle:      #4a5568;

  --accent:           #85CA20;
  --accent-glow:      rgba(133, 202, 32, 0.22);
  --accent-gradient:  linear-gradient(135deg, #85CA20 0%, #597D22 100%);

  --link:             #85CA20;
  --divider:          #222235;

  --nav-bg:           rgba(9, 9, 18, 0.88);
  --toggle-bg:        #10101e;
  --toggle-border:    #1e1e32;
  --toggle-color:     #8b95a5;

  --hero-dot:         rgba(133, 202, 32, 0.09);
  --hero-glow:        rgba(133, 202, 32, 0.09);
}

/* ── Theme: Light ── */
body.light {
  --bg:               #f0f2f8;
  --bg-alt:           #e8eaf4;
  --card-bg:          #ffffff;
  --card-border:      #d1d5db;
  --surface:          #f5f7fc;
  --surface-border:   #e2e5ef;

  --text:             #111827;
  --text-heading:     #0d0d1a;
  --text-muted:       #4b5563;
  --text-subtle:      #9ca3af;

  --accent:           #597D22;
  --accent-glow:      rgba(89, 125, 34, 0.15);
  --accent-gradient:  linear-gradient(135deg, #85CA20 0%, #597D22 100%);

  --link:             #597D22;
  --divider:          #e5e7eb;

  --nav-bg:           rgba(240, 242, 248, 0.92);
  --toggle-bg:        #ffffff;
  --toggle-border:    #d1d5db;
  --toggle-color:     #4b5563;

  --hero-dot:         rgba(89, 125, 34, 0.07);
  --hero-glow:        rgba(89, 125, 34, 0.06);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); }

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Fixed Controls (oben rechts) ── */
.controls {
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 200;
}

.ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, transform 0.15s, color 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: manipulation;
}

.ctrl-btn:hover   { transform: scale(1.08); border-color: var(--accent); color: var(--accent); }
.ctrl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Hero ── */
header#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Punkt-Raster Hintergrund */
header#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--hero-dot) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Radiales Leuchten */
header#hero::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: min(500px, 60vw);
  background: radial-gradient(ellipse, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  padding-bottom: 0.12em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-tagline {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-subtle);
  font-size: 1.1rem;
  text-decoration: none;
  animation: bounce 2.5s 1s infinite;
  z-index: 1;
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.625rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  border: none;
  cursor: pointer;
  min-height: 44px; /* Touch-Ziel */
  transition: transform 0.15s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 16px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); }

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Sektionen ── */
.section       { padding: 6rem 2rem; }
.section--alt  { background: var(--bg-alt); }

.section-inner {
  max-width: 920px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

/* ── About ── */
.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-facts {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.fact-number {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.fact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ── Milestone-Karten ── */
.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.milestone-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.375rem;
}

.milestone-card .m-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.milestone-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Community ── */
.community-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.community-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: border-color 0.2s, transform 0.15s;
}

.community-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-icon { font-size: 1.75rem; line-height: 1; margin-bottom: 0.25rem; }

.community-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.community-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-detail {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-family: 'Courier New', 'Lucida Console', monospace;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  word-break: break-all;
}

/* ── Footer ── */
footer {
  padding: 2rem;
  border-top: 1px solid var(--divider);
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-sep { color: var(--text-subtle); opacity: 0.4; font-size: 0.8rem; }

.footer-copyright { font-size: 0.78rem; color: var(--text-subtle); }

/* ── Legal-Seiten ── */
.legal-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--link); }

.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta { font-size: 0.82rem; color: var(--text-subtle); margin-bottom: 2.5rem; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.info-card p:last-child { margin-bottom: 0; }

.law-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.law-box h3 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}

.law-item {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.law-item:last-child { margin-bottom: 0; }

.law-ref {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.05rem;
  min-width: 84px;
}

.law-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.law-text a { color: var(--link); text-decoration: none; }
.law-text a:hover { text-decoration: underline; }

.legal-section { margin-bottom: 2.5rem; }

.legal-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.legal-section h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.legal-section ul { margin: 0.5rem 0 0.75rem 1.4rem; }

.legal-section li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-section a { color: var(--link); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.info-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}

.info-box p { margin-bottom: 0; }

.badge-green {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.legal-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  font-size: 0.8rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legal-footer a { color: var(--text-subtle); text-decoration: none; transition: color 0.2s; }
.legal-footer a:hover { color: var(--link); }

/* ── TS3-Adresse mit Kopierbutton ── */
.ts-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-address .card-detail { flex: 1; margin: 0; }

.copy-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--card-border);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
  color: var(--text-subtle);
  touch-action: manipulation;
}

.copy-btn:hover        { border-color: var(--accent); color: var(--accent); }
.copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }

  .section { padding: 4rem 1.25rem; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: min(280px, 90vw);
  }

  .about-facts { gap: 1.75rem; }
  .milestones  { grid-template-columns: 1fr; }

  .legal-wrap { padding: 2.5rem 1.25rem 4rem; }
  .info-card  { padding: 1.5rem; }
}

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