/* =========================================================
   Joyki — persönliche Homepage
   Design-Anlehnung: Chama Excursor e.V.
   ========================================================= */

/* ---------- Schriften (self-hosted) ---------- */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/poppins-200.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/lora-italic.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */

:root {
  --cream: #faf5ec;
  --cream2: #f3eadb;
  --paper: #fffdf8;
  --line: #e6d8c1;
  --ink: #2a211c;
  --muted: #6b5d52;

  --orange: #e0782f;
  --brown: #8a5a2e;
  --olive: #7c6f55;
  --sage: #4d7a6c;
  --teal: #1a6d75;

  --night: #0e0f11;
  --night2: #15171a;
  --on-night: #f3e9d8;
  --on-night-muted: #cdbfa8;
  --on-night-dim: #a8998a;

  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --shadow-soft: 0 10px 30px rgba(138, 90, 46, 0.07);
  --shadow-lift: 0 18px 40px rgba(138, 90, 46, 0.14);

  --radius: 16px;
  --radius-sm: 12px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --cream: #121316;
  --cream2: #17191c;
  --paper: #1d1f23;
  --line: #2f3237;
  --ink: #ece3d4;
  --muted: #b3a693;

  --orange: #e78a42;
  --brown: #c99a62;
  --olive: #a39472;
  --sage: #6fa08f;
  --teal: #4fc3c6;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.38);

  color-scheme: dark;
}

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--orange);
  color: #fff;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 60%, transparent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(860px, 100% - 48px);
}

.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;
}

/* ---------- Typografie ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.title {
  margin: 8px 0 18px;
  font-size: clamp(1.75rem, 3.7vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.title--sm {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
}

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: linear-gradient(90deg, var(--orange), var(--brown));
  color: #fff;
  box-shadow: 0 10px 22px rgba(224, 120, 47, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(224, 120, 47, 0.3);
}

.btn-ghost {
  border-color: rgba(243, 233, 216, 0.36);
  color: var(--on-night);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-outline {
  border-color: var(--brown);
  color: var(--brown);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sm {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 0.86rem;
  border-radius: 9px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 15, 17, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.header-left {
  justify-self: start;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-night);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand:hover {
  color: var(--orange);
}

.header-brand {
  justify-self: center;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(243, 233, 216, 0.2);
  border-radius: 12px;
  background: transparent;
  color: var(--on-night);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.menu-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(224, 120, 47, 0.06);
}

.menu-btn .bars {
  position: relative;
  width: 20px;
  height: 14px;
  flex: none;
}

.menu-btn .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.menu-btn .bars span:nth-child(1) {
  top: 0;
}

.menu-btn .bars span:nth-child(2) {
  top: 6px;
}

.menu-btn .bars span:nth-child(3) {
  top: 12px;
}

.menu-btn[aria-expanded="true"] .bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-label {
  display: inline;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(243, 233, 216, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--on-night-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(224, 120, 47, 0.06);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* ---------- Off-Canvas-Menü ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 9, 11, 0.64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.menu-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  padding: 24px 30px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--on-night);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(224, 120, 47, 0.18), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 122, 130, 0.22), transparent 48%),
    var(--night);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(-102%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open .menu-panel {
  transform: translateX(0);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.menu-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(243, 233, 216, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--on-night);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-close:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(90deg);
}

.menu-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-kicker {
  margin-bottom: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-night-dim);
}

.menu-nav {
  display: grid;
}

.menu-nav li {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.menu-nav li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.menu-nav a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 2px;
  color: var(--on-night);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.menu-nav a:hover {
  padding-left: 8px;
  color: var(--orange);
}

.menu-nav .num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(243, 233, 216, 0.35);
  transition: color 0.18s ease;
}

.menu-nav a:hover .num {
  color: var(--orange);
}

.menu-nav .label {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.menu-nav small {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--on-night-dim);
}

.menu-nav .arrow {
  font-size: 1.1rem;
  color: rgba(243, 233, 216, 0.4);
  transition: color 0.18s ease, transform 0.18s ease;
}

.menu-nav a:hover .arrow {
  color: var(--orange);
  transform: translate(2px, -2px);
}

.menu-nav a[aria-current="page"] .label,
.menu-nav a[aria-current="page"] .num {
  color: var(--orange);
}

.menu-foot {
  margin-top: auto;
  padding-top: 34px;
}

.menu-foot h2 {
  margin-bottom: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-night-dim);
}

.menu-ext {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-ext a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(243, 233, 216, 0.18);
  border-radius: 999px;
  color: var(--on-night-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.menu-ext a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(224, 120, 47, 0.06);
}

.menu-ext svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-meta {
  margin-top: 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8f8375;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  padding: 76px 0 96px;
  overflow: hidden;
  color: var(--on-night);
  background: radial-gradient(ellipse at 50% 32%, #1b2124 0%, var(--night) 64%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24%;
  background:
    radial-gradient(circle at 20% 18%, rgba(224, 120, 47, 0.22), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(31, 122, 130, 0.22), transparent 36%),
    radial-gradient(circle at 50% 112%, rgba(138, 90, 46, 0.18), transparent 42%);
  filter: blur(8px);
  animation: hero-drift 20s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--brown), var(--teal));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 233, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 233, 216, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 12%, transparent 72%);
  opacity: 0.6;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero .eyebrow {
  color: #3fb0b8;
}

.word {
  margin: 12px 0 0;
  font-size: clamp(4.4rem, 17vw, 11.5rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--on-night);
  user-select: none;
}

.word span {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.22em) scale(1.08);
  animation: emerge 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.2s + var(--i) * 85ms);
  will-change: opacity, filter, transform;
}

.word::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
}

@keyframes emerge {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.06);
  }
}

.motto {
  margin-top: 18px;
  font-size: clamp(0.76rem, 1.9vw, 0.94rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.motto .a {
  color: var(--orange);
}

.motto .b {
  color: #b9a88c;
}

.motto .c {
  color: #3fb0b8;
}

.hero-lead {
  max-width: 630px;
  margin: 22px auto 0;
  color: var(--on-night-muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 52px;
  color: var(--on-night-dim);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Page-Head (Unterseiten) ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 62px 0 58px;
  color: var(--on-night);
  background: radial-gradient(ellipse at 50% 0%, #1b2124 0%, var(--night) 72%);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background:
    radial-gradient(circle at 18% 20%, rgba(224, 120, 47, 0.18), transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(31, 122, 130, 0.18), transparent 36%);
  filter: blur(10px);
  pointer-events: none;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--brown), var(--teal));
}

.page-head .wrap {
  position: relative;
  z-index: 2;
}

.page-head .eyebrow {
  color: #3fb0b8;
}

.page-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 5.5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.page-head p {
  max-width: 720px;
  color: var(--on-night-muted);
  font-size: 1.04rem;
}

.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(243, 233, 216, 0.2);
  border-radius: 999px;
  color: var(--on-night-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sektionen ---------- */

.section {
  padding: 82px 0;
}

.section--tint {
  background: var(--cream2);
}

.section--dark {
  color: var(--on-night);
  background: var(--night);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-head .title {
  margin-bottom: 0;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
}

.more:hover {
  color: var(--orange);
}

/* ---------- Startseite: Türen ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.door {
  --c: var(--teal);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 250px;
  padding: 28px 26px 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.door::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--c);
}

.door:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 42%, var(--line));
  box-shadow: var(--shadow-lift);
}

.door-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.door-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
}

.door-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.door h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.door p {
  color: var(--muted);
  font-size: 0.94rem;
}

.door .arrow {
  margin-top: auto;
  padding-top: 6px;
  color: var(--c);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Startseite: Projekt-Streifen ---------- */

.project-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-project {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mini-project:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  box-shadow: var(--shadow-lift);
}

.mini-project .kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.mini-project h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mini-project p {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-project .stat {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Repo-Karten ---------- */

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.repo-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 192px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.repo-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  box-shadow: var(--shadow-lift);
}

.repo-card--org {
  border-color: color-mix(in srgb, var(--orange) 38%, var(--line));
}

.repo-card--org:hover {
  border-color: color-mix(in srgb, var(--orange) 65%, var(--line));
}

.repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.repo-kind {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.repo-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.repo-stat svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repo-card h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.repo-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.repo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.repo-foot .arrow {
  color: var(--teal);
  font-size: 1rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.repo-card:hover .repo-foot .arrow {
  color: var(--orange);
  transform: translate(2px, -2px);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lang, var(--muted));
}

/* ---------- Split / Prosa / Fact-Card ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: start;
}

.prose p {
  margin-bottom: 16px;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
}

.prose .title {
  margin-top: 6px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip-row .chip {
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
}

.fact-card {
  position: relative;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.fact-card::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
}

.fact-card .eyebrow {
  margin-bottom: 4px;
}

.fact-list {
  display: grid;
  margin: 10px 0 20px;
}

.fact-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.91rem;
}

.fact-list > div:last-child {
  border-bottom: 1px dashed var(--line);
}

.fact-list dt {
  color: var(--muted);
}

.fact-list dd {
  font-weight: 600;
  text-align: right;
}

/* ---------- Verein ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar {
  --c: var(--teal);
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.pillar-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
}

.pillar-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar h3 {
  margin: 14px 0 6px;
  font-size: 1.08rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.92rem;
}

.quote-card {
  position: relative;
  padding: 42px 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: -34px;
  left: 20px;
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 1;
  color: color-mix(in srgb, var(--orange) 22%, transparent);
  pointer-events: none;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 720px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.35;
  color: var(--brown);
}

.quote-card figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- CTA-Band ---------- */

.cta-band {
  position: relative;
  padding: 64px 0;
  color: var(--on-night);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(224, 120, 47, 0.24), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 122, 130, 0.28), transparent 48%),
    var(--night);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--brown), var(--teal));
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band .title {
  margin-bottom: 8px;
}

.cta-band p {
  max-width: 580px;
  color: var(--on-night-muted);
}

.cta-band .eyebrow {
  color: #3fb0b8;
}

/* ---------- Games ---------- */

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.notice svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-card {
  --brand: var(--teal);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow: var(--shadow-lift);
}

.game-card.is-placeholder {
  cursor: default;
}

.game-card.is-placeholder:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.game-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.game-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.game-card p {
  color: var(--muted);
  font-size: 0.89rem;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.game-card:not(.is-placeholder) .game-status::before {
  background: var(--sage);
}

/* ---------- Footer ---------- */

.site-footer {
  color: var(--on-night-dim);
  background: var(--night);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding: 52px 0 38px;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 14px;
  color: var(--on-night-dim);
  font-size: 0.9rem;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--on-night);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--on-night-muted);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #8f8375;
  font-size: 0.78rem;
}

.footer-bottom .dot {
  margin: 0 8px;
  color: rgba(243, 233, 216, 0.28);
}

/* ---------- Reveal-Animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .doors,
  .project-strip,
  .repo-grid,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .menu-label {
    display: none;
  }

  .menu-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 80px;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-facts {
    margin-top: 38px;
  }

  .section {
    padding: 62px 0;
  }

  .page-head {
    padding: 48px 0 46px;
  }

  .doors,
  .project-strip,
  .repo-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

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

  .quote-card {
    padding: 30px 26px;
  }

  .cta-band {
    padding: 52px 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .wrap,
  .wrap--narrow {
    width: calc(100% - 36px);
  }

  .site-header .wrap {
    height: 62px;
  }

  .brand {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .menu-panel {
    padding: 20px 22px 24px;
  }

  .menu-nav .label {
    font-size: 1.25rem;
  }

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

  .word {
    font-size: clamp(3.7rem, 22vw, 6rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-row .btn {
    width: 100%;
  }

  .quote-card {
    padding: 26px 22px;
  }

  .quote-card blockquote {
    font-size: 1.3rem;
  }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .word span {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Druck ---------- */

@media print {
  .site-header,
  .menu-overlay,
  .menu-panel,
  .hero-actions,
  .cta-band,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .page-head {
    background: #fff;
    color: #000;
  }

  .word span {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
