:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-alt: #edf4ff;
  --text: #17324d;
  --muted: #5d718b;
  --line: #d6e2f0;
  --accent: #2f6fca;
  --accent-soft: #e8f1ff;
  --shadow: 0 12px 30px rgba(19, 58, 112, 0.08);
  --radius: 18px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(122, 169, 240, 0.10), transparent 32%), var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), 760px); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: rgba(245, 249, 255, 0.90); border-bottom: 1px solid rgba(214, 226, 240, 0.9);
}
.nav-wrap,.footer-wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0;
}
.brand { display: flex; align-items: center; gap: 0.95rem; min-width: 0; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 52px; max-height: 52px; width: auto; display: block; flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(19, 58, 112, 0.12));
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.brand-tagline { font-size: 0.78rem; color: var(--muted); line-height: 1.2; }
.nav a { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ===== Section Navigation (unter Hero) ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}

.section-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.section-nav-inner {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.section-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-nav a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.hero { padding: 5rem 0 4rem; }
.compact-hero { padding-bottom: 2.5rem; }
.hero-grid,.two-col,.team-grid { display: grid; gap: 1.5rem; }
.hero-grid,.two-col { grid-template-columns: 1.4fr 1fr; align-items: start; }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eyebrow,.section-label {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700;
}

.hero.compact-hero {
  padding-bottom: 2rem;
}

#founders.section {
  padding-top: 1.5rem;
}
.section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-right a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--accent);
}
.footer-right a + a {
  margin-left: 1rem;
}

.link-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.link-muted:hover {
  color: var(--accent);
}

.imprint-note {
  font-size: 0.9rem;
  color: var(--muted);
}

h1,h2,h3 { margin: 0 0 0.8rem; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }

.alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { max-width: 64ch; color: var(--muted); }
.card {
  position: relative; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.button {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 0.82rem 1.15rem; font-weight: 700; border: 1px solid var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--accent); }

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.team .card.profile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 250px;
  /* overflow: hidden;  <-- ENTFERNEN oder auskommentieren */
  transition: box-shadow 0.25s ease;
  background: var(--surface); /* Nutzt die Standard-Farbe statt Verläufen */
}

.team .card.profile:hover {
  box-shadow: 0 16px 34px rgba(19, 58, 112, 0.10);
}

.team .card.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.58), rgba(240, 247, 255, 0.86));
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.team .card.profile:hover::before {
  opacity: 1;
}

.team .card.profile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.36));
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

.team .card.profile::before,
.team .card.profile::after {
  content: none !important;
}

.team .card.profile:hover::after {
  opacity: 1;
}

/* Avatar box */
.team .card.profile .avatar-wrap {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;

  perspective: 900px;

  width: clamp(72px, 22%, 104px);
  aspect-ratio: 1 / 1;

  overflow: visible;
  border-radius: 14px;

  /* wichtig für den Flip-Hintergrund */
  background: transparent;

  box-shadow: none !important;

  transform: translateY(0);
  transition:
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.55s ease,
    box-shadow 0.55s ease,
    background 0.35s ease;
}

/* Flip container */
.team .card.profile .avatar-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(0.22, 1.12, 0.32, 1);
  will-change: transform;

  /* verhindert weißen Durchblick beim Flip */
  background: transparent;
  will-change: transform;
}

.team .card.profile .avatar-flip.is-flipped {
  transform: rotateY(180deg) scale(1.02);
}

/* Both faces */
.team .card.profile .avatar-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  box-shadow: 0 10px 25px rgba(19, 58, 112, 0.15); /* Schatten direkt am Bild */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  background: #ffffff;
}

.team .card.profile .avatar-real {
  transform: rotateY(0deg);
  box-shadow: 0 12px 30px rgba(19, 58, 112, 0.2);
}

.team .card.profile .avatar-comic {
  transform: rotateY(180deg);
  box-shadow: 0 12px 30px rgba(19, 58, 112, 0.2);
}

/* Individual crop tuning */
.team .card.profile .avatar-wrap-felix .avatar-real,
.team .card.profile .avatar-wrap-felix .avatar-comic {
  object-position: center 25%;
}

.team .card.profile .avatar-wrap-paul .avatar-real,
.team .card.profile .avatar-wrap-paul .avatar-comic {
  object-position: center center;
}

/* Text area */
.team .card.profile .profile-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 72px;
  padding-left: calc(clamp(72px, 22%, 104px) + 24px);
  transition: opacity 0.35s ease, filter 0.45s ease;
}

.team .card.profile.is-hovered .avatar-wrap {
  top: 50%;
  left: 50%;
  width: min(62%, 320px);
  max-height: 70%;
  transform: translate(-50%, -52%);
  border-radius: 18px;
}

.team .card.profile.is-hovered .profile-content {
  opacity: 0.08;
  filter: blur(2px);
}

.team .card.profile.suppress-hover .avatar-wrap {
  top: 1.5rem;
  left: 1.5rem;
  width: clamp(72px, 22%, 104px);
  max-height: none;
  transform: translateY(0);
  border-radius: 14px;
}

.team .card.profile.suppress-hover .profile-content {
  opacity: 1;
  filter: none;
}

/* Mobile */
@media (max-width: 820px) {
  .team .card.profile .avatar-wrap {
    width: clamp(72px, 28vw, 96px);
  }

  .team .card.profile .profile-content {
    padding-left: 0;
    padding-top: calc(clamp(72px, 28vw, 96px) + 16px);
  }

  .team .card.profile:hover .avatar-wrap {
    top: 14px;
    left: 50%;
    width: min(38vw, 130px);
    transform: translateX(-50%) translateY(-3px);
  }
}

.meta { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 0.45rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.pill {
  font-size: 0.75rem; padding: 0.28rem 0.58rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--text); border: 1px solid rgba(214, 226, 240, 0.9);
}

.site-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 1100px) {
  .brand-logo { height: 60px; max-height: 60px; }
}
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-grid,
  .two-col,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .nav {
    gap: 0.8rem;
  }

  .brand-logo {
    height: 48px;
    max-height: 48px;
  }

  .card.profile {
    display: block;
  }

  .team .card.profile .avatar-wrap {
    margin-bottom: 0;
  }
  .section-nav-inner {
  gap: 0.75rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.7rem;
  }

  .section-nav a {
  white-space: nowrap;
  }
}


.brand-text-single {
  justify-content: center;
}

.brand-text-single .brand-tagline {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}


/* Timeline */
.timeline {
  padding: 2rem 0 4rem;
}

.timeline-viewport {
  position: relative;
  overflow: visible;
  margin-top: 2rem;
  padding: 2.25rem 0 2rem;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.timeline-viewport::before,
.timeline-viewport::after {
  display: none;
}

.timeline-track {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3.6rem;
  width: max-content;
  padding: 0 6rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(140, 176, 228, 0.15),
    rgba(93, 151, 232, 0.70),
    rgba(140, 176, 228, 0.15)
  );
  z-index: 0;
}

.timeline-point {
  display: block;
  position: relative;
  z-index: 1;
  min-width: 170px;
  width: 170px;
  flex: 0 0 170px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.30s ease;
}

.timeline-point:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.timeline-point .dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(47, 111, 202, 0.75);
  box-shadow:
    0 0 0 5px rgba(47, 111, 202, 0.06),
    0 6px 14px rgba(19, 58, 112, 0.08);
  transform-origin: center center;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.timeline-point .dot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.timeline-point:hover .dot,
.timeline-point:focus .dot,
.timeline-point:active .dot {
  transform: scale(1.12);
  box-shadow:
    0 0 0 8px rgba(47, 111, 202, 0.08),
    0 10px 20px rgba(19, 58, 112, 0.10);
}

.timeline-point:hover .dot::before,
.timeline-point:focus .dot::before,
.timeline-point:active .dot::before {
  transform: scale(1.08);
}

.timeline-point.active .dot {
  box-shadow:
    0 0 0 7px rgba(47, 111, 202, 0.10),
    0 10px 20px rgba(19, 58, 112, 0.10);
}

.timeline-point.is-focus .dot {
  box-shadow:
    0 0 0 6px rgba(93, 151, 232, 0.15),
    0 0 20px rgba(93, 151, 232, 0.18);
}

.timeline-point.future {
  opacity: 0.75;
}

.timeline-point .year {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-point p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.tooltip {
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.97);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(19, 58, 112, 0.12);
  border: 1px solid rgba(214, 226, 240, 0.9);
  opacity: 0;
  pointer-events: none;
  filter: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.97);
}

.timeline-point:hover .tooltip,
.timeline-point:focus .tooltip,
.timeline-point:active .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.timeline-viewport.is-hovering .timeline-point .dot,
.timeline-viewport.is-hovering .timeline-point .year,
.timeline-viewport.is-hovering .timeline-point > p {
  opacity: 0.45;
  filter: blur(0.8px);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.timeline-viewport.is-hovering .timeline-point:hover .dot,
.timeline-viewport.is-hovering .timeline-point:hover .year,
.timeline-viewport.is-hovering .timeline-point:hover > p,
.timeline-viewport.is-hovering .timeline-point.is-focus .dot,
.timeline-viewport.is-hovering .timeline-point.is-focus .year,
.timeline-viewport.is-hovering .timeline-point.is-focus > p {
  opacity: 1;
  filter: blur(0);
}

@media (max-width: 900px) {
  .timeline-track {
    gap: 2rem;
    padding: 0 4rem;
  }

  .timeline-point {
    min-width: 140px;
    width: 140px;
    flex-basis: 140px;
  }
}

@media (max-width: 768px) {
  .tooltip {
    min-width: 160px;
    max-width: 200px;
    font-size: 0.75rem;
    padding: 0.5rem 0.65rem;
    bottom: 110%;
  }

  .timeline-viewport.is-hovering .timeline-point {
    opacity: 1;
    filter: none;
  }
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 820px) {
  .lang-switch {
    margin-top: 0.25rem;
  }
}