/* FREIE WÄHLER Leverkusen – Design angelehnt an freiewaehler.eu
   Farben der Bundesvereinigung: Blau #00519e, Orange #f29204, Dunkelblau #012e58 */
:root {
  --blue: #00519e;
  --blue-dark: #012e58;
  --blue-deep: #003981;
  --orange: #f29204;
  --orange-dark: #d97f00;
  --text: #333;
  --muted: #666;
  --line: #e3e7ee;
  --gray-bg: #f6f6f6;
  --white: #fff;
  --radius: 5px;
  --shadow: 0 6px 24px rgba(1, 46, 88, .10);
  --font: Arimo, Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --wrap: 1170px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
@media (max-width: 767px) { html { scroll-padding-top: 90px; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--blue-deep); line-height: 1.2; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons – runde "Pill"-Buttons wie auf freiewaehler.eu */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.6em; border-radius: 30px; font-weight: 700; font-size: .92rem; text-decoration: none; text-transform: uppercase; letter-spacing: .03em; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn { white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.btn-line { border-color: var(--blue); color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-top { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 66px; width: auto; }
.claim { margin: 0 auto 0 0; color: var(--blue); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.top-buttons { display: flex; gap: 10px; }
.nav-wrap { padding-bottom: 12px; }
.mainnav { background: var(--blue); border-radius: var(--radius); }
.mainnav ul { list-style: none; margin: 0; padding: 0 8px; display: flex; flex-wrap: wrap; }
.mainnav a { display: block; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; padding: 15px 18px; position: relative; }
.mainnav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .2s; }
.mainnav a:hover::after, .mainnav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: .2s; }
.site-header.scrolled .header-top { padding-top: 6px; padding-bottom: 6px; }
.site-header.scrolled .logo img { height: 50px; }

/* Hero */
.hero { position: relative; height: min(78vh, 620px); min-height: 440px; overflow: hidden; background: var(--blue-dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 46, 88, .88) 0%, rgba(0, 81, 158, .55) 45%, rgba(0, 0, 0, .05) 100%); }
.slide-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.slide-box { max-width: 620px; color: #fff; }
.slide-box .kicker { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; padding: .35em .9em; border-radius: 3px; margin-bottom: 18px; }
.slide-box h1, .slide-box .h1like { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; margin-bottom: .35em; text-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.slide-box p { font-size: clamp(1.02rem, 1.6vw, 1.25rem); margin: 0 0 28px; opacity: .95; }
.hero-dots { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button.active { background: var(--orange); border-color: var(--orange); }
.hero-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.4rem; cursor: pointer; }
.hero-arrow:hover { background: var(--orange); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }

/* Sektionen */
.section { padding: 80px 0; }
.section.gray { background: var(--gray-bg); }
.sec-title { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-title .over { display: block; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: 8px; }
.sec-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sec-title p { color: var(--muted); margin: 0; }
.hr { width: 70px; height: 3px; background: var(--orange); border: 0; margin: 14px 0 22px; }
.sec-title .hr { margin: 14px auto 18px; }

/* Über uns */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.about .lead p { color: #555; }
.about .lead p:first-child { font-family: var(--serif); font-size: 1.22rem; color: var(--blue-deep); line-height: 1.5; }
.about figure { margin: 0; position: relative; }
.about figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--orange); border-radius: var(--radius); z-index: -1; }
.about .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Themen */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.topic-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.topic-card:hover { transform: translateY(-4px); border-top-color: var(--orange); }
.topic-card .ico { width: 56px; height: 56px; border-radius: 50%; background: #e8f0f8; color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.topic-card .ico svg { width: 28px; height: 28px; }
.topic-card h3 { font-size: 1.2rem; }
.topic-card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .goal { margin-top: auto; font-weight: 700; color: var(--orange-dark); font-size: .92rem; }
.center { text-align: center; margin-top: 40px; }

/* Termine */
.event-list { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.event { display: grid; grid-template-columns: 96px 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.event .date { background: var(--blue); color: #fff; text-align: center; padding: 18px 8px; display: flex; flex-direction: column; justify-content: center; }
.event .date b { font-size: 2rem; line-height: 1; }
.event .date span { text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; margin-top: 4px; }
.event .date small { opacity: .75; font-size: .75rem; }
.event .info { padding: 18px 24px; }
.event h3 { font-size: 1.15rem; margin-bottom: .3em; }
.event .meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.event .meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--orange); }
.event .info p { margin: .5em 0 0; font-size: .95rem; }
.empty { text-align: center; color: var(--muted); background: #fff; padding: 34px; border-radius: var(--radius); border: 2px dashed var(--line); max-width: 900px; margin: 0 auto; }

/* Mitmachen-Band */
.join { position: relative; color: #fff; padding: 90px 0; background: var(--blue) center/cover no-repeat; }
.join::before { content: ""; position: absolute; inset: 0; background: rgba(0, 81, 158, .9); }
.join .container { position: relative; }
.join .sec-title h2, .join .sec-title p { color: #fff; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.join-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.join-card h3 { color: #fff; font-size: 1.25rem; }
.join-card p { opacity: .92; font-size: .97rem; flex: 1; }
.join-card .btn { align-self: flex-start; }
.bank { font-size: .9rem; background: rgba(0, 0, 0, .15); padding: 10px 12px; border-radius: 4px; margin-bottom: 16px; white-space: pre-line; }

/* News */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -18px 0 34px; }
.filters button { border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 30px; padding: .4em 1.1em; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; }
.filters button.active, .filters button:hover { background: var(--blue); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s; }
.news-card:hover { transform: translateY(-4px); }
.news-card .thumb { aspect-ratio: 16/10; background: #dfe7f1; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; align-self: flex-start; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25em .7em; border-radius: 3px; margin-bottom: 12px; }
.news-card h3 { font-size: 1.18rem; }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.news-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; font-size: .85rem; color: var(--muted); }
.news-card .more { color: var(--blue); font-weight: 700; }

/* Kontakt-Teaser */
.contact-band { background: var(--gray-bg); padding: 60px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #fff; border-left: 6px solid var(--orange); padding: 34px 38px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-inner h2 { font-size: 1.6rem; margin-bottom: .2em; }
.contact-inner p { margin: 0; color: var(--muted); }
.contact-inner .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Unterseiten */
.page-head { background: var(--blue) linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 54px 0 46px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; }
.page-head p { margin: .4em 0 0; opacity: .9; font-size: 1.1rem; }
.crumbs { font-size: .85rem; margin-bottom: 10px; opacity: .85; }
.crumbs a { color: #fff; }
.article { max-width: 800px; margin: 0 auto; }
.article .hero-img { border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow); width: 100%; max-height: 460px; object-fit: cover; }
.article .meta { color: var(--muted); font-size: .92rem; margin-bottom: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.article .meta .tag { margin: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 28px; margin-bottom: .45em; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.prose strong { color: var(--blue-deep); }
.back { display: inline-block; margin-top: 30px; font-weight: 700; text-decoration: none; }

.program-top { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; margin-bottom: 50px; }
.program-top img { border-radius: var(--radius); box-shadow: var(--shadow); }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; list-style: none; padding: 0; margin: 20px 0 0; counter-reset: t; }
.toc a { text-decoration: none; font-weight: 700; display: flex; gap: 10px; }
.toc a span { color: var(--orange); min-width: 1.6em; }
.chapter { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; margin-bottom: 26px; border-left: 5px solid var(--blue); }
.chapter h2 { display: flex; gap: 14px; align-items: center; font-size: 1.5rem; }
.chapter h2 .num { background: var(--orange); color: #fff; min-width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.chapter .teaser { font-family: var(--serif); font-size: 1.12rem; color: var(--blue-deep); }
.goal-box { background: #fff5e6; border-left: 4px solid var(--orange); padding: 12px 16px; font-weight: 700; color: #7a4600; border-radius: 0 4px 4px 0; }
.outro { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 36px 40px; text-align: center; }
.outro p { margin: .4em 0; font-size: 1.08rem; }
.outro p:last-child { font-family: var(--serif); font-size: 1.6rem; color: var(--orange); margin-top: .6em; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #c9d6e6; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 46px; }
.footer-logo { font-weight: 800; font-style: italic; font-size: 1.6rem; color: #fff; letter-spacing: .01em; }
.footer-logo span { display: block; font-style: normal; font-weight: 400; font-size: 1rem; color: var(--orange); }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d6e6; text-decoration: none; cursor: pointer; }
.site-footer a:hover { color: var(--orange); }
.footer-contact { white-space: pre-line; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--orange); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 991px) {
  .topic-grid, .news-grid, .join-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .program-top { grid-template-columns: 1fr; }
  .program-top img { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .claim { display: none; }
  .header-top { justify-content: space-between; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .top-buttons { display: none; }
  .menu-toggle { display: block; }
  .logo img { height: 52px; }
  .nav-wrap { padding-bottom: 0; }
  .mainnav { display: none; margin-bottom: 12px; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; padding: 6px 0; }
  .mainnav a::after { display: none; }
  .mainnav .mobile-cta { display: flex; gap: 8px; padding: 10px 18px 14px; }
  .topic-grid, .news-grid, .join-grid, .toc { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .contact-inner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .chapter { padding: 24px 20px; }
  .event { grid-template-columns: 76px 1fr; }
  .event .info { padding: 14px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about figure::before { display: none; }
}
@media (min-width: 768px) { .mainnav .mobile-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
