/* BiG Bürger in Gauting e. V. – schlankes, responsives Stylesheet (ohne Frameworks, ohne externe Fonts) */

:root {
  --brand: #aa243d;
  --brand-dark: #8a1c31;
  --brand-light: #e8ccce;
  --text: #777;
  --text-muted: #777;
  --heading: #404040;
  --line: #ededed;
  --bg: #fff;
  --bg-soft: #f7f7f7;
  --footer-bg: #aa243d;
  --subfooter-bg: #999;
  --font: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1500px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.66;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 3.5%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 150px; gap: 20px; }
.site-logo img { display: block; width: auto; height: 100px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto;
}
.nav-toggle-bar { display: block; width: 26px; height: 3px; background: var(--heading); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-list, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: stretch; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 0 22px; line-height: 150px;
  font-size: 14px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase;
  color: #444;
}
.nav-item > a:hover, .nav-item.is-active > a { color: var(--brand); text-decoration: none; }
.nav-item.is-active > a { font-weight: 600; }

.sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: 10px 18px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--heading); border-bottom: 1px solid var(--line);
}
.sub-menu li:last-child a { border-bottom: 0; }
.sub-menu a:hover, .sub-menu .is-active > a { background: var(--bg-soft); color: var(--brand); text-decoration: none; }

/* ---------- Titelband ---------- */
.page-intro { background: var(--brand); color: #fff; }
.page-intro-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 34px; padding-bottom: 18px; flex-wrap: wrap; min-height: 150px; }
.page-title { margin: 0 0 6px; font-size: 36px; font-weight: 300; letter-spacing: 1px; line-height: 1.25; color: #fff; text-transform: none; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.breadcrumbs li + li::before { content: "»"; margin-right: 6px; opacity: .7; }
.breadcrumbs a { color: #fff; opacity: .85; }
.breadcrumbs a:hover { opacity: 1; color: #fff; }
.breadcrumbs [aria-current] { font-weight: 700; }

/* ---------- Inhalt ---------- */
.site-main { flex: 1 0 auto; padding: 90px 0 110px; }
.site-footer { flex: none; }
.content h2, .content h3, .content h4 { color: var(--heading); font-weight: 600; text-transform: uppercase; line-height: 1.3; margin: 1.6em 0 .6em; }
.content > :first-child { margin-top: 0; }
.content h2 { font-size: 30px; font-weight: 700; }
.content h3 { font-size: 20px; }
.content h4 { font-size: 17px; }
.content p, .content ul, .content ol { margin: 0 0 1.2em; }
.content ul, .content ol { padding-left: 1.4em; }
.content li { margin-bottom: .4em; }
.content strong, .content b { color: var(--brand); }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.content .centered { text-align: center; }
.content .lead { font-size: 18px; }
.content blockquote { margin: 0 0 1.2em; padding: .2em 0 .2em 1em; border-left: 4px solid var(--brand-light); font-style: italic; }
.content .note { background: var(--bg-soft); border-left: 4px solid var(--brand); padding: 14px 18px; margin: 1.5em 0; }

.content .two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.content .two-col figure img { margin-top: 90px; }
.content .two-col figure { margin: 0; }
.content figcaption { font-size: 14px; color: var(--text-muted); margin-top: .5em; }

.content .img-left { float: left; margin: 0 24px 16px 0; }
.content .clear { clear: both; }

.content .profile-section { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); }
.content .profile-section:first-of-type { border-top: 0; }
.content .profile-section h3 { margin-top: 0; }
.content .profile-aside { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.content .profile-aside img { display: block; }

.content .traits { list-style: none; padding: 0; }
.content .traits li { margin-bottom: .3em; }

.content .vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; margin: 1em 0 2.5em; }
.content .vis-grid a { display: block; text-align: center; color: var(--heading); }
.content .vis-grid a:hover { color: var(--brand); text-decoration: none; }
.content .vis-grid img { display: block; height: 158px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 8px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.content .vis-grid span { display: block; font-size: 14px; }
.content .vis-grid small { display: block; font-size: 12px; color: var(--text-muted); }

.content .contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.content .board-list { list-style: none; padding: 0; }
.content .board-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--heading); }
.content .board-list li span { display: block; font-size: 14px; color: var(--text-muted); }

.content .steps { counter-reset: step; list-style: none; padding: 0; }
.content .steps li { position: relative; padding-left: 44px; margin-bottom: 1em; min-height: 32px; }
.content .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; text-align: center; line-height: 32px; font-weight: 700;
}

.content .satzung h4 { margin-top: 2em; }
.content .satzung .para { font-weight: 700; color: var(--heading); text-decoration: underline; }

.btn {
  display: inline-block; background: var(--brand); color: #fff; padding: 10px 22px; border: 0; border-radius: 3px;
  font: inherit; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 13px; cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* Formular */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.form-field label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.form-field input[type="text"], .form-field input[type="email"], .form-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 3px; font: inherit; color: var(--text); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(170,36,61,.15); }
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field.has-error input, .form-field.has-error textarea { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 14px; margin-top: 4px; }
.form-hint { font-size: 14px; color: var(--text-muted); }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 3px; margin-bottom: 1.5em; border: 1px solid; }
.alert-success { background: #eef8ef; border-color: #b7dfbb; color: #256029; }
.alert-error { background: #fdecea; border-color: #f5c2c0; color: #8a1c1c; }
.alert ul { margin: .5em 0 0; }

/* ---------- Datenschutzhinweis ---------- */
.privacy-notice {
  position: fixed; left: 20px; bottom: 20px; z-index: 25;
  max-width: 440px; padding: 22px 24px 20px;
  background: var(--brand); color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
  font-size: 15px; line-height: 1.55;
}
.privacy-notice[hidden], body.nav-open .privacy-notice { display: none; }
.privacy-notice-text { margin: 0 0 16px; }
.privacy-notice-text strong { color: #fff; }
.privacy-notice-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.privacy-notice-link { color: #fff; text-decoration: underline; }
.privacy-notice-link:hover, .privacy-notice-link:focus { color: var(--brand-light); }
.privacy-notice-btn {
  background: #fff; color: var(--brand); border: 0; border-radius: 0; cursor: pointer;
  padding: 11px 28px; font: inherit; font-size: 14px; font-weight: 700;
}
.privacy-notice-btn:hover, .privacy-notice-btn:focus { background: var(--brand-light); color: var(--brand-dark); }
.privacy-notice :focus-visible { outline-color: #fff; }

.mb-0 { margin-bottom: 0 !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; font-size: 14px; }
.site-footer a { color: #d6b1b6; }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 60px; padding-bottom: 50px; }
.footer-list li, .site-footer address { display: flex; align-items: flex-start; gap: 10px; }
.footer-list svg, .site-footer address svg { width: 15px; height: 16px; flex: none; margin-top: 4px; fill: currentColor; }
.footer-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: .5px; }
.site-footer address { font-style: normal; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 4px; }
.footer-menu a::before { content: "›"; margin-right: 6px; }
.footer-menu li { display: list-item; }
.sub-footer { background: var(--subfooter-bg); padding: 10px 0; font-size: 11px; letter-spacing: 1px; color: #fff; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; min-height: 80px; }
  .site-logo img { height: 56px; }
  .site-main { padding: 40px 0 60px; }
  .page-intro-inner { min-height: 0; padding-top: 28px; }
  .page-title { font-size: 28px; }
  .content .two-col figure img { margin-top: 0; }
  .nav-toggle { display: block; position: relative; z-index: 40; }
  /* Vollbild-Overlay unterhalb des Headers; JS setzt top auf die Headerunterkante */
  .site-nav {
    display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 5% 60px; border-top: 3px solid var(--brand);
  }
  .site-nav.is-open { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; }
  .nav-item { display: block; border-bottom: 1px solid var(--line); }
  .nav-item > a { line-height: 1.4; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--brand); }
  .nav-item.is-active > a { font-weight: 700; }
  /* Unterpunkte immer sichtbar */
  .sub-menu {
    position: static; display: block; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none; min-width: 0; padding: 0 0 10px 18px;
  }
  .sub-menu a { position: relative; padding: 9px 0 9px 18px; border: 0; font-size: 13px; letter-spacing: .5px; text-transform: none; color: #444; }
  .sub-menu a::before { content: "›"; position: absolute; left: 0; top: 9px; color: var(--brand); font-weight: 700; }
  .sub-menu a:hover, .sub-menu .is-active > a { background: none; color: var(--brand); }
  .sub-menu .is-active > a { font-weight: 700; }

  .content .two-col, .content .contact-box, .content .profile-section { grid-template-columns: 1fr; }
  .content .profile-aside { flex-direction: row; flex-wrap: wrap; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .privacy-notice { left: 0; right: 0; bottom: 0; max-width: none; padding: 18px 5% 16px; font-size: 14px; border-width: 2px 0 0; }
  body { font-size: 15px; }
  .page-title { font-size: 22px; }
  .content h2 { font-size: 22px; }
  .content h3 { font-size: 18px; }
  .site-main { padding: 32px 0 40px; }
  .content .img-left { float: none; margin: 0 0 16px; }
}
@media print {
  .site-header, .site-footer, .breadcrumbs, .nav-toggle, .privacy-notice { display: none !important; }
  .page-intro { background: none; color: #000; }
  .page-title { color: #000; }
}
