﻿﻿/* =================================================
   Subpage overrides - loaded after css/core.css
   ================================================= */

/* Light background for subpages */
body {
  background: var(--gc4c-bg, #f8fafc);
  color: var(--gc4c-black, #1a1a1a);
}

/* Header: same fixed behavior as homepage, but always solid on subpages */
header {
  position: fixed;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Reset transparent hero gradient on subpages */
header::before {
  display: none;
}

/* â”€â”€â”€ Page Layout â”€â”€â”€ */
.page {
  padding: calc(64px + 2rem) 0 3rem;
}

.page h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0 0 0.5rem;
}

.page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
  color: var(--gc4c-black, #1a1a1a);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.page h2[id] {
  scroll-margin-top: 84px;
}

.lead {
  color: var(--gc4c-gray);
  margin: 0 0 1rem;
}

/* â”€â”€â”€ Content Grid â”€â”€â”€ */
.grid {
  display: grid;
  gap: 0.9rem;
}

.grid.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* â”€â”€â”€ Cards â”€â”€â”€ */
.card {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 0.75rem;
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.5rem;
  color: var(--gc4c-gray);
  font-size: 0.92rem;
}

/* â”€â”€â”€ Placeholders â”€â”€â”€ */
.logo-placeholder,
.avatar-placeholder {
  border: 1px dashed #cdd6e2;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f5f8fc, #edf2f8);
  color: #6b7280;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.logo-placeholder {
  height: 54px;
}

.avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

/* â”€â”€â”€ Tags & Status Badges â”€â”€â”€ */
.tag,
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.tag {
  background: #fff2d8;
  color: #7a3e00;
}

.status.planned {
  background: #fff7ed;
  color: #9a3412;
}

.status.draft {
  background: #eff6ff;
  color: #1d4ed8;
}

.status.active {
  background: #ecfdf5;
  color: #065f46;
}

/* â”€â”€â”€ Filters â”€â”€â”€ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.filters button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.filters button:hover,
.filters button.active {
  background: #fff2d8;
  border-color: #ffd79e;
  color: #7a3e00;
}

/* â”€â”€â”€ Embed Placeholder â”€â”€â”€ */
.embed-placeholder {
  min-height: 220px;
  border: 1px dashed #b7c4d8;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #f2f7ff, #ffffff);
  color: #3f5e8a;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

/* â”€â”€â”€ Meta text â”€â”€â”€ */
.meta {
  font-size: 0.86rem;
  color: var(--gc4c-gray);
}

/* ─── Formular-Erweiterungen (Subpages) ─── */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gc4c-gray);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  accent-color: var(--gc4c-orange);
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

/* â”€â”€â”€ Datenschutz / Legal pages â”€â”€â”€ */
.ds-section {
  padding: 1.5rem 1.75rem;
  margin-bottom: 0.9rem;
}

.ds-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--gc4c-orange, #f97316);
  color: var(--gc4c-black, #1a1a1a);
}

.ds-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.35rem 0 0.35rem;
  color: var(--gc4c-black, #1a1a1a);
}

.ds-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
  color: #374151;
}

.ds-section p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.ds-section ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.ds-section ul li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 0.4rem;
}

.ds-section a {
  color: var(--gc4c-orange, #f97316);
  text-decoration: none;
}

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

.legal-warning {
  background: #f9fafb;
  border-left: 3px solid var(--gc4c-orange, #f97316);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.legal-warning p {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem !important;
}

.legal-warning p:last-child {
  margin-bottom: 0 !important;
}

/* â”€â”€â”€ Code of Conduct â”€â”€â”€ */
.coc-principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.coc-principles li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #374151;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border-left: 3px solid var(--gc4c-orange, #f97316);
}

.coc-principles li strong {
  color: var(--gc4c-black, #1a1a1a);
  margin-right: 0.25rem;
}

.coc-unacceptable h2 {
  border-bottom-color: #ef4444;
}

.coc-unacceptable ul li::marker {
  color: #ef4444;
}

/* ─── Blog-Artikel ─── */
.blog-hero {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.blog-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.blog-hero .subtitle {
  font-size: 1.05rem;
  color: var(--gc4c-gray);
  margin: 0 0 1rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--gc4c-gray);
}

.blog-article {
  max-width: 780px;
}

.blog-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--gc4c-black);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.blog-article h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  color: var(--gc4c-black);
}

.blog-article p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 0.85rem;
}

.blog-article ul,
.blog-article ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0 1rem;
}

.blog-article li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 0.4rem;
}

.blog-summary {
  background: #f8fafc;
  border-left: 3px solid var(--gc4c-orange, #f97316);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.blog-summary h2 {
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
  font-size: 1rem;
}

.blog-sources {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--gc4c-gray);
}

.blog-sources h2 {
  font-size: 0.95rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.blog-sources ol {
  padding-left: 1.2rem;
}

.blog-sources li {
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  line-height: 1.6;
  color: var(--gc4c-gray);
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--gc4c-orange, #f97316);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

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

/* ─── Blog-Übersicht: Featured Card ─── */
.card.featured {
  border-color: var(--gc4c-orange, #f97316);
  border-width: 2px;
}

.card.featured h3 {
  font-size: 1.1rem;
}

.card.placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  border-style: dashed;
}

.card.placeholder .placeholder-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.card.placeholder h3 {
  color: var(--gc4c-gray);
  font-size: 0.95rem;
}

.card.placeholder a {
  color: var(--gc4c-orange, #f97316);
}

.blog-archive-link {
  color: inherit;
  text-decoration: none;
}

.blog-archive-link:hover {
  text-decoration: underline;
}

.blog-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gc4c-orange, #f97316);
  text-decoration: none;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.blog-featured-link:hover {
  text-decoration: underline;
}

.blog-archive-margin {
  margin-top: 2rem;
}

/* ─── Über uns: Seiten-Ankernavigation ─── */
.page-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2.25rem;
}

.page-anchor-nav a {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--gc4c-black);
}

.page-anchor-nav a:hover {
  background: #fff2d8;
  border-color: #ffd79e;
  color: #7a3e00;
}

/* ─── Über uns: Fließtext ─── */
.body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 0.85rem;
}

/* ─── Über uns: Abschnittsbezeichnung (z. B. „Bereits zugesagt") ─── */
.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gc4c-gray);
  margin: 1.5rem 0 0.75rem;
}

.section-label + .meta {
  margin-bottom: 1rem;
}

/* ─── Über uns: Personen-Karte ─── */
.person-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.avatar-placeholder.avatar-lg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  font-size: 0.7rem;
}

.person-card-header h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.person-card-header .meta {
  margin: 0;
}

.card-placeholder-note {
  font-size: 0.88rem;
  color: #6b7280;
  font-style: italic;
}

/* Grau-gestricheltes Platzhalter-Card */
.card.card-pending {
  background: #f8fafc;
  border-style: dashed;
}

.card.card-pending h3 {
  color: var(--gc4c-gray);
}

/* ─── Über uns: Kompakte Beirats-/Mitgliedskarte ─── */
.card.member-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* ─── Über uns: KPI-Statistikkarte ─── */
.card.kpi-card {
  text-align: center;
  background: rgba(220, 38, 38, 0.04);
  border-color: rgba(220, 38, 38, 0.2);
}

.card.kpi-card .kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gc4c-red);
  line-height: 1.1;
}

.card.kpi-card .kpi-label {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: var(--gc4c-gray);
}

/* ─── Über uns: Unterabschnitt h3 ─── */
.section-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gc4c-black);
  margin: 0 0 1rem;
}

/* ─── Über uns: Icon-Karte (Lösungspfeiler) ─── */
.card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.06);
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.card .card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gc4c-red);
}

/* ─── Über uns: Zitat-Stile ─── */
.quote-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gc4c-black);
  margin: 0;
  line-height: 1.6;
}

.quote-body {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gc4c-black);
  margin: 0 0 0.5rem;
  line-height: 1.7;
}

.quote-attribution {
  font-size: 0.82rem;
  color: var(--gc4c-gray);
  margin: 0;
}

/* ─── Über uns: info-box Abstands-Varianten ─── */
.info-box.info-box--section {
  margin: 1.5rem 0;
}

.info-box.info-box--closing {
  margin-top: 1.75rem;
}

.info-box .info-text-lead {
  margin-top: 0;
  font-weight: 600;
  color: var(--gc4c-black);
}

.info-box .info-text-body {
  margin-bottom: 0;
}

/* ─── Personen-Foto (echtes Bild) ─── */
.avatar-photo {
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.avatar-photo.avatar-lg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* ─── Aufklappbares Personenprofil ─── */
.person-profile {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  margin-top: 0.9rem;
  overflow: hidden;
}

.person-profile-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.15s;
}

.person-profile-summary::-webkit-details-marker {
  display: none;
}

.person-profile-summary:hover {
  background: var(--gc4c-gray-light);
}

.person-profile-summary .ps-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.person-profile-summary .ps-label {
  flex: 1;
}

.person-profile-summary .ps-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gc4c-black);
  display: block;
}

.person-profile-summary .ps-action {
  font-size: 0.8rem;
  color: var(--gc4c-orange);
  font-weight: 600;
}

.person-profile-summary .ps-chevron {
  width: 18px;
  height: 18px;
  color: var(--gc4c-gray);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.person-profile[open] .ps-chevron {
  transform: rotate(180deg);
}

.person-profile[open] .ps-action {
  color: var(--gc4c-gray);
  font-weight: 400;
}

.person-profile-body {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.person-profile-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.person-profile-photo img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.person-profile-bio h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--gc4c-black);
}

.person-profile-role {
  font-size: 0.875rem;
  color: var(--gc4c-gray);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.person-profile-quote {
  border-left: 3px solid var(--gc4c-orange);
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0 0;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gc4c-black);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .person-profile-grid {
    grid-template-columns: 1fr;
  }

  .person-profile-photo {
    max-width: 160px;
  }
}
