/* ============================================================
   WEBSITE · Design system
   Klare, moderne Ästhetik: viel Weißraum, ruhige Farben,
   ein Akzentton, weiche Schatten statt technischer Linien.
   Regelwerk: ../Ru-Design/DESIGN.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #FFFFFF;
  --bg-soft: #F6F7FA;
  --bg-soft-2: #EEF1F6;
  --ink: #12141C;
  --ink-soft: #5B6270;
  --ink-faint: #8A909C;
  --line: #E6E8EE;

  --primary: #2A4CE0;
  --primary-dark: #1B34A8;
  --primary-tint: #EDF0FD;
  --success: #12965A;
  --success-tint: #E9F8F0;
  --amber: #B7791F;
  --amber-tint: #FBF3E4;
  --danger: #DC4C3F;
  --danger-tint: #FBEAE8;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --maxw: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18,20,28,0.05);
  --shadow-md: 0 8px 24px rgba(18,20,28,0.08);
  --shadow-lg: 0 24px 64px rgba(18,20,28,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout shell ---------- */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---------- topbar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark .dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.nav{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a{
  text-decoration: none;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover{ color: var(--ink); background: var(--bg-soft); }
.nav a.active{ color: var(--primary); background: var(--primary-tint); }
.nav a.nav-cta{
  color: #fff;
  background: var(--primary);
  margin-left: 6px;
}
.nav a.nav-cta:hover{ background: var(--primary-dark); color: #fff; }
.nav-toggle{ display: none; }

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin: 0 0 14px;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
  overflow: hidden;
}
.hero-glow{
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(42,76,224,0.16), rgba(42,76,224,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner{ position: relative; z-index: 1; max-width: 760px; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-tint);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge .dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

h1.hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
h1.hero-title .accent{ color: var(--primary); }

.hero-sub{
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 34px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats{
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.hero-stats .stat span{
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn-primary{
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover{ background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary{
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}
.btn-secondary:hover{ border-color: var(--ink-faint); background: var(--bg-soft); }
.btn-ghost-light{
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover{ background: rgba(255,255,255,0.18); }

/* ---------- sections ---------- */
section{ padding: 84px 0; position: relative; }
section.tight{ padding: 48px 0; }
section.on-soft{ background: var(--bg-soft); }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
h2.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.section-head .eyebrow{ margin-bottom: 10px; }


/* ---------- category filter ---------- */
.project-filter{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 26px;
}
.filter-chip{
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover{ border-color: var(--ink-faint); color: var(--ink); }
.filter-chip.is-active{
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.filter-count{
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-soft-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
.filter-chip.is-active .filter-count{
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ---------- project / program cards ---------- */
.project-list{
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.project-card{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: 28px;
  transition: box-shadow 0.15s ease;
}
.project-card:hover{ box-shadow: var(--shadow-md); }
.project-head{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
}
.status-pill{
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.status-Aktiv{ color: var(--success); background: var(--success-tint); }
.status-In-Entwicklung{ color: var(--amber); background: var(--amber-tint); }
.status-In-Bearbeitung{ color: var(--amber); background: var(--amber-tint); }
.status-Archiviert{ color: var(--ink-soft); background: var(--bg-soft-2); }

.cat-pill{
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  background: var(--primary-tint);
  color: var(--primary);
}

.project-link{
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  width: fit-content;
}
.project-link:hover{ text-decoration: underline; }
.project-link-locked{
  color: var(--ink-soft);
  cursor: default;
}

.project-body p{
  margin: 0 0 16px;
  color: var(--ink-soft);
}
.project-body p.project-hinweis{
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 8px;
}
.stack-list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
}
.stack-list li{
  border-radius: 999px;
  background: var(--bg-soft-2);
  padding: 5px 12px;
  color: var(--ink-soft);
}

.empty-note{
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 28px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 70%);
  color: #fff;
  padding: clamp(36px, 6vw, 56px) clamp(28px, 6vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h3{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.cta-band p{
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
  max-width: 46ch;
}

/* ---------- about page ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  margin-top: 44px;
  align-items: start;
}
.id-card{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}
.id-photo{
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #6C7CF0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.id-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.id-card h2{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.id-role{
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 18px;
}
.id-field{
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.id-field b{
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.id-field a{ text-decoration: none; color: var(--primary); }
.id-field a:hover{ text-decoration: underline; }

.bio p{
  font-size: 1.04rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.tag-block{ margin-top: 40px; }
.tag-block h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 16px;
}
.chip-list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.chip-list li{
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.edu-list{ list-style: none; margin: 0; padding: 0; }
.edu-list li{
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.edu-list li span{
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 36px 0 52px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .project-card{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .id-card{ position: static; }
}

@media (max-width: 640px){
  .nav{
    position: fixed;
    inset: 62px 12px auto 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
  }
  .nav a{ padding: 12px 14px; }
  .nav a.nav-cta{ margin-left: 0; text-align: center; }
  body.nav-open .nav{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    font-size: 1.1rem;
  }
  .hero-glow{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

/* ============================================================
   Dark-Variante · Anhang in ../Ru-Design/DESIGN.md
   Nur die Flächen-/Text-/Akzentrollen tauschen, sonst nichts.
   Alle Komponenten nutzen diese Tokens und ziehen automatisch mit.
   ============================================================ */
@media (prefers-color-scheme: dark){
  :root{
    --bg: #12141C;
    --bg-soft: #1B1E28;
    --bg-soft-2: #252935;
    --ink: #F2F4F8;
    --ink-soft: #A2A8B6;
    --ink-faint: #767D8C;
    --line: #2E3340;
    --primary: #5B78F0;
    --primary-dark: #3F5AD8;
    --primary-tint: #20264A;
  }
  .topbar{ background: rgba(18,20,28,0.85); }
}
