/* ===== TANAM — Gemeinsame Styles für alle Seiten ===== */

:root {
  --ink: #1a1410;
  --paper: #e8dcc8;
  --acid: #c8a870;
  --rust: #c03820;
  --rust-text: #a02810; /* Dunkleres Rot für Text auf hellem BG — WCAG AA konform */
  --grey: #6a5840;
  --line: rgba(26,20,16,0.12);
}

/* ===== LOADING OVERLAY ===== */
#tanam-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--paper);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  opacity: 1; visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#tanam-loader.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-yy {
  position: relative; width: 120px; height: 120px;
  animation: yySpin 1.4s cubic-bezier(.5,0,.5,1) infinite;
}
.loader-half {
  position: absolute; width: 60px; height: 120px;
  top: 0;
}
.loader-half-black {
  left: 0; background: var(--ink);
  border-radius: 60px 0 0 60px;
  animation: morphLeft 1.4s ease-in-out infinite;
}
.loader-half-white {
  right: 0; background: var(--rust);
  border-radius: 0 60px 60px 0;
  animation: morphRight 1.4s ease-in-out infinite;
}
.loader-dot {
  position: absolute; width: 18px; height: 18px;
  border-radius: 50%; left: 50%; transform: translateX(-50%);
}
.loader-dot.top { top: 18px; background: var(--rust); animation: dotPulse 1.4s ease-in-out infinite; }
.loader-dot.bot { bottom: 18px; background: var(--ink); animation: dotPulse 1.4s ease-in-out infinite reverse; }
@keyframes yySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes morphLeft {
  0%, 100% { border-radius: 60px 0 0 60px; }
  50% { border-radius: 60px 30px 30px 60px; }
}
@keyframes morphRight {
  0%, 100% { border-radius: 0 60px 60px 0; }
  50% { border-radius: 30px 60px 60px 30px; }
}
@keyframes dotPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(0.6); opacity: 0.6; }
}
.loader-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink);
  overflow: hidden;
}
.loader-text span {
  display: inline-block;
  animation: letterRise 1.4s cubic-bezier(.2,.7,.2,1) infinite;
}
.loader-text span:nth-child(1) { animation-delay: 0.00s; }
.loader-text span:nth-child(2) { animation-delay: 0.08s; }
.loader-text span:nth-child(3) { animation-delay: 0.16s; }
.loader-text span:nth-child(4) { animation-delay: 0.24s; }
.loader-text span:nth-child(5) { animation-delay: 0.32s; }
@keyframes letterRise {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* Body während Loading scrollen verhindern */
body.is-loading { overflow: hidden; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #e8dcc8; color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* Grain overlay über die ganze Seite */
body::after {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Scroll-Fortschrittsbalken oben ===== */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: var(--rust-text); z-index: 200;
  transition: width 0.1s linear;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: rgba(244,241,234,0.82);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Archivo Black', sans-serif; font-size: 22px;
  letter-spacing: -0.04em; display: flex; align-items: center; gap: 12px;
}
.logo-mark {
  width: 38px; height: 38px;
  animation: logoSpin 18s linear infinite;
  transition: animation-duration 0.3s ease;
}
.logo:hover .logo-mark { animation-duration: 3s; }
@keyframes logoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-text span { color: var(--rust); display: inline-block; transition: transform 0.3s ease; }
.logo:hover .logo-text span { animation: wiggle 0.5s ease; }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-15deg)} 75%{transform:rotate(15deg)} }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  position: relative; transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rust-text); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--rust-text); transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.active { color: var(--rust-text); }
.nav-links a.active:not(.nav-cta)::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--rust); color: var(--paper); transform: translate(-2px,-2px); }
.burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 30px; height: 24px; justify-content: center;
  padding: 2px;
}
.burger span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Sektion Standards ===== */
section { padding: 100px 28px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--grey); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow.dashed::before {
  content: ""; width: 40px; height: 2px; background: currentColor;
  animation: stretchLine 2.5s ease-in-out infinite;
}
@keyframes stretchLine { 0%,100%{width:40px} 50%{width:70px} }
.sec-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 0.98;
  letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: 26px;
}

/* ===== Buttons ===== */
.btn {
  font-family: 'Space Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 16px 26px; border-radius: 100px;
  border: 2px solid var(--ink); display: inline-block;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-3px,-3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rust); border-color: var(--rust); }
.btn-ghost:hover { background: var(--acid); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--acid); border-color: var(--acid); }
.btn-line-light { color: var(--paper); border-color: var(--paper); }
.btn-line-light:hover { background: var(--ink); border-color: var(--ink); }

/* ===== Universal Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Buchstaben-Reveal — wenn ein Element mit Klasse .reveal-letters scrollt, fliegen die Buchstaben rein */
.reveal-letters .char {
  display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.reveal-letters.in .char { opacity: 1; transform: translateY(0) rotate(0); }

/* ===== Custom Cursor (nur Desktop, nicht touch) ===== */
.tanam-cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--rust);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, transform 0.05s linear;
  mix-blend-mode: difference;
}
.tanam-cursor-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 2px solid var(--ink); border-radius: 50%;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  mix-blend-mode: difference;
}
.tanam-cursor.is-hover { width: 40px; height: 40px; background: var(--tan); opacity: 0.5; }
.tanam-cursor-ring.is-hover { width: 0; height: 0; border-color: transparent; }
@media (pointer: coarse) {
  .tanam-cursor, .tanam-cursor-ring { display: none; }
}
body.has-cursor, body.has-cursor * { cursor: none !important; }

/* ===== Parallax-Klasse — leichtes Verschieben beim Scrollen ===== */
.parallax { will-change: transform; }

/* ===== FOOTER ===== */
footer { background: var(--ink); color: var(--paper); padding: 80px 28px 30px; }
.foot-top {
  display: flex; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(244,241,234,0.18);
}
.foot-big {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.04em;
}
.foot-big span { color: var(--rust); }
.foot-col h5 {
  font-family: 'Space Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--acid); margin-bottom: 14px;
}
.foot-col a, .foot-col p {
  display: block; font-size: 0.95rem; margin-bottom: 8px; color: #d8d5cd;
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-col a:hover { color: var(--acid); transform: translateX(4px); }
.foot-bottom {
  max-width: 1200px; margin: 30px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ===== Floating Hero Icons (für Hero-Sektionen) ===== */
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floater {
  position: absolute; opacity: 0.22;
  animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-200px) rotate(360deg); }
}

/* ===== Blob-Gradienten für lebendige Hintergründe ===== */
.hero-blob {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  filter: blur(40px); pointer-events: none;
  animation: floatBlob 16s ease-in-out infinite;
}
.hero-blob.acid { background: radial-gradient(circle, rgba(214,255,0,0.22), transparent 70%); }
.hero-blob.rust { background: radial-gradient(circle, rgba(255,77,46,0.20), transparent 70%);
  animation-duration: 20s; animation-direction: reverse; }
@keyframes floatBlob {
  0%,100% { transform: translate(-100px,-80px) scale(1); }
  50% { transform: translate(120px,60px) scale(1.25); }
}

/* ===== Reduced Motion Support ===== */
/* ===== Skip Link (Tastatur-Accessibility) ===== */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  font-family: 'Space Mono', monospace; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--rust); }

/* ===== Fokus-Styles (Tastatur-Navigation sichtbar) ===== */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 3px;
}

/* ===== PRINT STYLES — Impressum/Datenschutz sauber drucken ===== */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  body::after, .tanam-cursor, .tanam-cursor-ring,
  #tanam-loader, .scroll-prog, .hero-blob, .floaters,
  nav, footer, .marquee, .green-marquee, .green-band,
  .cta-band, .newsletter-band, .skip-link { display: none !important; }
  section, .page-hero { padding: 12pt 0 !important; }
  .page-hero { border-bottom: 1pt solid #000; }
  h1 { font-size: 22pt; line-height: 1.2; margin-bottom: 12pt; color: #000; }
  h2 { font-size: 14pt; margin-top: 14pt; margin-bottom: 6pt; color: #000; }
  h3 { font-size: 12pt; margin-top: 10pt; color: #000; }
  p, li { color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .legal-block { border-color: #000; page-break-inside: avoid; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
  .wrap, .legal-wrap { max-width: none !important; padding: 0 !important; }
}

/* ===== Reduced Motion Support — respektiert Nutzer-Einstellungen ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-letters {
    opacity: 1 !important; transform: none !important;
  }
  .reveal-letters .char { opacity: 1 !important; transform: none !important; }
  .tanam-cursor, .tanam-cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
  #tanam-loader { display: none !important; }
  body.is-loading { overflow: auto !important; }
  .floater, .marquee-track, .green-marquee, .loader-yy { animation: none !important; }
}

/* ===== PAGE TRANSITION ===== */
#page-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  opacity: 1; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
}
#page-overlay.is-out { opacity: 0; }

/* ===== DARK MODE ===== */
html.dark {
  --ink: #e8dcc8;
  --paper: #1a1410;
  --acid: #c8a870;
  --rust: #e04830;
  --grey: #a09070;
  --brown: #887860;
  --line: rgba(232,220,200,0.12);
}
html.dark body { background: #1a1410; }
html.dark .nav { background: #0e0c08; }
html.dark footer { background: #0e0c08; }
html.dark .foot-inner { background: #0e0c08; }

#darkModeToggle {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(232,220,200,0.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--paper); transition: border-color .2s, background .2s;
  flex-shrink: 0; margin-right: 8px;
}
#darkModeToggle:hover { border-color: var(--paper); background: rgba(232,220,200,0.1); }
#darkModeToggle svg { stroke: var(--paper); }

/* ===== NAV SCROLL BEHAVIOUR ===== */
.nav { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 2px 24px rgba(26,20,16,0.18); }
.nav.nav-hidden { transform: translateY(-100%); }

/* ===== BURGER ANIMATION ===== */
.burger { cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 4px; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--paper); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ===== MICRO ANIMATIONS ===== */
.ngo-card, .event-card {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ngo-card:hover, .event-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:active, .btn-ink:active { transform: translate(2px, 2px) !important; }
.chip { transition: background .15s, color .15s, transform .15s; }
.chip:hover { transform: scale(1.03); }

/* Nav link underline */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: rgba(232,220,200,0.6);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { width: 100%; }

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }

/* Counter */
.counter { display: inline-block; }
