/* =========================================================
   AFS Förderverein – Theme-Stylesheet
   Farbpalette angelehnt an das Vereinslogo (blauer Ballon "S"
   als Primärfarbe, grüner Ballon "F" als Akzentfarbe).
   ========================================================= */

:root {
  --color-brand-50: #eef4fb;
  --color-brand-100: #d7e6f5;
  --color-brand-200: #b3cfea;
  --color-brand-300: #85b1db;
  --color-brand-400: #5790c8;
  --color-brand-500: #3572ac;
  --color-brand-600: #285a8c;
  --color-brand-700: #224971;
  --color-brand-800: #1f3d5c;
  --color-brand-900: #1c344e;

  --color-accent-400: #7cc576;
  --color-accent-500: #57a84f;
  --color-accent-600: #43863c;

  --color-background: #ffffff;
  --color-foreground: #1c2530;
  --color-muted: #f6f8fb;
  --color-border: #e2e8f0;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --container-width: 64rem;
}

/* ---------- Reset & Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-brand-900);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: 100;
  background: var(--color-brand-700);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

main {
  flex: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--color-brand-600);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-brand-700);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-brand-300);
  color: var(--color-brand-800);
}

.btn--secondary:hover {
  background: var(--color-brand-50);
}

/* Wiederverwendbare Button-Reihe für Freitext-Seiten (z. B. "Über uns") */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-brand-800);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 0.25rem;
}

.brand__name {
  font-size: 1rem;
}

@media (min-width: 640px) {
  .brand__name {
    font-size: 1.125rem;
  }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(28, 37, 48, 0.8);
}

.primary-nav a:hover {
  color: var(--color-brand-700);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: rgba(28, 37, 48, 0.8);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(28, 37, 48, 0.8);
}

.mobile-nav a:hover {
  background: var(--color-muted);
  color: var(--color-brand-700);
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(to bottom, var(--color-brand-50), var(--color-background));
}

.hero__inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2.5rem;
  padding-block: 4rem;
}

.hero__content {
  flex: 1;
}

.hero__title {
  font-size: 2.25rem;
  max-width: 40rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: rgba(28, 37, 48, 0.8);
  max-width: 36rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero__logo {
  width: 10rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .hero__inner {
    flex-direction: row;
    padding-block: 6rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__logo {
    width: 14rem;
  }
}

/* ---------- Page hero (Unterseiten) ---------- */

.page-hero {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-muted);
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .page-hero {
    padding-block: 4rem;
  }
}

.page-hero__title {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .page-hero__title {
    font-size: 2.25rem;
  }
}

.page-hero__lead {
  font-size: 1.125rem;
  color: rgba(28, 37, 48, 0.8);
  max-width: 40rem;
  margin: 0;
}

/* ---------- Generic sections ---------- */

.section {
  padding-block: 4rem;
}

.section--muted {
  background: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.section--bordered-top {
  border-top: 1px solid var(--color-border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand-700);
  text-decoration: none;
}

.section-header a:hover {
  text-decoration: underline;
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  color: var(--color-brand-800);
}

.card p {
  font-size: 0.875rem;
  color: rgba(28, 37, 48, 0.7);
  margin: 0;
}

/* ---------- Intro / Mission ---------- */

.intro-text {
  max-width: 48rem;
  color: rgba(28, 37, 48, 0.8);
  margin: 0;
}

/* ---------- Beiträge (Berichte) ---------- */

.post-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.post-card:hover {
  border-color: var(--color-brand-300);
  background: var(--color-brand-50);
}

.post-card__date {
  font-size: 0.75rem;
  color: rgba(28, 37, 48, 0.5);
}

.post-card__title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--color-brand-800);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: rgba(28, 37, 48, 0.7);
  margin: 0;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.single-post__meta {
  font-size: 0.875rem;
  color: rgba(28, 37, 48, 0.5);
  margin-bottom: 1.5rem;
}

.single-post__content {
  max-width: 42rem;
}

.single-post__content > * + * {
  margin-top: 1em;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand-700);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Termine / Kalender ---------- */

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.event-card:hover {
  border-color: var(--color-brand-300);
  background: var(--color-brand-50);
}

@media (min-width: 640px) {
  .event-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .event-card__date {
    width: 14rem;
    flex-shrink: 0;
  }
}

.event-card__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-700);
}

.event-card__title {
  font-weight: 500;
  color: var(--color-brand-900);
}

.calendar-embed {
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- Vorstand ---------- */

.board-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.board-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-brand-600);
}

.board-card__name {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-brand-900);
}

/* ---------- Projekte & Aktivitäten ---------- */

.project-entries {
  margin-top: 2rem;
}

.project-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.project-entry:last-child {
  border-bottom: none;
}

.project-entry h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.project-entry__detail {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-brand-600);
  margin-bottom: 0.75rem;
}

.project-entry p {
  color: rgba(28, 37, 48, 0.8);
}

/* ---------- Bankverbindung ---------- */

.bank-box {
  max-width: 28rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-muted);
  padding: 1.25rem;
  font-size: 0.875rem;
}

.bank-box__title {
  font-weight: 600;
  color: var(--color-brand-900);
  margin: 0 0 0.5rem;
}

.bank-box dl {
  display: grid;
  grid-template-columns: 6rem 1fr;
  row-gap: 0.35rem;
  margin: 0;
}

.bank-box dt {
  color: rgba(28, 37, 48, 0.5);
}

.bank-box dd {
  margin: 0;
}

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */

.legal-sections {
  max-width: 48rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.125rem;
}

.legal-section p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(28, 37, 48, 0.8);
}

/* ---------- Formulare ---------- */

.contact-form {
  max-width: 32rem;
}

.contact-form p,
.wpcf7-form p {
  margin-bottom: 1.25rem;
}

.contact-form label,
.wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(28, 37, 48, 0.8);
  margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--color-brand-400);
}

.wpcf7-form textarea {
  min-height: 8rem;
}

.wpcf7-form .wpcf7-submit {
  border-radius: 0.375rem;
  background: var(--color-brand-600);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--color-brand-700);
}

.wpcf7-not-valid-tip {
  color: #b91c1c;
  font-size: 0.8rem;
}

.wpcf7-response-output {
  border-radius: 0.375rem;
  border-color: var(--color-border) !important;
  font-size: 0.875rem;
}

/* ---------- Sidebar / Kontaktbox ---------- */

.info-box {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-muted);
  padding: 1.25rem;
  font-size: 0.875rem;
}

.info-box p {
  margin: 0 0 0.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  background: var(--color-brand-900);
  color: var(--color-brand-50);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h3 {
  color: var(--color-brand-200);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: var(--color-brand-100);
  font-size: 0.875rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer li:last-child {
  margin-bottom: 0;
}

.site-footer__bottom-inner ul {
  display: flex;
  gap: 1rem;
}

.site-footer a {
  color: var(--color-brand-100);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-brand-800);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1rem;
  font-size: 0.75rem;
  color: var(--color-brand-200);
}

@media (min-width: 640px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Mitgliederbereich ---------- */

.member-login {
  max-width: 24rem;
}

.member-login form p {
  margin-bottom: 1rem;
}

.member-login label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(28, 37, 48, 0.8);
  margin-bottom: 0.25rem;
}

.member-login input[type="text"],
.member-login input[type="password"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.member-login .login-remember label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.member-login .login-remember input {
  width: auto;
}

.member-login input[type="submit"] {
  border-radius: 0.375rem;
  background: var(--color-brand-600);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.member-login input[type="submit"]:hover {
  background: var(--color-brand-700);
}

.member-login__hint {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(28, 37, 48, 0.6);
}

.member-area-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.member-area-bar p {
  margin: 0;
  font-size: 0.875rem;
}

.member-area-bar a {
  font-size: 0.875rem;
  color: var(--color-brand-700);
  text-decoration: none;
}

.member-area-bar a:hover {
  text-decoration: underline;
}

.document-group__title {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-brand-200);
  font-size: 1.15rem;
}

.document-group__title:first-of-type {
  margin-top: 1.5rem;
}

.document-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
}

.document-item__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.document-item__title {
  font-weight: 600;
  color: var(--color-brand-900);
}

.document-item__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent-600);
  background: rgba(87, 168, 79, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.document-item__action a {
  display: inline-block;
  border-radius: 0.375rem;
  background: var(--color-brand-600);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.document-item__action a:hover {
  background: var(--color-brand-700);
}

