/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Base font size: 18px (scaled up from 16px default, all rem-based sizes scale proportionally) */
html {
  font-size: 18px;
}

html, body {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  overflow-x: clip;
}

/* ── Typography Scale ────────────────────────────────────────────────────────
   Alle font-size-Werte der Sections stammen aus diesen Variablen.
   Änderungen hier wirken sich auf alle Sections gleichzeitig aus.

   --fs-title:    Section-Titel (h2 in Content-Sections)
   --fs-subtitle: Untertitel / Lead-Text unter Section-Titeln
   --fs-heading:  Text-Überschriften (h1 in Trix, Spalten-h2, Karten-h3)
   --fs-body:     Fließtext
   --fs-small:    Kleiner Text (Kicker, Fussnoten, Buttons)

   CSS-Klassen für direkten Einsatz in Templates:
   .type-title    → Section-Titel
   .type-subtitle → Untertitel
   .type-heading  → Überschrift im Text
   .type-body     → Fließtext
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --fs-hero:     clamp(1.5rem, 5vw, 4rem);
  --fs-title:    clamp(1.25rem, 3vw, 2rem);
  --fs-subtitle: clamp(1.2rem, 2.4vw, 1.35rem);
  --fs-heading:  clamp(1.05rem, 2vw, 1.35rem);
  --fs-lead:     var(--fs-subtitle);
  --fs-body:     1rem;
  --fs-small:    0.875rem;

  --lh-body:    1.4;   /* Zeilenabstand Fließtext – hier anpassen */

  /* ── Section Background Themes ──────────────────────────────────────────────
     Hintergrundfarbe für dark / light Sections.
     Änderungen hier wirken gleichzeitig auf alle Sections.
     ────────────────────────────────────────────────────────────────────────── */
  --section-bg-dark:  #0f172a;
  --section-bg-light: #e2e8f0;

  --section-px: 1.5rem;

  /* ── Section Link Colors ────────────────────────────────────────────────────
     Zentrale Link-Farben pro Section-Hintergrund-Theme.
     Änderungen hier wirken auf alle Sections gleichzeitig.
     ────────────────────────────────────────────────────────────────────────── */
  --link-on-dark:  #60a5fa;   /* Blau auf dunklem Hintergrund  */
  --link-on-light: #2563eb;   /* Blau auf hellem / weißem Hintergrund */
}

@media (max-width: 1200px) {
  :root { --section-px: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --section-px: 1.5rem; }
}

/* ── Responsive Breakpoints ──────────────────────────────────────────────────
   Mobile:  max-width 767px
   Pad:     768px – 1023px
   Screen:  min-width 1024px  (default, kein Media Query nötig)
   ────────────────────────────────────────────────────────────────────────── */

/* Section-Padding via CSS-Variablen (inline gesetzt, z.B. --pad-top: 4rem) */
section {
  padding-top:    var(--pad-top, 4rem);
  padding-bottom: var(--pad-bot, 4rem);
}

@media (max-width: 767px) {
  html { font-size: 16px; }
  :root {
    --fs-hero:     2rem;
    --fs-title:    1.4rem;
    --fs-subtitle: 1.05rem;
    --fs-heading:  1rem;
    --fs-body:     0.9rem;
    --fs-small:    0.8rem;
  }
  section,
  .hero-slides-overlay {
    padding-top:    min(var(--pad-top, 4rem), 2rem);
    padding-bottom: min(var(--pad-bot, 4rem), 2rem);
  }
  .grid-2x2 {
    grid-template-columns: 1fr;
  }
  .subtitle-typed {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html { font-size: 17px; }
  :root {
    --fs-hero:     2.5rem;
    --fs-title:    1.6rem;
    --fs-subtitle: 1.15rem;
    --fs-heading:  1.1rem;
    --fs-body:     1rem;
    --fs-small:    0.875rem;
  }
  section,
  .hero-slides-overlay {
    padding-top:    min(var(--pad-top, 4rem), 3.5rem);
    padding-bottom: min(var(--pad-bot, 4rem), 3.5rem);
  }
}

/* ── Section Theme Classes ───────────────────────────────────────────────────
   Jede Section bekommt bg-dark / bg-light / bg-white als CSS-Klasse.
   Alle Theme-abhängigen Styles stehen hier zentral.
   ────────────────────────────────────────────────────────────────────────── */
section.bg-dark  { --section-link-color: var(--link-on-dark); }
section.bg-light { --section-link-color: var(--link-on-light); }
section.bg-white { --section-link-color: var(--link-on-light); }

.trix-content a,
.text-section-body a,
.text-center-body a,
.cube-teaser-body a,
.cube-teaser-body .trix-content a,
.features-three-col-item a {
  color: var(--section-link-color, var(--link-on-light)) !important;
  text-decoration: underline !important;
}

/* Buttons: Link-Stil auf allen Hintergründen */
section.bg-white .btn,
section.bg-light .btn {
  background: transparent;
  color: #0f172a;
  text-decoration: underline;
  border: none;
}

section.bg-dark .btn {
  background: transparent;
  color: #f1f5f9;
  text-decoration: underline;
  border: none;
}

section.bg-white .btn--icon,
section.bg-light .btn--icon,
section.bg-dark  .btn--icon {
  padding-left: 0;
}

section.bg-white .btn:hover,
section.bg-light .btn:hover {
  opacity: 1;
  color: #64748b;
}

section.bg-dark .btn:hover {
  opacity: 1;
  color: #94a3b8;
}

/* ── Typography classes ─────────────────────────────────────────────────────── */
.type-title    { font-size: var(--fs-title);    font-weight: 500; line-height: 1.2; }
h1.type-title  { margin-bottom: 1rem; }
.type-subtitle { font-size: var(--fs-subtitle); line-height: 1.45; color:#94a3b8;}
.type-heading  { font-size: var(--fs-heading);  font-weight: 400; line-height: 1.3; }
.type-body     { font-size: var(--fs-body);     line-height: 1.75; }

/* Utility-Klassen für Sections, die Tailwind-bg-Klassen nutzen */
.section-bg-dark  { background: var(--section-bg-dark); }
.section-bg-light { background: var(--section-bg-light); }


.grid-2x2 .trix-content p {
  font-size: 0.9rem;
}

section.bg-white .trix-content p,
section.bg-light .trix-content p {
  color: var(--tw-prose-body) !important;
}

.page-light .trix-content p {
  color: var(--tw-prose-body) !important;
}

.nav-dark {
  background-color: var(--section-bg-dark) !important;
  color: white;
  border-color: #1e293b !important;
}

/* Responsive header */
header {
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
footer {
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  --footer-link-color:    #334155;
  --footer-muted-color:   #94a3b8;
  --footer-heading-color: #0f172a;
}

footer.footer-dark {
  --footer-link-color:    #cbd5e1;
  --footer-muted-color:   #94a3b8;
  --footer-heading-color: #f1f5f9;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--footer-heading-color);
  margin: 0 0 1rem 0;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.footer-link {
  color: var(--footer-link-color);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.2;
}

.footer-nav-heading {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--footer-heading-color);
  margin: 0 0 1rem 0;
}

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

.footer-small {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--footer-muted-color);
  margin: 0;
}

/* ── Admin Dark Theme ────────────────────────────────────────────────────────
   Überschreibt Tailwind-Utility-Klassen und häufige inline-Farben im Admin. */
.admin-dark { background: #0f172a; color: #f1f5f9; }
.admin-dark .bg-white     { background: #1e293b !important; }
.admin-dark .bg-slate-50  { background: #0f172a !important; }
.admin-dark .bg-slate-100 { background: #1e293b !important; }
.admin-dark .text-slate-900 { color: #f1f5f9 !important; }
.admin-dark .text-slate-800 { color: #e2e8f0 !important; }
.admin-dark .text-slate-700 { color: #cbd5e1 !important; }
.admin-dark .text-slate-600 { color: #94a3b8 !important; }
.admin-dark .text-slate-500 { color: #94a3b8 !important; }
.admin-dark .text-slate-400 { color: #64748b !important; }
.admin-dark .border-r,
.admin-dark .border-b,
.admin-dark .border-t,
.admin-dark .border   { border-color: #334155 !important; }
.admin-dark input[type="text"],
.admin-dark input[type="email"],
.admin-dark input[type="password"],
.admin-dark input[type="url"],
.admin-dark input[type="number"],
.admin-dark input[type="datetime-local"],
.admin-dark select,
.admin-dark textarea {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}
/* Primary buttons: dark-on-dark → neutral slate */
.admin-dark a[style*="background: #0f172a"],
.admin-dark button[style*="background: #0f172a"],
.admin-dark input[type="submit"][style*="background: #0f172a"] {
  background: #475569 !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}
/* Tables: cells get explicit background so they stand out */
.admin-dark table  { border-collapse: collapse; width: 100%; }
.admin-dark td,
.admin-dark th     { background: #1e293b !important; }
.admin-dark thead td,
.admin-dark thead th { background: #0f172a !important; color: #94a3b8 !important; }
.admin-dark tbody tr + tr td,
.admin-dark tbody tr + tr th { border-top: 1px solid #334155; }
/* Trix editor: toolbar dark, editor area light */
.admin-dark .trix-editor-container { background: #1e293b; }
.admin-dark trix-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}
.admin-dark trix-toolbar .trix-button {
  color: #f1f5f9 !important;
  border-color: #334155 !important;
  background: transparent !important;
}
.admin-dark trix-toolbar .trix-button-group {
  border-color: #334155 !important;
}
.admin-dark trix-toolbar .trix-button--icon::before {
  filter: invert(1) !important;
  opacity: 0.85;
}
.admin-dark trix-editor {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #334155 !important;
}
/* Icon images: invert dark SVGs to white */
.admin-dark img[style*="width: 1rem"],
.admin-dark img[style*="width: 1.25rem"],
.admin-dark img[style*="width: 1.5rem"] {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
/* ─────────────────────────────────────────────────────────────────────────── */

.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-desktop-links a {
  text-decoration: none;
  color: inherit;
}
.nav-hamburger {
  display: none;
}
.nav-mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
}
.nav-mobile-menu .nav-dropdown-trigger {
  padding: 0.5rem 0;
}
.nav-mobile-menu .nav-dropdown-menu {
  position: static;
  display: block;
  padding: 0;
}
.nav-mobile-menu .nav-dropdown-menu-inner {
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
}
.nav-mobile-menu .nav-dropdown-menu-inner a {
  padding-left: 1rem;
  color: inherit;
  border-bottom: none;
}
@media (max-width: 767px) {
  .nav-desktop-links {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }
}

/* Font: Plus Jakarta Sans */
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: var(--lh-body);
}

/* List Styles - Bullet color and indentation */
.trix-content ul,
.trix-content ol {
  padding-left: 1.25em;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.trix-content li {
  margin-left: 0;
  padding-left: 0.25em;
  font-size: 1rem;
  line-height: 1.45;
}

.trix-content li::marker {
  color: inherit;
}

.trix-content strong {
  color: inherit;
}

/* Blog Layout - Responsive Grid */
.blog-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-scroll-outer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.blog-scroll-track {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem;
  width: max-content;
  align-items: flex-start;
}

.blog-scroll-card {
  width: 230px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--page-color);
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.blog-scroll-card:hover .blog-scroll-card__title {
  text-decoration: underline;
}

.blog-scroll-card__title {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.3;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.6rem 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-scroll-card__img {
  width: 100%;
  height: auto;
  border-radius: 0rem;
  display: block;
  background-color: white;
  padding-top: 10px;
}

.blog-scroll-card__placeholder {
  width: 100%;
  height: 140px;
  background: var(--card-border);
  border-radius: 0.375rem;
}

.blog-scroll-load-more {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--page-color-muted);
  white-space: nowrap;
}

.blog-scroll-load-more:hover {
  color: var(--page-color);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-trigger:hover {
  color: #475569;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  padding-top: 0.75rem;
  z-index: 100;
}

.nav-dropdown-menu-inner {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4);
  min-width: 240px;
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu-inner a {
  display: block;
  padding: 0.4rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: 1px solid #334155;
}

.nav-dropdown-menu-inner a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu-inner a:hover {
  background: #334155;
  color: white;
}

.nav-dropdown-group {
  border-bottom: 1px solid #334155;
}

.nav-dropdown-group:last-child {
  border-bottom: none;
}

.nav-dropdown-group-label {
  display: block;
  padding: 0.4rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: none !important;
}

.nav-dropdown-group-label:hover {
  background: #334155;
  color: white;
}

.nav-dropdown-menu-inner .nav-dropdown-subitem {
  display: block;
  padding: 0.25rem 1rem 0.25rem 2.25rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875em;
  border-bottom: none !important;
  border-top: 1px solid #1e293b;
}

.nav-dropdown-menu-inner .nav-dropdown-subitem:hover {
  background: #334155;
  color: #e2e8f0;
}

/* Two Column Sections - Responsive */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col-grid {
    gap: 3rem;
  }

  .two-col-grid.cols-50-50 {
    grid-template-columns: 1fr 1fr;
  }

  .two-col-grid.cols-60-40 {
    grid-template-columns: 3fr 2fr;
  }

  .two-col-grid.cols-40-60 {
    grid-template-columns: 2fr 3fr;
  }

  .two-col-grid.cols-30-70 {
    grid-template-columns: 30fr 70fr;
  }

  .two-col-grid.cols-70-30 {
    grid-template-columns: 70fr 30fr;
  }

  .two-col-grid.cols-40-60 {
    grid-template-columns: 40fr 60fr;
  }

  .two-col-grid.cols-60-40 {
    grid-template-columns: 60fr 40fr;
  }

  .two-col-grid.align-top {
    align-items: start;
  }

  .two-col-grid.align-center {
    align-items: center;
  }

  .two-col-grid.align-bottom {
    align-items: end;
  }
}

/* Reverse order on mobile for image-left layouts */
@media (max-width: 767px) {
  .two-col-grid.mobile-reverse {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

/* Hero Video Body - Force color and font-size from CSS variables */
.hero-video-body,
.hero-video-body *,
.hero-video-body .trix-content,
.hero-video-body .trix-content * {
  color: var(--hero-text-color) !important;
  font-size: var(--hero-font-size) !important;
}

.hero-video-body a {
  text-decoration: underline !important;
}

.three-col-grid .trix-content p {
  font-size: 0.9rem;
}

.text-section-content {
  max-width: var(--text-content-width, 100%);
}
@media (max-width: 1024px) {
  .text-section-content {
    max-width: 100%;
  }
}

/* Text Center Section - Force color from CSS variable */
.text-center-body,
.text-center-body *,
.text-center-body .trix-content,
.text-center-body .trix-content * {
  color: var(--text-center-color) !important;
}

.text-center-body a {
  text-decoration: underline !important;
}

/* Text Section - Force color from CSS variable */
.text-section-body,
.text-section-body *,
.text-section-body .trix-content,
.text-section-body .trix-content * {
  color: var(--text-section-color) !important;
}

.text-section-body a {
  text-decoration: underline !important;
}

.cube-teaser-body,
.cube-teaser-body *,
.cube-teaser-body .trix-content,
.cube-teaser-body .trix-content * {
  color: var(--cube-teaser-body-color) !important;
  font-size: 0.9rem !important;
}

/* Wave Text Animation */
@keyframes waveChar {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wave-char {
  display: inline-block;
  opacity: 0;
}

.wave-char.wave-char-visible {
  animation: waveChar 0.5s ease forwards;
}

@keyframes waveCharX {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cube-teaser-grid .wave-char.wave-char-visible {
  animation: waveCharX 0.6s ease forwards;
}

/* Cube Teaser Section */
.cube-teaser-grid {
  display: grid;
  column-gap: 0rem;
  row-gap: 0rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Desktop: Würfel links, Text rechts (Headers + Content) */
.cube-teaser-grid .cube-scene-wrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
}
.cube-teaser-headers {
  grid-column: 2;
  grid-row: 1;
  display: grid;
}
.cube-dots {
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
}
.cube-teaser-content {
  grid-column: 2;
  grid-row: 2 / span 2;
}

/* Mobile: animiertes Grid ausblenden, Cards zeigen */
.cube-teaser-mobile-cards {
  display: none;
}

@media (max-width: 767px) {
  .cube-teaser-grid {
    display: none;
  }

  .cube-teaser-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-px);
  }

  .cube-teaser-mobile-card {
    background: rgba(128,128,128,0.08);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 1rem;
  }

  .cube-teaser-mobile-card-image {
    position: relative;
  }

  .cube-teaser-mobile-card-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .cube-teaser-mobile-card-title {
    position: absolute;
    bottom: 1rem;
    margin: 0 auto;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    color: #0f172a;
    background: #facc15;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0.375rem;
    padding: 0.5rem 0.9rem;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
    text-align: center;
  }

  .cube-teaser-mobile-card-body .btn {
    font-size: var(--fs-body);
    display: flex;
    justify-content: center;
    background: none !important;
    border-radius: 0;
    padding: 0;
  }

  .cube-teaser-mobile-card-body .btn img {
    display: none;
  }

  .cube-teaser-mobile-card-image {
    padding: 1rem 1rem 0;
  }

  .cube-teaser-mobile-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
  }

  .cube-teaser-mobile-card-body {
    padding: 1rem;
  }
}

.cube-teaser-text {
  display: grid;
}

.cube-text-item {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cube-text-item.cube-text-active {
  opacity: 1;
  pointer-events: auto;
}

.cube-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.cube-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
  transition: opacity 0.4s ease;
  flex-shrink: 0;
}

.cube-dot.cube-dot-active {
  opacity: 1;
}

.cube-scene {
  perspective: 600px;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.cube-object {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  backface-visibility: hidden;
  border-radius: 0;
  /* background wird per inline-style aus dem Section-Hintergrund gesetzt */
}

.cube-face-inner {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cube-face-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.cube-face--front { transform: rotateY(0deg)    translateZ(100px); }
.cube-face--right { transform: rotateY(90deg)   translateZ(100px); }
.cube-face--back  { transform: rotateY(180deg)  translateZ(100px); }
.cube-face--left  { transform: rotateY(-90deg)  translateZ(100px); }

@media (max-width: 640px) {
  .cube-scene { width: 160px; height: 160px; }
  .cube-face  { width: 160px; height: 160px; }
  .cube-face--front { transform: rotateY(0deg)    translateZ(80px); }
  .cube-face--right { transform: rotateY(90deg)   translateZ(80px); }
  .cube-face--back  { transform: rotateY(180deg)  translateZ(80px); }
  .cube-face--left  { transform: rotateY(-90deg)  translateZ(80px); }
}

/* ── Diagonal Section Transitions ───────────────────────────────────────────
   diagonal_bottom: Winkel in Grad (z.B. 3). Pivot in der Mitte.
   Links bleibt auf 100%, rechts wird um 100vw*tan(angle) hochgezogen.
   ──────────────────────────────────────────────────────────────────────────── */
.section-diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100vw * tan(var(--diag-angle, 3deg))), 0 100%);
  margin-bottom: calc(-100vw * tan(var(--diag-angle, 3deg)));
}
.section-diagonal-bottom-right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 100vw * tan(var(--diag-angle, 3deg))));
  margin-bottom: calc(-100vw * tan(var(--diag-angle, 3deg)));
}
/* diagonal_top: works with multiple consecutive sections (document order = natural stacking) */
.section-diagonal-top {
  clip-path: polygon(0 calc(100vw * tan(var(--diag-angle, 3deg))), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-100vw * tan(var(--diag-angle, 3deg)));
  padding-top: calc(var(--pad-top-orig, 4rem) + 100vw * tan(var(--diag-angle, 3deg))) !important;
}
.section-diagonal-top-right {
  clip-path: polygon(0 0, 100% calc(100vw * tan(var(--diag-angle, 3deg))), 100% 100%, 0 100%);
  margin-top: calc(-100vw * tan(var(--diag-angle, 3deg)));
  padding-top: calc(var(--pad-top-orig, 4rem) + 100vw * tan(var(--diag-angle, 3deg))) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.8rem;
  border: 0px solid var(--btn-border, #64748b);
  border-radius: 0.375rem;
  background: var(--btn-bg, #475569);
  color: var(--btn-color, #f1f5f9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn--icon {
  padding-left: 0.5rem;
}

.btn img {
  height: 23px;
  width: 23px;
  flex-shrink: 0;
}

.btn:hover {
  opacity: 0.8;
}

/* Hero Slides Section */
.hero-slides-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Lanes: volle Breite der Section */
.hero-slides-lanes-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Lane-Positionen */
.hero-slides-lane-pos {
  position: absolute;
}

/* 2 Spalten nebeneinander, rechts im Frame, 35° CW gekippt */
.hero-slides-lane-pos:nth-child(1) { top: -25%; left: 70%; }
.hero-slides-lane-pos:nth-child(2) { top: -7%;  left: 95%; }

.hero-slides-lane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: rotate(var(--tilt, -12deg));
  transform-origin: top left;
}

.hero-slides-lane-track {
  /*background: rgba(255, 255, 255, 0.05);*/
}

.hero-slides-card {
  flex-shrink: 0;
  overflow: hidden;
}

/* Text-Overlay: fließt normal → bestimmt die Sectionhöhe */
.hero-slides-overlay {
  position: relative;
  z-index: 10;
  padding-top:    var(--pad-top, 5rem);
  padding-bottom: var(--pad-bot, 5rem);
}

/* Contained inner: auf 1200px begrenzt, Text links ausgerichtet */
.hero-slides-overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
  width: 100%;
}

@keyframes laneScrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes galleryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .hero-slides-lanes-wrap { display: none; }
  .hero-slides-overlay-inner { width: 100%; padding: 0 1.5rem; }
}

.hero-slides-section .trix-content,
.hero-slides-section .trix-content * {
  color: inherit;
}

/* Three Flyin Section */
.three-flyin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.three-flyin-title {
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.three-flyin-subtitle {
  font-size: var(--fs-subtitle);
  line-height: var(--lh-body);
  margin: 0 0 3rem;
}

.three-flyin-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.three-flyin-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.three-flyin-header {
  font-size: var(--fs-heading);
  font-weight: 600;
  margin: 0;
}

.three-flyin-subtext {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0;
  opacity: 0;
  transform: translateX(-50px);
}

@keyframes flyInFromLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.three-flyin-subtext.three-flyin-subtext-visible {
  animation: flyInFromLeft 0.9s cubic-bezier(0.2, 0, 0.3, 1) forwards;
}

/* Typed Text Effect */
[data-controller="typed-text"] {
  font-style: italic;
}

.typed-text-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 1px;
  animation: typedCursorBlink 0.7s step-end infinite;
}

.typed-text-fade-out {
  animation: typedFadeOut 0.25s ease-in forwards;
}

@keyframes typedCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typedFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Scroll-triggered Animations */
.animate-hidden {
  opacity: 0;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section Divider - full height vertical line */
@media (min-width: 768px) {
  section.section-divider {
    position: relative;
  }
  section.section-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--divider-color, #e2e8f0);
    transform: translateX(-50%);
  }
  .two-col-grid.two-col-divider > div:first-child {
    padding-right: 2rem;
  }
  .two-col-grid.two-col-divider > div:last-child {
    padding-left: 2rem;
  }
}

/* Two Column Full Image Style */
section.two-col-full-image .two-col-grid {
  gap: 0;
}
section.two-col-full-image .two-col-grid > div {
  display: flex;
  flex-direction: column;
}
section.two-col-full-image .two-col-grid img {
  flex-shrink: 0;
}

/* Three Column Full Image Style */
section.three-col-full-image .three-col-grid {
  gap: 0;
}
section.three-col-full-image .three-col-grid > div {
  display: flex;
  flex-direction: column;
}
section.three-col-full-image .three-col-grid img {
  flex-shrink: 0;
}

/* Three Column Sections - Responsive */
.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .three-col-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .three-col-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }

  .three-col-grid.align-top {
    align-items: stretch;
  }

  .three-col-grid.align-center {
    align-items: stretch;
  }

  .three-col-grid.align-bottom {
    align-items: stretch;
  }

  .three-col-grid.three-col-divider > div:first-child {
    padding-right: 1.5rem;
    border-right: 1px solid var(--divider-color, #e2e8f0);
  }
  .three-col-grid.three-col-divider > div:nth-child(2) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--divider-color, #e2e8f0);
  }
  .three-col-grid.three-col-divider > div:last-child {
    padding-left: 1.5rem;
  }
}

/* Three-col column layout */
.three-col-column {
  display: flex;
  flex-direction: column;
}

.three-col-col-title {
  margin-bottom: 1rem;
}

.three-col-col-image.three-col-img-before { order: -1; }
.three-col-col-image.three-col-img-after  { order: 10; }

.three-col-col-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .three-col-grid {
    gap: 0.75rem;
  }

  .three-col-column {
    background: rgba(128,128,128,0.08);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 1rem;
  }

  .three-col-col-image.three-col-img-before,
  .three-col-col-image.three-col-img-after  {
    order: 1;
    margin: 0;
    padding: 0;
  }

  .three-col-col-image img {
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    width: 100%;
    display: block;
  }

  .three-col-col-title { order: 2; margin-top: 0; margin-bottom: 0.25rem; text-align: left; padding: 0.75rem 1rem 0; }
  .three-col-col-body  { order: 3; text-align: left; padding: 0 1rem 1rem; }

  .three-col-col-body .btn {
    font-size: var(--fs-body);
    text-decoration: none !important;
    display: flex;
    justify-content: center;
  }

  .three-col-col-body .btn span {
    text-decoration: none !important;
  }

  .three-col-col-body > div:last-child {
    padding-top: 0.25rem !important;
  }
}

/* Gallery Section - Marquee Auto-Scroll */
.gallery-section {
  position: relative;
}

.gallery-wrapper {
  position: relative;
  /*background: rgba(255,255,255,0.05);*/
  /*border: 1px solid rgba(255,255,255,0.1);*/
  /*border-radius: 4px;*/
  padding: 1rem 0rem;
}

.gallery-track-clip {
  overflow: hidden;
}

a > .gallery-track-clip {
  cursor: pointer;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 0rem;
  will-change: transform;
}

.gallery-track.is-paused {
  animation-play-state: paused !important;
}

.gallery-item {
  flex-shrink: 0;
  overflow: hidden;
}

.gallery-arrow {
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 767px) {
  .gallery-wrapper {
    margin-left: calc(-1 * var(--section-px));
    margin-right: calc(-1 * var(--section-px));
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 1rem 0;
  }

  .gallery-track-clip {
    overflow: visible;
    line-height: 0;
  }

  .gallery-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12vw;
    gap: 6px;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 76vw !important;
    scroll-snap-align: center;
    border: none;
    line-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.25rem;
  }

  .gallery-arrow {
    display: none;
  }
}

/* Footer Grid - Newsletter left, Menu right */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 4rem;
  }
}

/* Footer Layout */
.footer-inner {
  padding: 2rem;
}
.footer-form {
  display: flex;
  gap: 0.5rem;
}
.footer-nav-wrap {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-bottom {
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 767px) {
  .footer-inner { padding: 1.5rem; }
  .footer-form { flex-wrap: wrap; }
  .footer-form input[type="email"] { min-width: 0; flex: 1 1 100%; }
  .footer-nav-wrap { gap: 1.5rem; justify-content: flex-start; }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-bottom > div { justify-content: center !important; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; }
}

/* Two Col: mobile hero image (shown before grid on mobile, hidden on desktop) */
.two-col-mobile-image {
  display: none;
}
@media (max-width: 767px) {
  .two-col-mobile-image {
    display: block;
    overflow: hidden;
  }

  .two-col-mobile-image img {
    margin-bottom: 0;
  }
  .two-col-right-no-mobile-img img {
    display: none;
  }
  .two-col-grid {
    gap: 0;
  }
}

/* Features Three Col */
.features-three-col {
  display: flex;
  align-items: stretch;
}

.features-three-col-item {
  flex: 1;
  min-width: 0;
  padding: 2rem 1.5rem;
}

.features-three-col-item .type-body {
  font-size: var(--fs-small);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .features-three-col {
    flex-direction: column;
  }

  .features-three-col-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem 0;
  }

  .features-three-col-item:last-child {
    border-bottom: none;
  }
}

/* Accordion Tabs Section */
.accordion-tabs-section {
  overflow: hidden;
}

.accordion-tabs-container {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.accordion-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: flex 0.4s ease, background-color 0.3s ease;
  border-right: 1px solid;
  overflow: hidden;
}

.accordion-tab:last-child {
  border-right: none;
}

.accordion-tab:hover,
.accordion-tab.accordion-tab-active {
  flex: 3;
  background: rgba(128,128,128,0.08);
}

.accordion-tab-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.accordion-tab-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  font-size: 0.9rem;
}

.accordion-tab-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.accordion-tab-name {
  font-size: var(--fs-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: auto;
}

/* Body: inaktiv versteckt */
.accordion-tab-body {
  display: none;
  overflow: hidden;
}

/* Einblenden mit Delay (nach 0.35s Flex-Animation), dann fade in */
.accordion-tab-active .accordion-tab-body {
  display: block;
  animation: accordionFadeIn 0.3s ease 0.35s both;
}

@keyframes accordionFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


.accordion-tab-body .trix-content,
.prose-on-dark .trix-content {
  --tw-prose-body: #e2e8f0;
  --tw-prose-headings: #ffffff;
  --tw-prose-bold: #ffffff;
  --tw-prose-bullets: #cbd5e1;
  --tw-prose-links: #93c5fd;
  color: #e2e8f0;
}

@media (max-width: 767px) {
  .accordion-tabs-container {
    flex-direction: column;
    height: auto !important;
    gap: 0.5rem;
  }

  .accordion-tab {
    flex: none;
    border-right: none;
    border-bottom: none;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0 1rem;
    background: rgba(128,128,128,0.08);
    border-radius: 0.5rem;
  }

  .accordion-tab-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 0.5rem;
  }

  .accordion-tab-content {
    display: contents;
  }

  .accordion-tab-icon {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 2rem;
    height: 2rem;
  }

  .accordion-tab-body {
    display: block !important;
    animation: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .accordion-tab-name {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    align-self: center;
  }
}

/* ── Admin: Trix Rich-Text-Editor ────────────────────────────────────────────
   Toolbar bleibt oben sichtbar, Inhalt scrollt im Editor-Fenster.
   ──────────────────────────────────────────────────────────────────────────── */
trix-editor {
  min-height: 220px;
  max-height: 480px;
  overflow-y: auto;
}

trix-editor img,
.trix-content img {
  max-width: 100%;
  height: auto;
}

.trix-content div {
  margin-bottom: 0.75rem;
}

.trix-content div:last-child {
  margin-bottom: 0;
}

.trix-content h1,
.trix-content h2,
.trix-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.trix-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.trix-content p {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.45;
  color: rgba(255,255,255,0.7);
}

.trix-content .attachment--preview {
  text-align: center;
}

.trix-content .attachment--preview img {
  display: inline-block;
}

.accordion-tab-body .trix-content p, .accordion-tab-body .trix-content li
{
  font-size: 0.85rem;
  font-weight: normal;
  color: rgba(255,255,255,0.7);
}
.accordion-tab-body .trix-content p {
  margin-bottom: 0.1rem;
}
.accordion-tab-body .trix-content ul {
  margin-top: 0.4rem;
}

.accordion-tab-body .trix-content h3 {
  margin-top: -0.3rem;
  line-height: 1.3;
  font-size: 1.2rem;
  font-weight: 400;
  color: #94a3b8;
}

h2.type-subtitle {
  color: #94a3b8;
}

/* ── Admin Form Components ──────────────────────────────────────────────────  */

.admin-form-errors {
  background: #450a0a;
  border: 1px solid #7f1d1d;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #fca5a5;
}

.admin-form-errors__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-form-errors ul {
  padding-left: 1.25rem;
}

.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-form-grid.cols-3    { grid-template-columns: repeat(3, 1fr); }
.admin-form-grid.cols-4    { grid-template-columns: repeat(4, 1fr); }
.admin-form-grid.cols-3-1  { grid-template-columns: 3fr 1fr; }

.admin-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.875rem;
}

.admin-input--mono {
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.75rem;
}

.admin-rte-wrap {
  border: 1px solid #334155;
  border-radius: 0.375rem;
  overflow: hidden;
}

.admin-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.admin-image-preview {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-image-preview--icon {
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-image-thumb {
  width: 12rem;
  height: auto;
  border-radius: 0.375rem;
  border: 1px solid #334155;
}

.admin-image-thumb--sm { width: 6rem; }
.admin-image-thumb--md { width: 10rem; }

.admin-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #334155;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-link-danger {
  font-size: 0.875rem;
  color: #dc2626;
  text-decoration: none;
}

.admin-link-muted {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
}

.admin-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
}

.admin-form-footer--pb { padding-bottom: 3rem; }

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-btn {
  padding: 0.5rem 1.5rem;
  background: #475569;
  color: #f1f5f9;
  border: 1px solid #64748b;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.admin-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  background: #1e293b;
  color: inherit;
  cursor: pointer;
}

.admin-btn-sm--primary {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.admin-btn-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-tabs {
  border: 1px solid #334155;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #1e293b;
  margin-bottom: 1.5rem;
}

.admin-tab-bar {
  display: flex;
  border-bottom: 1px solid #334155;
}

.admin-tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tab-btn--active {
  background: #1e293b;
  color: #f1f5f9;
  border-bottom-color: #0f172a;
}

.admin-tab-body {
  padding: 1rem;
}

.admin-json-pre {
  padding: 0.75rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  font-family: monospace;
  font-size: 0.75rem;
  overflow: auto;
  max-height: 20rem;
}

/* ── Content Page Themes ─────────────────────────────────────────────────────
   CSS-Custom-Properties pro Theme — alle Komponenten nutzen var(--...).
   Damit reicht ein Klassen-Wechsel auf dem Wrapper um hell/dunkel umzuschalten.
   ─────────────────────────────────────────────────────────────────────────── */

.page-dark {
  --page-bg:           #0f172a;
  --page-color:        #f1f5f9;
  --page-color-muted:  #94a3b8;
  --card-bg:           #1e293b;
  --card-border:       #334155;
  --tag-bg:            #334155;
  --tag-color:         #e2e8f0;
  --tag-active-bg:     #f1f5f9;
  --tag-active-color:  #0f172a;
  --link-color:        #f1f5f9;
  --link-muted:        #94a3b8;
  --divider:           #334155;
  --prose-color:       #e2e8f0;
  --newsletter-bg:     linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --input-bg:          #0f172a;
  --input-border:      #334155;
  --btn-bg:            #f1f5f9;
  --btn-color:         #0f172a;

  background: var(--page-bg);
  color: var(--page-color);
  min-height: 100vh;
}

.page-light {
  --page-bg:           #f8fafc;
  --page-color:        #0f172a;
  --page-color-muted:  #64748b;
  --card-bg:           white;
  --card-border:       #e2e8f0;
  --tag-bg:            #e2e8f0;
  --tag-color:         #334155;
  --tag-active-bg:     #0f172a;
  --tag-active-color:  white;
  --link-color:        #0f172a;
  --link-muted:        #64748b;
  --divider:           #e2e8f0;
  --prose-color:       #1e293b;
  --newsletter-bg:     linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --input-bg:          white;
  --input-border:      #e2e8f0;
  --btn-bg:            #232e45;
  --btn-color:         white;

  background: var(--page-bg);
  color: var(--page-color);
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────────────────────────  */

.content-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-wrap--narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}


/* ── Typografie ─────────────────────────────────────────────────────────────  */

.page-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--page-color);
  line-height: 1.3;
}

.page-subtitle {
  margin-top: 0.5rem;
  color: var(--page-color-muted);
  font-size: 1.2rem;
  line-height: 1.4;
}

.back-link {
  font-size: 0.875rem;
  color: var(--link-muted);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* ── Tags ───────────────────────────────────────────────────────────────────  */

.tag-pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
}

.tag-pill--small {
  padding: 0.125rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.tag-pill--active {
  background: var(--tag-active-bg);
  color: var(--tag-active-color);
}

/* ── Content Card (Artikel-Liste) ───────────────────────────────────────────  */

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  min-height: 130px;
}

.content-card__image {
  flex-shrink: 0;
  width: 130px;
  min-height: 130px;
  overflow: hidden;
}

.content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card__body {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--page-color);
  line-height: 1.35;
}

.content-card__excerpt {
  margin-top: 0.25rem;
  color: var(--page-color-muted);
  line-height: 1.45;
  font-size: 0.8rem;
}

.content-card__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--page-color-muted);
}

.content-card__read-more {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--link-color);
  text-decoration: none;
}

/* ── Admin Analytics ────────────────────────────────────────────────────────  */

.admin-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.admin-analytics-kpi {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.admin-analytics-kpi__label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-analytics-kpi__value {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-btn--ghost {
  background: transparent;
  color: #94a3b8;
  border-color: #334155;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #334155;
}

/* ── Grid 2×2 Section ───────────────────────────────────────────────────────  */

@media (max-width: 640px) {
  .grid-2x2 { grid-template-columns: 1fr !important; }
}

/* ── Ki-Post Grid (3-column vertical cards) ──────────────────────────────────  */

.ki-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ki-post-grid .content-card {
  background: var(--section-bg-light);
  border-color: transparent;
}

.ki-post-grid .content-card__title {
  color: #0f172a;
}

.ki-post-grid .content-card__excerpt {
  color: #475569;
}

.ki-post-grid .content-card__meta {
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
}

.ki-post-grid .content-card__read-more {
  color: #0f172a;
  font-weight: 600;
}

.ki-post-grid .tag-pill--small {
  background: #304158;
  color: #fff;
}

.ki-post-grid .tag-pill--small.tag-pill--active {
  background: var(--tag-active-bg);
  color: var(--tag-active-color);
}

.ki-tag-filter .tag-pill--small {
  background: #e2e8f0;
  color: #334155;
}

.ki-tag-filter .tag-pill--small.tag-pill--active {
  background: #0f172a;
  color: #fff;
}

@media (max-width: 900px) {
  .ki-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .ki-post-grid { grid-template-columns: 1fr; }
}

.content-card--vertical {
  flex-direction: column;
  min-height: unset;
}

.content-card--vertical .content-card__image {
  width: 100%;
  min-height: unset;
  aspect-ratio: 16 / 9;
}

.content-card--vertical .content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ki-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* ── Blog Paging ─────────────────────────────────────────────────────────────  */

.blog-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-paging__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--page-color);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

a.blog-paging__btn:hover {
  background: var(--card-border);
}

.blog-paging__btn--disabled {
  opacity: 0.3;
  cursor: default;
}

.blog-paging__info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--page-color-muted);
  min-width: 3rem;
  text-align: center;
}

/* ── Blog Post Layout ───────────────────────────────────────────────────────  */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-grid aside {
    order: 2;
  }
  .blog-grid main {
    order: 1;
  }
}

/* ── Sidebar Boxes ──────────────────────────────────────────────────────────  */

.sidebar-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.sidebar-box__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--page-color);
  margin-bottom: 1rem;
}

.sidebar-box__text {
  font-size: 0.875rem;
  color: var(--page-color-muted);
  line-height: 1.6;
}

.sidebar-box__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--link-color);
  text-decoration: none;
}

.sidebar-box .tag-pill {
  font-size: var(--fs-small);
  padding: 0.125rem 0.5rem;
}

/* Recent post list inside sidebar */
.recent-post {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  display: block;
}

.recent-post__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--page-color);
  line-height: 1.4;
}

.recent-post__date {
  font-size: 0.75rem;
  color: var(--page-color-muted);
  margin-top: 0.25rem;
}

/* ── Newsletter Box ─────────────────────────────────────────────────────────  */

.newsletter-box {
  background: var(--newsletter-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.newsletter-box__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--page-color);
  margin-bottom: 0.5rem;
}

.newsletter-box__text {
  font-size: 0.875rem;
  color: var(--page-color-muted);
  margin-bottom: 1rem;
}

.newsletter-box__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-box__input {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--input-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: var(--input-bg);
  color: var(--page-color);
}

.newsletter-box__btn {
  padding: 0.625rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* ── Post Body (Prose) ──────────────────────────────────────────────────────  */

.post-header { margin-bottom: 2rem; }

.post-date {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--page-color-muted);
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--page-color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.post-body {
  color: var(--prose-color);
  line-height: 1.8;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Filter Badge (active tag with remove) ──────────────────────────────────  */

.filter-active {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--tag-active-bg);
  color: var(--tag-active-color);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.filter-active__remove {
  color: inherit;
  text-decoration: none;
  margin-left: 0.25rem;
}

/* ── Features ───────────────────────────────────────────────────────────────  */

.feature-filter-btn {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  background: var(--tag-bg);
  color: var(--tag-color);
}

.feature-filter-btn--active {
  background: var(--tag-active-bg);
  color: var(--tag-active-color);
}

.feature-grid {
  background: var(--card-bg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  gap: 1.5rem;
  justify-content: center;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 0.25rem;
}

.feature-card__link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--section-bg-light);
  cursor: pointer;
}

.feature-card__image {
  flex-shrink: 0;
  overflow: hidden;
}

.feature-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card__body {
  flex-shrink: 0;
  padding: 0rem 0.75rem 0.75rem 0.75rem;
}

.feature-category-badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  background: #1e3a5f;
  color: #7dd3fc;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.feature-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.feature-card__subtitle {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.4;
}

/* Feature Modal (always dark — shown on dark overlay) */
.feature-modal {
  position: relative;
  background: white;
  border-radius: 0.5rem;
  width: min(54rem, 94vw);
  height: min(24rem, 85vh);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.feature-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 10;
}

.feature-modal__arrow:hover {
  background: rgba(255,255,255,0.45);
}

.feature-modal__arrow--prev { left: -4rem; }
.feature-modal__arrow--next { right: -4rem; }

.feature-modal__arrow--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.feature-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.feature-modal__header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-modal__brand-icon {
  height: 1rem;
  width: auto;
}

.feature-modal__header-title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: #475569;
}

.feature-modal__close {
  padding: 0.25rem 0.6rem;
  border: 1px solid #cbd5e1;
  background: transparent;
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  border-radius: 0.25rem;
}

.feature-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.feature-modal__body {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.feature-modal__body .trix-content p {
  color: inherit;
}

.feature-modal__body--no-image {
  grid-template-columns: 1fr;
}

.feature-modal__content {
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.25rem;
}

@media (max-width: 600px) {
  .feature-modal {
    height: auto;
    max-height: 85vh;
  }
  .feature-modal__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
    align-items: start;
  }
  .feature-modal__content {
    overflow-y: visible;
  }
}

.feature-modal__title-wrap {
  margin-bottom: 0.75rem;
}

.feature-modal__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.feature-modal__subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 1rem;
}

.feature-modal__prose {
  font-size: 0.8rem;
  color: #1e293b;
  line-height: 1.7;
}

.feature-modal__prose .trix-content,
.feature-modal__prose .trix-content * {
  font-size: 0.8rem;
}

.feature-modal__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  overflow: hidden;
}

.feature-modal__image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
}

/* ── Skills Detail ──────────────────────────────────────────────────────────  */

.skill-detail-panel .trix-content .attachment--preview img {
  display: inline-block;
  max-width: 400px;
  height: auto;
}

/* ── Skills Wheel ───────────────────────────────────────────────────────────  */

.skills-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: 0rem;
  align-items: center;
  margin-bottom: 0rem;
}

.skills-intro-grid__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
}

.skills-intro-grid__wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -50px;
}

@media (max-width: 767px) {
  .skills-intro-grid {
    grid-template-columns: 1fr;
  }
  .skills-intro-grid__wheel {
    order: -1;
  }
}

.skill-wheel-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.skill-wheel {
  position: relative;
  width: 350px;
  height: 350px;
  max-width: 100%;
}

.skill-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #334155;
  pointer-events: none;
}

.skill-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.skill-center__label {
  color: #f1f5f9;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-icon-pos {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.skill-icon-btn {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.skill-icon-btn:hover .skill-icon-circle {
  border-color: #64748b;
  background: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(100,116,139,0.15);
}
.skill-icon-pos:hover + .skill-label-pos .skill-label {
  color: #475569;
}

.skill-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  overflow: hidden;
}

.skill-icon-fallback {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
}

.skill-label-pos {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1;
}
/* Pre-calculated positions: label_radius_pct=63, total=16, start=-90deg, step=22.5deg */
.skill-label-pos--1  { left: 50%; top: 8%; }
.skill-label-pos--2  { left: 92%; top:  18%; }
.skill-label-pos--3  { left: 94%; top: 28%; }
.skill-label-pos--4  { left: 105%; top: 39%; }
.skill-label-pos--5  { left: 108%; top: 50%; }
.skill-label-pos--6  { left: 122%; top: 61%; }
.skill-label-pos--7  { left: 105%; top:  73%; }
.skill-label-pos--8  { left: 91%; top: 83%; }
.skill-label-pos--9  { left: 50.00%; top: 91%; }
.skill-label-pos--10 { left: 5%; top: 83%; }
.skill-label-pos--11 { left:  0%; top:  73%; }
.skill-label-pos--12 { left: -11%; top:  61%; }
.skill-label-pos--13 { left: -20%; top: 50%; }
.skill-label-pos--14 { left: -11%; top: 39%; }
.skill-label-pos--15 { left:  -5%; top:  28%; }
.skill-label-pos--16 { left: 2%; top:  18%; }

.skills-wheel-intro,
.skills-wheel-intro *  {
  font-size: 0.72rem !important;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  margin-top: 0rem;
}

.skill-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.skill-label:hover {
  color: #475569;
}

/* Skill Detail Panel (light) */
.skill-detail-panel {
  margin-top: 1rem;
}

.skill-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.skill-detail-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.skill-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.skill-detail-subtitle {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.875rem;
}

.skill-detail-close {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
}

.skill-detail-prose {
  color: #334155;
  line-height: 1.8;
}

.skill-detail-prose img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.skill-detail-prose figure {
  margin: 1.5rem 0;
}

.skill-detail-prose figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.skill-detail-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.skill-next-link {
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-next-link:hover {
  color: #0f172a;
}

/* ── Kompendium ─────────────────────────────────────────────────────────────  */

.kompendium-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 4rem);
  max-width: var(--content-max-width, 1280px);
  margin: 0 auto;
  padding: 0 var(--section-px);
  gap: 2.5rem;
  align-items: start;
}

.kompendium-sidebar {
  position: sticky;
  top: 5rem;
  padding: 1.5rem 0;
}

.kompendium-sidebar-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin: 0 0 1rem;
}

.kompendium-sidebar-title a {
  color: inherit;
  text-decoration: none;
}

.kompendium-sidebar-title a:hover {
  color: #0f172a;
}

.kompendium-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kompendium-tree-list .kompendium-tree-list {
  padding-left: 0;
  border-left: 1px dotted #94a3b8;
  display: none;
}

.kompendium-tree-list > .kompendium-tree-item > .kompendium-tree-list {
  margin-left: 0.5rem;
}

.kompendium-tree-list .kompendium-tree-list .kompendium-tree-list {
  margin-left: 0.95rem;
}

.kompendium-tree-item.is-open > .kompendium-tree-list {
  display: block;
}

.kompendium-tree-row {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem 0;
}

.kompendium-tree-list .kompendium-tree-list .kompendium-tree-row::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 0.35rem;
  height: 0;
  border-top: 1px dotted #94a3b8;
}

.kompendium-tree-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}


.kompendium-tree-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  font-size: 0.55rem;
  line-height: 0;
  color: #475569;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  user-select: none;
  transform: translateY(-1px);
}

.kompendium-tree-toggle:hover .kompendium-tree-icon {
  border-color: #475569;
  color: #1e293b;
}

.kompendium-tree-link {
  flex: 1;
  font-size: 0.72rem;
  color: #475569;
  text-decoration: none;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.kompendium-tree-link:hover { color: #0f172a; }
.kompendium-tree-link.is-active { color: #0f172a; font-weight: 600; }

.kompendium-tree-count {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: #94a3b8;
}

.kompendium-tree-link.is-draft {
  color: #cbd5e1;
  cursor: default;
  font-style: italic;
}

.kompendium-tree-item.is-draft .kompendium-tree-icon {
  border-color: #cbd5e1;
  color: #cbd5e1;
}

.kompendium-content {
  display: block;
  padding: 5rem 0;
  min-height: 60vh;
}

.kompendium-welcome {
  padding-top: 1rem;
}

.kompendium-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.kompendium-breadcrumb-link {
  color: #64748b;
  text-decoration: none;
}

.kompendium-breadcrumb-link:hover { color: #94a3b8; }

.kompendium-breadcrumb-sep {
  color: #334155;
}

.kompendium-body {
  margin-top: 1.5rem;
  color: #cbd5e1;
}

.kompendium-children {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kompendium-child-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s;
}

.kompendium-child-card:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.kompendium-child-title { font-size: 0.9rem; }
.kompendium-child-arrow { color: #475569; font-size: 1rem; }

.kompendium-entry-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 1rem;
}

.kompendium-entry-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  max-width: 45%;
  transition: color 0.15s;
}

.kompendium-entry-nav-btn:hover { color: #f1f5f9; }

.kompendium-entry-nav-next {
  margin-left: auto;
  text-align: right;
}

.kompendium-entry-nav-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: #475569;
}

.kompendium-entry-nav-btn:hover .kompendium-entry-nav-arrow { color: #94a3b8; }

.kompendium-entry-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .kompendium-layout {
    grid-template-columns: 1fr;
  }
  .kompendium-sidebar {
    position: static;
  }
}
