/* ===========================
   DESIGN SYSTEM — BRK meets Apple
   =========================== */

:root {
  /* BRK Colors */
  --brk-red: #e2001a;
  --brk-red-dark: #b80015;
  --brk-red-light: #fff0f1;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #b0b0b8;
  --gray-600: #6e6e73;
  --gray-800: #333336;
  --gray-900: #1d1d1f;

  /* Semantic */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --surface: var(--gray-100);
  --surface-alt: var(--gray-50);
  --border: var(--gray-200);
  --accent: var(--brk-red);
  --accent-hover: var(--brk-red-dark);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: clamp(2.25rem, 5vw, 3.5rem);

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --max-width: 1080px;
  --nav-height: 56px;
}

/* ===========================
   RESET & BASE
   =========================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================
   CONTAINER
   =========================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===========================
   NAV (sticky)
   =========================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.site-nav .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-sm);
}

.nav-brand {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-left: auto;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a.active {
  background: var(--gray-100);
  font-weight: 500;
}

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md);
    gap: 0;
  }
  .nav-links.open a { padding: 0.75rem 0; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer;
    margin-left: auto;
    color: var(--text-primary);
  }
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background: radial-gradient(ellipse at 50% 20%, var(--brk-red) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--space-2xl) var(--space-md);
}

.hero-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  -webkit-image-rendering: auto;
}

.hero h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero h1 .accent { color: var(--accent); }

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8rem 1.6rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
}

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

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--gray-400); transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--text-primary); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--font-size-sm); }

/* ===========================
   SECTIONS
   =========================== */

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

section:nth-child(even) {
  background: var(--surface-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

#kontakt .section-header {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  max-width: 560px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Direction variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1),
.reveal-stagger > .reveal-left:nth-child(1),
.reveal-stagger > .reveal-right:nth-child(1),
.reveal-stagger > .reveal-scale:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2),
.reveal-stagger > .reveal-left:nth-child(2),
.reveal-stagger > .reveal-right:nth-child(2),
.reveal-stagger > .reveal-scale:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(3),
.reveal-stagger > .reveal-left:nth-child(3),
.reveal-stagger > .reveal-right:nth-child(3),
.reveal-stagger > .reveal-scale:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(4),
.reveal-stagger > .reveal-left:nth-child(4),
.reveal-stagger > .reveal-right:nth-child(4),
.reveal-stagger > .reveal-scale:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger > .reveal:nth-child(5),
.reveal-stagger > .reveal-left:nth-child(5),
.reveal-stagger > .reveal-right:nth-child(5),
.reveal-stagger > .reveal-scale:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(6),
.reveal-stagger > .reveal-left:nth-child(6),
.reveal-stagger > .reveal-right:nth-child(6),
.reveal-stagger > .reveal-scale:nth-child(6) { transition-delay: 0.6s; }

/* Hero entrance */
.hero-content {
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-photo {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-actions {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--neutral-400);
  animation: scrollBounce 2s ease-in-out 2s infinite, heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
  transition: opacity 0.3s;
  text-decoration: none;
}
.scroll-hint:hover { color: var(--neutral-600); }

@media (max-width: 768px) {
  .scroll-hint { display: none; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Counter animation for metrics */
.card-metric, .wirkung-mini {
  transition: opacity 0.6s ease 0.3s;
}

/* Subtle section parallax depth */
.section-depth {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Nav shrink on scroll */
.site-nav {
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  height: calc(var(--nav-height) - 8px);
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-photo, .hero-actions {
    animation: none !important;
    opacity: 1;
  }
}

/* ===========================
   CARDS
   =========================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-metric {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ===========================
   WIRKUNG — Meta Row + Cards
   =========================== */

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.meta-chip {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--accent);
  background: var(--brk-red-light);
  border-radius: 999px;
  white-space: nowrap;
}

.wirkung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .wirkung-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .wirkung-grid { grid-template-columns: 1fr; }
}

.wirkung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

@media (prefers-reduced-motion: reduce) {
  .wirkung-card:hover { transform: none; }
}

.wirkung-card-icon {
  margin-bottom: var(--space-sm);
  line-height: 0;
}

.wirkung-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.wirkung-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  flex: 1;
}

.wirkung-mini {
  display: block;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===========================
   LEBENSRETTER HAUTNAH
   =========================== */

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

@media (max-width: 768px) {
  .lebensretter-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.lebensretter-text .section-header {
  margin-bottom: var(--space-sm);
}

.lebensretter-list {
  list-style: none;
  padding: 0;
}

.lebensretter-list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.lebensretter-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.lebensretter-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.lebensretter-caption {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
}

/* ===========================
   EXECUTIVE SUMMARY
   =========================== */

.exec-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.exec-block {
  padding: var(--space-lg);
  border-left: 3px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.exec-block h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.exec-block p {
  color: var(--text-secondary);
}

/* ===========================
   FÜHRUNGSVERSTÄNDNIS
   =========================== */

.fuehrung-section {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, var(--brk-red-light) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--brk-red-light) 0%, transparent 40%),
    var(--surface-alt);
}

.narrative {
  max-width: 680px;
  margin: 0 auto var(--space-sm);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.fuehrung-bridge {
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.fuehrung-principles-label {
  display: block;
  text-align: center;
  margin-bottom: var(--space-md);
}

.fuehrung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .fuehrung-grid { grid-template-columns: 1fr; }
}

.fuehrung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

@media (prefers-reduced-motion: reduce) {
  .fuehrung-card:hover { transform: none; }
}

.fuehrung-card-icon {
  margin-bottom: var(--space-sm);
  line-height: 0;
}

.fuehrung-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.fuehrung-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  flex: 1;
}

.fuehrung-micro {
  display: block;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ===========================
   PROJEKTE TIMELINE
   =========================== */

.projekte-section .section-header p {
  max-width: 640px;
}

.projekte-layout {
  max-width: 700px;
  margin: 0 auto;
}

/* Timeline rail */
.projekte-timeline {
  position: relative;
  padding-left: 28px;
}

.projekte-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

/* Item */
.pt-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.pt-item:last-child { padding-bottom: 0; }

.pt-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.pt-content {}

.pt-time {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.pt-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.pt-role {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.pt-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

/* Tags / chips */
.pt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pt-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--brk-red-light);
  border-radius: 999px;
  white-space: nowrap;
}

/* Extern variant (neutral, non-BRK) */
.pt-dot--extern {
  background: var(--gray-400);
  box-shadow: 0 0 0 2px var(--gray-400);
}

.pt-time--extern { color: var(--gray-600); }

.pt-tag--extern {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Umsetzungsmodus box */
.umsetzung-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}

.umsetzung-box h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.umsetzung-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.umsetzung-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 28px;
  padding-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.umsetzung-steps li:last-child { padding-bottom: 0; }

.umsetzung-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brk-red-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   KOMPETENZPROFIL GRID
   =========================== */

.komp-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.komp-legend span { position: relative; }

.komp-legend span + span::before {
  content: '→';
  position: absolute;
  left: calc(-0.5 * var(--space-md) - 0.3em);
  color: var(--gray-200);
}

.komp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .komp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .komp-grid { grid-template-columns: 1fr; }
}

.komp-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.komp-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .komp-tile:hover { transform: none; }
}

.komp-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto var(--space-xs);
  color: var(--accent);
}

.komp-tile h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.komp-skill-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.komp-skill-name {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.komp-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.komp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background var(--transition);
}

.komp-dot.active {
  background: var(--accent);
}

.komp-level {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   STUDIUM & ARBEITEN
   =========================== */

.arbeiten-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.arbeiten-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

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

.arbeiten-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

@media (prefers-reduced-motion: reduce) {
  .arbeiten-card:hover { transform: none; }
}

.arbeiten-card-head {
  margin-bottom: var(--space-sm);
}

.arbeiten-icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-xs);
}

.arbeiten-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.arbeiten-type {
  font-size: var(--font-size-sm);
  color: var(--accent);
  font-weight: 500;
}

.arbeiten-desc {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.arbeiten-results {
  margin-bottom: var(--space-md);
  flex: 1;
}

.arbeiten-results strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.arbeiten-results ul {
  list-style: none;
  padding: 0;
}

.arbeiten-results li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.arbeiten-results li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ===========================
   DOWNLOADS PANEL
   =========================== */

.downloads-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
}

.downloads-panel h3 {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

/* ===========================
   CONTACT
   =========================== */

.contact-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-lg);
}

.contact-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-lg) 0;
  font-size: var(--font-size-sm);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

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

/* ===========================
   LEGAL PAGES
   =========================== */

.legal-page {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-2xl);
}

.legal-page h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
}

.legal-page h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page p,
.legal-page ul {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-page ul { padding-left: 1.5rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

/* ===========================
   PRINT
   =========================== */

@media print {
  .site-nav, .site-footer, .hero-bg, .nav-toggle { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  section { padding: 1.5rem 0; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  body { font-size: 11pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  .btn::after { display: none; }
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 640px) {
  :root {
    --space-2xl: 3.5rem;
    --space-xl: 2.5rem;
    --space-lg: 1.75rem;
  }

  .hero { min-height: 70vh; }

  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  .card-grid,
  .exec-blocks,
  .principles {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

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