:root{
  /* Color system */
  --bg: #f6f7f9;

  --surface-header: #e3e7ee;   /* ~30% darker */
  --surface-mid:    #e9edf3;   /* section highlight (Arbeitsweise) */
  --surface-footer: #cfd6e0;   /* ~60% darker */

  --surface:  #ffffff;         /* cards / main surfaces */
  --surface2: #fbfbfc;

  --text-strong: #0f172a;      /* headings */
  --text-body:   #1f2937;      /* body text */
  --text-muted:  #475569;      /* secondary text */
  --text-faint:  #64748b;      /* meta */

  --line: #e5e7eb;

  --accent:  #1f6feb;
  --accent2: #0b5bd3;

  --max: 1040px;
  --radius: 16px;

  --gutter: clamp(18px, 2.2vw, 28px);

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.10);

  /* Rhythm / spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* Base reset */
*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(31,111,235,0.10), transparent 55%),
    radial-gradient(700px 450px at 90% 0%, rgba(20,184,166,0.08), transparent 55%),
    var(--bg);
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{ flex: 1;}

/* Default typography rhythm */
p{ margin: 0 0 var(--space-4); }
p:last-child{ margin-bottom: 0; }

ul, ol{
  margin: 0 0 var(--space-4);
  padding-left: 1.1rem;
}
li{ margin: 0 0 var(--space-2); }
li:last-child{ margin-bottom: 0; }

a{ color: inherit; text-decoration: none; }
a:focus-visible{
  outline: 3px solid rgba(31,111,235,0.25);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Headings */
h1, h2, h3{
  margin: 0 0 var(--space-2);
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1{ letter-spacing: -0.02em; }

/* Layout container */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Topbar */
.top{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-header);
  border-bottom: 1px solid #d6dbe5;
}

.top .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: var(--space-3) var(--gutter); /* 12px */
}

.brand{
  display:flex;
  align-items:center;
  text-decoration: none;
  color: inherit;
  gap: 2px;
}

.brand__name{
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.brand__click{
  color: var(--text-faint);
  font-weight: 400;
}

/* Tagline vollständig entfernen */
.brand__tag{
  display: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.brand__mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(31,111,235,0.10);
  border: 1px solid rgba(31,111,235,0.22);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent2);
}

/* Nav */
.nav{
  display:flex;
  gap: var(--space-2);
}

.nav__link{
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav__link:hover{
  color: var(--text-strong);
  border-color: var(--line);
  background: rgba(255,255,255,0.65);
}

.nav__link.is-active{
  color: var(--accent2);
  border-color: rgba(31,111,235,0.22);
  background: rgba(31,111,235,0.06);
}

/* Hero */
.hero{
  padding: var(--space-8) 0 var(--space-5); /* 64px 0 24px */
}

.hero__title{
  margin: 0 0 var(--space-2);
  font-size: clamp(2.0rem, 3.4vw, 3.0rem);
  letter-spacing: -0.02em;
}

.hero__lead{
  margin: 0;
  max-width: 72ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__media{
  margin-top: var(--space-5);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-sm);
}

.hero__media img{
  width: 100%;
  height: 220px;          /* steuert die Bannerhöhe */
  object-fit: cover;
  display: block;
}

/* Section heads */
.section-head{
  margin: 0 0 var(--space-4);
}

.section-head__title{
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.section-head__sub{
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Map section */
.map{
  padding: var(--space-4) 0 var(--space-7); /* 16px 0 48px */
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4); /* 16px */
}

/* Cards */
.card{
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.06);
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  padding: var(--space-5); /* 24px */
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  min-height: 132px;
}

.card:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,235,0.16);
  box-shadow: var(--shadow-md);
}

.card__title{
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}

.card__text{
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  max-width: 60ch;
}

.card__meta{
  display:inline-block;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Principles */
.principles{
  padding: var(--space-6) 0 var(--space-7); /* 32px 0 48px */
  background: var(--surface-mid);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bullets{
  margin: 0;
  color: var(--text-muted);
  max-width: 78ch;
}

.bullets strong{ color: var(--text-strong); }

/* Footer */
.footer{
  border-top: 1px solid #c5ccd8;
  padding: var(--space-6) 0; /* 32px */
  background: var(--surface-footer);
}

.footer__inner{
  display:flex;
  gap: var(--space-3);
  align-items:center;
  justify-content:space-between;
  color: #374151;
  font-size: 0.95rem;
}

.footer a{
  color: #374151;
  transition: color 160ms ease;
}

.footer a:hover{
  color: #111827;
  text-decoration: underline;
}

.sep{
  margin: 0 var(--space-2);
  color: rgba(17,24,39,0.25);
}

/* Responsive */
@media (max-width: 760px){
  .top .container{
    flex-direction: column;
    align-items:flex-start;
    gap: var(--space-3);
  }

  .grid{
    gap: var(--space-3);
  }

  .card{
    grid-column: span 12;
    padding: var(--space-5);
  }

  .footer__inner{
    flex-direction: column;
    align-items:flex-start;
  }
}


/* ============================
   Header – bewusste Reduktion
   ============================ */

/* Grundzustand (alle Seiten) */


/* ============================
   Home: markanter, reduzierter
   ============================ */

.is-home .brand__name{
  font-size: 1.15rem;
  font-weight: 600;
}

/* .click auf Home ausblenden */
.is-home .brand__click{
  display: none;
}

/* ============================
   Home: Themen-Cards dunkler
   ============================ */

.is-home .card{
  background: linear-gradient(
    180deg,
    #eef1f6,
    #e6eaf1
  );
  border-color: rgba(15,23,42,0.10);
}

.is-home .card:hover{
  border-color: rgba(31,111,235,0.22);
  box-shadow: 0 10px 26px rgba(15,23,42,0.14);
}

.is-home .card__meta{
  color: #556174;
}

/* Card images */
.card__img{
  width: 100%;
  height: 140px;              /* Höhe steuern */
  object-fit: cover;          /* Zuschnitt statt Verzerren */
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.06);
  margin-bottom: var(--space-4);
  display: block;
}

/* Optional: dezenter Effekt beim Hover */
.card:hover .card__img{
  border-color: rgba(31,111,235,0.18);
}