/* ============================================================
   Design Tokens
============================================================ */
:root {
  --navy:        #1F4E79;
  --blue:        #2E75B6;
  --blue-light:  #D5E8F5;
  --teal:        #1D9E75;
  --teal-light:  #E1F5EE;
  --flow-bg:     #EBF2FA;
  --surface:     #F5F5F5;
  --text-1:      #1A1A1A;
  --text-2:      #666666;
  --border:      #E0E0E0;
  --white:       #ffffff;

  --r-card: 12px;
  --r-btn:  8px;
  --max-w:  960px;
  --gap-v-desktop: 80px;
  --gap-v-mobile:  48px;
}

/* ============================================================
   Reset
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-1);
  background: var(--white);
}
img, svg { display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   Container
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 24px;
}
@media (min-width: 640px)  { .container { padding-inline: 48px; } }
@media (min-width: 1024px) { .container { padding-inline: 0; } }

/* ============================================================
   Navigation
============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}
#nav.scrolled {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.94);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 640px)  { .nav-container { padding-inline: 48px; } }
@media (min-width: 1024px) { .nav-container { padding-inline: 0; } }

.nav-brand {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-1);
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-2);
  transition: color 150ms ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  font-weight: 500;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 639px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .nav-links.open { display: flex; }
}

/* ============================================================
   Shared Button Base
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 150ms ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.9); }

/* ============================================================
   Hero
============================================================ */
#hero {
  background: var(--navy);
  padding: var(--gap-v-desktop) 0;
}
@media (max-width: 639px) { #hero { padding: var(--gap-v-mobile) 0; } }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
}

.hero-name {
  font-size: 48px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
}
@media (max-width: 639px) { .hero-name { font-size: 32px; } }

.hero-tagline {
  font-size: 16px;
  color: #85B7EB;
  margin-top: -4px;
}

.hero-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: #B5D4F4;
  max-width: 580px;
}
@media (max-width: 639px) { .hero-quote { font-size: 18px; } }

/* Staggered bullets */
.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.hero-bullets li {
  font-size: 14px;
  color: #85B7EB;
  padding-left: 18px;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.hero-bullets li.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-hero-primary  { background: var(--white); color: var(--navy); }
.btn-hero-secondary { background: transparent; color: var(--white); border-color: var(--white); }

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.tag {
  font-size: 13px;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============================================================
   Über mich
============================================================ */
#ueber-mich {
  background: var(--white);
  padding: var(--gap-v-desktop) 0;
}
@media (max-width: 639px) { #ueber-mich { padding: var(--gap-v-mobile) 0; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 60% 1fr;
    align-items: start;
  }
}

.about-text h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}
@media (max-width: 639px) { .about-text h2 { font-size: 24px; } }

.about-text p {
  color: var(--text-2);
  line-height: 1.7;
}

/* KPI stack */
.kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 767px) {
  .kpi-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--r-btn);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-value {
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
@media (max-width: 639px) { .kpi-value { font-size: 28px; } }
.kpi-label {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  margin-top: 4px;
}

/* Quote block below about */
.about-quote-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.about-quote-block blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-1);
  border-left: 3px solid var(--blue);
  padding-left: 16px;
}
.about-quote-block cite {
  display: block;
  margin-top: 12px;
  padding-left: 19px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-2);
}

/* ============================================================
   Spiele
============================================================ */
#spiele {
  background: var(--surface);
  padding: var(--gap-v-desktop) 0;
}
@media (max-width: 639px) { #spiele { padding: var(--gap-v-mobile) 0; } }

#spiele h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}
@media (max-width: 639px) { #spiele h2 { font-size: 24px; } }

.section-sub {
  color: var(--text-2);
  margin-bottom: 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .games-grid { grid-template-columns: 1fr 1fr; }
}

.game-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.game-card-top {
  padding: 24px;
}
.game-card-top--flow {
  background: var(--flow-bg);
  border-left: 3px solid var(--blue);
}
.game-card-top--complexity {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-card-body h3 {
  font-size: 20px;
  font-weight: 500;
}
@media (max-width: 639px) { .game-card-body h3 { font-size: 18px; } }
.game-card-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.game-audience {
  font-size: 13px;
  color: #888888;
}
.game-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  transition: opacity 150ms ease;
}
.game-cta:hover { opacity: 0.7; }
.game-cta--flow       { color: var(--blue); }
.game-cta--complexity { color: var(--teal); }

/* Games Hub Tile (links to play.martin-wurm.de) */
.games-hub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.games-hub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.games-hub-top {
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(to right, var(--flow-bg) 50%, var(--teal-light) 50%);
}

.games-hub-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.games-hub-body h3 { font-size: 20px; font-weight: 500; }
.games-hub-body p  { font-size: 15px; color: var(--text-2); line-height: 1.6; }

.games-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  margin-top: 4px;
  transition: opacity 150ms ease;
}
.games-hub-card:hover .games-hub-cta { opacity: 0.7; }

/* ============================================================
   Empfehlungen
============================================================ */
#empfehlungen {
  background: var(--white);
  padding: var(--gap-v-desktop) 0;
}
@media (max-width: 639px) { #empfehlungen { padding: var(--gap-v-mobile) 0; } }

.quotes-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) {
  .quotes-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
  }
  .quote-card { min-width: 280px; scroll-snap-align: start; }
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px 24px;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease;
}
.quote-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.quote-mark {
  display: block;
  font-size: 48px;
  line-height: 1;
  color: var(--blue-light);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.quote-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 16px;
}
.quote-card cite {
  font-size: 13px;
  color: var(--text-2);
  font-style: normal;
}

/* ============================================================
   Kontakt
============================================================ */
#kontakt {
  background: var(--navy);
  padding: var(--gap-v-desktop) 0;
  text-align: center;
}
@media (max-width: 639px) { #kontakt { padding: var(--gap-v-mobile) 0; } }

#kontakt h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}
@media (max-width: 639px) { #kontakt h2 { font-size: 24px; } }

.kontakt-sub {
  color: #85B7EB;
  margin-bottom: 40px;
}

.kontakt-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-contact-primary  { background: var(--white); color: var(--navy); }
.btn-contact-secondary { background: transparent; color: var(--white); border-color: var(--white); }

.kontakt-phone {
  font-size: 14px;
  color: #85B7EB;
}

/* ============================================================
   Footer
============================================================ */
#footer {
  background: #1A1A1A;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: #888888;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 13px;
  color: #888888;
}
