/* ==========================================================================
   BreezeFire — studio site
   Design tokens
   ========================================================================== */

:root {
  --blue: #5BB1F2;        /* brand light blue — decorative fills only (cubes, dots, badges) */
  --blue-text: #2A6FB0;   /* darker blue for text/UI on light bg — meets WCAG AA (~5.2:1) */
  --navy: #030E4C;        /* brand navy */
  --text-muted: #4A5578;  /* body/muted text */
  --text-faint: #616A88;  /* faint text — darkened from #8A93B2 to meet WCAG AA (~5.3:1) */
  --border: #E6EBF5;
  --card-tint: #F4F8FD;
  --container: 1100px;
  --radius-btn: 10px;
  --radius-card: 20px;
}

* {
  box-sizing: border-box;
}

/* Always reserve space for the vertical scrollbar so centered content
   doesn't shift between a tall page (scrollbar) and a short one (no scrollbar). */
html {
  scrollbar-gutter: stable;
}

/* Skip link — visible only when focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  background: var(--navy);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* Visible keyboard focus indicator */
:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 3px;
  border-radius: 3px;
}

body {
  margin: 0;
  background: #ffffff;
  font-family: 'Sora', sans-serif;
  color: var(--navy);
}

a {
  color: var(--navy);
  text-decoration: none;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  width: 100%;
}

main {
  flex: 1;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px -14px rgba(3, 14, 76, 0.4);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.site-header .logo-link:hover {
  transform: translateY(-1px);
}

.site-header .logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 3px;
}

/* Animated underline that grows in on hover / focus / active */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--blue-text);
}

/* Hero (landing)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 90px;
  text-align: center;
}

.hero-logo {
  height: 130px;
  max-width: 90%;
  width: auto;
  display: block;
  margin: 0 auto 32px;
  object-fit: contain;
}

/* Minimal single-line hero tagline */
.hero h1 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 auto 40px;
  max-width: 520px;
  color: var(--text-muted);
  text-wrap: balance;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #ffffff;
  padding: 15px 32px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
}

.btn:hover {
  background: var(--blue-text);
  color: #ffffff;
}

/* Floating decorative cubes */

@keyframes bfFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

.cube {
  position: absolute;
  animation: bfFloat ease-in-out infinite;
}

.cube-1 { top: 64px;    left: 6%;   width: 56px; height: 56px; border-radius: 12px; background: var(--blue); opacity: 0.18; transform: rotate(12deg);  animation-duration: 7s; }
.cube-2 { top: 180px;   left: 14%;  width: 26px; height: 26px; border-radius: 7px;  background: var(--navy); opacity: 0.12; transform: rotate(-18deg); animation-duration: 9s;   animation-delay: -3s; }
.cube-3 { bottom: 90px; left: 9%;   width: 38px; height: 38px; border-radius: 9px;  border: 3px solid var(--blue); opacity: 0.3;  transform: rotate(24deg);  animation-duration: 8s;   animation-delay: -5s; }
.cube-4 { top: 80px;    right: 8%;  width: 44px; height: 44px; border-radius: 10px; border: 3px solid var(--navy); opacity: 0.14; transform: rotate(-10deg); animation-duration: 8.5s; animation-delay: -2s; }
.cube-5 { top: 210px;   right: 15%; width: 22px; height: 22px; border-radius: 6px;  background: var(--blue); opacity: 0.28; transform: rotate(30deg);  animation-duration: 6.5s; animation-delay: -4s; }
.cube-6 { bottom: 70px; right: 10%; width: 60px; height: 60px; border-radius: 14px; background: var(--navy); opacity: 0.08; transform: rotate(-14deg); animation-duration: 10s;  animation-delay: -6s; }

@media (prefers-reduced-motion: reduce) {
  .cube {
    animation: none;
  }
}

/* Game teaser card (landing)
   ========================================================================== */

.teaser {
  padding-bottom: 110px;
}

.teaser-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 50px -24px rgba(3, 14, 76, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.teaser-art {
  background: linear-gradient(145deg, #030E4C 0%, #16307E 70%, #2A55B8 100%);
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.teaser-art .deco {
  position: absolute;
}

.deco-1 { top: 32px;    left: 36px;  width: 30px; height: 30px; border-radius: 8px;  background: var(--blue); opacity: 0.35; transform: rotate(16deg); }
.deco-2 { bottom: 44px; left: 64px;  width: 18px; height: 18px; border-radius: 5px;  border: 2px solid var(--blue); opacity: 0.45; transform: rotate(-20deg); }
.deco-3 { top: 56px;    right: 48px; width: 22px; height: 22px; border-radius: 6px;  border: 2px solid #ffffff; opacity: 0.25; transform: rotate(28deg); }
.deco-4 { bottom: 36px; right: 36px; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); opacity: 0.2;  transform: rotate(-12deg); }

.teaser-badge {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: rgba(91, 177, 242, 0.15);
  border: 1px solid rgba(91, 177, 242, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 44px;
  font-weight: 700;
}

.teaser-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.teaser-body h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.teaser-body > p:not(.eyebrow) {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Pills — small hint tags (genre / platform) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pills li {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-tint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.status-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Games page
   ========================================================================== */

.games {
  padding-top: 90px;
  padding-bottom: 110px;
}

.games h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.games .intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 56px;
  text-wrap: pretty;
}

.project-card {
  background: var(--card-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.project-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 30px;
  font-weight: 700;
}

.project-card h2 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card .desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Card background is tinted here, so pills flip to white to stay readable */
.project-card .pills {
  justify-content: center;
}

.project-card .pills li {
  background: #ffffff;
}

.project-card .status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-text);
}

/* Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.legal {
  padding-top: 72px;
  padding-bottom: 96px;
}

.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

/* Language switcher (DE / EN) on legal pages */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  font-size: 14px;
  font-weight: 500;
}

.lang-switch a {
  color: var(--text-faint);
}

.lang-switch a:hover {
  color: var(--blue-text);
}

.lang-switch .current {
  color: var(--navy);
  font-weight: 600;
}

.lang-switch .sep {
  color: var(--border);
}

.legal .note {
  font-size: 14px;
  color: var(--text-faint);
  margin: 32px 0 0;
}

.legal .updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--text-faint);
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 10px;
}

.legal p,
.legal address {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-style: normal;
}

.legal a {
  color: var(--blue-text);
}

/* Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .container {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .say-hello {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.site-footer .email {
  font-size: 16px;
  color: var(--blue-text);
}

.site-footer .email:hover {
  color: var(--navy);
}

.site-footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.site-footer .legal-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.site-footer .legal-links a {
  color: var(--text-faint);
}

.site-footer .legal-links a:hover {
  color: var(--blue-text);
}

.site-footer .copyright {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* Social icons */
.social {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.social a:hover {
  color: var(--blue-text);
  background: var(--card-tint);
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Responsive
   ========================================================================== */

@media (max-width: 760px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .teaser-card {
    grid-template-columns: 1fr;
  }

  .teaser-art {
    min-height: 260px;
  }

  .teaser-body {
    padding: 40px 28px;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-logo {
    height: 92px;
  }

  .games h1 {
    font-size: 36px;
  }

  .project-card {
    padding: 48px 24px;
  }

  .site-footer .footer-right {
    align-items: flex-start;
  }
}
