/* Bürgerinitiative Gymnasium Horkesgath – Stylesheet
   Farben aus dem Logo, Systemschriften (keine externen Anfragen). */

:root {
  --navy: #0e3e5c;
  --navy-dark: #0a2c42;
  --blue: #2a6f97;
  --accent: #c2531c;
  --accent-dark: #a34416;
  --accent-soft: #fbeee6;
  --green: #3d7a35;
  --green-soft: #e9f3e6;

  --bg: #ffffff;
  --bg-tint: #f3f6f9;
  --surface: #ffffff;
  --text: #1c2833;
  --text-muted: #56636f;
  --border: #d8e0e7;

  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(14, 62, 92, .06), 0 6px 20px rgba(14, 62, 92, .07);
  --container: 1120px;
  --narrow: 780px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--narrow); }
.muted { color: var(--text-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .45em 1em; font-size: .95rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }
.link-back::after { content: ""; }
.link-back::before { content: "← "; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 58px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 750; line-height: 1.2; font-size: 1rem; }
.brand-claim { font-size: .8rem; color: var(--text-muted); line-height: 1.3; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: .5rem .75rem; border-radius: var(--radius-small); color: var(--navy); text-decoration: none; font-weight: 550; }
.main-nav a:not(.btn):hover { background: var(--bg-tint); }
.main-nav a[aria-current="page"]:not(.btn) { background: var(--bg-tint); box-shadow: inset 0 -3px 0 var(--accent); }
.main-nav li:last-child { margin-left: .5rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-small); background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .brand-claim { display: none; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 20px 1.25rem; gap: .15rem; }
  .main-nav a:not(.btn) { padding: .75rem; }
  .main-nav li:last-child { margin: .5rem 0 0; }
  .main-nav .btn { width: 100%; padding: .75em 1em; }
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(42,111,151,.55), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 38rem; }
.hero-lead a { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.hero .eyebrow { color: #f3b58f; }
.eyebrow a { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: 100%; max-width: 340px; background: #fff; border-radius: 28px; padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 200px; padding: 1rem; border-radius: 20px; }
}

/* Unterstützer-Zähler */
.counter-band { background: var(--accent-soft); border-bottom: 1px solid #f1d6c6; padding: 1.25rem 0; }
.counter-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.counter-inner .counter-number { margin: 0; flex: 1 1 18rem; }
.counter-inner .progress { flex: 1 1 12rem; }
.counter-inner .counter-goal { margin: 0; }
.counter-number { font-size: 1.1rem; color: var(--navy); }
.counter-number strong { font-size: 1.8rem; color: var(--accent); margin-right: .2em; font-variant-numeric: tabular-nums; }
.counter-goal { font-size: .9rem; color: var(--text-muted); }
.progress { height: 12px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid #f1d6c6; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 6px; }
.counter-card { background: var(--accent-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.counter-card .counter-number { margin-bottom: .6rem; }
.counter-card .counter-goal { margin: .4rem 0 0; }

/* Sections */
.section { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section-tinted { background: var(--bg-tint); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }

.page-hero { background: var(--bg-tint); border-bottom: 1px solid var(--border); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { margin-bottom: .4em; }
.lead, .lead p { font-size: 1.2rem; color: var(--text-muted); }
.lead p:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col-wide { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 860px) { .two-col, .two-col-wide { grid-template-columns: 1fr; } }

/* Fließtext */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.25em 0; padding: .75em 1.25em; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.prose blockquote p { margin: 0; }

/* Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); color: var(--text);
}
.card-link { text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--text); box-shadow: 0 10px 30px rgba(14,62,92,.12); }
.card h3 { margin: .35rem 0 .5rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.card-category { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.card-number {
  position: absolute; top: 1.1rem; right: 1.25rem; font-size: 2.2rem; font-weight: 800; line-height: 1;
  color: var(--bg-tint); -webkit-text-stroke: 1px var(--border);
}
.card-event { border-left: 4px solid var(--accent); }
.event-date { font-weight: 650; color: var(--navy) !important; }

.panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); }
.panel h2 { color: #fff; }
.panel a { color: #fff; }
.panel-demands ul { list-style: none; padding: 0; }
.panel-demands li { position: relative; padding-left: 2rem; margin-bottom: .9em; }
.panel-demands li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.panel-demands strong { color: #fff; }

/* Argumente (FAQ) */
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2.5rem; padding: 1rem 1.25rem; background: var(--bg-tint); border-radius: var(--radius); }
.toc-label { font-weight: 650; color: var(--navy); margin-right: .25rem; }
.toc a { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .3rem .85rem; text-decoration: none; color: var(--navy); font-size: .95rem; }
.toc a:hover { border-color: var(--blue); }
.toc-count { color: var(--text-muted); font-size: .85em; margin-left: .15em; }
.toc .toggle-all { margin-left: auto; }

.category-heading { margin: 2.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); scroll-margin-top: 96px; }
.category-heading:first-of-type { margin-top: 0; }
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 96px; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq-item:target { border-color: var(--accent); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.1rem; color: var(--navy); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; margin-left: auto; margin-top: .3rem; width: .65rem; height: .65rem;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: .55rem; }
.faq-number {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .9rem; font-weight: 800;
}
.faq-title { padding-top: .15rem; }
.faq-body { padding: 0 1.25rem 1.25rem calc(1.25rem + 1.9rem + .9rem); }
@media (max-width: 600px) { .faq-body { padding-left: 1.25rem; } }

.city-quote { margin: 0 0 1.25rem; padding: 1rem 1.25rem; background: var(--bg-tint); border-radius: var(--radius-small); border-left: 4px solid var(--text-muted); }
.city-quote figcaption, .our-view-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .35rem; }
.city-quote blockquote { margin: 0; font-style: italic; }
.city-quote blockquote p { margin: 0; }
.quote-source { font-size: .85rem; color: var(--text-muted); margin: .5rem 0 0; }
.quote-source a { color: inherit; }
.our-view-label { color: var(--accent); }
.faq-share { margin: 1rem 0 0; font-size: .9rem; }
.copy-link.copied::after { content: " ✓ kopiert"; color: var(--green); }

.cta-box { margin-top: 3rem; padding: 2rem; background: var(--accent-soft); border-radius: var(--radius); text-align: center; }
.cta-box p { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Aktuelles */
.event-list, .plain-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.event-list li + li { margin-top: .75rem; }
.event-row { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.event-row:hover { border-color: var(--blue); color: var(--text); }
.event-cal { flex-shrink: 0; width: 3.6rem; text-align: center; border-radius: var(--radius-small); background: var(--navy); color: #fff; padding: .35rem 0; line-height: 1.1; }
.event-day { display: block; font-size: 1.5rem; font-weight: 800; }
.event-month { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.event-info { display: flex; flex-direction: column; }
.event-info strong { color: var(--navy); }
.plain-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.news-list { margin-bottom: 2.5rem; }
.news-item { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.news-item:first-child { padding-top: 0; }
.news-item h3 { margin: .2rem 0 .5rem; font-size: 1.3rem; }
.news-item h3 a { color: var(--navy); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-date { font-size: .85rem; color: var(--text-muted); margin: 0; }
.event-meta { color: var(--navy); }

/* Formulare */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2rem); }
.form-card h3 { margin-top: 0; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  display: block; margin-top: .35rem;
  font: inherit; font-weight: 400; color: var(--text); background: #fff; width: 100%;
  border: 1px solid #b9c5cf; border-radius: var(--radius-small); padding: .65rem .8rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,111,151,.2); }
.form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form .check { display: flex; flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--text); font-size: .93rem; line-height: 1.45; }
.form .check input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--accent); }
.optional { font-weight: 400; color: var(--text-muted); font-size: .85em; }
.form-note { font-size: .85rem; color: var(--text-muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-small); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-success { background: var(--green-soft); border: 1px solid #b7d7ae; color: #22501c; }
.alert-error { background: #fdecec; border: 1px solid #f1b8b8; color: #8a1f1f; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.supporter-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem 1.5rem; }
.supporter-list li { padding: .35rem 0; border-bottom: 1px dashed var(--border); }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.82); padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 88px; background: #fff; border-radius: 14px; padding: .5rem; margin-bottom: 1rem; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; }

@media print {
  .site-header, .site-footer, .hero-actions, .counter-band, .toc, .cta-box, .faq-share { display: none !important; }
  .faq-body { display: block !important; padding-left: 0; }
  .hero { background: none; color: #000; }
}
