/* =====================================================
PAGES / UNTERSEITEN (NEU)
===================================================== */

/* Page Hero (kleiner als Start-Hero) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  place-items: center;
  padding: 3.5rem 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.page-hero__content {
  position: relative;
  text-align: center;
}

.page-hero__title {
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.page-hero__lead {
  margin-top: 1rem;
  color: rgba(255,255,255,0.9);
  max-width: 70ch;
  margin-inline: auto;
}

/* Content Layout */
.content {
  padding: 4.5rem 0;
}

.content .container {
  max-width: 950px;
}

.content p {
  margin-top: 1rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}


/* Divider */
.hr {
  height: 1px;
  background: var(--color-border);
  margin: 2.5rem 0;
}

/* Simple List */
.clean-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text-muted);
  padding-left: 1.25rem;
}

/* Form (Kontakt) */
.form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 700;
  color: var(--color-text);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.help {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Projects Sections (Projekte-Seite) */
.project-block {
  margin-top: 2.25rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.project-block h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.gallery {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery img {
  border-radius: 0.9rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Patenschaft Highlight */
.highlight {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);

  /* neu: sorgt für saubere Abstände zwischen Text und Button */
  display: grid;
  gap: 0.9rem;
}

.highlight .btn {
  width: fit-content;
}

.highlight strong {
  color: var(--color-primary);
}

/* Page hero background variants (set in each HTML via class) */
.hero-about { 
  background: url("../assets/images/about-hero.jpg") center/cover no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
  /* Bild weiter nach oben verschieben */
  background-position: center 40%; 
 }
.hero-projects { 
  background: url("../assets/images/projekte-hero.jpg") center/cover no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
  /* Bild weiter nach oben verschieben */
  background-position: center 45%; 
}
.hero-patenschaft { background: url("../assets/images/patenschaft.jpg") center/cover no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
  /* Bild weiter nach oben verschieben */
  background-position: center 45%; 
 }
.hero-kontakt { background: url("../assets/images/kontakt-hero.jpg") center/cover no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
  /* Bild weiter nach oben verschieben */
  background-position: center 45%; 
 }
.hero-spenden {
  background-image: url("../assets/images/spenden-hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  /* Bild weiter nach oben verschieben */
  background-position: center 65%;
}

/* =====================================================
LEGAL PAGES (Impressum / Datenschutz) – (NEU)
===================================================== */
.legal h2 {
  margin-top: 2.2rem;
}

.legal h3 {
  margin-top: 1.6rem;
  color: var(--color-text);
}

.legal p,
.legal li {
  color: #374151;
}

.legal .legal-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.legal .legal-meta {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.legal .legal-meta strong {
  color: var(--color-text);
}

.legal .legal-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

/* Damit lange URLs/E-Mails nicht das Layout sprengen */
.legal a {
  overflow-wrap: anywhere;
}

/* =====================================================
LIGHTBOX / GALLERY SLIDER
===================================================== */
/* Galerie klickbar machen ohne Layout zu verändern */
.gallery img {
  cursor: zoom-in;
  transition: transform 0.18s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(94, 143, 49, 0.45);
  outline-offset: 3px;
}


/* Lightbox Container */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.lightbox__panel {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  margin: 6vh auto 0;
  background: #0b0f0b;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
}

.lightbox__figure {
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #0b0f0b;
}

.lightbox__caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  text-align: center;
  padding-bottom: 0.25rem;
}

.lightbox__nav {
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 2.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.06);
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.14);
}

@media (max-width: 700px) {
  .lightbox__panel {
    grid-template-columns: 44px 1fr 44px;
    margin-top: 8vh;
  }

  .lightbox__figure {
    padding: 0.75rem;
  }
}

/* =====================================================
ÜBER UNS – Layout & "Unebenheiten"
===================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.about-split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f3f4f6;
}

.about-split__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.about-split__content p {
  margin-top: 1rem;
}

.about-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.about-stats {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat__number {
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.stat__label {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
}

.about-cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.about-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.timeline {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-weight: 900;
  color: var(--color-primary);
}

.timeline-body h3 {
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-split__media img {
    height: 320px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
ÜBER UNS – schöner, ruhiger Info-Look + Team Cards
===================================================== */
.info-block p {
  margin-top: 1rem;
  line-height: 1.85;
}

.team-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.person-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.person-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.person-body {
  padding: 1.1rem 1.1rem 1.2rem;
}

.person-body h3 {
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.person-role {
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* =====================================================
PATENSCHAFT – Steps (Ablauf)
===================================================== */
.steps {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  padding-left: 1.25rem; /* schöne Nummerierung */
  color: var(--color-text-muted);
}

.step {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-weight: 900;
  color: var(--color-text);
}

.step-text {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
}
