/* ===========================================
   Gemeinsam Leben Brandenburg eG
   Static Site, inspired by Sydney WordPress theme
   Palette: Orange #f0a518, Cream #fdeddb, Dark #212121
   =========================================== */

:root {
  --orange: #f0a518;
  --orange-deep: #e8951a;
  --orange-vivid: #ff6900;
  --cream: #fdeddb;
  --cream-soft: #faf3ea;
  --dark: #212121;
  --dark-soft: rgba(33, 33, 33, 0.92);
  --gray: #737c8c;
  --gray-light: #f5f5f5;
  --text: #2c2c2c;
  --text-light: #555;
  --white: #fff;
  --maxw: 1120px;
  --gap: 1.5rem;
  /* Header (hell, Logo gut sichtbar). Farbe wird hier zentral gesteuert. */
  --header-bg: #faf3ea;
  --header-text: #2c2c2c;
  --header-border: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--orange-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--orange-vivid);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: 'Raleway', 'Lato', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }

p {
  margin: 0 0 1rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: 0 1px 4px var(--header-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--header-text);
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo,
.brand:focus .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--header-text);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.brand:hover .brand-text,
.brand:focus .brand-text {
  color: var(--orange);
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  color: var(--header-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--orange);
  text-decoration: none;
}

.primary-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.25s ease;
  margin-top: 4px;
}

.primary-nav a:hover::after,
.primary-nav a:focus::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--header-text);
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ============== Buttons ============== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--orange-vivid);
  border-color: var(--orange-vivid);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============== Hero ============== */
.hero {
  background: var(--white);
}

.hero-image {
  width: 100%;
  height: clamp(280px, 55vh, 560px);
  background-image: url('assets/img/hero-zeremonie.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 860px;
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.hero-content .lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.hero-content .btn {
  margin-top: 1.5rem;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* ============== Sections ============== */
.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--white);
}

.section-cream {
  background: var(--cream-soft);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark a {
  color: var(--orange);
}

.section-dark a.btn-primary {
  color: var(--white);
}

.section-dark a.btn-primary:hover,
.section-dark a.btn-primary:focus {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title-light {
  color: var(--white);
}

.subsection-title {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 750px;
}

/* ============== Vision blocks ============== */
.vision-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.vision-block:last-child {
  margin-bottom: 0;
}

.vision-block-reverse {
  direction: rtl;
}

.vision-block-reverse > * {
  direction: ltr;
}

.vision-block figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(33,33,33,0.12);
}

.vision-block img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vision-block figure:hover img {
  transform: scale(1.04);
}

/* ============== Themen ============== */
.themen-hero {
  position: relative;
  min-height: 280px;
  background-image: url('assets/img/themen-header.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.unterstuetzen-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('assets/img/unterstuetzen.jpg');
  background-size: cover;
  background-position: center;
}

.themen-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,33,33,0.55) 0%, rgba(33,33,33,0.7) 100%);
}

.themen-hero .container {
  position: relative;
  z-index: 2;
}

.themen-hero .section-title {
  margin-bottom: 0;
}

.themen-hero .section-title::after {
  background: var(--orange);
}

.themen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.themen-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(33,33,33,0.08);
  display: flex;
  flex-direction: column;
}

.themen-card figure {
  margin: 0;
  overflow: hidden;
}

.themen-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.themen-card:hover img {
  transform: scale(1.05);
}

.themen-card h3 {
  margin: 1.5rem 1.75rem 0.75rem;
  color: var(--dark);
}

.themen-card p {
  margin: 0 1.75rem 1rem;
  color: var(--text-light);
}

.themen-card p:last-child {
  padding-bottom: 1.5rem;
}

/* ============== Unterstützen ============== */
.support-block {
  max-width: 780px;
  text-align: center;
}

.support-block .support-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto 2rem;
  display: inline-block;
  text-align: left;
}

.support-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.support-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.support-cta {
  margin-top: 1.5rem;
}

.support-cta .btn {
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.support-rhythm {
  margin-top: 2.5rem;
  font-style: italic;
  color: var(--text-light);
}

/* ============== Timeline (Geschichte) ============== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border-left: 3px solid var(--orange);
}

.timeline li {
  position: relative;
  padding: 0.6rem 0 0.8rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 1.1rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 3px solid var(--orange);
}

.timeline-date {
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  color: var(--orange-deep);
  min-width: 180px;
}

.timeline-text {
  flex: 1 1 280px;
  color: var(--text);
}

/* ============== Newsletter ============== */
.newsletter-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.5rem;
}

.newsletter-list li {
  background: var(--cream-soft);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.newsletter-list li:hover {
  background: var(--cream);
  transform: translateX(4px);
}

.newsletter-list a {
  display: block;
  padding: 0.9rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  border-left: 4px solid var(--orange);
}

.newsletter-list a:hover {
  color: var(--dark);
  text-decoration: none;
}

.newsletter-list strong {
  font-family: 'Raleway', sans-serif;
  color: var(--orange-deep);
  margin-right: 0.5rem;
}

.newsletter-signup {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream-soft);
  border-radius: 6px;
  text-align: center;
}

/* ============== Kontakt ============== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.kontakt-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kontakt-text .lead {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
}

.kontakt-text .lead a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kontakt-text .lead a:hover {
  color: var(--orange-vivid);
}

.kontakt-text .section-title {
  text-align: left;
}

.kontakt-text .section-title::after {
  left: 0;
  transform: none;
}

.kontakt-cta {
  margin: 1.5rem 0 0;
}

.kontakt-cta .btn {
  font-size: 0.95rem;
  padding: 1rem 1.85rem;
  box-shadow: 0 8px 20px rgba(240, 165, 24, 0.4);
}

.kontakt-image {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  max-height: 460px;
}

.kontakt-image img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* ============== Footer ============== */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: var(--orange);
}

/* ============== Hoffest Section ============== */
.hoffest-section {
  text-align: center;
}

.hoffest-top {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.hoffest-signal {
  position: sticky;
  top: 6.5rem;
}

.hoffest-signal video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(33, 33, 33, 0.18);
  display: block;
}

.hoffest-text {
  max-width: 56ch;
}

.hoffest-text p {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.55;
}

.hoffest-text p:last-child {
  margin-bottom: 0;
}

.hoffest-text strong {
  color: var(--orange-deep);
}

.hoffest-when {
  font-weight: 600;
  color: var(--dark);
  background: rgba(240, 165, 24, 0.14);
  border-left: 4px solid var(--orange);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  line-height: 1.55;
}

.hoffest-yt-intro {
  max-width: 720px;
  margin: 0 auto 1.2rem;
  color: var(--text-light);
  font-style: italic;
}

.hoffest-video {
  max-width: 880px;
  margin: 0 auto 2.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(33, 33, 33, 0.18);
  background: var(--dark);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Zwei-Klick-Consent Platzhalter */
.video-consent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  background: var(--dark);
  display: block;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.3s ease;
}

.video-consent:hover .video-thumb,
.video-consent:focus-visible .video-thumb {
  opacity: 0.68;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(240, 165, 24, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-consent:hover .video-play,
.video-consent:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--orange-vivid);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
}

.video-consent-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.85rem;
  margin-bottom: 0;
  text-align: center;
}

.hoffest-cta {
  margin-top: 0;
  text-align: center;
}

.hoffest-cta .btn {
  font-size: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 8px 20px rgba(240, 165, 24, 0.35);
}

/* ============== Legal Pages (Impressum, Datenschutz) ============== */
.legal-page {
  padding: 4rem 0 5rem;
  background: var(--cream-soft);
  min-height: 70vh;
}

.legal-content {
  max-width: 820px;
  background: var(--white);
  padding: 3rem 3rem 3.5rem;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(33,33,33,0.08);
}

.legal-content h1 {
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

.legal-content .legal-intro {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--orange-deep);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.legal-placeholder {
  display: inline-block;
  background: rgba(240, 165, 24, 0.15);
  border: 1px dashed var(--orange);
  border-radius: 4px;
  padding: 0.1rem 0.55rem;
  font-style: italic;
  color: var(--orange-deep);
  font-size: 0.95em;
}

.legal-back {
  margin-top: 3rem;
  text-align: center;
}

/* ============== Responsive ============== */
@media (max-width: 880px) {
  .vision-block,
  .themen-grid,
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vision-block-reverse {
    direction: ltr;
  }

  .timeline-date {
    min-width: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    background: var(--header-bg);
    padding: 1rem;
    border-radius: 6px;
    gap: 0.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--header-border);
  }

  .primary-nav ul.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.5rem 0.75rem;
    display: block;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .brand-logo {
    height: 46px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .kontakt-image {
    max-height: 320px;
  }

  .kontakt-image img {
    max-height: 320px;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .legal-content {
    padding: 2rem 1.5rem 2.5rem;
  }

  .legal-page {
    padding: 2rem 0 3rem;
  }
}

@media (max-width: 640px) {
  .hoffest-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hoffest-signal {
    position: static;
    max-width: 200px;
    margin: 0 auto;
  }

  .hoffest-text {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 40px;
  }

  .brand-text {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.82rem;
  }

  .timeline li {
    padding-left: 1.4rem;
  }
}
