/*
  GleiNei UI – Premium, modern, responsive
  Palette (fixed): #ffff00 (accent) | #000000 (base) | #ffffff (surface) | grays

  Ziel: "Modernes Website"-Feeling durch
  - klare Typografie
  - große, weiche Radien
  - Glas/Blur-Surfaces
  - subtilen Ambient-Gradients
  - konsequente Komponenten (Cards, Buttons, Forms, Tables)
*/

:root{
  /* Brand */
  --gn-accent:#ffff00;
  --gn-black:#000000;
  --gn-white:#ffffff;

  /* Typography */
  --gn-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Light theme tokens */
  --gn-bg:#f6f7f9;
  --gn-surface:rgba(255,255,255,.86);
  --gn-surface-strong:rgba(255,255,255,.94);
  --gn-text:#0b0d10;
  --gn-muted:rgba(11,13,16,.62);
  --gn-border:rgba(0,0,0,.10);
  --gn-border-strong:rgba(0,0,0,.18);

  --gn-radius-xl:22px;
  --gn-radius-lg:18px;
  --gn-radius-md:14px;
  --gn-radius-sm:10px;

  --gn-shadow-sm:0 10px 20px rgba(15,23,42,.08), 0 1px 0 rgba(15,23,42,.05);
  --gn-shadow-md:0 18px 50px rgba(15,23,42,.12), 0 1px 0 rgba(15,23,42,.06);
  --gn-shadow-lg:0 28px 90px rgba(15,23,42,.16), 0 1px 0 rgba(15,23,42,.06);

  --gn-ring:0 0 0 4px rgba(255,255,0,.32);

  /* Unified content width across the whole app */
  --gn-maxw:1100px;
}

@media (prefers-color-scheme: dark){
  :root{
    /* Dark theme tokens */
    --gn-bg:#07080b;
    --gn-surface:rgba(18,19,24,.70);
    --gn-surface-strong:rgba(18,19,24,.84);
    --gn-text:#f6f7f9;
    --gn-muted:rgba(246,247,249,.64);
    --gn-border:rgba(255,255,255,.10);
    --gn-border-strong:rgba(255,255,255,.18);

    --gn-shadow-sm:0 10px 22px rgba(0,0,0,.40), 0 1px 0 rgba(255,255,255,.04);
    --gn-shadow-md:0 18px 60px rgba(0,0,0,.48), 0 1px 0 rgba(255,255,255,.05);
    --gn-shadow-lg:0 30px 100px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06);

    --gn-ring:0 0 0 4px rgba(255,255,0,.24);
  }
}

/* ---------------------------
   Base / reset
--------------------------- */
*,
*::before,
*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
  height:100%;
}

body{
  margin:0;
  font-family:var(--gn-font, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  color:var(--gn-text);
  background:#eee !important;
  /*background:
    radial-gradient(1100px 720px at 12% -10%, rgba(255,255,0,.20), rgba(255,255,0,0) 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(0,0,0,.10), rgba(0,0,0,0) 55%),
    radial-gradient(800px 520px at 0% 110%, rgba(0,0,0,.06), rgba(0,0,0,0) 60%),
    var(--gn-bg);*/
}

@media (prefers-color-scheme: dark){
  body{
    background:
      radial-gradient(1000px 660px at 18% -12%, rgba(255,255,0,.14), rgba(255,255,0,0) 60%),
      radial-gradient(900px 560px at 100% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 55%),
      radial-gradient(900px 620px at 0% 110%, rgba(255,255,255,.04), rgba(255,255,255,0) 60%),
      var(--gn-bg);
  }
}

::selection{ background:rgba(255,255,0,.62); color:#000; }

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible{
  outline:none;
  box-shadow:var(--gn-ring);
}

/* ---------------------------
   Typography (safe overrides)
--------------------------- */
h1,h2,h3{
  letter-spacing:-0.02em;
}

.muted,
.hint,
.subtitle,
.sub{ color:var(--gn-muted); }

.page-title{
  margin:0 0 10px;
  font-size:22px;
  font-weight:900;
}

.subtitle{
  margin:0 0 16px;
  font-size:13px;
  line-height:1.45;
}

.wrap{
  /*
    Global content container.
    Some pages historically set their own .wrap max-width in inline styles.
    We force a single width so the UI feels consistent across pages.
  */
  max-width:var(--gn-maxw) !important;
  margin:22px auto 48px;
  padding:0 16px 32px;
}

@media (max-width: 640px){
  .wrap{ padding:0 12px 26px; }
  .page-title{ font-size:20px; }
}

/* ---------------------------
   Surfaces / cards
--------------------------- */
.card,
.stat-card,
.kpi .box,
.box,
.login-box{
  background:var(--gn-surface);
  border:1px solid var(--gn-border);
  border-radius:var(--gn-radius-xl);
  box-shadow:var(--gn-shadow-sm);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .card,
  .stat-card,
  .kpi .box,
  .box,
  .login-box{
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.card{ padding:18px 18px; }

/* Clickable cards get a subtle lift */
a.card,
.card a.card{
  text-decoration:none;
  transition:transform .14s ease, box-shadow .20s ease, border-color .20s ease;
}

a.card:hover{
  transform:translateY(-1px);
  box-shadow:var(--gn-shadow-md);
  border-color:var(--gn-border-strong);
}

/* ---------------------------
   Dashboard blocks
--------------------------- */
.stats-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:18px;
}

@media (min-width: 640px){
  .stats-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px){
  .stats-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}

/* allow grid items to shrink and prevent forced 3+1 layouts */
.stats-grid > *{ min-width:0; }

.stat-card{ padding:14px 16px; min-width:0; }
.stat-title{ font-size:12px; letter-spacing:.02em; color:var(--gn-muted); margin:0 0 6px; font-weight:800; }
.stat-value{ font-size:22px; font-weight:950; margin:0 0 4px; }
.stat-sub{ font-size:12px; color:var(--gn-muted); line-height:1.35; overflow-wrap:anywhere; word-break:break-word; }

/* ---------------------------
   Lists / rows (public buy page etc.)
--------------------------- */
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
}

@media (prefers-color-scheme: dark){
  .row{ border-bottom:1px solid rgba(255,255,255,.08); }
}
/* allow flex row children to shrink (prevents overflow on long IDs) */
.row > *{ min-width:0; }
.row .v,
.row .mono,
.row code,
.row pre{ overflow-wrap:anywhere; word-break:break-word; }

.row:last-child{ border-bottom:none; }
.price{ font-weight:950; font-size:20px; letter-spacing:-0.01em; }

.top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:16px;
  object-fit:contain;
  background:var(--gn-surface-strong);
  border:1px solid var(--gn-border);
  box-shadow:0 10px 18px rgba(15,23,42,.06);
}

/* ---------------------------
   Form controls
--------------------------- */
input,
select,
textarea{
  appearance:none;
  -webkit-appearance:none;
  background:var(--gn-surface-strong);
  color:var(--gn-text);
  border:1px solid var(--gn-border);
  border-radius:var(--gn-radius-md);
  padding:12px 12px;
  font-size:14px;
  line-height:1.2;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}

input::placeholder,
textarea::placeholder{ color:rgba(91,101,117,.75); }

@media (prefers-color-scheme: dark){
  input::placeholder,
  textarea::placeholder{ color:rgba(246,247,249,.45); }
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:rgba(0,0,0,.75);
  box-shadow:var(--gn-ring);
}

@media (prefers-color-scheme: dark){
  input:focus,
  select:focus,
  textarea:focus{ border-color:rgba(255,255,255,.55); }
}

select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.75) 50%),
    linear-gradient(135deg, rgba(0,0,0,.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
  padding-right:36px;
}

@media (prefers-color-scheme: dark){
  select{
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(255,255,255,.80) 50%),
      linear-gradient(135deg, rgba(255,255,255,.80) 50%, transparent 50%);
  }
}

/* ---------------------------
   Buttons / button-like links
--------------------------- */
.btn,
.btn2,
.btn-primary,
.btn-secondary,
.link-btn,
.btn-export,
a.btn,
a.btn2,
button.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:var(--gn-radius-md);
  font-weight:950;
  letter-spacing:.01em;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:transform .06s ease, box-shadow .20s ease, background .20s ease, border-color .20s ease, color .20s ease, opacity .20s ease;
}

.btn:active,
.btn2:active,
.btn-primary:active,
.btn-secondary:active,
.link-btn:active,
.btn-export:active{ transform:translateY(1px); }

.btn.primary,
.btn-primary{
  background:var(--gn-black);
  color:var(--gn-white);
  border-color:var(--gn-black);
  box-shadow:0 16px 30px rgba(0,0,0,.18);
}

@media (prefers-color-scheme: dark){
  .btn.primary,
  .btn-primary{ box-shadow:0 18px 44px rgba(0,0,0,.55); }
}

.btn.primary:hover,
.btn-primary:hover{
  filter:brightness(1.05);
  box-shadow:0 22px 44px rgba(0,0,0,.22), 0 0 0 2px rgba(255,255,0,.18);
  text-decoration:none;
}

.btn.accent{
  background:var(--gn-accent);
  color:#000;
  /*border-color:rgba(0,0,0,.75);*/
  box-shadow:0 14px 26px rgba(0,0,0,.12);
}

.btn.accent:hover{ filter:brightness(.97); text-decoration:none; }

.btn.dark{
  background:var(--gn-black);
  color:var(--gn-white);
  border-color:var(--gn-black);
}

.btn.ghost,
.btn2,
.btn-secondary,
.link-btn{
  background:var(--gn-surface-strong);
  color:var(--gn-text);
  border-color:var(--gn-border);
  box-shadow:0 12px 22px rgba(15,23,42,.06);
}

.btn.ghost:hover,
.btn2:hover,
.btn-secondary:hover,
.link-btn:hover{
  border-color:var(--gn-border-strong);
  box-shadow:0 16px 30px rgba(15,23,42,.08);
  text-decoration:none;
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* Keep "danger" mostly monochrome (palette constraint) */
.btn.danger,
.btn.logout,
a.logout{ color:var(--gn-text); }

.btn.danger:hover,
a.logout:hover{
  border-color:rgba(0,0,0,.55);
  background:rgba(255,255,0,.14);
}

@media (prefers-color-scheme: dark){
  .btn.danger:hover,
  a.logout:hover{ border-color:rgba(255,255,255,.22); }
}

/* ---------------------------
   Pills / badges
--------------------------- */
.pill,
.badge,
.header-tag,
.saas-notice-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--gn-border);
  background:var(--gn-surface-strong);
  font-size:12px;
  font-weight:900;
}

/* Hide the legacy "payment due" pill everywhere (requested: should not appear for any tenant type) */
.saas-notice-pill{ display:none !important; }

.pill.active,
.badge.active,
.badge.green{
  background:rgba(255,255,0,.20);
  /* No black outline on yellow states (cleaner header + badges) */
  border-color:transparent;
  color:#000;
}

@media (prefers-color-scheme: dark){
  .pill.active,
  .badge.active,
  .badge.green{ border-color:transparent; }
}

.badge.gray,
.badge.blue{
  background:rgba(0,0,0,.06);
  color:var(--gn-text);
  border-color:var(--gn-border);
}

@media (prefers-color-scheme: dark){
  .badge.gray,
  .badge.blue{ background:rgba(255,255,255,.08); }
}

/* ---------------------------
   Notices (ok / err / notice)
--------------------------- */
.ok,
.notice,
.err{
  padding:10px 12px;
  border-radius:var(--gn-radius-lg);
  border:1px solid var(--gn-border);
  background:var(--gn-surface);
  box-shadow:0 10px 18px rgba(15,23,42,.06);
  font-size:13px;
}

.ok{
  border-color:rgba(0,0,0,.22);
  background:rgba(255,255,0,.12);
}

.err{
  border-color:rgba(0,0,0,.38);
  background:rgba(0,0,0,.04);
}

@media (prefers-color-scheme: dark){
  .ok{ background:rgba(255,255,0,.12); }
  .err{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.20); }
}

/* ---------------------------
   Tables
--------------------------- */
.table-wrap{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.table-wrap table{
  min-width:720px;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--gn-surface);
  border:1px solid var(--gn-border);
  border-radius:var(--gn-radius-xl);
  overflow:hidden;
  box-shadow:var(--gn-shadow-sm);
}

thead th{
  background:rgba(0,0,0,.04);
  color:var(--gn-muted);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:950;
}

@media (prefers-color-scheme: dark){
  thead th{ background:rgba(255,255,255,.06); }
}

th, td{
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.06);
  text-align:left;
  font-size:13px;
}

@media (prefers-color-scheme: dark){
  th, td{ border-bottom:1px solid rgba(255,255,255,.08); }
}

tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover td{ background:rgba(255,255,0,.10); }

/* ---------------------------
   Code / inline tags
--------------------------- */
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:12px;
  background:rgba(0,0,0,.08);
  padding:2px 6px;
  border-radius:8px;
}

@media (prefers-color-scheme: dark){
  code{ background:rgba(255,255,255,.10); }
}

/* ---------------------------
   Small utilities
--------------------------- */
hr{
  border:0;
  border-top:1px solid rgba(0,0,0,.10);
  margin:18px 0;
}

@media (prefers-color-scheme: dark){
  hr{ border-top:1px solid rgba(255,255,255,.12); }
}
/* ------------------------------------------------------------
   Fix: native checkbox/radio should NOT inherit text-input UI
   (otherwise they look like empty pill fields)
------------------------------------------------------------ */
input[type="checkbox"],
input[type="radio"]{
  appearance:auto;
  -webkit-appearance:auto;
  background:transparent;
  border:initial;
  box-shadow:none;
  padding:0;
  border-radius:0;
  width:auto;
  height:auto;
}

/* ------------------------------------------------------------
   Utilities for public pages + onboarding
------------------------------------------------------------ */
.sep{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:16px 0;
}
@media (prefers-color-scheme: dark){
  .sep{ background:rgba(255,255,255,.10); }
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:12px;
}

.kpi{
  font-weight:950;
  font-size:18px;
  letter-spacing:-.02em;
  line-height:1.1;
}

.mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ------------------------------------------------------------
   Marketing header 
------------------------------------------------------------ */
.site-header{
  position:sticky;
  top:0;
  z-index:900;
  background:linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.85));
  border-bottom:1px solid rgba(0,0,0,.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header--fixed{
  position:fixed;
  left:0;
  right:0;
  top:0;
}

body.has-fixed-header{
  padding-top:64px;
}

.site-logo-img{
  height:28px;
  width:auto;
  display:block;
}
@media (max-width: 640px){
  .site-logo-img{ height:24px; }
}

.site-nav-links{
  display:flex;
  align-items:center;
  gap:10px;
}
.site-nav-mobile{
  display:none;
}
@media (max-width: 760px){
  .site-nav-links{ display:none; }
  .site-nav-mobile{ display:block; }
}

@media (prefers-color-scheme: dark){
  .site-header{
    background:linear-gradient(to bottom, rgba(18,19,24,.84), rgba(18,19,24,.64));
    border-bottom:1px solid rgba(255,255,255,.10);
  }
}

.site-bar{
  max-width:var(--gn-maxw);
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
@media (max-width: 640px){
  .site-bar{ padding:12px 12px; }
}

.site-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.site-logo{
  width:30px;
  height:30px;
  border-radius:10px;
  background:var(--gn-accent);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}
.site-name{
  font-weight:950;
  letter-spacing:-.02em;
}
.site-nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.site-nav a{ text-decoration:none; }
.site-nav .nav-link{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:850;
  font-size:13px;
  color:var(--gn-muted);
}
.site-nav .nav-link:hover{
  border-color:rgba(0,0,0,.12);
  background:rgba(0,0,0,.04);
  color:var(--gn-text);
  text-decoration:none;
}
@media (prefers-color-scheme: dark){
  .site-nav .nav-link:hover{
    border-color:rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
  }
}

/* ------------------------------------------------------------
   Hero (Landing)
------------------------------------------------------------ */
.hero{
  padding:18px 0 8px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.hero h1{
  margin:0 0 10px;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.03em;
}
@media (max-width: 640px){
  .hero h1{ font-size:34px; }
}
.hero p{
  margin:0 0 16px;
  color:var(--gn-muted);
  font-size:15px;
  line-height:1.55;
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.hero-card{
  padding:18px;
}
.hero-card label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:var(--gn-muted);
  margin:0 0 6px;
}
.hero-card input{
  width:100%;
}
.hero-card .hint{
  margin-top:10px;
  color:var(--gn-muted);
  font-size:12px;
  line-height:1.45;
}

/* ------------------------------------------------------------
   Switch (Activation toggles)
   Markup:
   <label class="gn-switch">
     <input type="checkbox" ...>
     <span class="gn-switch-ui" aria-hidden="true"></span>
     <span class="gn-switch-label">Aktiv</span>
   </label>
------------------------------------------------------------ */
.gn-switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
  font-weight:950;
  font-size:13px;
  position:relative;
}
.gn-switch input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
  pointer-events:none;
}
.gn-switch .gn-switch-ui{
  width:46px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--gn-border-strong);
  background:rgba(0,0,0,.10);
  position:relative;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
  transition:background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .06s ease;
}
@media (prefers-color-scheme: dark){
  .gn-switch .gn-switch-ui{
    background:rgba(255,255,255,.10);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
  }
}
.gn-switch .gn-switch-ui::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:var(--gn-white);
  box-shadow:0 10px 18px rgba(0,0,0,.18), 0 1px 0 rgba(0,0,0,.10);
  transition:transform .18s ease, background .18s ease;
}
@media (prefers-color-scheme: dark){
  .gn-switch .gn-switch-ui::after{
    box-shadow:0 14px 26px rgba(0,0,0,.50), 0 1px 0 rgba(255,255,255,.08);
  }
}
.gn-switch input:checked + .gn-switch-ui{
  background:var(--gn-accent);
  /* No black outline on active toggle */
  border-color:transparent;
  box-shadow:0 0 0 3px rgba(255,255,0,.22);
}
.gn-switch input:checked + .gn-switch-ui::after{
  transform:translateX(18px);
  /* iOS-style: knob stays light */
  background:var(--gn-white);
}
.gn-switch input:focus-visible + .gn-switch-ui{
  box-shadow:0 0 0 3px rgba(255,255,0,.22);
}
.gn-switch .gn-switch-label{
  color:var(--gn-text);
}
.gn-switch .gn-switch-hint{
  color:var(--gn-muted);
  font-weight:800;
  font-size:12px;
}

/* Legacy forms: prevent .form-group label rules from breaking switch layout */
.form-group label.gn-switch{
  display:inline-flex;
  margin:0;
  color:var(--gn-text);
  font-weight:950;
}
.form-group label.gn-switch .gn-switch-label{ margin:0; }


/* =====================================================================
   Marketing / Landing 
   Note: We only change the marketing pages via modifier classes so the
   admin UI stays stable.
===================================================================== */

.container{
  max-width:var(--gn-maxw);
  margin:0 auto;
  padding:0 16px;
}
@media (max-width: 640px){
  .container{ padding:0 12px; }
}

/* Header variant for dark hero */
.site-header--transparent{
  position:absolute;
  left:0; right:0; top:0;
  background:transparent;
  border-bottom:0;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.site-header--transparent .site-name{ color:#fff; }
.site-header--transparent .site-nav .nav-link{ color:rgba(255,255,255,.78); }
.site-header--transparent .site-nav .nav-link:hover{
  color:#fff;
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}
.site-header--transparent .btn.ghost{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.16);
  color:#fff;
  box-shadow:none;
}
.site-header--transparent .btn.ghost:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.22);
}
.site-header--transparent .btn.accent{
  box-shadow:none;
}

.btn.pill{ border-radius:999px; padding:12px 18px; }
.btn.small{ padding:10px 14px; font-size:13px; }

/* "Mehr" dropdown (no JS) */
.nav-more{ position:relative; }
.nav-more summary{ list-style:none; }
.nav-more summary::-webkit-details-marker{ display:none; }
.nav-more-panel{
  position:absolute;
  right:0;
  top:44px;
  min-width:220px;
  max-width: min(92vw, 320px);
  padding:10px;
  border-radius:16px;
  background:var(--gn-surface-strong);
  border:1px solid var(--gn-border);
  box-shadow:var(--gn-shadow-md);
}
.nav-more-panel a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  font-weight:850;
  font-size:13px;
  color:var(--gn-text);
  text-decoration:none;
}
.nav-more-panel a:hover{ background:rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark){
  .nav-more-panel a:hover{ background:rgba(255,255,255,.06); }
}

/* Hero */
.marketing-hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  padding:110px 0 64px;
}
.marketing-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 620px at 60% 40%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    radial-gradient(900px 540px at 18% 12%, rgba(255,255,0,.18), rgba(255,255,0,0) 60%),
    linear-gradient(120deg, #000 0%, #0b0d10 40%, #040507 100%);
}
.marketing-hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(800px 520px at 100% 0%, rgba(255,255,0,.10), rgba(255,255,0,0) 60%);
  pointer-events:none;
}
.marketing-hero > *{ position:relative; }

.hero-grid2{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:34px;
  align-items:center;
}
@media (max-width: 980px){
  .hero-grid2{ grid-template-columns:1fr; gap:18px; }
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.82);
  font-weight:850;
  font-size:12px;
}

.hero-title{
  margin:14px 0 10px;
  font-size:clamp(44px, 5.8vw, 76px);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:950;
}
.hero-title-sub{ color:rgba(255,255,255,.88); font-weight:900; }

.hero-lead{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.6;
  color:rgba(255,255,255,.78);
  max-width:52ch;
}

.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.hero-fineprint{ margin-top:14px; color:rgba(255,255,255,.60); font-size:12px; line-height:1.45; }

.hero-visual{
  border-radius:34px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  box-shadow:0 50px 140px rgba(0,0,0,.55);
  padding:18px;
}
.hero-mock{
  position:relative;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  overflow:hidden;
  min-height:360px;
}
.hero-mock::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(520px 340px at 40% 30%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%),
    radial-gradient(520px 340px at 90% 15%, rgba(255,255,0,.18), rgba(255,255,0,0) 62%),
    linear-gradient(140deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}
.hero-mock-top{
  position:absolute;
  top:14px; left:14px; right:14px;
  display:flex;
  gap:8px;
}
.hero-dot{ width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,.20); }
.hero-card-mini{
  position:absolute;
  left:16px;
  bottom:16px;
  right:16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.30);
  padding:14px 14px;
}
.hero-card-mini .t{ font-weight:950; letter-spacing:-.02em; }
.hero-card-mini .s{ margin-top:6px; color:rgba(255,255,255,.72); font-size:12px; line-height:1.45; }

/* Sections under hero */
.marketing-section{ padding:44px 0 8px; scroll-margin-top:84px; }
.marketing-section h2{
  margin:0 0 10px;
  font-size:26px;
  letter-spacing:-.03em;
  font-weight:950;
}
.marketing-section p{ margin:0 0 18px; color:var(--gn-muted); line-height:1.6; }

.feature-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
@media (max-width: 980px){
  .feature-grid{ grid-template-columns:1fr; }
}

.feature-card{
  border-radius:24px;
  background:var(--gn-white);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 22px 70px rgba(0,0,0,.08);
  padding:18px 18px;
  text-decoration:none;
}
@media (prefers-color-scheme: dark){
  .feature-card{ background:rgba(18,19,24,.78); border-color:rgba(255,255,255,.12); box-shadow:0 26px 90px rgba(0,0,0,.55); }
}
.feature-tag{ display:inline-flex; align-items:center; gap:8px; font-weight:900; font-size:12px; color:var(--gn-muted); }
.feature-title{ margin:10px 0 6px; font-size:18px; font-weight:950; letter-spacing:-.02em; }
.feature-desc{ margin:0; color:var(--gn-muted); line-height:1.55;font-size:14px }

/* Login panel (marketing) */
.login-panel{
  border-radius:28px;
  background:var(--gn-white);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 26px 90px rgba(0,0,0,.10);
  padding:20px 20px;
}
@media (prefers-color-scheme: dark){
  .login-panel{ background:rgba(18,19,24,.82); border-color:rgba(255,255,255,.12); box-shadow:0 30px 110px rgba(0,0,0,.60); }
}
.login-panel h3{ margin:0 0 8px; font-size:18px; font-weight:950; letter-spacing:-.02em; }
.login-panel .sub{ margin:0 0 14px; color:var(--gn-muted); font-size:13px; }

/* Onboarding: cleaner cards */
.onb-wrap{ padding-bottom:40px; }
.onb-meta{
  margin-top:0px;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--gn-muted);
  font-size:12px;
  font-weight:850;
}
.onb-meta .dot{ opacity:.6; }
.onb-hero{
  margin-top:10px;
  padding:18px 0 8px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.onb-hero h1{ margin:0 0 6px; font-size:34px; font-weight:950; letter-spacing:-.03em; }
.onb-hero p{ margin:0; color:var(--gn-muted); line-height:1.6; }

.plan-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin-top:16px; }
@media (max-width: 980px){ .plan-grid{ grid-template-columns:1fr; } }
.plan-card{
  display:block;
  border-radius:26px;
  background:var(--gn-white);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 22px 70px rgba(0,0,0,.08);
  padding:18px 18px;
  text-decoration:none;
  transition:transform .14s ease, box-shadow .20s ease, border-color .20s ease;
}
.plan-card:hover{ transform:translateY(-1px); box-shadow:0 28px 90px rgba(0,0,0,.10); border-color:rgba(0,0,0,.12); text-decoration:none; }
@media (prefers-color-scheme: dark){
  .plan-card{ background:rgba(18,19,24,.78); border-color:rgba(255,255,255,.12); box-shadow:0 26px 90px rgba(0,0,0,.55); }
  .plan-card:hover{ box-shadow:0 34px 120px rgba(0,0,0,.65); border-color:rgba(255,255,255,.18); }
}
.plan-badge{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
  font-weight:950;
  font-size:12px;
}
@media (prefers-color-scheme: dark){
  .plan-badge{ border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.06); }
}
.plan-badge.active{ background:rgba(255,255,0,.20); border-color:rgba(0,0,0,.55); color:#000; }
.plan-title{ margin:12px 0 6px; font-size:18px; font-weight:950; letter-spacing:-.02em; }
.plan-price{ font-size:26px; font-weight:950; letter-spacing:-.03em; margin:0 0 8px; }
.plan-price span{ font-size:12px; font-weight:900; color:var(--gn-muted); letter-spacing:0; }
.plan-desc{ margin:0 0 14px; color:var(--gn-muted); line-height:1.55;background:#ffff00;margin-top:20px;margin-bottom:20px;border-radius:15px;color:#000 }
.plan-cta{ margin-top:4px; }

.onb-card{
  background:var(--gn-white);
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  box-shadow:0 26px 90px rgba(0,0,0,.10);
  padding:20px 20px;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .onb-card{ -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media (prefers-color-scheme: dark){
  .onb-card{ background:rgba(18,19,24,.82); border-color:rgba(255,255,255,.12); box-shadow:0 30px 110px rgba(0,0,0,.60); }
}




/* ------------------------------------------------------------
   Marketing media sections 
------------------------------------------------------------ */
.hero-grid2--media{ align-items:center; }
.hero-media{
  position:relative;
}
.hero-media-frame{
  position:relative;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  box-shadow:0 30px 120px rgba(0,0,0,.55);
  overflow:hidden;
  padding:18px;
}
.hero-media-frame::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(420px 320px at 30% 15%, rgba(255,255,0,.16), rgba(255,255,0,0) 62%),
    radial-gradient(520px 380px at 100% 0%, rgba(255,255,255,.10), rgba(255,255,255,0) 58%);
  pointer-events:none;
}
.hero-media-frame img{
  position:relative;
  width:100%;
  height:auto;
  display:block;
  transform:translateY(6px);
  filter:drop-shadow(0 22px 38px rgba(0,0,0,.55));
}
.hero-media-note{
  margin-top:12px;
  font-size:12px;
  color:rgba(255,255,255,.64);
  line-height:1.45;
  max-width:54ch;
}

.section-split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:center;
}
.section-split.reverse{
  grid-template-columns: .9fr 1.1fr;
}
@media (max-width: 980px){
  .section-split,
  .section-split.reverse{ grid-template-columns:1fr; }
}

.media-frame{
  border-radius:22px;
  border:1px solid var(--gn-border);
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow:var(--gn-shadow-md);
  overflow:hidden;
}
@media (prefers-color-scheme: dark){
  .media-frame{
    border-color:rgba(255,255,255,.14);
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  }
}
.media-frame img{
  width:100%;
  height:auto;
  display:block;
}

.steps{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 700px){
  .steps{ grid-template-columns:1fr; }
}
.step{
  border-radius:18px;
  border:1px solid var(--gn-border);
  /*background:rgba(0,0,0,.02);*/
  padding:14px 14px;
  color:#000000;
  background:#ffff00;
}
@media (prefers-color-scheme: dark){
  .step{
    border-color:rgba(255,255,255,.12);
    background:rgba(255,255,255,.04);
  }
}
.step .n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:var(--gn-accent);
  color:#000;
  font-weight:950;
  margin-right:10px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.step .t{
  font-weight:950;
  letter-spacing:-.01em;
}
.step .d{
  margin-top:6px;
  color:var(--gn-muted);
  font-size:13px;
  line-height:1.5;
}

.trust-row{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.trust-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.80);
  font-size:12px;
  font-weight:850;
}
.trust-pill b{
  color:#fff;
  font-weight:950;
}

/* ---------------------------
   Auth (Central Login / Reset)
--------------------------- */
.auth-shell{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:stretch;
  padding:18px 0 34px;
}
@media (max-width: 960px){
  .auth-shell{ grid-template-columns: 1fr; }
}

.auth-left{
  padding:18px;
}
.auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--gn-border);
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--gn-shadow-sm);
  font-weight:900;
  letter-spacing:-.01em;
}
@media (prefers-color-scheme: dark){
  .auth-kicker{ background:rgba(18,19,24,.60); }
}

.auth-title{
  margin:14px 0 0;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.04em;
  font-weight:1000;
}
@media (max-width: 520px){
  .auth-title{ font-size:36px; }
}

.auth-lead{
  margin:12px 0 0;
  color:var(--gn-muted);
  font-size:15px;
  line-height:1.6;
  max-width:62ch;
}

/* Full-height auth pages (login). Use with <main class="auth-viewport">. */
.auth-viewport{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}
@media (max-width: 520px){
  .auth-viewport{ padding:18px 12px; }
}

.auth-bullets{
  margin-top:16px;
  display:grid;
  gap:10px;
}
.auth-bullet{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--gn-border);
  background:var(--gn-surface);
  box-shadow:var(--gn-shadow-sm);
}
.auth-bullet .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--gn-accent);
  box-shadow:0 0 0 4px rgba(255,255,0,.22);
}
.auth-bullet span{ font-weight:900; }

.auth-card{
  border-radius:var(--gn-radius-xl);
  border:1px solid var(--gn-border);
  background:var(--gn-surface-strong);
  box-shadow:var(--gn-shadow-md);
  padding:18px;
  backdrop-filter: blur(14px);
}

/* Auth/login forms should stack vertically and align widths */
.auth-card label,
.login-box label{ display:block; }
.auth-card input,
.auth-card select,
.auth-card textarea,
.login-box input,
.login-box select,
.login-box textarea{ width:100%; }

.auth-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.auth-card-title{
  font-weight:1000;
  letter-spacing:-.02em;
  font-size:18px;
}
.auth-card-sub{
  margin-top:4px;
  color:var(--gn-muted);
  font-size:13px;
  font-weight:750;
}

.auth-links{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--gn-muted);
  font-size:13px;
  font-weight:850;
}
.auth-links a{
  color:inherit;
  text-decoration:none;
}
.auth-links a:hover{
  color:var(--gn-text);
}
.auth-links .sep{ opacity:.6; }

.auth-foot{
  margin-top:14px;
  color:var(--gn-muted);
  font-size:12px;
  line-height:1.5;
  text-align:center;
}


/* Onboarding form refinements */
.onb-card form.onb-form{
  margin-top:14px;
  max-width:640px;
}
.onb-card .onb-field{ margin:0 0 14px; }
.onb-card .onb-field label{
  display:block;
  font-weight:900;
  margin:0 0 4px;
}
.onb-card .onb-field input:not([type="checkbox"]):not([type="radio"]),
.onb-card .onb-field select{
  width:100%;
  background:#f2f2f2;
  border:1px solid rgba(0,0,0,.14);
  border-radius:14px;
  padding:12px 14px;
  box-sizing:border-box;
}
@media (prefers-color-scheme: dark){
  .onb-card .onb-field input:not([type="checkbox"]):not([type="radio"]),
  .onb-card .onb-field select{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.14);
  }
}
.onb-card .onb-prefix{
  display:flex;
  align-items:center;
  gap:8px;
}
.onb-card .onb-prefix-label{
  font-weight:900;
  color:var(--gn-muted);
  min-width:28px;
  text-align:right;
}
.onb-card .onb-hint{ margin-top:6px; }
.onb-card .onb-submit{
  width:100%;
  font-size:18px;
  padding:14px 16px;
}


/* Onboarding add-ons (checkbox rows) */
.onb-card .onb-addon-list{ display:grid; gap:10px; }
.onb-card .onb-field label.onb-addon-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-weight:700;
  margin:0;
}
.onb-card .onb-field label.onb-addon-item input[type="checkbox"]{
  width:auto;
  padding:0;
  border:0;
  background:transparent;
  margin-top:4px;
}
.onb-card .onb-field label.onb-addon-item .muted{ font-weight:400; }

/* Make generic onboarding submit buttons full-width too */
.onb-card form button.btn.primary{
  width:100%;
}


/* ---------------------------
   Global Footer
--------------------------- */
.site-footer{
  /* Sticky footer: pushed to bottom via body flex column */
  margin-top:auto;
  padding:34px 0 20px;
  font-size:12px;
  color:var(--gn-muted);
}
.site-footer a{ color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.site-footer a:hover{ color:var(--gn-text); border-bottom-color:rgba(0,0,0,.25); }

.site-footer-inner{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  max-width:var(--gn-maxw);
  margin:0 auto;
  padding:0 16px;
}
.site-footer-links{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.site-footer-links a{ white-space:nowrap; }


/* ---------------------------
   Overflow guards
--------------------------- */
:where(.card,.stat-card,.box,.kpi .box,.login-box){ min-width:0; }

:where(.pill,.badge,.header-tag){
  /* Keep short UI labels readable ("Aktiv" etc.) */
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Optional opt-in when a label is expected to be long */
:where(.pill.is-wrap,.badge.is-wrap,.header-tag.is-wrap){
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/*
  Break long technical strings (IDs, tokens, URLs) without making normal
  words split into syllables.
*/
:where(.mono, code, pre){
  overflow-wrap:anywhere;
  word-break:break-word;
}

:where(td, th){
  overflow-wrap:break-word;
  word-break:normal;
}

@media (max-width: 520px){
  .row{ flex-wrap:wrap; align-items:flex-start; }
}

/* ---------------------------
   Floating Calendly CTA (global)
--------------------------- */
.gn-cta-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:320px;
  z-index:9999;
  border-radius:var(--gn-radius-xl, 22px);
  background:var(--gn-surface-strong, rgba(255,255,255,.94));
  border:1px solid var(--gn-border, rgba(0,0,0,.10));
  box-shadow:var(--gn-shadow-lg, 0 28px 90px rgba(15,23,42,.16));
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  color:var(--gn-text, #0b0d10);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .gn-cta-float{ -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}

.gn-cta-float.is-hidden{ display:none !important; }

.gn-cta-top{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.gn-cta-avatar{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--gn-border, rgba(0,0,0,.10));
  background:#fff;
  flex:0 0 auto;
}

.gn-cta-name{
  font-weight:950;
  letter-spacing:-.01em;
  font-size:14px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.gn-cta-close{
  margin-left:auto;
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid var(--gn-border, rgba(0,0,0,.10));
  background:rgba(0,0,0,.04);
  color:inherit;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  transition:background .2s ease, transform .06s ease, border-color .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.gn-cta-close:hover{ background:rgba(0,0,0,.06); border-color:var(--gn-border-strong, rgba(0,0,0,.18)); }
.gn-cta-close:active{ transform:translateY(1px); }

.gn-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  background:var(--gn-accent, #ffff00);
  color:#000;
  font-weight:950;
  text-decoration:none;
  border:1px solid transparent;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
  transition:filter .2s ease, transform .06s ease, box-shadow .2s ease;
}
.gn-cta-btn:hover{ filter:brightness(.97); text-decoration:none; }
.gn-cta-btn:active{ transform:translateY(1px); box-shadow:0 12px 26px rgba(0,0,0,.16); }

.gn-cta-arrow{ font-size:18px; line-height:1; }

@media (max-width: 560px){
  .gn-cta-float{
    left:12px;
    right:12px;
    width:auto;
    bottom:12px;
  }
}

@media print{
  .gn-cta-float{ display:none !important; }
}
