/* Frauennetzwerk Niederbayern – Stylesheet
   Farben und Schriften zentral hier ändern (Abschnitt :root). */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --beere: #941e58;        /* Hauptfarbe */
  --beere-hell: #c04578;   /* Akzent / Hover */
  --dunkel: #2d2d2d;       /* Überschriften */
  --text: #555555;         /* Fließtext */
  --grau: #888888;
  --linie: #cccccc;
  --rosa: #f3e9ee;         /* Abschnittshintergrund */
  --rosa-hell: #fdf8f9;    /* Seitenhintergrund */
  --weiss: #ffffff;
  --breite: 1140px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: "Lato", Arial, sans-serif; font-size: 17px; line-height: 1.65; color: var(--text); background: var(--rosa-hell); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--beere); }
a:hover { color: var(--beere-hell); }
h1, h2, h3 { font-family: "Poppins", Arial, sans-serif; line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { color: var(--beere); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.4rem; color: var(--dunkel); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--weiss); padding: 8px 12px; z-index: 100; }

/* Kopfbereich */
.site-header { background: var(--weiss); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.logo img { width: 120px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--dunkel); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--beere); }
.nav a.btn { color: var(--weiss); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--beere); margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn { display: inline-block; background: var(--beere); color: var(--weiss); text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 6px; border: 2px solid var(--beere); transition: background .2s, color .2s; }
.btn:hover { background: var(--beere-hell); border-color: var(--beere-hell); color: var(--weiss); }
.btn-outline { background: transparent; color: var(--beere); }
.btn-outline:hover { background: var(--beere); color: var(--weiss); }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.center { text-align: center; }
.center .buttons { justify-content: center; }

/* Abschnitte */
section { padding: 80px 0; }
.bg-rosa { background: var(--rosa); }
.bg-weiss { background: var(--weiss); }
.lead { font-size: 1.15rem; }
.untertitel { color: var(--grau); margin-top: -.4em; margin-bottom: 40px; }

.hero { background: linear-gradient(135deg, var(--rosa-hell) 0%, var(--rosa) 100%); padding: 110px 0 100px; }
.hero h1 { max-width: 760px; }
.hero .lead { font-family: "Poppins", Arial, sans-serif; font-weight: 600; color: var(--dunkel); font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin: 0 0 .3em; }

.zwei-spalten { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.zwei-spalten img { border-radius: var(--radius); }
.zitat { font-style: italic; color: var(--beere); font-weight: 700; }

.ziele { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 22px; }
.ziele li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; align-items: center; text-align: left; }
.ziele img { width: 70px; height: 70px; }
.ziele h3 { margin: 0 0 .2em; font-size: 1.25rem; }
.ziele p { margin: 0; }

.karten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.karte { background: var(--beere); color: var(--weiss); border-radius: var(--radius); padding: 30px 22px; text-align: center; }
.karte img { width: 64px; height: 64px; margin: 0 auto 14px; }
.karte h3 { color: var(--weiss); font-size: 1.2rem; }
.karte p { margin: 0; font-size: .98rem; }
.hinweis { margin-top: 30px; font-style: italic; color: var(--beere); }

/* Veranstaltungen */
/* Termine: siehe Abschnitt am Ende der Datei */

/* Vorstand */
.vorstand-foto { border-radius: var(--radius); margin: 30px auto 8px; }
.bildunterschrift { text-align: center; color: var(--grau); font-size: .95rem; margin-bottom: 50px; }
.personen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.person { background: var(--weiss); border-radius: var(--radius); padding: 30px; box-shadow: 0 2px 14px rgba(148,30,88,.06); }
.rolle { font-family: "Poppins", Arial, sans-serif; color: var(--beere); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3em; }
.aufgaben { list-style: none; padding: 0; margin: 0; }
.aufgaben li::before { content: "✓ "; color: var(--beere); font-weight: 700; }
.aufgaben-titel { font-weight: 700; color: var(--dunkel); margin-bottom: .3em; }

/* Rechtstexte */
.rechtstext { max-width: 820px; }
.rechtstext h2 { font-size: 1.5rem; margin-top: 1.6em; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.2em; }

/* Fußbereich */
.site-footer { background: var(--beere); color: var(--weiss); padding: 40px 0; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer a { color: var(--weiss); }
.site-footer p { margin: 0; }
.footer-links, .social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.social svg { width: 22px; height: 22px; fill: var(--weiss); display: block; }

/* Mobil */
@media (max-width: 960px) {
  .karten { grid-template-columns: repeat(2, 1fr); }
  .personen { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--weiss); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px; }
  .nav li { width: 100%; }
  .nav a { display: block; padding: 10px 0; }
  .nav a.btn { display: inline-block; margin-top: 8px; padding: 12px 26px; }
  .zwei-spalten { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
}
@media (max-width: 520px) {
  .karten { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* Hinweis direkt unter einem Button */
.nach-button { color: var(--grau); margin: 18px 0 0; }
/* Hinweis unter einer Terminliste */
.nach-liste { color: var(--grau); margin: 36px 0 0; }

/* ===== Termine ===== */
.termine { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.termin { background: var(--weiss); border-radius: var(--radius); box-shadow: 0 2px 14px rgba(148,30,88,.08); display: grid; grid-template-columns: 110px 1fr; overflow: hidden; text-align: left; }
.termin-datum { background: var(--beere); color: var(--weiss); text-align: center; padding: 18px 8px; font-family: "Poppins", Arial, sans-serif; line-height: 1.1; }
.termin-datum .wt { display: none; }
.termin-datum .tag { font-size: 2rem; font-weight: 700; display: block; }
.termin-datum .monat { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; display: block; }
.termin-datum .jahr { font-size: .8rem; opacity: .9; display: block; margin-top: 4px; }
.vergangen { margin-top: 70px; }
.vergangen .termin-datum { background: #767676; }
.termin-text { padding: 24px 28px; }
.termin-text h3 { margin-bottom: .35em; font-size: 1.3rem; }
.termin-meta { color: #6b6b6b; font-size: .92rem; margin-bottom: .7em; }
.termin-meta p { margin: 0 0 .15em; display: flex; align-items: flex-start; gap: 7px; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; fill: var(--beere-hell); margin-top: .2em; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--rosa); color: var(--beere); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: .8em; }
.termin-kurz { margin-bottom: .6em; }
.termin-anmeldung { font-size: .95rem; }
.termin-text > :last-child { margin-bottom: 0; }
.leer { color: #6b6b6b; font-style: italic; }

.mehr-lesen { margin: .4em 0 .6em; }
.mehr-lesen summary { cursor: pointer; color: var(--beere); font-weight: 700; font-size: .95rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.mehr-lesen summary::-webkit-details-marker { display: none; }
.mehr-lesen summary::after { content: "⌄"; display: inline-block; transition: transform .2s; line-height: 1; margin-top: -.3em; }
.mehr-lesen[open] summary::after { transform: rotate(180deg); margin-top: .3em; }
.mehr-lesen summary:hover { color: var(--beere-hell); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mehr-lesen summary:focus-visible { outline: 2px solid var(--beere); outline-offset: 3px; border-radius: 4px; }
.mehr-inhalt { border-left: 3px solid var(--rosa); padding-left: 16px; margin-top: .2em; }
.mehr-inhalt p { margin: 0 0 .6em; }

.termin-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: .9em 0 .4em; max-width: 560px; }
.termin-fotos .foto { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.termin-fotos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s; }
.termin-fotos .foto:hover img { transform: scale(1.04); }
.termin-fotos .foto:focus-visible { outline: 2px solid var(--beere); outline-offset: 2px; }
.mehr-fotos { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(148,30,88,.8); color: var(--weiss); font-family: "Poppins", Arial, sans-serif; font-weight: 700; font-size: 1.4rem; }

.termin-presse { border-top: 1px solid var(--rosa); margin-top: 1em; padding-top: .9em; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-presse { background: var(--weiss); border: 1px solid var(--beere-hell); font-size: .85rem; min-height: 32px; padding: 4px 12px; margin: 0; text-decoration: none; }
.chip-presse .icon { margin-top: 0; fill: var(--beere); }
.chip-presse:hover { background: var(--rosa); }
.chip-presse:focus-visible { outline: 2px solid var(--beere); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Foto-Ansicht */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(45,45,45,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-bild { max-width: 92vw; max-height: 85vh; border-radius: 6px; }
.lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--weiss); color: var(--dunkel); font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:focus-visible { outline: 3px solid var(--beere-hell); outline-offset: 2px; }
.lb-zu { top: 16px; right: 16px; }
.lb-zur { left: 16px; top: 50%; margin-top: -22px; }
.lb-vor { right: 16px; top: 50%; margin-top: -22px; }
.lightbox button[hidden] { display: none; }
.lb-zahl { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--weiss); margin: 0; font-size: .9rem; }

/* Termine am Handy: Datum als Band oben */
@media (max-width: 600px) {
  .termin { grid-template-columns: 1fr; }
  .termin-datum { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 0 18px; min-height: 36px; text-align: left; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .termin-datum .tag, .termin-datum .monat, .termin-datum .jahr { display: inline; font-size: inherit; margin: 0; opacity: 1; letter-spacing: inherit; }
  .termin-datum .wt { display: inline; }
  .termin-datum .wt::after { content: " ·"; }
  .termin-datum .tag::after { content: "."; }
  .termin-text { padding: 18px 18px 20px; }
  .termin-text h3 { font-size: 1.15rem; }
  .termin-fotos { grid-template-columns: repeat(2, 1fr); }
}
