:root{
  --bg: #f3f6f4;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  --primary: #5EA9F6;
  --primary-dark: #1874cd;

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --maxw: 1320px;

  /* Theme-Flächen */
  --surface: rgba(255,255,255,0.75);
  --badge-bg: rgba(255,255,255,0.7);
  --example-bg: #ffffff;
  --header-bg: rgba(243,246,244,0.75);
  --footer-bg: rgba(255,255,255,0.6);
  --field-bg: rgba(255,255,255,0.90);

  --ease-out: cubic-bezier(.22,.9,.22,1);
  --fly: 26px;
  --dur: .85s;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

/* ✅ Wichtig: html hat immer die Basisfarbe */
html{
  background: var(--bg);
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* ✅ body selbst bekommt keinen Verlauf mehr (verhindert harte Kanten) */
  background: transparent;

  /* Damit der Background-Layer sauber "hinter" allem sitzt */
  position: relative;
  isolation: isolate;
}

/* ✅ Fix: Der Verlauf liegt als feste Layer über die komplette Viewport-Fläche (ohne Kante) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1400px 950px at 18% 12%,
      rgba(231,242,239,0.92) 0%,
      rgba(231,242,239,0.55) 45%,
      rgba(231,242,239,0.18) 78%,
      rgba(231,242,239,0.00) 100%),
    radial-gradient(1250px 900px at 92% 18%,
      rgba(233,239,246,0.92) 0%,
      rgba(233,239,246,0.55) 48%,
      rgba(233,239,246,0.18) 80%,
      rgba(233,239,246,0.00) 100%),
    radial-gradient(1100px 750px at 55% 0%,
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.10) 70%,
      rgba(255,255,255,0.00) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,0.20) 0%,
      rgba(255,255,255,0.00) 65%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

main{ flex: 1; }

/* ================= HEADER / NAV ================= */

.header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.nav-left{
  display:flex;
  align-items:center;
  gap: 10px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.nav-logo{
  height: 70px;
  width: auto;
  display: block;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;

  /* ✅ Desktop: kein Balken */
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.nav-links a{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}

.nav-links a:hover{
  background: rgba(24,116,205,0.10);
  color: var(--text);
}

.nav-links a.active{
  background: rgba(24,116,205,0.14);
  color: var(--text);
}

/* ================= THEME TOGGLE BUTTON (FINAL) ================= */

.theme-toggle{

  border: 1px solid var(--border);

  background: rgba(255,255,255,0.75);

  border-radius: 999px;

  padding: 9px 14px;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 13px;

  letter-spacing: 0.2px;

  color: var(--text); /* ⭐ FIX: nutzt Theme Textfarbe */

  transition:
    transform .18s ease,
    background .25s ease,
    box-shadow .25s ease;

}


/* Hover */

.theme-toggle:hover{

  background: rgba(255,255,255,0.95);

  transform: translateY(-1px);

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);

}


/* Darkmode Version */

html.theme-dark .theme-toggle{

  background: rgba(255,255,255,0.06);

  color: var(--text); /* ⭐ wichtig */

  border-color: var(--border);

}


/* Mobile */

@media (max-width: 900px){

  .theme-toggle{

    padding: 8px 12px;
    font-size: 12px;

  }

}

/* ================= HAMBURGER (ANIMIERT) ================= */

.nav-toggle{
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: transform .18s var(--ease-out), background .2s ease;
}

.nav-toggle:hover{
  background: rgba(255,255,255,0.95);
}

.nav-toggle:active{
  transform: translateY(1px) scale(.98);
}

.nav-toggle-lines{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.nav-toggle-lines::before{ top: -5px; }
.nav-toggle-lines::after{ top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines{
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before{
  top: 0;
  transform: rotate(90deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after{
  top: 0;
  opacity: 0;
}

/* ================= MOBILE NAV (aufklappen) ================= */

@media (max-width: 900px){
  .nav{ flex-wrap: wrap; }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links{
    display: block;
    width: 100%;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin-top: 10px;
    padding: 0 10px;

    border-radius: 16px;
    border: 0;
    background: transparent;
    box-shadow: none;

    transition: max-height .25s ease, opacity .2s ease, transform .2s ease, padding .25s ease;
  }

  .nav-links.open{
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
    padding: 10px;
    overflow-y: auto;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 18px 45px rgba(15,23,42,0.10);
  }

  .nav-links a{
    display: block;
    padding: 12px 12px;
    border-radius: 14px;
    transition: background .25s ease, transform .18s var(--ease-out);
  }

  .nav-links a:hover{
    background: rgba(24,116,205,0.08);
    transform: translateX(2px);
  }

  .nav-links a.active{
    background: rgba(24,116,205,0.14);
  }

  /* Mini-Stagger beim Öffnen */
  .nav-links.open a{
    opacity: 0;
    transform: translateY(-6px);
    animation: navItemIn .45s var(--ease-out) both;
  }

  .nav-links.open a:nth-child(1){ animation-delay: .02s; }
  .nav-links.open a:nth-child(2){ animation-delay: .06s; }
  .nav-links.open a:nth-child(3){ animation-delay: .10s; }
  .nav-links.open a:nth-child(4){ animation-delay: .14s; }
  .nav-links.open a:nth-child(5){ animation-delay: .18s; }

  @keyframes navItemIn{
    to{ opacity: 1; transform: translateY(0); }
  }
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .35s var(--ease-out), background .2s ease, border-color .2s ease;
}

.btn:active{ transform: translateY(1px); }
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(24,116,205,0.18);
}
.btn-primary:hover{
  background: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(24,116,205,0.28);
}

.btn-ghost{
  background: rgba(15,23,42,0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(15,23,42,0.06); }

/* ================= SECTIONS / TYPO ================= */

.section{ padding: 56px 0; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad{ padding: 22px; }

.kicker{
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.h1{
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 10px 0 12px;
}

.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.slogan{
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
  margin-bottom: 12px;
  opacity: 0.9;
}

/* ================= HERO ================= */

.hero{
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.hero-content{
  width: 100%;
  max-width: 1100px;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.hero-media{
  width: 100%;
  max-width: 1100px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= FEATURES ================= */

.features{
  width: 100%;
  max-width: 1100px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ================= REFERENZEN HINWEIS ================= */

.reference-hint{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24,116,205,0.22);
  background: linear-gradient(135deg, rgba(94,169,246,0.22), rgba(24,116,205,0.14));
  box-shadow: 0 18px 45px rgba(24,116,205,0.10);
}

.reference-hint::before{
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(circle at 30% 20%, rgba(94,169,246,0.35), transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(24,116,205,0.25), transparent 55%);
  pointer-events: none;
}

.reference-hint-content{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.reference-hint-action{ flex-shrink: 0; }

@media (max-width: 900px){
  .reference-hint-content{
    flex-direction: column;
    text-align: center;
  }
}

/* ================= STEPS ================= */

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.step-top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}

.step-badge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: white;
  background: var(--primary-dark);
}

.step h3{ margin: 0; font-size: 16px; }
.step p{ margin: 0; color: var(--muted); font-size: 14px; }

/* ================= FORMS ================= */

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field{ display:flex; flex-direction: column; gap: 8px; }

label{
  font-weight: 700;
  font-size: 13px;
}

input, textarea, select{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-size: 14px;
  background: var(--field-bg);
  color: var(--text);
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(24,116,205,0.55);
  box-shadow: 0 0 0 4px rgba(24,116,205,0.12);
}

textarea{ min-height: 120px; resize: vertical; }
.full{ grid-column: 1 / -1; }

.form-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.note{
  color: var(--muted);
  font-size: 13px;
}

/* ================= ABOUT ================= */

.slider{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.slider-controls{ display: none; }

.profile{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.profile .photo{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  max-height: 420px;
}

.profile .photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= BEISPIELE ================= */

.examples-hero{
  border: 1px solid rgba(24,116,205,0.18);
  background: linear-gradient(135deg, rgba(94,169,246,0.14), rgba(24,116,205,0.08));
}

.examples-hero-top{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.examples-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.example-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.example-card{
  background: var(--example-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.example-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15,23,42,0.12);
}

.example-head{
  padding: 16px 16px 12px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.example-head h3{
  margin: 0;
  font-size: 16px;
}

.example-head .note{ margin: 6px 0 0; }

.example-tag{

  display:inline-flex;
  align-items:center;

  height: 34px;          /* größer */
  padding: 0 14px;       /* mehr Platz */

  border-radius: 999px;

  border: 1px solid rgba(24,116,205,0.22);

  background: rgba(94,169,246,0.14);

  color: var(--text);

  font-weight: 800;

  font-size: 14px;       /* ← größer */

  letter-spacing: 0.3px; /* Premium Look */

  white-space: nowrap;

}


.example-gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.example-shot{
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.03);
}

.example-shot img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .65s var(--ease-out);
}

.example-card:hover .example-shot img{
  transform: scale(1.03);
}

.example-shot figcaption{
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255,255,255,0.9);
  border-top: 1px solid var(--border);
}

.example-actions{
  padding: 0 16px 16px;
  display:flex;
  justify-content: flex-end;
}

.examples-cta{
  margin-top: 18px;
  border: 1px solid rgba(24,116,205,0.16);
  background: linear-gradient(135deg, rgba(24,116,205,0.10), rgba(94,169,246,0.06));
}

@media (max-width: 900px){
  .example-grid{ grid-template-columns: 1fr; }
  .example-gallery{ grid-template-columns: 1fr; }
  .example-shot img{ height: 240px; }
}

/* ================= FOOTER ================= */

.footer{
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
}

.footer-inner{
  padding: 32px 0;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.footer h4{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.footer a{
  color: var(--muted);
  display:block;
  padding: 6px 0;
}

.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ================= UTILITIES ================= */

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--badge-bg);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

/* ================= RESPONSIVE (GLOBAL) ================= */

@media (max-width: 900px){
  .features{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .slider{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
}

/* ================= LIGHTBOX ================= */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.lightbox[hidden]{ display: none !important; }

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s ease;
}

.lightbox-panel{
  position: relative;
  z-index: 1;
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 40px 100px rgba(0,0,0,0.45);
  background: transparent;
}

.lightbox-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.92);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.9,.32,1), opacity .35s ease;
  border-radius: 18px;
}

.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}

.lightbox-close:hover{
  background: rgba(15,23,42,0.9);
  transform: scale(1.08);
}

.lightbox-trigger{
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.lightbox.show .lightbox-img{
  transform: scale(1);
  opacity: 1;
}
.lightbox.show .lightbox-backdrop{
  opacity: 1;
}

/* ================= FLY-IN / REVEAL ================= */

@keyframes flyUp{
  from { opacity: 0; transform: translateY(var(--fly)) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flyLeft{
  from { opacity: 0; transform: translateX(calc(var(--fly) * -1)) scale(.99); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes flyRight{
  from { opacity: 0; transform: translateX(var(--fly)) scale(.99); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes softFade{
  from { opacity: 0; }
  to   { opacity: 1; }
}

main{ animation: softFade .6s var(--ease-out) both; }

.hero-content{ animation: flyLeft var(--dur) var(--ease-out) both; animation-delay: .05s; }
.hero-media{ animation: flyRight var(--dur) var(--ease-out) both; animation-delay: .12s; }

.reference-hint,
.examples-hero,
.examples-cta,
.card{
  animation: flyUp var(--dur) var(--ease-out) both;
  animation-delay: .08s;
}

.feature,
.step,
.profile,
.example-card{
  animation: flyUp var(--dur) var(--ease-out) both;
  will-change: transform, opacity;
}

.feature:nth-child(1),
.step:nth-child(1),
.profile:nth-child(1),
.example-card:nth-child(1){ animation-delay: .14s; }

.feature:nth-child(2),
.step:nth-child(2),
.profile:nth-child(2),
.example-card:nth-child(2){ animation-delay: .22s; }

.feature:nth-child(3),
.step:nth-child(3){ animation-delay: .30s; }

/* Desktop-Bildhover */
@media (hover: hover){
  .hero-media img{ transition: transform .65s var(--ease-out); }
  .hero-media:hover img{ transform: scale(1.04); }
  .example-shot:hover img{ transform: scale(1.05); }
}

/* Desktop underline-slide (nur Desktop) */
.nav-links a::after{
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(24,116,205,0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .85s cubic-bezier(.22,.9,.22,1); /* langsamer */
}
.nav-links a:hover::after{
  transform: scaleX(1);
}

@media (max-width: 900px){
  .nav-links a::after{ display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ================= PREMIUM PAGE TRANSITION ================= */
body{
  opacity: 1;
  transition: opacity .35s ease;
}
body.is-leaving{
  opacity: 0;
}

/* ================= MCEge Signature ================= */

.mcege-signature{
  position: fixed;
  bottom: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  z-index: 9999;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  user-select: none;
  transition: all .25s ease;
}

.mcege-signature img{
  height: 25px;
  width: auto;
  display: block;
}

.mcege-signature:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
}

/* ================= DARK MODE (GLOBAL, KANTENFREI) ================= */

html.theme-dark{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --text: #e6edf7;
  --muted: rgba(230,237,247,0.72);

  --border: rgba(230,237,247,0.14);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);

  --surface: rgba(255,255,255,0.05);
  --badge-bg: rgba(255,255,255,0.06);
  --example-bg: rgba(255,255,255,0.04);
  --header-bg: rgba(11,18,32,0.65);
  --footer-bg: rgba(255,255,255,0.03);
  --field-bg: rgba(255,255,255,0.06);
}

/* ✅ Dark Background ebenfalls über die feste Layer */
html.theme-dark body::before{
  background:
    radial-gradient(1250px 900px at 18% 12%,
      rgba(24,116,205,0.34) 0%,
      rgba(24,116,205,0.16) 55%,
      rgba(24,116,205,0.00) 100%),
    radial-gradient(1150px 850px at 92% 18%,
      rgba(94,169,246,0.22) 0%,
      rgba(94,169,246,0.10) 58%,
      rgba(94,169,246,0.00) 100%),
    radial-gradient(1100px 750px at 55% 0%,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.00) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.00) 70%),
    var(--bg);
}

/* Dark: Inputs */
html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select{
  background: var(--field-bg);
  color: var(--text);
  border-color: var(--border);
}

/* Dark: Ghost Button */
html.theme-dark .btn-ghost{
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text);
}

/* Dark: Mobile Sheet */
@media (max-width: 900px){
  html.theme-dark .nav-links.open{
    background: rgba(11,18,32,0.92);
    border: 1px solid rgba(230,237,247,0.14);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  }
}

/* Dark: Hamburger + Theme Toggle dunkler */
html.theme-dark .theme-toggle,
html.theme-dark .nav-toggle{
  background: rgba(15,23,42,0.55);
  border-color: rgba(230,237,247,0.14);
}

html.theme-dark .nav-toggle:hover,
html.theme-dark .theme-toggle:hover{
  background: rgba(15,23,42,0.70);
}

/* Dark: Beispiel caption */
html.theme-dark .example-shot figcaption{
  background: rgba(11,18,32,0.75);
  color: rgba(230,237,247,0.78);
}

/* Dark: Beispiel tag ruhiger */
html.theme-dark .example-tag{
  background: rgba(94,169,246,0.12);
  border-color: rgba(94,169,246,0.22);
  color: var(--text);
}

/* Dark: Signature passend */
html.theme-dark .mcege-signature{
  background: rgba(255,255,255,0.06);
  border-color: rgba(230,237,247,0.14);
  color: var(--text);
}

/* ================= MCEge Signature – Darkmode Fix ================= */

html.theme-dark .mcege-signature{

  background: rgba(15,23,42,0.92);   /* dunkle Glasfläche */

  border: 1px solid rgba(230,237,247,0.14);

  color: rgba(230,237,247,0.85);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.45),
    0 2px 6px rgba(0,0,0,0.25);

}


/* Hover im Darkmode */

html.theme-dark .mcege-signature:hover{

  background: rgba(15,23,42,1);

}
