/* =======================================================
   Rotary · End Polio Now · Rotary-Polio-Event 2026
   Gemeinsames Stylesheet
   ======================================================= */

:root {
  --rotary-azure: #0c3c7c;
  --rotary-royal: #17458f;
  --rotary-sky: #01b4e4;
  --rotary-gold: #f7a81b;
  --rotary-cranberry: #d41367;
  --polio-purple: #6c2a83;
  --epn-red: #e02028;
  --ink: #17325c;
  --paper: #ffffff;
  --sand: #f4f1ec;
  --line: #e3e0da;
  --shadow: 0 10px 40px rgba(12,60,124,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rotary-azure);
  line-height: 1.15;
}
a { color: inherit; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 16px;
  color: var(--rotary-azure);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logo {
  height: 64px; width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--polio-purple);
  margin-top: 3px;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--rotary-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--rotary-azure);
  font-weight: 900; font-size: 18px;
  box-shadow: inset 0 0 0 2px var(--rotary-azure);
  flex-shrink: 0;
}

/* Hero EPN Badge */
.epn-hero-logo {
  display: inline-block;
  margin-bottom: 28px;
}
.epn-hero-logo img {
  height: 150px; width: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

/* Footer Logo */
.footer-logo {
  height: 48px; width: auto;
  display: block;
  margin-bottom: 16px;
}
.nav-links {
  display: flex; gap: 22px;
  font-weight: 600; font-size: 14px;
  align-items: center;
  flex: 1;
}
.nav-links a {
  text-decoration: none; color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--rotary-azure); border-bottom-color: var(--rotary-gold);
}
.nav-cta-group {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.nav-cta {
  padding: 9px 14px;
  background: var(--rotary-azure);
  color: white !important;
  border-radius: 2px;
  border: none !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--polio-purple); transform: translateY(-1px); }
.nav-cta.cta-helfer { background: var(--rotary-azure); }
.nav-cta.cta-helfer:hover { background: var(--polio-purple); }
.nav-cta.cta-tombola { background: var(--rotary-gold); color: var(--rotary-azure) !important; }
.nav-cta.cta-tombola:hover { background: #ffb42b; }
.nav-cta.cta-bubble { background: var(--rotary-cranberry); }
.nav-cta.cta-bubble:hover { background: var(--polio-purple); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--rotary-azure);
  margin: 0 auto;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(247,168,27,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(108,42,131,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0c3c7c 0%, #17458f 100%);
  color: white;
  padding: 80px 24px 90px;
  overflow: hidden;
}
.page-hero.compact { padding: 60px 24px 70px; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 2px solid rgba(247,168,27,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1080px; margin: 0 auto;
  position: relative; z-index: 2;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--rotary-gold);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 2px;
  background: var(--rotary-gold);
}
.page-hero h1 {
  color: white;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-hero h1 .accent { color: var(--rotary-gold); font-style: italic; }
.page-hero p.lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}

/* ---------- SECTIONS ---------- */
section { padding: 80px 24px; }
.container { max-width: 1080px; margin: 0 auto; }
.container-wide { max-width: 1280px; margin: 0 auto; }

.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header .eyebrow { color: var(--rotary-cranberry); }
.section-header .eyebrow::before { background: var(--rotary-cranberry); }
.section-header h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 17px;
  color: #556680;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--rotary-gold); color: var(--rotary-azure); }
.btn-primary:hover { background: #ffb42b; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(247,168,27,0.4); }
.btn-azure { background: var(--rotary-azure); color: white; }
.btn-azure:hover { background: var(--polio-purple); }
.btn-outline {
  background: transparent; color: white;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}
.btn-outline:hover { box-shadow: inset 0 0 0 2px white; background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent; color: var(--rotary-azure);
  box-shadow: inset 0 0 0 2px var(--rotary-azure);
}
.btn-outline-dark:hover { background: var(--rotary-azure); color: white; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- FOOTER ---------- */
footer {
  background: #0a2e5c;
  color: rgba(255,255,255,0.7);
  padding: 50px 24px 25px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--rotary-gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-grid p, .footer-grid a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  line-height: 1.9;
  display: block;
}
.footer-grid a:hover { color: var(--rotary-gold); }
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
}
.footer-bottom {
  max-width: 1280px; margin: 20px auto 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ---------- FORMS ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rotary-azure);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fafaf7;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--rotary-azure);
  background: white;
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.success-msg {
  display: none;
  padding: 18px;
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
  margin-top: 20px;
  border-radius: 2px;
  font-size: 14px;
}
.success-msg.visible { display: block; }

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.text-white { color: white; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav { padding: 8px 0; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .brand-logo { height: 48px; }
  .brand-text { font-size: 13px; line-height: 1.1; }
  .brand-text small { font-size: 9px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 18px 20px;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    flex: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a.nav-cta { text-align: center; border-bottom: none; margin-top: 4px; padding: 12px 18px; }
  .nav-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-cta-group .nav-cta {
    width: 100%;
    margin-top: 0;
    justify-content: center;
  }
  .nav-toggle { display: flex; }
  .page-hero { padding: 50px 20px 60px; }
  section { padding: 50px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  /* Hero-Texte etwas kleiner für Mobile */
  .page-hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .page-hero p.lead { font-size: 15px; }
  .cta-row { gap: 10px; }
  .btn { padding: 13px 22px; font-size: 12px; }
  /* Container-Padding */
  .container, .container-wide { padding-left: 4px; padding-right: 4px; }
  /* Section-Header kompakter */
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(24px, 6vw, 34px); }
  /* Tables in Tombola-Spenden */
  .field input, .field textarea, .field select {
    font-size: 16px; /* Verhindert iOS-Zoom beim Tippen */
  }
}

@media (max-width: 480px) {
  .nav-inner { gap: 8px; }
  .brand-logo { height: 40px; }
  .brand-text { font-size: 12px; }
  .brand-text small { font-size: 8px; letter-spacing: 0.12em; }
  .page-hero { padding: 40px 16px 50px; }
  section { padding: 40px 16px; }
  .epn-hero-logo img { height: 100px; }
}

@media (max-width: 860px) {
  .epn-hero-logo img { height: 110px; }
  .epn-hero-logo { margin-bottom: 20px; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-hero h1, .page-hero p.lead, .page-hero .cta-row {
  animation: fadeUp 0.7s ease-out backwards;
}
.page-hero h1 { animation-delay: 0.1s; }
.page-hero p.lead { animation-delay: 0.2s; }
.page-hero .cta-row { animation-delay: 0.3s; }
