/* ============================================
   Mosaik Studios — globale Variablen & Reset
   ============================================ */

:root {
  --color-primary: #000000;
  --color-secondary: #0a0f2c;
  --color-bg: #fafafa;
  --color-bg-elevated: rgba(255, 255, 255, 0.72);
  --color-text: #0a0a0a;
  --color-text-muted: rgba(10, 10, 10, 0.55);
  --color-border: rgba(10, 15, 44, 0.08);
  --color-accent: #0a0f2c;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-soft: 0 24px 80px rgba(10, 15, 44, 0.08);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --header-h: 4rem;
  --transition-theme: background-color 0.45s var(--ease-smooth), color 0.45s var(--ease-smooth), border-color 0.45s var(--ease-smooth);
}

[data-theme="dark"] {
  --color-bg: #050508;
  --color-bg-elevated: rgba(12, 14, 22, 0.75);
  --color-text: #f5f5f7;
  --color-text-muted: rgba(245, 245, 247, 0.5);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: #e8e8ed;
  --glass-bg: rgba(20, 22, 32, 0.5);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Kein globales smooth: wirkt sich auf Wheel-/Touch-Scroll aus; Anker nutzen scrollIntoView in script.js */
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: var(--transition-theme);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Page Loader
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: opacity 0.7s var(--ease-out-expo), visibility 0.7s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  text-align: center;
}

.page-loader__text {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  animation: loaderLetter 1.2s var(--ease-out-expo) infinite alternate;
}

.page-loader__line {
  width: 120px;
  height: 2px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  transform-origin: center;
  animation: loaderLine 1.4s var(--ease-smooth) infinite;
}

@keyframes loaderLetter {
  from {
    opacity: 0.35;
    letter-spacing: 0.15em;
  }
  to {
    opacity: 1;
    letter-spacing: -0.02em;
  }
}

@keyframes loaderLine {
  0%,
  100% {
    transform: scaleX(0.3);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-theme), transform 0.5s var(--ease-out-expo);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header__logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  transition: opacity 0.25s var(--ease-smooth);
}

.site-header__logo:hover {
  opacity: 0.65;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  max-width: min(42vw, 260px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.site-header__nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .site-header__nav {
    max-width: none;
    gap: 1.75rem;
    font-size: 0.875rem;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.site-header__nav a {
  color: var(--color-text-muted);
  position: relative;
  transition: color 0.3s var(--ease-smooth);
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.site-header__nav a:hover {
  color: var(--color-text);
}

.site-header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sprachumschalter */
.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 2px;
  background: var(--color-bg-elevated);
  transition: var(--transition-theme);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.35s var(--ease-smooth), background 0.35s var(--ease-smooth), transform 0.2s;
}

.lang-switch__btn:hover {
  color: var(--color-text);
}

.lang-switch__btn.is-active {
  background: var(--color-secondary);
  color: #fff;
}

[data-theme="dark"] .lang-switch__btn.is-active {
  background: #fff;
  color: var(--color-secondary);
}

/* Theme Toggle */
.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-theme), transform 0.25s var(--ease-smooth);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle__icon {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  transition: opacity 0.4s var(--ease-smooth), transform 0.45s var(--ease-out-expo);
}

.theme-toggle__icon--sun {
  background: radial-gradient(circle at 30% 30%, #fff6d9, #f5b83a);
  box-shadow: 0 0 12px rgba(245, 184, 58, 0.4);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle__icon--moon {
  background: linear-gradient(135deg, #c4c8e8, #6b7199);
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ============================================
   Hero + Parallax
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}

.hero__parallax {
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__layer--1 {
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(10, 15, 44, 0.12), transparent 60%);
}

.hero__layer--2 {
  background: radial-gradient(circle at 80% 70%, rgba(10, 15, 44, 0.08), transparent 45%);
}

.hero__layer--3 {
  background: radial-gradient(circle at 15% 80%, rgba(0, 0, 0, 0.04), transparent 40%);
}

[data-theme="dark"] .hero__layer--1 {
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(100, 120, 200, 0.15), transparent 60%);
}

[data-theme="dark"] .hero__layer--2 {
  background: radial-gradient(circle at 80% 70%, rgba(10, 15, 44, 0.6), transparent 50%);
}

[data-theme="dark"] .hero__layer--3 {
  background: radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.03), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-primary);
}

[data-theme="dark"] .hero__title {
  color: var(--color-text);
}

.hero__subtitle {
  margin: 0.75rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--color-secondary);
}

[data-theme="dark"] .hero__subtitle {
  color: var(--color-text-muted);
}

.hero__tagline {
  margin: 1.75rem 0 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-flex;
  margin-top: 2.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-secondary);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-smooth), background 0.35s;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10, 15, 44, 0.25);
}

[data-theme="dark"] .hero__cta {
  background: #fff;
  color: var(--color-secondary);
}

[data-theme="dark"] .hero__cta:hover {
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.12);
}

/* ============================================
   Sections allgemein
   ============================================ */

.section {
  padding: clamp(4rem, 12vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

/* Parallax-Flächen in Sections (subtil) */
.section-with-parallax > *:not(.section-parallax) {
  position: relative;
  z-index: 1;
}

.section-parallax {
  position: absolute;
  inset: -25% -15%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(10, 15, 44, 0.06), transparent 70%);
  will-change: transform;
  transition: opacity 0.45s var(--ease-smooth);
}

.section-parallax--subtle {
  background: radial-gradient(ellipse 60% 45% at 30% 50%, rgba(10, 15, 44, 0.05), transparent 65%);
}

[data-theme="dark"] .section-parallax {
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(120, 140, 220, 0.08), transparent 70%);
}

[data-theme="dark"] .section-parallax--subtle {
  background: radial-gradient(ellipse 60% 45% at 30% 50%, rgba(255, 255, 255, 0.04), transparent 65%);
}

.section__intro {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__intro--minimal {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section__lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Scroll Reveal — etwas kürzer für ruhigeres Gesamtgefühl beim Scrollen */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
    transition: none;
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Sprachwechsel: sanfter Text-Übergang */
.lang-transition [data-i18n] {
  transition: opacity 0.35s var(--ease-smooth);
}

.lang-transition [data-i18n].is-lang-fading {
  opacity: 0.35;
}

/* ============================================
   Skills Rail (horizontal)
   ============================================ */

.skills-rail {
  overflow: hidden;
  margin: 0 calc(-1 * clamp(1.25rem, 5vw, 4rem));
  padding: 1.5rem 0;
  /* Nur leichte Kanten — keine breite „Ausblendung“ rechts (wirkte wie leeres Feld) */
  mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 2%, black 98%, transparent 100%);
}

.skills-rail__track {
  --skills-chunks: 6;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: railScroll 50s linear infinite;
}

.skills-rail__chunk {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-right: clamp(2rem, 5vw, 3.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .skills-rail__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
  }
  .skills-rail__chunk {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: 1rem 1.75rem;
  }
  .skills-rail {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@keyframes railScroll {
  to {
    transform: translateX(calc(-100% / var(--skills-chunks, 6)));
  }
}

.skills-rail__item {
  flex-shrink: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  opacity: 0.85;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.skills-rail__item:hover {
  opacity: 1;
  transform: scale(1.03);
}

.about__floating-note {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   Services — Split Layouts
   ============================================ */

.services {
  background: linear-gradient(180deg, transparent, rgba(10, 15, 44, 0.02) 40%, transparent);
}

[data-theme="dark"] .services {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 40%, transparent);
}

.service-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: min(52vh, 420px);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
}

@media (min-width: 768px) {
  .service-split {
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
  }
  .service-split--reverse .service-split__visual {
    order: 2;
  }
}

.service-split:hover {
  box-shadow: var(--shadow-soft);
}

.service-split__visual {
  min-height: 160px;
  background: linear-gradient(
    135deg,
    hsl(var(--svc-hue, 230), 35%, 92%),
    hsl(calc(var(--svc-hue, 230) + 20), 40%, 88%)
  );
  transition: filter 0.5s var(--ease-smooth), transform 0.6s var(--ease-out-expo);
}

.service-split__visual[data-service-bg="1"] {
  --svc-hue: 230;
}
.service-split__visual[data-service-bg="2"] {
  --svc-hue: 200;
}
.service-split__visual[data-service-bg="3"] {
  --svc-hue: 265;
}
.service-split__visual[data-service-bg="4"] {
  --svc-hue: 210;
}

[data-theme="dark"] .service-split__visual {
  background: linear-gradient(
    135deg,
    hsl(var(--svc-hue, 230), 25%, 18%),
    hsl(calc(var(--svc-hue, 230) + 15), 30%, 12%)
  );
}

.service-split:hover .service-split__visual {
  filter: brightness(1.05) saturate(1.08);
  transform: scale(1.02);
}

.service-split__body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg);
  transition: background 0.45s var(--ease-smooth);
}

.service-split:hover .service-split__body {
  background: var(--color-bg-elevated);
}

.service-split__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.service-split__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.35s var(--ease-smooth);
}

.service-split:hover .service-split__title {
  color: var(--color-secondary);
}

[data-theme="dark"] .service-split:hover .service-split__title {
  color: var(--color-text);
}

.service-split__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 32ch;
}

/* ============================================
   Timeline
   ============================================ */

.timeline-section {
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 1.5rem;
}

.timeline__line {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-secondary), rgba(10, 15, 44, 0.15));
  transform-origin: top center;
  transform: scaleY(var(--timeline-progress, 0));
  transition: transform 0.12s linear;
}

[data-theme="dark"] .timeline__line {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  padding-left: 1.75rem;
}

.timeline__dot {
  position: absolute;
  left: -1.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-secondary);
  z-index: 1;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.timeline__item.is-visible .timeline__dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(10, 15, 44, 0.1);
}

.timeline__dot--pulse {
  animation: dotPulse 2.5s var(--ease-smooth) infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(10, 15, 44, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}

[data-theme="dark"] .timeline__dot {
  border-color: #fff;
}

.timeline__card {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease-out-expo), border-color 0.35s;
}

.timeline__item.is-visible .timeline__card {
  transform: translateX(4px);
}

.timeline__card:hover {
  border-color: rgba(10, 15, 44, 0.2);
}

.timeline__card--highlight {
  border-color: var(--color-secondary);
}

[data-theme="dark"] .timeline__card--highlight {
  border-color: rgba(255, 255, 255, 0.25);
}

.timeline__time {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.timeline__heading {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ============================================
   Zusammenarbeit — Ablauf, Prinzipien, CTAs
   ============================================ */

.collaborate {
  border-top: 1px solid var(--color-border);
}

.process-flow {
  position: relative;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.process-flow__line {
  display: none;
}

.process-flow__steps {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .process-flow__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .process-flow__line {
    display: block;
    position: absolute;
    top: 1.1rem;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(10, 15, 44, 0.2) 12%,
      rgba(10, 15, 44, 0.2) 88%,
      transparent
    );
    pointer-events: none;
  }
  [data-theme="dark"] .process-flow__line {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.12) 12%,
      rgba(255, 255, 255, 0.12) 88%,
      transparent
    );
  }
}

.process-flow__step {
  position: relative;
  padding-top: 0.25rem;
  transition: transform 0.45s var(--ease-out-expo);
}

@media (min-width: 900px) {
  .process-flow__step:hover {
    transform: translateY(-4px);
  }
}

.process-flow__n {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}

[data-theme="dark"] .process-flow__n {
  color: var(--color-text-muted);
}

.process-flow__heading {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-flow__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 36ch;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.principles__line {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.35s var(--ease-smooth), padding-left 0.4s var(--ease-out-expo);
}

.principles__line:last-child {
  border-bottom: none;
}

.principles__line:hover {
  color: var(--color-secondary);
  padding-left: 0.5rem;
}

[data-theme="dark"] .principles__line:hover {
  color: var(--color-text);
}

.collaborate__cta-band {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  border-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
}

.collaborate__cta-text {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.collaborate__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.collaborate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s, box-shadow 0.3s;
}

.collaborate__btn--primary {
  color: #fff;
  background: var(--color-secondary);
  border: 1px solid transparent;
}

.collaborate__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 15, 44, 0.22);
}

[data-theme="dark"] .collaborate__btn--primary {
  background: #fff;
  color: var(--color-secondary);
}

[data-theme="dark"] .collaborate__btn--primary:hover {
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.1);
}

.collaborate__btn--ghost {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
}

.collaborate__btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  opacity: 0.92;
}

/* ============================================
   Discord / Lanyard-Profilkarte
   ============================================ */

.discord-section {
  border-top: 1px solid var(--color-border);
}

/* Lanyard SVG-Widget (lanyard.cnrad.dev) */
.discord-lanyard-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.discord-lanyard-link {
  display: block;
  max-width: 410px;
  margin: 0 auto;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  line-height: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.discord-lanyard-link:hover {
  box-shadow: var(--shadow-soft), 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

[data-theme="dark"] .discord-lanyard-link:hover {
  box-shadow: var(--shadow-soft), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.discord-lanyard-widget {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.discord-card {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 1.15rem;
  border: 1px solid var(--color-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.discord-card__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 120px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.discord-card__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: discordSpin 0.7s linear infinite;
}

@keyframes discordSpin {
  to {
    transform: rotate(360deg);
  }
}

.discord-card__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .discord-card__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.discord-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  align-self: center;
}

@media (min-width: 480px) {
  .discord-card__avatar-wrap {
    align-self: flex-start;
  }
}

.discord-card__avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
}

.discord-card__status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  background: #747f8d;
  box-sizing: border-box;
}

.discord-card__status--online {
  background: #3ba55d;
}

.discord-card__status--idle {
  background: #faa81a;
}

.discord-card__status--dnd {
  background: #ed4245;
}

.discord-card__status--offline {
  background: #747f8d;
}

.discord-card__body {
  flex: 1;
  min-width: 0;
}

.discord-card__display {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.discord-card__handle {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.discord-card__presence {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.discord-card__presence-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

#discord-status-label {
  font-weight: 500;
  color: var(--color-text);
}

.discord-card__spotify {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: rgba(30, 215, 96, 0.08);
  border: 1px solid rgba(30, 215, 96, 0.22);
}

[data-theme="dark"] .discord-card__spotify {
  background: rgba(30, 215, 96, 0.1);
}

.discord-card__spotify-label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1db954;
}

.discord-card__spotify-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.discord-card__spotify-art {
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.discord-card__spotify-song {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.discord-card__spotify-artist {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.discord-card__activity {
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.discord-card__activity-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.discord-card__activity-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.discord-card__activity-detail,
.discord-card__activity-state {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.discord-card__btn {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #5865f2;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out-expo), filter 0.25s;
}

.discord-card__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.discord-card__btn--outline {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: #5865f2;
  background: transparent;
  border: 2px solid #5865f2;
}

.discord-card__btn--outline:hover {
  background: rgba(88, 101, 242, 0.1);
  filter: none;
}

.discord-card__since {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.discord-card__fallback {
  text-align: center;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.discord-card__fallback > .discord-card__btn:last-of-type {
  margin-top: 0.35rem;
}

.discord-card__fallback-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.discord-japi-note,
.discord-lanyard-note {
  max-width: 40rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: center;
}

.discord-japi-note a,
.discord-lanyard-note a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discord-japi-note a:hover,
.discord-lanyard-note a:hover {
  opacity: 0.75;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 3rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer__discord {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: opacity 0.25s;
}

.site-footer__discord:hover {
  opacity: 0.6;
}

.site-footer__discord::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
