/* ==========================================================================
   Dolibarr - Verein zur Foerderung der deutschsprachigen Dolibarr-Community
   Design nach Mock-Up Feedbackschleife Vorstand (31.03.2026)
   Semantisches CSS, keine externen Abhaengigkeiten (kein CDN, keine Webfonts)
   ========================================================================== */

.bodywebsite {
  --primary: #263C5C;      /* Dolibarr Deep Blue */
  --action: #007BFF;       /* Standard Blue */
  --action-dark: #0062cc;
  --support: #7460AA;      /* v23 eldy butactionbg (116,96,170) fuer Verein/Mitglied-CTAs */
  --support-dark: #5e4d8d;
  --accent: #F8F9FA;       /* Hellgrau Sektionen */
  --text: #4B5563;
  --heading: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .07), 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-lg: 0 10px 24px rgba(17, 24, 39, .10);
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

.bodywebsite h1, .bodywebsite h2, .bodywebsite h3, .bodywebsite h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .6em;
  padding: 0;
  font-weight: 700;
}
.bodywebsite h1 { font-size: 2.6rem; letter-spacing: -.02em; color: var(--primary); }
.bodywebsite h2 { font-size: 1.9rem; }
.bodywebsite h3 { font-size: 1.2rem; }
.bodywebsite p { margin: 0 0 1em; }
.bodywebsite a { color: var(--action); text-decoration: none; }
.bodywebsite a:hover { text-decoration: underline; }
.bodywebsite img { max-width: 100%; height: auto; }

.bodywebsite .wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.bodywebsite .wrap--narrow { max-width: 780px; }

/* --- Buttons -------------------------------------------------------------- */
.bodywebsite .btn {
  display: inline-block;
  padding: .7rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bodywebsite .btn:hover { text-decoration: none; }
.bodywebsite .btn--action { background: var(--action); color: #fff; }
.bodywebsite .btn--action:hover { background: var(--action-dark); color: #fff; }
.bodywebsite .btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.bodywebsite .btn--outline:hover { background: var(--primary); color: #fff; }
.bodywebsite .btn--support { background: var(--support); color: #fff; }
.bodywebsite .btn--support:hover { background: var(--support-dark); color: #fff; }
.bodywebsite .btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.bodywebsite .btn--ghost:hover { background: #fff; color: var(--primary); }

.bodywebsite .textlink { font-weight: 600; }
.bodywebsite .textlink svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: .3rem; }
.bodywebsite .eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--action);
  margin-bottom: .8em;
}

/* --- Header --------------------------------------------------------------- */
.bodywebsite .site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bodywebsite .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}
.bodywebsite .brand { display: flex; align-items: center; gap: .8rem; color: var(--primary); }
.bodywebsite .brand:hover { text-decoration: none; opacity: .9; }
.bodywebsite .brand-mark { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.bodywebsite .brand-sub {
  font-size: 1.05rem;
  font-weight: 700;
  border-left: 2px solid var(--border);
  padding-left: .8rem;
}
.bodywebsite .main-nav { display: flex; align-items: center; gap: 1.6rem; }
.bodywebsite .main-nav a { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: .45rem; }
.bodywebsite .main-nav a:hover { color: var(--action); text-decoration: none; }
.bodywebsite .main-nav a svg { width: 18px; height: 18px; }
.bodywebsite .nav-sep { width: 1px; height: 24px; background: var(--border); }
.bodywebsite .nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .4rem;
  color: var(--primary);
  cursor: pointer;
}
.bodywebsite .nav-toggle svg { width: 26px; height: 26px; }

/* --- Hero ----------------------------------------------------------------- */
.bodywebsite .hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #ffffff);
  border-bottom: 1px solid var(--border);
}
.bodywebsite .hero h1 { font-size: 3rem; margin-bottom: .5em; }
.bodywebsite .hero .lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 2.2rem; }
.bodywebsite .hero .btn { margin: .3rem .4rem; }
.bodywebsite .hero--left { text-align: left; }
.bodywebsite .hero--left .lead { margin-left: 0; }
.bodywebsite .hero .lead--strong { font-weight: 600; color: var(--heading); margin-bottom: .8rem; }

/* --- Sektionen ------------------------------------------------------------ */
.bodywebsite .section { padding: 5.5rem 0; }
.bodywebsite .section--alt { background: var(--accent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bodywebsite .section--dark { background: var(--primary); color: #fff; }
.bodywebsite .section--dark h2, .bodywebsite .section--dark h3 { color: #fff; }
.bodywebsite .section--dark p { color: rgba(255,255,255,.85); }
.bodywebsite .section-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.bodywebsite .section-head p { font-size: 1.05rem; }

/* --- Karten-Raster -------------------------------------------------------- */
.bodywebsite .grid { display: grid; gap: 1.5rem; }
.bodywebsite .cards-flex { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.bodywebsite .cards-flex .card { flex: 0 1 350px; }
.bodywebsite .grid--2 { grid-template-columns: repeat(2, 1fr); }
.bodywebsite .grid--3 { grid-template-columns: repeat(3, 1fr); }
.bodywebsite .grid--4 { grid-template-columns: repeat(4, 1fr); }

.bodywebsite .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.bodywebsite .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bodywebsite .card h3 { margin-bottom: .5em; }
.bodywebsite .card p:last-child { margin-bottom: 0; }
.bodywebsite .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 123, 255, .1);
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.bodywebsite .card-icon svg { width: 24px; height: 24px; }
.bodywebsite .card--link { display: block; color: inherit; }
.bodywebsite .card--link:hover { text-decoration: none; }
.bodywebsite .card--link:hover h3 { color: var(--action); }

.bodywebsite .partner-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.bodywebsite .tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--action);
  background: rgba(0, 123, 255, .1);
  border-radius: 999px;
  padding: .25em 1em;
  margin-bottom: 1rem;
}

/* --- Events --------------------------------------------------------------- */
.bodywebsite .events { max-width: 860px; margin: 0 auto; display: grid; gap: 1.25rem; }
.bodywebsite .event {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bodywebsite .event__date {
  background: var(--primary);
  color: #fff;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem .8rem;
  text-align: center;
}
.bodywebsite .event__month { text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.bodywebsite .event__day { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.bodywebsite .event__year { font-size: .78rem; opacity: .75; }
.bodywebsite .event__body { padding: 1.3rem 1.5rem 1.3rem 0; }
.bodywebsite .event__body h3 { margin-bottom: .35em; }
.bodywebsite .event__body p { margin-bottom: .6em; }
.bodywebsite .event__tag {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: .5em;
}
.bodywebsite .event__tag--live { color: var(--support); }
.bodywebsite .events-empty { text-align: center; color: var(--muted); }

/* --- Akkordeon Funktionen ------------------------------------------------- */
.bodywebsite .acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 960px; margin: 0 auto; }
.bodywebsite details.acc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 1.4rem;
  align-self: start;
}
.bodywebsite details.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 0;
  font-weight: 700;
  color: var(--heading);
}
.bodywebsite details.acc summary::-webkit-details-marker { display: none; }
.bodywebsite details.acc summary svg { width: 20px; height: 20px; color: var(--action); flex: none; }
.bodywebsite details.acc summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform .2s ease;
  flex: none;
}
.bodywebsite details.acc[open] summary::after { transform: rotate(-135deg); }
.bodywebsite details.acc .acc-body { padding: 0 0 1.2rem; }
.bodywebsite details.acc ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.bodywebsite details.acc li { margin-bottom: .3rem; }

/* --- Vorstand ------------------------------------------------------------- */
.bodywebsite .person { text-align: center; }
.bodywebsite .person-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbe3ee, #f2f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.1rem;
  overflow: hidden;
}
.bodywebsite .person-photo svg { width: 56px; height: 56px; opacity: .5; }
.bodywebsite .person-photo img { width: 100%; height: 100%; object-fit: cover; }
.bodywebsite .person h3 { margin-bottom: .1em; }
.bodywebsite .person .role { color: var(--action); font-weight: 700; font-size: .88rem; margin-bottom: .6em; }
.bodywebsite .person p:last-child { font-size: .92rem; }

/* --- Footer --------------------------------------------------------------- */
.bodywebsite .site-footer { background: #101827; color: rgba(255,255,255,.75); }
.bodywebsite .site-footer .footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
.bodywebsite .site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1em; }
.bodywebsite .site-footer ul { list-style: none; margin: 0; padding: 0; }
.bodywebsite .site-footer li { margin-bottom: .55rem; }
.bodywebsite .site-footer a { color: rgba(255,255,255,.75); }
.bodywebsite .site-footer a:hover { color: #fff; }
.bodywebsite .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}
.bodywebsite .footer-bottom a { color: rgba(255,255,255,.75); }

/* --- Rechtstexte ---------------------------------------------------------- */
.bodywebsite .legal h2 { font-size: 1.35rem; margin-top: 2em; }
.bodywebsite .legal h2:first-child { margin-top: 0; }
.bodywebsite .placeholder { background: #FFF7D6; padding: 0 .25em; }

/* --- Beitraege / News ------------------------------------------------------ */
.bodywebsite .post-figure { margin: 0 0 2rem; }
.bodywebsite .post-figure img { display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.bodywebsite .post-back { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.bodywebsite .section .wrap--narrow h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.bodywebsite .section .wrap--narrow h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.bodywebsite .section .wrap--narrow ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.bodywebsite .section .wrap--narrow li { margin-bottom: .4rem; }

.bodywebsite .newslist { display: flex; flex-direction: column; gap: 1.75rem; }
.bodywebsite .newsitem { display: flex; gap: 1.75rem; align-items: flex-start; padding: 0 0 1.75rem; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.bodywebsite .newslist .newsitem:last-child { border-bottom: 0; padding-bottom: 0; }

.bodywebsite .newsitem__thumb { flex: 0 0 220px; width: 220px; height: 140px; border-radius: var(--radius); overflow: hidden; background: var(--accent); border: 1px solid var(--border); }
.bodywebsite .newsitem__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bodywebsite .newsitem__thumb--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, #35527c 100%); border-color: transparent; }
.bodywebsite .newsitem__thumb--empty svg { width: 46px; height: 46px; color: rgba(255, 255, 255, .75); }
.bodywebsite .newsitem:hover .newsitem__thumb { box-shadow: var(--shadow-lg); }

.bodywebsite .newsitem__body { flex: 1; min-width: 0; }
.bodywebsite .newsitem__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .6rem; }
.bodywebsite .newsitem__date { font-size: 1.05rem; font-weight: 600; color: var(--primary); letter-spacing: -.01em; }
.bodywebsite .newsitem__body h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 .5rem; color: var(--heading); }
.bodywebsite .newsitem:hover h3 { color: var(--action); }
.bodywebsite .newsitem__body p { margin: 0 0 1rem; }
.bodywebsite .newsitem__more { display: block; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .bodywebsite .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bodywebsite .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bodywebsite .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .bodywebsite h1, .bodywebsite .hero h1 { font-size: 2.1rem; }
  .bodywebsite .section { padding: 3.5rem 0; }
  .bodywebsite .hero { padding: 4rem 0; }
  .bodywebsite .grid--2, .bodywebsite .grid--3, .bodywebsite .grid--4,
  .bodywebsite .acc-grid { grid-template-columns: 1fr; }
  .bodywebsite .site-footer .footer-main { grid-template-columns: 1fr; }
  .bodywebsite .nav-toggle { display: block; }
  .bodywebsite .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .bodywebsite .main-nav.open { display: flex; }
  .bodywebsite .nav-sep { display: none; }
  .bodywebsite .event { flex-direction: column; gap: 0; }
  .bodywebsite .event__date { flex-direction: row; gap: .5rem; min-width: 0; padding: .7rem 1rem; justify-content: flex-start; }
  .bodywebsite .event__body { padding: 1.1rem 1.3rem; }
  .bodywebsite .newsitem { flex-direction: column; gap: 1rem; }
  .bodywebsite .newsitem__thumb { flex: none; width: 100%; height: 180px; }
}

