:root{
  --bg:#ffffff;
  --surface:#fbfcfd;
  --surface2:#f5f7fa;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;

  --accent:#0f766e;
  --accent2:#115e59;

  --radius:16px;
  --shadow:0 14px 40px rgba(2,6,23,.08);
  --max:1120px;

  --h1:44px;
  --h2:28px;
  --h3:16px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), calc(100% - 48px)); margin:0 auto; }
.muted{ color:var(--muted); }

/* ✅ ROBUST LANGUAGE LOGIC
   Default: show EN blocks, hide DE blocks (so nichts wird "unsichtbar" falls JS nicht lädt).
   When html[data-lang="de"], switch.
*/
/* Language visibility — robust (does not force block layout) */
html[data-lang="en"] [data-lang="de"]{ display:none !important; }
html[data-lang="de"] [data-lang="en"]{ display:none !important; }
/* Default fallback if data-lang missing */
html:not([data-lang]) [data-lang="de"]{ display:none !important; }

/* Header */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:30px; width:auto; display:block; }
.brand .fallback{ font-weight:800; letter-spacing:.02em; }

nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:16px; align-items:center;
}
nav a{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}
nav a:hover{ background:var(--surface2); color:var(--text); }

.right{ display:flex; gap:10px; align-items:center; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:transform .08s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{ background:var(--surface2); }
.btn:active{ transform:translateY(1px); }

.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.btn.primary:hover{ background:var(--accent2); border-color:var(--accent2); }

/* Language switch */
.lang{
  display:inline-flex;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
  background:#fff;
}
.lang button{
  border:0;
  background:transparent;
  padding:8px 10px;
  font-weight:700;
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
}
.lang button.active{
  background:var(--surface2);
  color:var(--text);
}

/* Mobile menu */
.menu-btn{ display:none; }
.mobile{ display:none; padding:0 0 14px 0; }
.mobile.open{ display:block; }
.mobile a{
  display:block;
  padding:12px;
  border-radius:12px;
  color:var(--muted);
}
.mobile a:hover{ background:var(--surface2); color:var(--text); }

/* Sections */
section{ padding:56px 0; }
.hero{
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(15,118,110,.14), transparent 60%),
    radial-gradient(700px 520px at 90% 0%, rgba(34,197,94,.08), transparent 55%),
    linear-gradient(#fff,#fff);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:start;
}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  background:rgba(255,255,255,.7);
}
.pill .dot{
  width:8px; height:8px;
  background:var(--accent);
  border-radius:50%;
}

h1{ font-size:var(--h1); line-height:1.1; margin:14px 0 12px; letter-spacing:-.02em; }
h2{ font-size:var(--h2); margin:0; letter-spacing:-.01em; }
.lead{ font-size:16px; color:var(--muted); max-width:78ch; margin:0 0 14px 0; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }

.card, .box{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:18px;
}
.card{ box-shadow:var(--shadow); }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

.list{ padding-left:18px; color:var(--muted); margin:0; }
.list li{ margin-bottom:6px; font-size:14px; }

.kpi{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.kpi .item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.kpi .num{ font-weight:800; font-size:18px; }
.kpi .lbl{ font-size:12px; color:var(--muted); margin-top:4px; }

.strip{
  display:flex; justify-content:space-between;
  align-items:center; gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  flex-wrap:wrap;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:16px;
}
.section-head p{ margin:0; max-width:78ch; color:var(--muted); }

/* =========================
   FOOTER (ENCAPSULATED)
   Footer contains the TRUST BAR + Footer Main
========================= */
.site-footer{
  border-top:1px solid var(--line);
  background:#fff;
}

/* TRUST BAR (inside footer) */
.site-footer .trustbar{
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.site-footer .trustbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  flex-wrap:wrap;
}

.site-footer .trustbar-title{
  font-weight:900;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0;
}

.site-footer .trust-logos{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
  flex-wrap:wrap;
}

/* Make badges readable */
.site-footer .trust-logos img{
  height: 92px;            /* DESKTOP readable */
  width:auto;
  max-width:none;
  max-height:none;
  object-fit:contain;
  display:block;
  opacity:.98;

  padding: 8px 10px;       /* optional: readability boost */
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}

/* Footer main grid */
.site-footer .footer-main{
  padding:26px 0 30px 0;
}

.site-footer .footer-grid{
  display:grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap:22px;
  align-items:start;
}

.site-footer .footer-title{
  font-weight:900;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text);
  margin-bottom:10px;
}

.site-footer .footer-text{
  margin:0 0 12px 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  max-width:60ch;
}

.site-footer .footer-mail{
  display:inline-block;
  margin:2px 0 10px 0;
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
  font-weight:700;
}

.site-footer .footer-meta{
  color:var(--muted);
  font-size:13px;
}

.site-footer .footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.site-footer .footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
}

.site-footer .footer-links a:hover{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
}

.site-footer .footer-legalnote{
  margin:14px 0 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.site-footer .footer-legalhint{
  margin:8px 0 0 0;
  color:var(--muted);
  font-size:12px;
}

/* Footer responsiveness */
@media (max-width: 900px){
  .site-footer .trust-logos img{
    height: 76px;
    padding: 7px 9px;
    border-radius: 12px;
  }
}

@media (max-width: 980px){
  .site-footer .footer-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 600px){
  .site-footer .trustbar{
    padding: 22px 0;
  }
  .site-footer .trustbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .site-footer .trust-logos{
    justify-content:flex-start;
    gap:18px;
  }
  .site-footer .trust-logos img{
    height:64px;
    padding: 6px 8px;
  }
}

/* Responsive (site-wide) */
@media(max-width:980px){
  :root{ --h1:36px; }
  .hero-grid{ grid-template-columns:1fr; }
  .grid-2,.grid-3,.kpi{ grid-template-columns:1fr; }
  nav ul, .right .btn.primary{ display:none; }
  .menu-btn{ display:inline-flex; }
}

/* === Scroll reveal === */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.in{
  opacity:1;
  transform:none;
}
.box,
.card{
  transition:transform .18s ease, box-shadow .18s ease;
}
.box:hover,
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 46px rgba(2,6,23,.10);
}
