:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --border: #d9e2ef;
  --text: #142033;
  --muted: #536179;
  --primary: #2485d0;
  --primary-strong: #0f6bb5;
  --accent: #24a65a;
  --warning: #f4b740;
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.08);
  --radius: 18px;
  --sidebar-width: 290px;
  --content-width: 980px;
  --font-ui: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Trebuchet MS", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(36, 133, 208, 0.10), transparent 26%),
    radial-gradient(circle at bottom left, rgba(36, 166, 90, 0.08), transparent 24%),
    var(--bg);
}
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.page { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  padding: 28px 22px 30px; background: linear-gradient(180deg, #edf3fb 0%, #e7eef8 100%);
  border-right: 1px solid var(--border);
}
.brand { display: block; margin-bottom: 28px; }
.brand img { width: 100%; height: auto; display: block; }
.brand-note { margin: 10px 2px 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.nav-group { margin-top: 22px; }
.nav-label { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6f7b90; font-weight: 700; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li + li { margin-top: 4px; }
.nav-link { display: block; padding: 9px 12px; border-radius: 12px; color: #23324a; font-weight: 600; }
.nav-link.active, .nav-link:hover { text-decoration: none; background: rgba(36, 133, 208, 0.12); color: var(--primary-strong); }
.sidebar-card { margin-top: 26px; padding: 16px; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(217, 226, 239, 0.9); border-radius: 16px; box-shadow: 0 12px 30px rgba(20, 32, 51, 0.05); }
.sidebar-card h3 { margin: 0 0 8px; font-size: 1rem; font-family: var(--font-head); }
.sidebar-card p, .sidebar-card li { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.94rem; }
.sidebar-card ul { margin: 10px 0 0; padding-left: 18px; }
.content-wrap { padding: 38px 42px 60px; }
.content { max-width: var(--content-width); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.breadcrumb { font-size: 0.94rem; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(36, 133, 208, 0.10); color: var(--primary-strong); font-size: 0.9rem; font-weight: 700; }
.hero { position: relative; overflow: hidden; padding: 34px; border-radius: 26px; background: linear-gradient(135deg, #ffffff 0%, #eef4fb 52%, #e4edf9 100%); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(36, 133, 208, 0.16), transparent 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 26px; align-items: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; font-family: var(--font-head); }
.hero p { margin: 0; font-size: 1.05rem; line-height: 1.72; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button, .button-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; }
.button { background: var(--primary); color: #fff; }
.button:hover { text-decoration: none; background: var(--primary-strong); }
.button-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.button-secondary:hover { text-decoration: none; border-color: var(--primary); color: var(--primary-strong); }
.hero-media img, .figure img, .logo-pair img { width: 100%; height: auto; display: block; }
.hero-media { background: rgba(255,255,255,0.8); border: 1px solid rgba(217, 226, 239, 0.9); border-radius: 18px; padding: 14px; }
.section { margin-top: 34px; }
.section h2 { margin: 0 0 12px; font-size: 1.6rem; font-family: var(--font-head); }
.section h3 { margin: 0 0 10px; font-size: 1.18rem; font-family: var(--font-head); }
.section-intro { margin: 0 0 20px; max-width: 75ch; color: var(--muted); line-height: 1.7; }
.card-grid, .tile-grid, .step-grid, .figure-grid, .logo-grid, .method-grid { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid, .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure-grid, .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .tile, .step, .figure, .callout, .note, .table-wrap, .logo-pair { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card, .tile, .step, .logo-pair { padding: 20px; }
.card p, .tile p, .step p, .callout p, .note p, .figure figcaption, .logo-pair p { margin: 0; color: var(--muted); line-height: 1.65; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.figure { padding: 14px; }
.figure figcaption { padding: 12px 4px 2px; font-size: 0.94rem; }
.callout, .note, .table-wrap { padding: 22px; }
.callout.info { border-left: 6px solid var(--primary); }
.callout.success { border-left: 6px solid var(--accent); }
.callout.warn { border-left: 6px solid var(--warning); }
ul, ol { padding-left: 22px; }
li { margin: 8px 0; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap th { color: #20314d; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
code, .code-pill { font-family: Consolas, "Courier New", monospace; }
.code-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(36, 133, 208, 0.10); color: var(--primary-strong); font-size: 0.88rem; }
.footer { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.94rem; }
@media (max-width: 1180px) { .page { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .content-wrap { padding: 26px 18px 50px; } }
@media (max-width: 980px) { .hero-grid, .card-grid, .tile-grid, .step-grid, .figure-grid, .logo-grid, .method-grid { grid-template-columns: 1fr; } .topbar { flex-direction: column; align-items: flex-start; } }

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 15px 0;
  font-size: 1.1rem;
}
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --border: #d9e2ef;
  --text: #142033;
  --muted: #536179;
  --primary: #2485d0;
  --primary-strong: #0f6bb5;
  --accent: #24a65a;
  --warning: #f4b740;
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.08);
  --radius: 18px;
  --sidebar-width: 290px;
  --content-width: 980px;
  --font-ui: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Trebuchet MS", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(36, 133, 208, 0.10), transparent 26%),
    radial-gradient(circle at bottom left, rgba(36, 166, 90, 0.08), transparent 24%),
    var(--bg);
}
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.page { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  padding: 28px 22px 30px; background: linear-gradient(180deg, #edf3fb 0%, #e7eef8 100%);
  border-right: 1px solid var(--border);
}
.brand { display: block; margin-bottom: 28px; }
.brand img { width: 100%; height: auto; display: block; }
.brand-note { margin: 10px 2px 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.nav-group { margin-top: 22px; }
.nav-label { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6f7b90; font-weight: 700; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li + li { margin-top: 4px; }
.nav-link { display: block; padding: 9px 12px; border-radius: 12px; color: #23324a; font-weight: 600; }
.nav-link.active, .nav-link:hover { text-decoration: none; background: rgba(36, 133, 208, 0.12); color: var(--primary-strong); }
.sidebar-card { margin-top: 26px; padding: 16px; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(217, 226, 239, 0.9); border-radius: 16px; box-shadow: 0 12px 30px rgba(20, 32, 51, 0.05); }
.sidebar-card h3 { margin: 0 0 8px; font-size: 1rem; font-family: var(--font-head); }
.sidebar-card p, .sidebar-card li { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.94rem; }
.sidebar-card ul { margin: 10px 0 0; padding-left: 18px; }
.content-wrap { padding: 38px 42px 60px; }
.content { max-width: var(--content-width); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.breadcrumb { font-size: 0.94rem; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(36, 133, 208, 0.10); color: var(--primary-strong); font-size: 0.9rem; font-weight: 700; }
a.badge { transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease; }
a.badge:hover { transform: scale(1.03); filter: brightness(0.92); text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.hero { position: relative; overflow: hidden; padding: 34px; border-radius: 26px; background: linear-gradient(135deg, #ffffff 0%, #eef4fb 52%, #e4edf9 100%); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(36, 133, 208, 0.16), transparent 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 26px; align-items: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; font-family: var(--font-head); }
.hero p { margin: 0; font-size: 1.05rem; line-height: 1.72; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button, .button-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; }
.button { background: var(--primary); color: #fff; }
.button:hover { text-decoration: none; background: var(--primary-strong); }
.button-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.button-secondary:hover { text-decoration: none; border-color: var(--primary); color: var(--primary-strong); }
.hero-media img, .figure img, .logo-pair img { width: 100%; height: auto; display: block; }
.hero-media { background: rgba(255,255,255,0.8); border: 1px solid rgba(217, 226, 239, 0.9); border-radius: 18px; padding: 14px; }
.section { margin-top: 34px; }
.section h2 { margin: 0 0 12px; font-size: 1.6rem; font-family: var(--font-head); }
.section h3 { margin: 0 0 10px; font-size: 1.18rem; font-family: var(--font-head); }
.section-intro { margin: 0 0 20px; max-width: 75ch; color: var(--muted); line-height: 1.7; }
.card-grid, .tile-grid, .step-grid, .figure-grid, .logo-grid, .method-grid { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid, .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure-grid, .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .tile, .step, .figure, .callout, .note, .table-wrap, .logo-pair { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card, .tile, .step, .logo-pair { padding: 20px; }
.card p, .tile p, .step p, .callout p, .note p, .figure figcaption, .logo-pair p { margin: 0; color: var(--muted); line-height: 1.65; }
.kicker { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.figure { padding: 14px; }
.figure figcaption { padding: 12px 4px 2px; font-size: 0.94rem; }
.callout, .note, .table-wrap { padding: 22px; }
.callout.info { border-left: 6px solid var(--primary); }
.callout.success { border-left: 6px solid var(--accent); }
.callout.warn { border-left: 6px solid var(--warning); }
ul, ol { padding-left: 22px; }
li { margin: 8px 0; line-height: 1.6; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap th { color: #20314d; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
code, .code-pill { font-family: Consolas, "Courier New", monospace; }
.code-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(36, 133, 208, 0.10); color: var(--primary-strong); font-size: 0.88rem; }
.footer { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.94rem; }
@media (max-width: 1180px) { .page { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .content-wrap { padding: 26px 18px 50px; } }
@media (max-width: 980px) { .hero-grid, .card-grid, .tile-grid, .step-grid, .figure-grid, .logo-grid, .method-grid { grid-template-columns: 1fr; } .topbar { flex-direction: column; align-items: flex-start; } }

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 15px 0;
  font-size: 1.1rem;
}

.expandable-image {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expandable-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Video Thumbnail styles */
.video-thumbnail-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.video-thumbnail-link:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.video-thumbnail-link img {
  display: block;
  width: 100%;
  height: auto;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.video-thumbnail-link:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.video-play-icon {
  width: 68px;
  height: 48px;
  background-color: rgba(33, 33, 33, 0.8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.video-thumbnail-link:hover .video-play-icon {
  background-color: #ff0000;
}

.video-play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
  margin-left: 4px;
}

/* Bilingual Language Toggles */
body[data-active-lang="de"] [data-lang="en"] { display: none !important; }
body[data-active-lang="en"] [data-lang="de"] { display: none !important; }
