/* ============================================================
   Stefan Spiess - Website
   Design system: Atkinson Hyperlegible · B&W · Whitespace-first
   No framework. Responsive via custom media queries.
   ============================================================ */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/atkinson-normal-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/atkinson-normal-700-latin.woff2') format('woff2');
}
/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:       #ffffff;
  --color-text:     #0a0a0a;
  --color-muted:    #5a5a5a;
  --color-rule:     #d0d0d0;
  --color-tag-bg:   #f0f0f0;
  --color-tag-text: #2a2a2a;
  --color-accent:   #8a007a;
  --color-accent-hover: #6f0063;
  --color-accent-text: #ffffff;

  --font: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --max-w: 960px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: clamp(32px, 4vw, 56px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

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

.section { padding: var(--section-gap) var(--gutter); max-width: var(--max-w); margin: 0 auto; }

hr.rule { border: none; border-top: 1px solid var(--color-rule); margin: 2.5em 0; }

hr.rule-flush { margin: 0 0 var(--section-gap); }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.5em;
}

p { margin-bottom: 0.8em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-rule);
  z-index: 100;
  padding: 0 var(--gutter);
}

nav .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .nav-logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

nav ul li a {
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}

nav ul li a:hover { color: var(--color-text); }

nav ul li a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 700;
}

nav ul li a.nav-vegan,
.mobile-menu a.nav-vegan {
  color: #174f24;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(65, 255, 92, 0.28), 0 0 10px rgba(65, 255, 92, 0.16);
  animation: vegan-nav-glow 2.8s ease-in-out infinite;
}

@keyframes vegan-nav-glow {
  0%, 100% {
    text-shadow: 0 0 3px rgba(65, 255, 92, 0.22), 0 0 8px rgba(65, 255, 92, 0.12);
  }

  50% {
    text-shadow: 0 0 6px rgba(65, 255, 92, 0.44), 0 0 14px rgba(65, 255, 92, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  nav ul li a.nav-vegan,
  .mobile-menu a.nav-vegan {
    animation: none;
  }
}

/* ---------- Lang toggle ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--color-rule);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}

.lang-btn.active {
  color: var(--color-text);
  font-weight: 700;
  border-bottom-color: var(--color-text);
}

.lang-btn:hover { color: var(--color-text); }

/* ---------- Burger button ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin: -4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--color-rule);
  flex-direction: column;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-text);
}

.mobile-menu a:first-child { border-top: 1px solid var(--color-rule); }

.mobile-menu-divider {
  border: none;
  border-top: 2px solid var(--color-rule);
  margin: 0.5rem 0;
}

.mobile-menu-divider ~ a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted, #666);
  border-top: 1px solid var(--color-rule);
}

@media (max-width: 760px) {
  nav .nav-right ul { display: none; }
  .burger { display: flex; }
}

/* ---------- Hero ---------- */
#hero {
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(32px, 4vw, 56px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  border: 2px solid var(--color-text);
  padding: clamp(22px, 3.5vw, 42px);
}

.hero-copy {
  max-width: 560px;
}

.hero-visual {
  position: relative;
  padding-bottom: clamp(26px, 3vw, 36px);
}

.hero-art {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 300px);
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--color-rule);
}

.hero-photo {
  position: absolute;
  right: clamp(14px, 2.4vw, 28px);
  bottom: 0;
  width: clamp(92px, 11vw, 132px);
  height: clamp(92px, 11vw, 132px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg);
  opacity: 1;
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: var(--color-muted);
  margin-top: 0.6em;
  font-weight: 400;
}

.hero-slogan {
  font-size: clamp(0.78rem, 1.45vw, 0.86rem);
  color: var(--color-muted);
  line-height: 1.55;
  border-top: 1px solid var(--color-rule);
  padding-top: 1.2em;
  margin-top: 1.5em;
}

.hero-booking {
  margin-top: 0.4em;
}

.work-lede {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 1.6em;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .hero-art { height: clamp(180px, 48vw, 260px); }
  .hero-photo { width: 100px; height: 100px; }
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: 3px;
  padding: 0.15em 0.55em;
  font-size: 0.75rem;
  margin: 0.2em 0.25em 0.2em 0;
  font-weight: 400;
}

/* ---------- Service / expertise cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 1.4em;
}

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

.card {
  border-top: 2px solid var(--color-text);
  padding-top: 1.1em;
}

.card h3 { margin-bottom: 0.4em; }

.card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---------- Game rules ---------- */
.game-rules {
  list-style: none;
  margin-top: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}

.game-rules li {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) 1fr;
  gap: 20px;
  align-items: baseline;
  border-top: 1px solid var(--color-rule);
  padding-top: 1em;
}

.game-rules li:first-child { border-top: none; padding-top: 0; }

.game-rule-label {
  font-weight: 700;
  font-size: 0.88rem;
}

.game-rule-text {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 520px) {
  .game-rules li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Projects ---------- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  margin: 1.4em 0 2.8em;
}

.project-item {
  padding: 0;
}

.projects-list:last-of-type {
  margin-bottom: 0;
}

.project-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3em;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 0.5em;
}

/* ---------- Section banners ---------- */
.section-banner {
  margin-bottom: 1.4em;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 1.4em;
}

.section-banner-image {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 320px);
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--color-rule);
}

/* ---------- Serious game ---------- */
.serious-game-copy {
  padding-top: 0;
}

.serious-game-copy p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 760px;
}

.work-booking,
.serious-game-booking,
.projects-booking {
  display: flex;
  margin-top: 1.4em;
  width: fit-content;
}

/* ---------- Vegan Social Business page ---------- */
.vegan-page {
  --color-accent: #2f7d32;
  --color-accent-hover: #246428;
}

.subpage-hero {
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(24px, 4vw, 44px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.subpage-hero-grid {
  border: 2px solid var(--color-text);
  padding: clamp(8px, 1.2vw, 12px);
  width: 100%;
}

.subpage-hero-copy {
  padding: clamp(20px, 3vw, 38px);
}

.subpage-hero-banner {
  margin: 0;
}

.subpage-hero-image {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 320px);
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--color-rule);
}

.subpage-lede {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 1em;
}

.vegan-section-copy p,
.vegan-contact p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 780px;
}

.vegan-principles {
  margin-top: 1.6em;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 1.8em;
}

.partner-card {
  border-top: 2px solid var(--color-text);
  padding-top: 1.1em;
}

.partner-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--color-rule);
  margin-bottom: 1em;
}

.partner-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.6em;
}

.partner-card p:not(.partner-role) {
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.vegan-contact .contact-actions {
  margin-top: 1.4em;
}

.subpage-hero-booking,
.vegan-section-booking {
  display: flex;
  margin-top: 1.4em;
  width: fit-content;
}

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

/* ---------- Contact ---------- */
#contact {
  padding: var(--section-gap) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: clamp(56px, 8vw, 88px);
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1.6em;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-bottom: 1.4em;
}

.contact-cta {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.1em;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.contact-cta:hover { opacity: 0.6; }

.booking-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 0.55em 0.9em;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s;
}

.booking-cta:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.booking-cta:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.scroll-top:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.scroll-top:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .scroll-top {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}

.contact-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 2.2;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--color-rule);
  padding: 24px var(--gutter);
}

footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

footer a { color: var(--color-muted); }
footer a:hover { color: var(--color-text); }

footer .footer-employer {
  max-width: var(--max-w);
  margin: 12px auto 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ---------- Legal pages ---------- */
.legal-header {
  padding: clamp(60px, 10vw, 100px) var(--gutter) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.legal-title {
  margin-top: 0.5em;
}

.legal-body {
  padding: 2.5em var(--gutter) clamp(80px, 12vw, 120px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin: 2em 0 0.5em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.legal-body a { text-decoration: underline; text-underline-offset: 3px; }

.back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4em;
}

.back-link:hover { color: var(--color-text); }
