/* ============================================================
   FIKRA e.V. — Direction C "Lebendiger Stadtgarten"
   main.css — Production Stylesheet
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600&family=Noto+Sans+Arabic:wght@300;400;500;600&display=swap');

:root {
  /* --- Colors --- */
  --color-bg:          #faf4ea;
  --color-bg-deep:     #e8dcc8;
  --color-text:        #2a2620;
  --color-text-muted:  #5a5045;
  --color-text-faint:  #7a7068;

  --color-primary:     #c75d3a;
  --color-primary-hov: #b4582a;
  --color-accent:      #bcd0a6;

  /* Themen */
  --t-bildung:         #2f6f9f;
  --t-kultur:          #c4652a;
  --t-umwelt:          #5a8a4a;
  --t-gesundheit:      #b0506a;

  /* Surfaces */
  --color-white:       #ffffff;
  --color-card-shadow: rgba(42, 38, 32, 0.07);
  --color-card-shadow-hov: rgba(42, 38, 32, 0.12);

  /* Footer */
  --color-footer-bg:   #2a2620;
  --color-footer-text: #e8dcc8;

  /* --- Typography --- */
  --font-serif:   'Fraunces', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic:  'Noto Sans Arabic', 'Arial Unicode MS', sans-serif;

  /* --- Spacing scale --- */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;

  /* --- Border radii --- */
  --radius-sm:   0.65rem;
  --radius-md:   1.25rem;
  --radius-lg:   2rem;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* --- Transitions --- */
  --t-fast:    0.15s ease;
  --t-base:    0.2s ease;
  --t-slow:    0.3s ease;
  --t-spring:  0.25s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Shadows --- */
  --shadow-card:     0 2px 20px var(--color-card-shadow);
  --shadow-card-hov: 0 8px 32px var(--color-card-shadow-hov);
  --shadow-nav:      0 2px 12px rgba(42, 38, 32, 0.1);
  --shadow-btn:      0 4px 16px rgba(199, 93, 58, 0.3);

  /* --- Z-index layers --- */
  --z-skip:    999;
  --z-fixed:   200;
  --z-nav:     100;
  --z-overlay: 50;
  --z-above:   1;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: radial-gradient(ellipse at 60% 40%, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

p {
  line-height: 1.65;
}

/* ============================================================
   3. RTL & ARABIC
   ============================================================ */

[lang="ar"] {
  direction: rtl;
  font-family: var(--font-arabic), sans-serif;
}

[lang="ar"] .nav-links {
  direction: rtl;
}

[lang="ar"] .hero-content {
  direction: rtl;
  text-align: right;
}

[lang="ar"] .section-subtitle,
[lang="ar"] .hero-subtitle {
  margin-left: 0;
  margin-right: auto;
  text-align: right;
}

[lang="ar"] .kontakt-item {
  direction: rtl;
}

[lang="ar"] .footer-grid {
  direction: rtl;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
  max-width: 1100px;
  padding: 0 1.5rem;
  margin: 0 auto;
  width: 100%;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 244, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(188, 208, 166, 0.4);
  z-index: var(--z-nav);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: box-shadow var(--t-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-ar {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  opacity: 0.65;
}

.logo-suffix {
  opacity: 0.55;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--t-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-lang {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 1rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
  line-height: 1.4;
}

.lang-btn.active {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: rgba(188, 208, 166, 0.2);
}

.lang-btn:hover:not(.active) {
  background: rgba(199, 93, 58, 0.08);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  border-radius: 2px;
  transition: all var(--t-slow);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   6. SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform var(--t-base);
  z-index: var(--z-skip);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 40% 50%, var(--color-bg) 0%, var(--color-bg-deep) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: var(--z-above);
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-title .hero-ar {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-primary);
  display: block;
  font-size: 0.9em;
  margin-top: 0.15em;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   8. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-spring);
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hov);
  border-color: var(--color-primary-hov);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(199, 93, 58, 0.08);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(199, 93, 58, 0.04);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   9. SECTIONS
   ============================================================ */

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: rgba(188, 208, 166, 0.12);
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.65;
}

.section-header {
  margin-bottom: 2.5rem;
}

.content-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   10. STATS
   ============================================================ */

.stats-section {
  padding: 3.5rem 0;
  background: rgba(199, 93, 58, 0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ============================================================
   11. CARDS
   ============================================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hov);
}

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.tag-bildung {
  background: rgba(47, 111, 159, 0.12);
  color: var(--t-bildung);
}

.tag-kultur {
  background: rgba(196, 101, 42, 0.12);
  color: var(--t-kultur);
}

.tag-umwelt {
  background: rgba(90, 138, 74, 0.12);
  color: var(--t-umwelt);
}

.tag-gesundheit {
  background: rgba(176, 80, 106, 0.12);
  color: var(--t-gesundheit);
}

/* ============================================================
   12. THEME CARDS (Homepage)
   ============================================================ */

.thema-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border-top: 4px solid var(--theme-color, var(--color-primary));
  position: relative;
  overflow: hidden;
}

.thema-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hov);
}

.thema-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--theme-color, var(--color-primary));
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.thema-card:hover::before {
  opacity: 0.02;
}

.thema-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}

.thema-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: 1.2;
}

.thema-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.thema-card .thema-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--theme-color, var(--color-primary));
  text-decoration: none;
  transition: gap var(--t-fast);
}

.thema-card .thema-link:hover {
  gap: 0.55rem;
}

/* Theme color variants */
.theme-bildung   { --theme-color: var(--t-bildung); }
.theme-kultur    { --theme-color: var(--t-kultur); }
.theme-umwelt    { --theme-color: var(--t-umwelt); }
.theme-gesundheit { --theme-color: var(--t-gesundheit); }

/* ============================================================
   13. GRID UTILITIES
   ============================================================ */

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gap-sm  { gap: 1rem; }
.gap-md  { gap: 1.5rem; }
.gap-lg  { gap: 2.5rem; }

/* ============================================================
   14. ABOUT SECTION
   ============================================================ */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image-placeholder {
  height: 340px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-bg-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.2) 100%);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.about-text p:last-of-type {
  margin-bottom: 1.5rem;
}

/* ============================================================
   15. EVENTS (termine.html)
   ============================================================ */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hov);
}

.event-date-block {
  text-align: center;
  background: radial-gradient(ellipse at center, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  flex-shrink: 0;
}

.event-day {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-primary);
  display: block;
}

.event-month {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.2rem;
}

.event-body {
  min-width: 0;
}

.event-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  line-height: 1.25;
}

.event-meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.event-beschreibung {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: 0.5rem;
}

.event-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

/* ============================================================
   16. PROJECTS
   ============================================================ */

.projekte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.projekt-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  overflow: hidden;
  padding: 0;
}

.projekt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hov);
}

.projekt-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: radial-gradient(ellipse at 40% 40%, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

.projekt-image-bg-bildung   { background: linear-gradient(135deg, rgba(47,111,159,0.15) 0%, rgba(47,111,159,0.05) 100%); }
.projekt-image-bg-kultur    { background: linear-gradient(135deg, rgba(196,101,42,0.15) 0%, rgba(196,101,42,0.05) 100%); }
.projekt-image-bg-umwelt    { background: linear-gradient(135deg, rgba(90,138,74,0.15) 0%, rgba(90,138,74,0.05) 100%); }
.projekt-image-bg-gesundheit { background: linear-gradient(135deg, rgba(176,80,106,0.15) 0%, rgba(176,80,106,0.05) 100%); }

.projekt-body {
  padding: 1.25rem;
}

.projekt-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
  line-height: 1.25;
}

.projekt-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.projekt-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-faint);
  flex-wrap: wrap;
  align-items: center;
}

.projekt-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.status-aktiv::before {
  content: "●";
  color: var(--t-umwelt);
  font-size: 0.65em;
}

.status-geplant::before {
  content: "●";
  color: var(--t-bildung);
  font-size: 0.65em;
}

.status-abgeschlossen::before {
  content: "●";
  color: var(--color-text-faint);
  font-size: 0.65em;
}

/* ============================================================
   17. FILTER BAR
   ============================================================ */

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-spring);
  border: 2px solid var(--color-accent);
  background: transparent;
  color: var(--color-text-muted);
  line-height: 1;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   18. PAGE HEADER
   ============================================================ */

.page-header {
  background: radial-gradient(circle at 30% 50%, var(--color-bg) 0%, #e0d4c0 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(188, 208, 166, 0.4);
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.65;
  max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--t-base);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  opacity: 0.4;
}

/* ============================================================
   19. FORMS
   ============================================================ */

.form-group {
  margin-bottom: 1.4rem;
}

label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.4rem;
}

.required-star {
  color: var(--color-primary);
  margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d4c8b8;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(199, 93, 58, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #b0a898;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5045' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-error {
  color: #c0392b;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.form-error.visible {
  display: flex;
}

.form-success {
  background: rgba(90, 138, 74, 0.12);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--t-umwelt);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  display: none;
  line-height: 1.55;
}

.form-success.visible {
  display: block;
}

.form-sending {
  opacity: 0.6;
  pointer-events: none;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
}

.form-check label {
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0;
}

/* ============================================================
   20. KONTAKT SPLIT
   ============================================================ */

.kontakt-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kontakt-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kontakt-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: rgba(188, 208, 166, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kontakt-item-content {
  min-width: 0;
}

.kontakt-item-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  display: block;
}

.kontakt-item-value {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  white-space: pre-line;
}

.kontakt-item-value a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity var(--t-base);
}

.kontakt-item-value a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================================
   21. MITMACHEN — WEGE
   ============================================================ */

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

.weg-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.weg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hov);
}

.weg-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}

.weg-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.weg-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ============================================================
   22. FOOTER
   ============================================================ */

.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3.5rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
  text-decoration: none;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(232, 220, 200, 0.7);
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

.footer-meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(232, 220, 200, 0.5);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.6);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(232, 220, 200, 0.75);
  text-decoration: none;
  transition: color var(--t-base);
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
}

.footer-address {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(232, 220, 200, 0.6);
  font-style: normal;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-address a {
  color: rgba(232, 220, 200, 0.75);
  text-decoration: none;
  transition: color var(--t-base);
}

.footer-address a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 220, 200, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--t-base), color var(--t-base);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(232, 220, 200, 0.45);
  margin: 0;
}

.footer-bottom a {
  color: rgba(232, 220, 200, 0.55);
  text-decoration: none;
  transition: color var(--t-base);
}

.footer-bottom a:hover {
  color: rgba(232, 220, 200, 0.85);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ============================================================
   23. BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-slow);
  z-index: var(--z-fixed);
  box-shadow: 0 4px 16px rgba(199, 93, 58, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-hov);
  transform: translateY(-2px);
}

/* ============================================================
   24. LANGUAGE VISIBILITY
   ============================================================ */

.lang-de,
.lang-ar,
.lang-en {
  display: none;
}

.lang-de.active,
.lang-ar.active,
.lang-en.active {
  display: inline;
}

.lang-block-de,
.lang-block-ar,
.lang-block-en {
  display: none;
}

.lang-block-de.active,
.lang-block-ar.active,
.lang-block-en.active {
  display: block;
}

/* ============================================================
   25. LOADING & ANIMATIONS
   ============================================================ */

.loading {
  opacity: 0.5;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.55s ease forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.skeleton {
  background: linear-gradient(90deg, #f0e8dc 25%, #e8dfd0 50%, #f0e8dc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Stagger delays for lists */
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.30s; }

/* ============================================================
   EXTRA: UTILITY CLASSES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.inline-flex { display: inline-flex; }
.flex        { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm-val  { gap: 0.5rem; }
.gap-md-val  { gap: 1rem; }
.flex-wrap   { flex-wrap: wrap; }

.fw-normal  { font-weight: 400; }
.fw-medium  { font-weight: 500; }
.fw-semi    { font-weight: 600; }
.fw-bold    { font-weight: 700; }
.fw-black   { font-weight: 800; }

.text-muted  { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-small  { font-size: 0.875rem; }

.divider {
  border: none;
  border-top: 1px solid rgba(188, 208, 166, 0.4);
  margin: 2rem 0;
}

/* Notice / Info boxes */
.notice {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  border-left: 4px solid;
  margin: 1.5rem 0;
}

.notice-info {
  background: rgba(47, 111, 159, 0.08);
  border-color: var(--t-bildung);
  color: var(--t-bildung);
}

.notice-warning {
  background: rgba(196, 101, 42, 0.08);
  border-color: var(--t-kultur);
  color: var(--t-kultur);
}

.notice-success {
  background: rgba(90, 138, 74, 0.1);
  border-color: var(--t-umwelt);
  color: var(--t-umwelt);
}

/* ============================================================
   26. RESPONSIVE — max-width: 768px
   ============================================================ */

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(188, 208, 166, 0.4);
    box-shadow: 0 8px 24px rgba(42, 38, 32, 0.1);
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(188, 208, 166, 0.25);
    width: 100%;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

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

  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 2.2rem;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-placeholder {
    height: 240px;
    order: -1;
  }

  /* Kontakt */
  .kontakt-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Wege */
  .wege-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Events */
  .event-card {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
  }

  .event-day {
    font-size: 1.5rem;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 2.5rem 0 2rem;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Tablet adjustments */
@media (max-width: 960px) and (min-width: 769px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .kontakt-split {
    gap: 2rem;
  }
}

/* ============================================================
   27. PRINT
   ============================================================ */

@media print {
  .nav,
  .footer,
  .back-to-top,
  .hero-canvas,
  .filter-bar,
  .nav-lang,
  .btn-secondary,
  .btn-outline {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: #f5f5f5;
  }

  .section {
    padding: 1.5rem 0;
  }

  .card,
  .thema-card,
  .event-card,
  .projekt-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }

  .page-header {
    background: #f5f5f5;
  }
}
