:root {
  --bg: #f6f1ff;
  --text: #140f24;
  --muted: #5f5677;
  --accent: #5a2d82;
  --accent-2: #3a1a5c;
  --accent-soft: #eadcff;
  --card: #ffffff;
  --border: #d8c9ef;
  --sidebar: rgba(246, 241, 255, 0.92);
  --radius: 24px;
  --shadow: 0 28px 60px rgba(20, 15, 36, 0.16);
  --header-height: 76px;
  --logo-shift-x: 0px;
  --logo-shift-y: 0px;
  --logo-scale: 0.3;
}

body.dark-mode {
  --bg: #060014;
  --text: #f8f7ff;
  --muted: #dac7ff;
  --accent: #c587ff;
  --accent-2: #f5adff;
  --accent-soft: rgba(167, 113, 255, 0.18);
  --card: rgba(18, 5, 35, 0.95);
  --border: rgba(255, 255, 255, 0.2);
  --sidebar: rgba(18, 5, 40, 0.85);
  --shadow: 0 32px 70px rgba(5, 0, 20, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 6vw 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 58px;
  background: rgba(246, 241, 255, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 205, 238, 0.7);
  box-shadow: 0 14px 30px rgba(20, 15, 36, 0.12);
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span {
  font-size: 1rem;
}

.logo-dock {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(90, 45, 130, 0.2);
  border: 1px solid rgba(217, 205, 238, 0.8);
}

.logo-dock img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-logo-docked .logo-dock img {
  opacity: 1;
  transform: scale(1);
}

.nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  font-size: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 205, 238, 0.8);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 22px rgba(90, 45, 130, 0.08);
}

.nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav a:hover {
  color: var(--accent-2);
  background: rgba(90, 45, 130, 0.16);
}

.nav a.is-active {
  color: var(--accent-2);
  background: rgba(90, 45, 130, 0.18);
  box-shadow: inset 0 0 0 1px rgba(90, 45, 130, 0.2);
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  align-self: center;
  margin: 0 4px;
}

.nav-legal {
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(90, 45, 130, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

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

.theme-toggle.is-dark {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-label::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 6px 0 var(--accent), 0 -6px 0 var(--accent);
}

.page {
  min-height: 100vh;
  display: block;
  padding-top: var(--header-height);
  background: radial-gradient(circle at 15% 10%, #ffffff 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(90, 45, 130, 0.18), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(90, 45, 130, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 60%);
  position: relative;
  overflow-x: hidden;
}

body.dark-mode .page {
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, rgba(4, 0, 18, 0.95), var(--accent) 60%) 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, color-mix(in srgb, rgba(6, 0, 28, 0.95), var(--accent-2) 60%) 0%, transparent 55%),
    radial-gradient(circle at 20% 90%, color-mix(in srgb, rgba(2, 0, 30, 0.95), var(--accent-2) 70%) 0%, transparent 55%),
    linear-gradient(11deg, color-mix(in srgb, var(--accent-2), rgba(0, 0, 0, 0.65)), color-mix(in srgb, rgba(40, 20, 90, 0.55), var(--accent)));
}

body.dark-mode .site-header {
  background: color-mix(in srgb, var(--sidebar), rgba(255, 255, 255, 0.05));
  border-bottom-color: color-mix(in srgb, var(--border), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 40px rgba(5, 0, 20, 0.7);
}

body.dark-mode .nav {
  background: color-mix(in srgb, var(--accent-soft), var(--sidebar) 80%);
  border-color: var(--border);
  box-shadow: 0 12px 28px rgba(5, 0, 20, 0.6);
}

body.dark-mode .donate-cta {
  background: color-mix(in srgb, var(--accent-soft), var(--card) 40%);
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(5, 0, 20, 0.55);
}

body.dark-mode .modal-overlay {
  background: rgba(0, 0, 0, 0.65);
}

body.dark-mode .modal {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 34px 90px rgba(5, 0, 20, 0.85);
}

body.dark-mode .modal p,
body.dark-mode .modal-note,
body.dark-mode .pay-hint {
  color: var(--muted);
}

body.dark-mode .modal-close {
  border-color: var(--border);
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.08));
  color: var(--muted);
}

body.dark-mode .modal-close:hover {
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.18));
}

body.dark-mode .password-modal {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 30px 70px rgba(5, 0, 20, 0.75);
}

body.dark-mode .password-error {
  color: var(--accent-2);
}

body.dark-mode .pay-card {
  background: color-mix(in srgb, var(--accent-soft), var(--card) 50%);
  border-color: color-mix(in srgb, var(--border), transparent 30%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

body.dark-mode .pay-card:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

body.dark-mode .pay-card .pay-head strong {
  color: var(--text);
}

body.dark-mode .pay-link .pay-hint {
  color: var(--muted);
}

body.dark-mode .pay-logo {
  background: color-mix(in srgb, var(--accent-soft), rgba(255, 255, 255, 0.05));
  color: var(--text);
}

body.dark-mode .pay-logo--paypal {
  background: rgba(0, 48, 135, 0.4);
  color: color-mix(in srgb, #ffffff, transparent 40%);
}

body.dark-mode .pay-logo--whydonate {
  background: rgba(214, 33, 90, 0.3);
  color: #ffe7f1;
}

body.dark-mode .pay-logo--gofundme {
  background: rgba(0, 185, 100, 0.28);
  color: #defff2;
}

body.dark-mode .iban {
  background: color-mix(in srgb, var(--card), rgba(255, 255, 255, 0.1));
  border-color: var(--border);
  color: var(--text);
}

main {
  display: flex;
  flex-direction: column;
  gap: 110px;
  padding: 72px 6vw 110px;
  text-align: center;
  align-items: center;
  margin: 2px auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 52px;
  align-items: center;
  position: relative;
  padding-top: 48px;
  width: 100%;
}

.hero-logo {
  grid-column: 1 / -1;
  justify-self: center;
  width: clamp(150px, 19vw, 220px);
  margin-bottom: 6px;
  transition: transform 0.7s ease, opacity 0.5s ease;
  transform-origin: center;
}

.hero-logo::after {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(
    circle,
    rgba(197, 134, 255, 0.18) 0%,
    transparent 70%
  );
  z-index: -1;
}

.hero-logo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(90, 45, 130, 0.3);
}

.is-logo-docked .hero-logo {
  transform: translate(var(--logo-shift-x), var(--logo-shift-y))
    scale(var(--logo-scale));
  opacity: 0;
  pointer-events: none;
}

.hero-text,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(3.4rem, 4.2vw, 4.1rem);
  letter-spacing: -0.06em;
  margin: 18px 0 26px;
}

.lead {
  font-size: 1.6rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
  color: var(--muted);
}

.hero-actions {
  display: inline-block;
  margin: 18px auto;
  max-width: 560px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: float 14s ease-in-out infinite;
}

.hero-card h2 {
  font-size: 1.4rem;
}

.with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: var(--accent);
}

.heading-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 45, 130, 0.12);
  color: var(--accent-2);
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.hero-metrics div {
  display: grid;
  gap: 4px;
}

.metric-icon {
  color: var(--accent-2);
  font-size: 0.95rem;
}

.hero-metrics strong {
  font-size: 1.2rem;
  display: block;
  color: var(--accent);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 auto;
  width: 100%;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.section p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.grid.small {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tile {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.12);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 45, 130, 0.12);
  color: var(--accent-2);
  font-size: 1rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.category-card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-card h3 {
  font-size: 1.4rem;
}

.category-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  padding-left: 0;
}

.category-list li {
  display: flex;
  gap: 8px;
}

.category-list li::before {
  content: "-";
  color: var(--accent);
}

.category-tag {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.register-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.1);
  display: grid;
  gap: 12px;
}

.register-step {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.register-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
}

.offer-card {
  background: var(--card);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.1);
  display: grid;
  gap: 14px;
}

.offer-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.offer-tags span {
  background: rgba(90, 45, 130, 0.08);
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.offer-form {
  background: var(--card);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.offer-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.offer-form input,
.offer-form select,
.offer-form textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.offer-form textarea {
  resize: vertical;
}

.offer-form .full {
  grid-column: 1 / -1;
}

.offer-form button {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.section-donate .donate-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.donate-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.1);
  display: grid;
  gap: 12px;
}

.donate-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

.donate-card span {
  color: var(--muted);
}

.contact-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px rgba(90, 45, 130, 0.1);
  text-decoration: none;
  color: var(--text);
  display: grid;
  gap: 6px;
  transition: box-shadow 0.2s ease;
}

.contact-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 45, 130, 0.12);
  color: var(--accent-2);
  font-size: 0.95rem;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card:hover {
  box-shadow: 0 20px 40px rgba(90, 45, 130, 0.14);
}

.contact-actions {
  margin-top: 16px;
}

.contact-page {
  display: grid;
  gap: 32px;
}

.contact-hero {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  background: var(--card);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.1);
  display: grid;
  gap: 18px;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-detail {
  background: rgba(90, 45, 130, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(90, 45, 130, 0.14);
  color: var(--accent-2);
  font-size: 0.95rem;
  margin-top: 2px;
}

.contact-detail-content {
  display: grid;
  gap: 6px;
}

.contact-detail-content span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-detail-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-detail-meta i {
  color: var(--accent-2);
}

.contact-detail a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: flex-start;
}

.contact-consent {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
}

.contact-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth {
  gap: 32px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.auth-card {
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.12);
  display: grid;
  gap: 16px;
}

.auth-social {
  display: grid;
  gap: 10px;
}

.auth-divider {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.auth-form input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}

.auth-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-roles button {
  border: 1px solid var(--border);
  background: rgba(90, 45, 130, 0.08);
  color: var(--accent-2);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.auth-roles button.is-selected {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(90, 45, 130, 0.24);
}

.auth-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  max-width: 900px;
}

.legal h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.legal-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.1);
  display: grid;
  gap: 10px;
}

.nav-legal.is-active {
  background: rgba(90, 45, 130, 0.22);
}

.cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #ffffff;
  padding: 60px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.cta-actions {
  display: inline-block;
  margin: 20px auto
}

.cta h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 8vw 60px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(217, 205, 238, 0.7);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

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

.btn {
  border: none;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.22rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 8px;
}

.btn .btn-icon i {
  line-height: 1;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 7px 22px rgba(90, 45, 130, 0.2);
  font-size: 1.34rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.22rem;
}

.cta .btn-ghost {
  background: #ffffff;
  color: var(--accent);
  border-color: transparent;
  padding: 18px 44px;
  font-size: 1.22rem;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.cta .btn-ghost::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 50%) 0%, transparent 65%);
  opacity: 0.9;
  filter: blur(4px);
  animation: pulse-glow 3s ease-out infinite;
  z-index: -1;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.05);
    opacity: 0;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.btn:hover {
  box-shadow: 0 14px 32px rgba(90, 45, 130, 0.3);
}

.btn.is-active {
  box-shadow: 0 14px 32px rgba(90, 45, 130, 0.35);
}

body.page-legal .logo-dock img,
body.page-auth .logo-dock img,
body.page-contact .logo-dock img {
  opacity: 1;
  transform: scale(1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

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

  .hero-logo {
    transform: none !important;
    opacity: 1 !important;
  }

  .logo-dock img {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 96px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 6vw 10px;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0 4px;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .nav a {
    padding: 8px 10px;
    width: 100%;
  }

  .nav-actions {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }

  .nav-toggle:checked ~ .nav,
  .nav-toggle:checked ~ .nav-actions {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .hero-logo {
    margin-bottom: 20px;
  }

  .cta {
    padding: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    gap: 80px;
    padding: 50px 6vw 90px;
  }

  .hero-logo {
    width: 160px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}



/* --- Apple-like micro-polish / layout tightening (overlay on your style) --- */
:root{
  --maxw: 1180px;
  --shadow-soft: 0 18px 44px rgba(20, 15, 36, 0.12);
}

.skip{
  position:absolute; left:14px; top:14px;
  padding:10px 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(217,205,238,.7);
  border-radius: 999px;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(20, 15, 36, 0.10);
  transform: translateY(-160%);
  transition: transform .18s ease;
  z-index: 9999;
}
.skip:focus{ transform: translateY(0); outline: 2px solid rgba(90,45,130,.28); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

main{
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-about .prose{
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}
.about-parallax{
  width: 100vw;
  height: 60vh;
  margin: 64px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  border-radius: 0;
  box-shadow: 0 22px 48px rgba(20,15,36,.16);
}
.about-parallax-1{ background-image: url("img/photo_auto.png"); }
.about-parallax-2{ background-image: url("img/photo_marktplatz.png"); }
.about-parallax-3{ background-image: url("img/photo_parkbank.png"); }
.prose h3{
  margin-top: 18px;
  font-size: 1.4rem;
}
.divider{
  width: 180px;
  height: 3px;
  background: rgba(197,134,255,.36);
  border-radius: 999px;
  margin: 40px auto;
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin: 64px auto 0;
  max-width: 820px;
  width: 100%;
  padding: 0;
}

.checklist li {
  padding: 28px 32px;
  border-radius: 32px;
  background: var(--card);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--text);
  transition: transform 0.35s ease;
  position: relative;
}

.checklist li:nth-child(odd),
.checklist li:nth-child(even) {
  margin: 0;
}

@media (max-width: 640px) {
  .checklist {
    gap: 32px;
    margin-top: 48px;
  }

  .checklist li {
    margin: 0;
    padding: 28px 26px;
    font-size: 1.35rem;
  }
}

.hero-video .video-frame{
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  /*border: 1px solid rgba(217,205,238,.85);*/
  box-shadow: 0 12px 32px rgba(90,45,130,.12);
  background: #000;
}
.hero-video video{
  width: 100%;
  height: auto;
  display:block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-note{
  font-size: .95rem;
  color: var(--muted);
}

/* Gallery */
.section-impressions .gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.gallery-card{
  background: var(--card);
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(90, 45, 130, 0.12);
  display:grid;
}
.gallery-card img{
  width:100%;
  height: 230px;
  object-fit: cover;
  display:block;
}
.gallery-card figcaption{
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: .95rem;
}

@media (max-width: 900px){
  .about-parallax{
    height: 60vh;
    background-attachment: scroll;
  }
}

/* Donate CTA row */
.donate-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(217,205,238,.85);
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 18px 36px rgba(90,45,130,.10);
  width: 100%;
  max-width: 860px;
}
.donate-cta-text {
  font-size: 2rem;
  display:grid;
  gap: 8px;
}
.donate-cta-text strong{ color: var(--accent-2); font-size: 1.05rem; }
.donate-cta-text span{ color: var(--muted); }

/* Modal (Apple-like blur) */
.modal-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20,15,36,.42);
  z-index: 50;
  opacity: 0;
  transition: opacity .22s ease;
}
body.is-modal-open .modal-overlay{
  display:flex;
}
body.is-modal-open .modal-overlay.is-visible{
  opacity: 1;
}
body.is-modal-open #page{
  filter: blur(6px);
  transition: filter .22s ease;
}
.modal{
  width: min(760px, 94vw);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(217,205,238,.85);
  border-radius: 26px;
  box-shadow: 0 34px 90px rgba(0,0,0,.30);
  backdrop-filter: blur(18px);
  padding: 40px;
  transform: translateY(12px) scale(0.86);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  position: relative;
}
.modal-overlay.is-visible .modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal h3{ font-size: 1.6rem; margin-bottom: 12px; }
.modal p{ color: var(--muted); margin-bottom: 28px; max-width: 58ch; }

.modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(217,205,238,.85);
  background: rgba(255,255,255,.7);
  cursor: pointer;
  display:grid;
  place-items:center;
}
.modal-close:hover{
  background: rgba(255,255,255,.9);
}

.pay-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px){
  .pay-grid{ grid-template-columns: 1fr 1fr; }
}
.pay-card{
  background: rgba(246,241,255,.6);
  border: 1px solid rgba(217,205,238,.85);
  border-radius: 20px;
  padding: 22px;
  display:grid;
  gap: 14px;
  text-decoration:none;
  color: inherit;
}
.pay-card:hover{
  box-shadow: 0 18px 36px rgba(90,45,130,.12);
}
.pay-head{
  display:flex;
  align-items:center;
  gap: 14px;
}
.pay-head strong{
  flex: 1;
}
.pay-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: rgba(90,45,130,.12);
  color: var(--accent);
}
.pay-logo--bank{ background: rgba(90,45,130,.12); color: var(--accent); }
.pay-logo--paypal{ background: #ddeeff; color: #003087; }
.pay-logo--whydonate{ background: #fde8ef; color: #d6215a; }
.pay-logo--gofundme{ background: #e4f7ed; color: #00b964; }
.pay-badge{
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(90,45,130,.12);
  color: var(--accent-2);
  font-weight: 700;
}
.iban{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(217,205,238,.85);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 0.9rem;
  overflow:auto;
}
.pay-hint{
  color: var(--muted);
  font-size: .9rem;
}

.modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(217,205,238,.75);
}
.modal-note{ color: var(--muted); font-size: .9rem; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20,15,36,.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 80;
}
.toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Password lock overlay */
body.password-locked {
  overflow: hidden;
}

body.password-locked #page {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.password-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 36, 0.55);
  display: grid;
  place-items: center;
  z-index: 200;
  backdrop-filter: blur(16px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.password-locked .password-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.password-modal {
  width: min(420px, 90vw);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  padding: 32px;
  border: 1px solid rgba(217, 205, 238, 0.8);
  box-shadow: 0 30px 60px rgba(20, 15, 36, 0.25);
  backdrop-filter: blur(20px);
  text-align: left;
  display: grid;
  gap: 16px;
}

.password-header h2 {
  font-size: 1.8rem;
}

.password-header p {
  color: var(--muted);
  margin-top: 4px;
}

.password-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.password-controls {
  display: flex;
  gap: 12px;
}

.password-input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(217, 205, 238, 0.95);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.password-error {
  min-height: 1.1rem;
  color: #a94442;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .password-modal {
    padding: 24px;
  }

  .password-controls {
    flex-direction: column;
  }

  .password-controls .btn {
    width: 100%;
    justify-content: center;
  }
}
