@font-face {
  font-family: 'Archivo';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/archivo-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/archivo-900.woff2') format('woff2');
}

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

:root {
  --bg: #C6C1B2;
  --dark: #1a1d20;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, strong, b, .fw900 { font-weight: 900; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 5rem 1.25rem; }
@media (min-width: 768px) { section { padding: 7rem 1.25rem; } }

.hero {
  margin: 0;
  padding: 0;
  background: var(--bg);
  line-height: 0;
}
.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: top;
}

#praemisse { background: var(--bg); }
#praemisse h2 { font-size: clamp(2rem, 5vw, 3rem); }
#praemisse h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 3.5rem; }
#praemisse h2, #praemisse h3 { text-align: left; }
.praemisse-title span { display: block; }
.praemisse-title .praemisse-vs {
  text-align: left;
  font-size: 1em;
  line-height: 1;
  margin: 0.2em 0;
}
#praemisse .lead {
  text-align: left;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.praemisse-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .praemisse-layout { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 3.25rem; } }

.phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 0;
  width: 100%;
}
@media (min-width: 640px) { .phones { flex-direction: row; justify-content: flex-start; gap: 0.5rem; } }
@media (min-width: 1024px) { .phones { gap: 0.75rem; } }

.phone-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: relative;
}
@media (min-width: 640px) { .phone-col { width: 33.333%; } }

.phone-label {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.phone-col img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  cursor: default;
}
/* Zoom disabled for now
.phone-col img.is-grown {
  transform: scale(1.14);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
  cursor: zoom-out;
  position: relative;
  z-index: 2;
}
*/

#kernmechaniken {
  background: linear-gradient(135deg, #dcd7cb, #beb9ac);
}
#kernmechaniken h2 { text-align: center; font-size: clamp(2rem, 5vw, 3rem); }

.kern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 1100px) {
  .kern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
  }
}

.mechanic-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  align-content: start;
  min-height: 0;
}

@media (min-width: 1100px) {
  .kern-grid .mechanic-panel {
    min-height: 100%;
  }

  .economy-slider-row,
  .katharsis-row {
    margin-top: 0;
  }
}

.economy-box, .katharsis-box {
  border-radius: 0;
  padding: 1.25rem;
  box-shadow: none;
}
@media (min-width: 768px) { .economy-box, .katharsis-box { padding: 1.5rem; } }

.mechanic-panel h3 {
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
}

.mechanic-body {
  display: grid;
  grid-template-rows: auto;
  gap: 1rem;
  margin-top: 0.75rem;
  min-height: 0;
  align-items: stretch;
}

@media (min-width: 768px) {
  .mechanic-body {
    grid-template-rows: minmax(9rem, 1fr) auto;
  }
}

.mechanic-visual {
  min-height: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .mechanic-visual {
    display: flex;
    min-height: 10rem;
  }
}

.mechanic-copy {
  width: 100%;
  max-width: 36rem;
  margin-inline: 0;
}

.mechanic-copy p {
  margin-top: 0;
  text-align: left;
  line-height: 1.7;
}

.economy-box {
  background: transparent;
  margin-top: 0;
}
.economy-box p { margin-top: 0; line-height: 1.7; }

.economy-slider-aside {
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  margin-inline: auto;
}

/* Asset-Regler: Stufe-Bilder als Schiene, regler.png als Anfasser */
.custom-slider-shell {
  --slider-track-h: clamp(1.6rem, 9vw, 2.4rem);
  --slider-thumb-w: clamp(1.8rem, 8.8vw, 3rem);
  --slider-thumb-h: clamp(2.8rem, 17.6vw, 4.8rem);
  --slider-top: 71%;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.slider-track-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.slider-regler-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  will-change: left;
}
@media (min-width: 768px) {
  .custom-slider-shell { margin-top: 0; }
}

.custom-slider-shell input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 1%;
  right: 3%;
  width: auto;
  top: var(--slider-top);
  transform: translateY(-50%);
  height: max(var(--slider-thumb-h), var(--slider-track-h), 2.4rem);
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}

.custom-slider-shell input[type=range]:focus {
  outline: none;
}

.custom-slider-shell input[type=range]:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.custom-slider-shell input[type=range]::-webkit-slider-runnable-track {
  height: var(--slider-track-h);
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.custom-slider-shell input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--slider-thumb-w);
  height: var(--slider-thumb-h);
  margin-top: calc((var(--slider-track-h) - var(--slider-thumb-h)) / 2);
  background: transparent;
  cursor: grab;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.custom-slider-shell input[type=range]:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.custom-slider-shell input[type=range]::-moz-range-track {
  height: var(--slider-track-h);
  background: transparent;
  border: none;
  box-shadow: none;
}

.custom-slider-shell input[type=range]::-moz-range-thumb {
  width: var(--slider-thumb-w);
  height: var(--slider-thumb-h);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: grab;
  box-sizing: border-box;
  box-shadow: none;
}

.custom-slider-shell input[type=range]:active::-moz-range-thumb {
  cursor: grabbing;
}

.custom-slider-shell input[type=range]::-moz-focus-outer {
  border: 0;
}


.katharsis-box {
  background: transparent;
  margin-top: 0;
}

.katharsis-copy p { margin-top: 0; line-height: 1.7; }

.katharsis-media {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}
.katharsis-media img {
  display: block;
  width: 130%;
  max-width: none;
  height: auto;
  margin-left: -15%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.tag {
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.05);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 900;
}

#bunten { background: var(--bg); }
#graue-welle { background: var(--dark); }

.einheiten-section { padding-block: 4rem; }
.einheiten-section.bunten-active { background: var(--bg); }
.einheiten-section.graue-active { background: var(--dark); }

.unit-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 44rem);
  margin: 0 auto 2.5rem;
  border: 2px solid rgba(0,0,0,0.85);
  border-radius: 9999px;
  overflow: hidden;
}
.unit-tab {
  border: 0;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  background: transparent;
  color: #111;
  font: 900 clamp(0.9rem, 2.2vw, 1.15rem)/1.15 system-ui, sans-serif;
  cursor: pointer;
}
.unit-tab.active { background: #111; color: #fff; }
.graue-active .unit-tabs { border-color: #dfe3e7; }
.graue-active .unit-tab { color: #dfe3e7; }
.graue-active .unit-tab.active { background: #dfe3e7; color: #111; }
.unit-panel[hidden] { display: none; }
.unit-panel .section-sub { margin-top: 0; }
.graue-active .unit-panel .section-sub { color: #adb5bd; }

.section-heading { font-size: clamp(2rem, 5vw, 3rem); text-align: center; }
.section-sub { text-align: center; max-width: 40rem; margin: 1rem auto 0; font-size: 1rem; line-height: 1.6; }

#graue-welle .section-heading { color: #dee2e6; }
#graue-welle .section-sub { color: #adb5bd; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  grid-auto-rows: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }

.card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
  width: 100%;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
}

.card-name { font-size: 1.1rem; font-weight: 900; }

/* Order of Mental Ruin: „of“ leichter + kleiner; Rest normal fett (.card-name) */
.card-name--mental .card-name-of {
  font-weight: 300;
  font-size: 0.72em;
  vertical-align: 0.08em;
  margin-inline: 0.05em;
}
.card-role { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

.card-body { display: flex; flex-direction: column; flex: 1; margin-top: 0.75rem; }
.card-desc { font-size: 0.875rem; line-height: 1.6; }
.card-quote {
  margin-top: auto;
  padding-top: 1rem;
  padding-left: 0;
  border: none;
  font-size: 0.875rem;
  font-style: italic;
}

footer {
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-size: 0.875rem;
}
footer p + p { margin-top: 0.25rem; }
footer .footer-note { margin-top: 1rem; font-size: 0.75rem; font-style: italic; }

/* Language switch */
.language-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.language-toggle button {
  border: 0;
  border-radius: 9999px;
  padding: 0.45rem 0.65rem;
  background: transparent;
  color: #111;
  font: 900 0.75rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.language-toggle button.active { background: #111; color: #fff; }

.future-card { position: relative; }
.future-badge {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 2;
  border-radius: 9999px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: #111;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}

.soli-point-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 12.5rem;
  height: 12.5rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.soli-point-mark::before,
.soli-point-mark::after {
  content: none;
}

.soli-point-image {
  position: relative;
  z-index: 0;
  width: 9.5rem;
  height: auto;
  display: block;
  transform: scale(1.30);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

.heart-decoration {
  position: absolute;
  z-index: 2;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}
.heart-decoration--left {
  left: 0.15rem;
  top: 1.1rem;
  width: 2.15rem;
  transform: rotate(-20deg);
}
.heart-decoration--top-right {
  right: 0.8rem;
  top: 0.8rem;
  width: 1.55rem;
  transform: rotate(12deg);
}
.heart-decoration--bottom-left {
  left: 0.65rem;
  bottom: 1.1rem;
  width: 2.65rem;
  transform: rotate(-12deg);
}
.heart-decoration--bottom-right {
  right: 0.15rem;
  bottom: 1.55rem;
  width: 1.25rem;
  transform: rotate(18deg);
}

@media (min-width: 768px) {
  .mechanic-body.economy-slider-row,
  .mechanic-body.katharsis-row {
    grid-template-columns: minmax(8rem, 0.75fr) minmax(0, 1.25fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .economy-slider-copy,
  .katharsis-copy {
    padding-top: 0;
  }
}
