:root {
  --deep-blue: #0b2f4f;
  --ocean: #146c94;
  --sea-foam: #19a7ce;
  --sand: #f6f4ea;
  --reef: #f76e11;
  --ink: #0f172a;
  --muted: #5b6577;
  --card: #ffffff;
  --line: #d6dbe4;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fcff 0%, #eef5f8 40%, var(--sand) 100%);
  overflow-y: scroll;
}

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

.site-nav {
  position: relative;
  z-index: 20;
  background: rgba(11, 47, 79, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav .inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.4px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.9rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  color: #dff4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover { color: #fff; }

.header-ticker-wrap {
  background: #fde047;
  color: #111827;
  border-bottom: 1px solid #eab308;
  overflow: hidden;
}

.header-ticker {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0;
  padding-left: 100%;
  font-weight: 800;
  letter-spacing: 0.3px;
  animation: ticker-move var(--header-ticker-duration, 24s) linear infinite;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.2rem;
}

.hero {
  min-height: 370px;
  border-radius: 20px;
  overflow: hidden;
  margin: 1.2rem auto;
  background-image: linear-gradient(160deg, rgba(9, 44, 77, 0.7), rgba(9, 44, 77, 0.3)), url("/static/images/hero-ocean.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 2.8rem 1.5rem;
  text-align: center;
}

.hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.hero p { max-width: 760px; margin: 0.8rem auto 1.2rem; font-size: 1.08rem; }

.btn-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary { background: var(--reef); color: #fff; }
.btn-secondary { background: #fff; color: var(--deep-blue); border: 1px solid #cbd5e1; }
.btn-success { background: #16a34a; color: #fff; border: 1px solid #14532d; }
.btn-success:hover { background: #15803d; }
.btn-page-save {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  background: #16a34a;
  color: #ffffff;
  border: 2px solid #14532d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.btn-page-save:hover { background: #15803d; }
.btn-page-save:disabled {
  background: #86efac;
  color: #14532d;
  border-color: #14532d;
  cursor: not-allowed;
}
.quick-save-hidden { display: none !important; }

.ticker-wrap {
  margin: 1rem 0;
  background: var(--sea-foam);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 0;
  overflow: hidden;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-move 40s linear infinite;
  font-weight: 600;
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.section { margin: 1.3rem 0; }
.section h2 { margin: 0 0 0.7rem; font-size: 1.6rem; }
.lead { color: var(--muted); line-height: 1.5; }
#signature-action-section { scroll-margin-top: 150px; }
#impressum-section,
#datenschutz-section,
#satzung-section { scroll-margin-top: 150px; }

.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  position: relative;
}

.card h3, .card h4 { margin-top: 0; }

.badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  font-weight: 700;
}

.badge-urgent {
  position: static;
  margin-bottom: 0.6rem;
  background: #fee2e2;
  color: #9f1239;
  border: 1px solid #fecaca;
}

.progress-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.progress-track {
  width: 100%;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5edf3;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sea-foam), var(--ocean));
  transition: width 0.5s ease;
}

.kpi { display: flex; justify-content: space-between; margin-top: 0.6rem; font-weight: 700; }

.list-tight { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.list-tight li { margin-bottom: 0.35rem; }

.flash-stack { display: grid; gap: 0.55rem; margin: 0.8rem 0; }
.flash { border-radius: 10px; padding: 0.7rem 0.9rem; font-weight: 600; }
.flash.success { background: #dcfce7; color: #065f46; border: 1px solid #86efac; }
.flash.error { background: #ffe4e6; color: #9f1239; border: 1px solid #fda4af; }

form { display: grid; gap: 0.7rem; }
label { font-weight: 600; }

input, textarea, select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #c5cfdb;
  font: inherit;
}

.switch-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #edf1f5;
}

.switch-line:last-child { border-bottom: 0; }
input[type="checkbox"] { width: 20px; height: 20px; }
small.muted, .muted { color: var(--muted); }

.map-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.map-legend {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fbff;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #0f172a;
}

.legend-icon {
  width: 1.2rem;
  text-align: center;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  padding: 0.8rem;
}

.map-point {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: #f8fbff;
}

.timmy-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.project-fieldset {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.8rem;
}

.project-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: #334155;
}

.reply-list {
  margin: 0.8rem 0;
  border-left: 3px solid #bfdbfe;
  padding-left: 0.8rem;
}

.reply-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
}

.reply-form {
  margin-top: 0.6rem;
  border-top: 1px dashed #d8e0ea;
  padding-top: 0.6rem;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
}

footer {
  margin-top: 2rem;
  background: var(--deep-blue);
  color: #e6f3ff;
}

footer .inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

footer a { color: #fff; }

@media (max-width: 740px) {
  .site-nav .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul { justify-content: flex-start; flex-wrap: wrap; align-items: flex-start; }
  .hero { min-height: 320px; }
  .btn-page-save {
    right: 12px;
    left: 12px;
    bottom: 12px;
    text-align: center;
  }
}


.projekte-donations .donation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.projekte-donations .donation-cta {
  margin-top: auto;
  align-self: flex-start;
}







.site-top-buffer {
  height: 0.6cm;
  background: #ffffff;
}

.intern-collapsible-stack {
  display: grid;
  gap: 0.9rem;
}

.intern-collapsible {
  padding: 0;
  overflow: hidden;
}

.intern-collapsible > summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
  background: #f8fbff;
  border-bottom: 1px solid #e2e8f0;
}

.intern-collapsible > summary::-webkit-details-marker {
  display: none;
}

.intern-collapsible > summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: #146c94;
}

.intern-collapsible[open] > summary::after {
  content: "−";
}

.intern-collapsible-body {
  padding: 1rem;
}
