/* =====================================================
   Bürgerverein vor dem Dammtor / Pöseldorf r.V.
   Zentrales Stylesheet
   ===================================================== */

:root {
  --blue: #00507b;
  --blue-dark: #002d47;
  --blue-deep: #001a2e;
  --blue-light: #e6eff4;
  --paper: #fafaf7;
  --paper-2: #ffffff;
  --ink: #1a2530;
  --ink-2: #4a5663;
  --line: #e3e1db;
  --accent: #d4a356;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px -28px rgba(0, 45, 71, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.serif { font-family: 'Fraunces', Georgia, serif; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--blue); color: var(--paper); padding: 0.5rem 1rem; border-radius: 999px; z-index: 1000;
}
.skip-link:focus { left: 0.5rem; }

/* TOPBAR */
.topbar {
  background: var(--blue-dark);
  color: var(--paper);
  font-size: 0.78rem;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar .est { opacity: 0.7; }
.topbar a { color: var(--paper); text-decoration: none; opacity: 0.85; }
.topbar a:hover { opacity: 1; }
.topbar .meta { display: flex; gap: 1.5rem; align-items: center; }
.topbar .social { display: inline-flex; gap: 0.6rem; align-items: center; padding-left: 1rem; border-left: 1px solid rgba(250, 250, 247, 0.25); }
.topbar .social a { display: inline-flex; opacity: 0.85; }
.topbar .social a:hover { opacity: 1; color: var(--accent); }

/* HEADER */
header.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
header.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: 46px; width: auto; display: block; }

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
nav.main-nav a:not(.cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--blue); }
nav.main-nav a.active::after { transform: scaleX(1); }
nav.main-nav .cta {
  background: var(--blue);
  color: var(--paper);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
nav.main-nav .cta:hover { background: var(--blue-dark); color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; font-family: inherit; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
}
.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--blue); }
.btn-light:hover { background: var(--accent); color: var(--blue-dark); }
.btn .arrow { transition: transform 0.2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* SECTIONS */
section { padding: 5rem 0; }
.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}
.section-head .num {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.section-head .title-wrap { max-width: 720px; }
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}
.section-head h2 em { font-style: italic; color: var(--blue); font-weight: 400; }
.section-head p {
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 60ch;
}
.section-head .link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-head .link:hover { color: var(--blue); }

/* PAGE HEADER (Unterseiten) */
.page-header {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(0, 80, 123, 0.07) 0%, transparent 55%),
    var(--paper-2);
}
.page-header .container { max-width: 960px; }
.page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.page-header .eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.page-header h1 em { font-style: italic; color: var(--blue); font-weight: 400; }
.page-header .subtitle {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.55;
}

/* CARDS (gemeinsam genutzt) */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
}
.card p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }
.card .num-wrap { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.card .num { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--blue); font-weight: 500; }
.card .num-line { flex: 1; height: 1px; background: var(--line); }

/* DOWNLOAD-ZEILE (PDFs) */
.download {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0.8rem;
  transition: all 0.2s;
}
.download:hover { border-color: var(--blue); background: var(--blue-light); }
.download .icon {
  width: 42px; height: 42px;
  background: var(--blue); color: var(--paper);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 0.75rem;
  flex-shrink: 0;
}
.download .info { flex: 1; min-width: 0; }
.download .info .name { font-size: 0.95rem; font-weight: 500; color: var(--ink); line-height: 1.25; margin-bottom: 0.2rem; }
.download .info .meta { font-size: 0.78rem; color: var(--ink-2); }
.download .arrow { color: var(--blue); transition: transform 0.2s; }
.download:hover .arrow { transform: translateY(2px); }

/* CTA-BANNER */
.cta-banner {
  background: var(--blue-deep);
  color: var(--paper);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212, 163, 86, 0.15) 0%, transparent 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 1.5rem;
}
.cta-banner h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--paper);
  letter-spacing: -0.025em;
}
.cta-banner h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.cta-banner p {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  color: rgba(250, 250, 247, 0.85);
  font-size: 1.05rem;
}

/* FOOTER */
footer.site-footer {
  background: var(--blue-deep);
  color: rgba(250, 250, 247, 0.7);
  padding: 5rem 0 2rem;
  font-size: 0.92rem;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}
footer.site-footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
footer.site-footer a {
  color: rgba(250, 250, 247, 0.7);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
footer.site-footer a:hover { color: var(--paper); }
footer.site-footer .brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
footer.site-footer .est {
  font-style: italic;
  color: var(--accent);
  font-family: 'Fraunces', serif;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
footer.site-footer .claim { font-size: 0.88rem; line-height: 1.6; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250, 250, 247, 0.5);
}

/* ANIMATION */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head .link { justify-self: start; }
  footer.site-footer .container { grid-template-columns: 1fr 1fr; }
  nav.main-nav ul { display: none; }
  nav.main-nav ul.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 80, 123, 0.08);
  }
  nav.main-nav ul.is-open li { width: 100%; border-bottom: 1px solid var(--line); }
  nav.main-nav ul.is-open li:last-child { border-bottom: 0; padding-top: 0.8rem; }
  nav.main-nav ul.is-open a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  nav.main-nav a:not(.cta)::after { display: none; }
  nav.main-nav ul.is-open .cta { display: inline-block; padding: 0.7rem 1.3rem; }
  .menu-btn { display: block; color: var(--blue); font-size: 1.6rem; padding: 0.3rem 0.5rem; line-height: 1; }
  header.site-header { position: relative; }
  .topbar .meta { gap: 1rem; font-size: 0.76rem; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .page-header { padding: 2.5rem 0 2rem; }
  footer.site-footer .container { grid-template-columns: 1fr; gap: 2rem; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .meta { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1rem; }
  .logo img { height: 40px; }
}
