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

:root {
  --black:   #111111;
  --dark:    #1e1e1e;
  --mid:     #5a5a5a;
  --light:   #a8a8a8;
  --border:  #e0e0e0;
  --bg:      #f7f8f6;
  --white:   #ffffff;
  --accent:  #006838;
  --accent2: #85ba40;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1140px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Layout ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

section      { padding: 100px 0; }
section.tight { padding: 70px 0; }

.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 24px;
}

/* ─── NAV ─────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

#nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

#nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
}

.nav-logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  font-family: var(--sans);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mid);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 24px 40px 32px;
}

.mobile-menu.open { display: block; }
.mobile-menu ul   { list-style: none; }
.mobile-menu li + li { border-top: 1px solid var(--border); }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: var(--dark);
}

/* ─── HERO ─────────────────────────────────────────────────────────────── */
#hero {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 40px;
  max-width: 620px;
  margin-left: auto;
}

.hero-text .eyebrow { margin-bottom: 28px; }

.hero-text h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--black);
}

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

.hero-text p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: gap 0.2s;
}

.hero-cta:hover { gap: 18px; }

.hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #003d20 100%);
}

.hero-panel-logo {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 340px;
  opacity: 0.92;
  filter: brightness(0) invert(1);
  display: block;
}

.hero-year {
  position: absolute;
  bottom: 48px;
  right: 48px;
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 300;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ─── PORTRAIT ──────────────────────────────────────────────────────────── */
#portrait { background: var(--bg); }

.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.portrait-content .eyebrow { margin-bottom: 16px; }

.portrait-content h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.15;
}

.portrait-content p {
  font-size: 16px;
  color: var(--mid);
  margin-bottom: 20px;
}

.portrait-content p:last-child { margin-bottom: 0; }

.portrait-quote-box {
  background: var(--accent);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.portrait-quote-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.portrait-quote-box::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.portrait-quote-icon {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.portrait-quote-text {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.portrait-quote-attr {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}

/* ─── ZWECK ──────────────────────────────────────────────────────────────── */
#zweck {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
}

.zweck-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.zweck-label .eyebrow { color: var(--accent2); }

.zweck-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}

.zweck-text strong {
  color: var(--accent2);
  font-weight: 400;
}

/* ─── FOERDERBEREICHE ────────────────────────────────────────────────────── */
#foerder .eyebrow { margin-bottom: 16px; }

#foerder h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 64px;
  line-height: 1.2;
}

.foerder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.foerder-card {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.3s;
}

.foerder-card:hover { background: var(--bg); }

.foerder-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--accent);
}

.foerder-card h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
}

.foerder-card p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.card-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}

.card-link:hover { border-color: var(--accent); gap: 12px; }

/* ─── GESUCHE ────────────────────────────────────────────────────────────── */
#gesuche { background: var(--bg); }

.gesuche-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.gesuche-left .eyebrow { margin-bottom: 16px; }

.gesuche-left h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  margin-bottom: 24px;
}

.gesuche-left > p {
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 16px;
}

.gesuche-steps { margin-top: 40px; }

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  padding-top: 2px;
}

.step-content h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.step-content p { font-size: 14px; color: var(--mid); }

.gesuche-right {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 48px;
}

.gesuche-right h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 8px;
}

.gesuche-right .sub {
  font-size: 14px;
  color: var(--light);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent2); }

.btn-primary {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--white);
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-primary:hover { background: #004d28; }

.form-success {
  display: none;
  padding: 24px;
  background: #f0f7f3;
  border: 1px solid #b8d9c8;
  margin-top: 16px;
}

.form-success p:first-child {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
}

.form-success p:last-child {
  font-size: 14px;
  color: var(--mid);
  margin-top: 8px;
}

/* ─── STIFTUNGSRAT ───────────────────────────────────────────────────────── */
#stiftungsrat { border-top: 1px solid var(--border); }

#stiftungsrat .eyebrow { margin-bottom: 16px; }

#stiftungsrat h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  margin-bottom: 56px;
}

.rat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 56px;
}

.rat-card {
  background: var(--white);
  padding: 40px 36px;
}

.rat-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.rat-card h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.rat-card p {
  font-size: 14px;
  color: var(--light);
}

.rat-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.rat-info-item {}

.rat-info-item .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 6px;
}

.rat-info-item p {
  font-size: 15px;
  color: var(--mid);
}

/* ─── KONTAKT ────────────────────────────────────────────────────────────── */
#kontakt { background: var(--bg); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}

.kontakt-block .eyebrow { margin-bottom: 20px; }

.kontakt-block h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.kontakt-block p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.85;
}

.kontakt-block a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.kontakt-block a:hover { border-color: var(--accent); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.45);
  padding: 40px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-logo-text {
  font-family: var(--serif);
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

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

.footer-copy { font-size: 12px; }

/* ─── Scroll animations ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .foerder-grid  { grid-template-columns: 1fr 1fr; }
  .kontakt-grid  { grid-template-columns: 1fr 1fr; }
  .rat-grid      { grid-template-columns: 1fr 1fr; }
  .zweck-inner   { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 24px; }
  section    { padding: 72px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text {
    padding: 56px 0;
    max-width: 100%;
    margin-left: 0;
  }
  .hero-panel { height: 260px; }

  .portrait-grid,
  .gesuche-inner { grid-template-columns: 1fr; gap: 48px; }

  .portrait-quote-box { min-height: 260px; }

  .foerder-grid  { grid-template-columns: 1fr; }
  .rat-grid      { grid-template-columns: 1fr; }
  .kontakt-grid  { grid-template-columns: 1fr; gap: 40px; }
  .rat-info-row  { grid-template-columns: 1fr; gap: 24px; }

  .gesuche-right { padding: 32px 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
