/* ============================================
   Projekt Lebensmut — Design System
   Inspired by Aethera: editorial serif hero, clean layout
   Warm palette: Gold, Orange, Cream, Green
   Typography: Instrument Serif (display) / Inter (body)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors — warm palette with Aethera-style black/gray text */
  --color-black: #000000;
  --color-gray: #6F6F6F;
  --color-gray-light: #9A9A9A;
  --color-border: #E5E5E5;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FFF8F0;
  --color-bg-cream: #FFFAF5;
  --color-bg-section: #FAF6F1;
  --color-white: #FFFFFF;

  /* Accent colors (warm Lebensmut palette) */
  --color-gold: #C9A84C;
  --color-gold-light: #E8D48A;
  --color-gold-dark: #A68A2E;
  --color-orange: #D4874D;
  --color-orange-light: #E8A872;
  --color-green: #7BA05B;
  --color-green-light: #A3C487;
  --color-green-dark: #5E8340;

  /* Semantic */
  --color-primary: var(--color-black);
  --color-text: var(--color-black);
  --color-text-muted: var(--color-gray);
  --color-text-light: var(--color-gray-light);
  --color-accent: var(--color-gold);
  --color-error: #D94F4F;
  --color-success: #5BA05B;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.8rem, 8vw, 6rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 3.5vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --lh-body: 1.6;
  --lh-heading: 0.95;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 10vw, 8rem);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 72px;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-text-muted);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

p + p { margin-top: var(--space-md); }

.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-text-muted); font-style: italic; }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

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

.section--warm {
  background: var(--color-bg-warm);
}

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

/* --- Navbar (Aethera style: logo left, links center, CTA right) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-black);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.navbar__links {
  display: none;
  list-style: none;
  gap: var(--space-2xl);
  align-items: center;
}

.navbar__links a {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-black);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--color-bg-section);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-toggle__btn {
  padding: 0.3rem 0.65rem;
  border: none;
  background: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.lang-toggle__btn.active {
  background: var(--color-black);
  color: var(--color-white);
}

/* Nav CTA button (Aethera pill style) */
.navbar__cta {
  display: none;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  padding: 0.6rem 1.5rem;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition);
  text-decoration: none;
}

.navbar__cta:hover {
  transform: scale(1.03);
  color: var(--color-white);
}

/* Mobile hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 100;
  padding: var(--space-3xl) var(--space-xl);
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-text);
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-sm);
  line-height: 1;
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__hamburger { display: none; }
}

/* --- Hero (Aethera-inspired: big centered serif, italic accents) --- */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-5xl);
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* Decorative gradient orbs */
.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__orbs::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__orbs::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 160, 91, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--color-black);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

.hero__title .accent {
  color: var(--color-gold);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, var(--fs-body-lg));
  color: var(--color-text);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  padding: 1.1rem 3.5rem;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition);
  text-decoration: none;
}

.hero__cta:hover {
  transform: scale(1.03);
  color: var(--color-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

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

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--primary:hover {
  transform: scale(1.03);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-black);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn--gold:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  transform: scale(1.03);
}

.btn--green {
  background: var(--color-green);
  color: var(--color-white);
}

.btn--green:hover {
  background: var(--color-green-dark);
  color: var(--color-white);
  transform: scale(1.03);
}

.btn--lg {
  font-size: var(--fs-body);
  padding: 1rem 2.5rem;
}

/* --- Section Title --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
}

.section-header__line {
  width: 50px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-lg) auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- About / Pillars --- */
.pillar-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.pillar-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-bg-warm);
}

.pillar-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold-dark);
}

.pillar-card h3 {
  margin-bottom: var(--space-sm);
}

.pillar-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* --- Person Card --- */
.person-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.person-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.person-card__body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  text-align: center;
}

.person-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.person-card__tagline {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
}

.person-card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* --- Charity Section --- */
.charity {
  position: relative;
}

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

@media (min-width: 768px) {
  .charity__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.charity__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.charity__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.charity__content h2 {
  margin-bottom: var(--space-sm);
}

.charity__content .tagline {
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
}

.charity__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.charity__supports {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.charity__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: var(--color-bg-warm);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

/* --- Form Section --- */
.form-section {
  background: var(--color-bg-warm);
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-input--error {
  border-color: var(--color-error);
}

.form-error {
  color: var(--color-error);
  font-size: var(--fs-xs);
  margin-top: var(--space-xs);
  display: none;
}

.form-input--error + .form-error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-black);
  cursor: pointer;
}

.form-select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236F6F6F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-black);
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  font-family: var(--font-display);
}

.footer__brand h3 {
  color: var(--color-white);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  max-width: 300px;
}

.footer__col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__col ul {
  list-style: none;
}

.footer__col li + li {
  margin-top: var(--space-sm);
}

.footer__col a {
  font-size: var(--fs-small);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  z-index: 200;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
  }
}

.cookie-banner__text {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  flex: 1;
}

.cookie-banner__text a {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* --- Animations (Aethera fade-rise) --- */
@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-rise {
  opacity: 0;
  animation: fadeRise 0.8s ease-out forwards;
}

.fade-rise--d1 { animation-delay: 0.2s; }
.fade-rise--d2 { animation-delay: 0.4s; }
.fade-rise--d3 { animation-delay: 0.6s; }

/* Scroll-triggered */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-rise,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Utility --- */
.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;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
