/* ═══════════════════════════════════════════════════════════════
   LICHTGRENZE BREMEN e.V. — LAYOUT
   layout.css
   Header, footer, navigation (desktop + mobile + hamburger +
   dropdown), hero, page-hero, page-content, about, projects grid,
   events, CTA section, and all section layouts.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: var(--transition);
  padding: 20px 0;
}

.header.scrolled,
.header.header-dark {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 30px rgba(26, 26, 46, 0.08);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Logo ────────────────────────────────────────────────────── */
.logo img {
  height: 44px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo img,
.header.header-dark .logo img {
  filter: none;
}

.header:not(.scrolled):not(.header-dark) .logo img {
  filter: brightness(0) invert(1);
}

/* ── Desktop Navigation ─────────────────────────────────────── */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.header:not(.scrolled):not(.header-dark) .nav-desktop a {
  color: rgba(255, 255, 255, 0.85);
}

.header:not(.scrolled):not(.header-dark) .nav-desktop a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.header.scrolled .nav-desktop a,
.header.header-dark .nav-desktop a {
  color: var(--color-text);
}

.header.scrolled .nav-desktop a:hover,
.header.header-dark .nav-desktop a:hover {
  color: var(--color-accent);
  background: rgba(232, 101, 43, 0.06);
}

/* ── Dropdown Navigation ─────────────────────────────────────── */
.nav-desktop .nav-dropdown {
  position: relative;
}

.nav-desktop .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.15), 0 0 0 1px rgba(26, 26, 46, 0.05);
  padding: var(--space-sm);
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xs);
}

.nav-desktop .nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .menu-category {
  padding: 12px;
}

.nav-dropdown-menu .menu-category-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.nav-dropdown-menu .menu-category a {
  display: block;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--color-text) !important;
  padding: 6px var(--space-sm);
  border-radius: var(--radius-sm);
  background: transparent !important;
}

.nav-dropdown-menu .menu-category a:hover {
  background: var(--color-bg-alt) !important;
  color: var(--color-accent) !important;
}

/* ── Hamburger (mobile toggle) ───────────────────────────────── */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transition: var(--transition);
}

.header:not(.scrolled):not(.header-dark) .hamburger span {
  background: #fff;
}

.header.scrolled .hamburger span,
.header.header-dark .hamburger span {
  background: var(--color-bg);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: var(--z-mobile-nav);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  font-weight: 500;
  padding: 10px var(--space-lg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu .btn-spenden-mobile {
  margin-top: 20px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-size: 18px;
}

/* ═══════════════════════════════════════
   HERO (homepage)
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/04_teamfoto.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(26, 26, 46, 0.6) 50%, rgba(26, 26, 46, 0.45) 100%);
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 0 var(--space-lg);
  margin-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: var(--space-sm) 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both 0.2s;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--color-bg-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both 0.35s;
}

.hero h1 .accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease both 0.5s;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease both 0.65s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fadeUp 0.8s ease both 1s, float 3s ease-in-out infinite 1.8s;
}

.hero-scroll-hint span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════
   PAGE HERO (subpages)
   ═══════════════════════════════════════ */
.page-hero {
  background: var(--color-bg);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 101, 43, 0.1) 0%, transparent 70%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 143, 127, 0.08) 0%, transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: var(--z-base);
}

.page-hero .section-label {
  color: var(--color-accent);
}

.page-hero .section-label::before {
  background: var(--color-accent);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: var(--color-bg-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  animation: fadeUp 0.8s ease both 0.2s;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  line-height: 1.65;
  animation: fadeUp 0.8s ease both 0.35s;
}

/* ═══════════════════════════════════════
   PAGE CONTENT (subpages)
   ═══════════════════════════════════════ */
.page-content {
  padding: 80px 0;
}

.page-content .container {
  max-width: 860px;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--color-bg);
  line-height: 1.2;
  margin: 48px 0 var(--space-md);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-bg);
  margin: 32px 0 12px;
}

.page-content p {
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 18px;
}

.page-content p strong {
  color: var(--color-text);
  font-weight: 600;
}

.page-content ul {
  margin: var(--space-md) 0 var(--space-lg) 0;
  padding-left: 0;
}

.page-content ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: 10px;
  color: var(--color-text-dim);
  line-height: 1.7;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.page-content img {
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.page-content a:not(.btn-primary):not(.btn-secondary):not(.btn-ghost) {
  color: var(--color-accent-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(10, 143, 127, 0.3);
  transition: var(--transition);
}

.page-content a:not(.btn-primary):not(.btn-secondary):not(.btn-ghost):hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ═══════════════════════════════════════
   ABOUT / 2-COL LAYOUT
   ═══════════════════════════════════════ */
.about {
  background: var(--color-bg-white);
  padding: var(--space-section) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 40%;
  height: 40%;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-text .section-label {
  margin-bottom: 12px;
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  font-size: var(--fs-body);
  color: var(--color-text-dim);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-text p strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════ */
.projects {
  background: var(--color-bg-alt);
  padding: var(--space-section) 0;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.projects-header {
  text-align: center;
  margin-bottom: 56px;
}

.projects-header .section-subtitle {
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.projects-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   EVENTS SECTION
   ═══════════════════════════════════════ */
.events {
  background: var(--color-surface);
  padding: var(--space-section) 0;
}

.events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
  background: var(--color-bg);
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 101, 43, 0.12) 0%, transparent 70%);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 143, 127, 0.1) 0%, transparent 70%);
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.cta-inner .section-title {
  color: var(--color-bg-white);
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 44px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: #12121F;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-col a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}

.footer-col a:hover svg {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--color-accent);
}
