:root {
  /* Default: Dark-Design */
  color-scheme: dark;
  --brand:#e01e37;
  --brand-2:#1f6feb;
  --accent:#f0b429;

  --bg:#0a0f1e;
  --panel:#0d1428;
  --panel-2:#0b1326;
  --text:#e6eaf2;
  --muted:#9aa4b2;
  --ring:rgba(31,111,235,.35);

  --radius:18px;
  --pad:clamp(26px, 5vw, 52px);
  --shadow:0 18px 50px rgba(2,6,23,.25);
  --header-h:72px;
  --logo-h:56px;
  --logo-h-scrolled:34px;

  /* Abschnitt-Hintergründe (Dark-Default) */
  --sec-odd-bg: color-mix(in hsl,var(--panel),white 3%);
  --sec-even-bg: color-mix(in hsl,var(--panel-2),black 2%);

  /* Icon-Größe */
  --icon-size: 28px;

  /* Footer unten */
  --footer-bottom-bg: #0b0f1a;
  --footer-bottom-fg: #e6edf3;
  --footer-bottom-fg-hover: #ffffff;
  --footer-bottom-border: rgba(230, 237, 243, .15);
}

/* Wenn das System auf „hell“ steht, überschreiben wir die Farben */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg:#f6f8fb;
    --panel:#ffffff;
    --panel-2:#f2f6ff;
    --text:#0b1326;
    --muted:#475569;
    --ring:rgba(31,111,235,.25);
    --sec-odd-bg:#ffffff;
    --sec-even-bg:#f2f6ff;
  }
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
html,body { height:100%; }

body {
  margin:0;
  color:var(--text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",Ubuntu,Cantarell,sans-serif;
  line-height:1.6;
  background: var(--bg);
  overflow-x:hidden;
  padding-top:var(--header-h);
  position: relative; /* für ::before-Layer */
}

/* Globales fixes Hintergrundbild – Mobile-kompatibel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("Background.png") center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.container {
  width:min(1100px,92vw);
  margin:0 auto;
}

a {
  color:var(--brand-2);
  text-decoration:none;
}
a:hover { text-decoration:underline; }

/* Header / Navigation */
header{
  position:fixed;
  inset:0 auto auto 0;
  right:0;
  top:0;
  z-index:100;
  backdrop-filter:saturate(140%) blur(8px);
  background:color-mix(in hsl,var(--bg),transparent 35%);
  border-bottom:1px solid rgba(148,163,184,.15);
  transition:background .35s,box-shadow .35s,backdrop-filter .35s;
}
header.scrolled{
  background:color-mix(in hsl,var(--bg),black 8%);
  box-shadow:0 6px 22px rgba(0,0,0,.25);
  backdrop-filter:saturate(170%) blur(14px);
}

.nav{
  display:flex;
  align-items:center;
  gap:.6rem;
  justify-content:space-between;
  padding:.7rem 0;
  transition:padding .25s;
}
header.scrolled .nav{ padding:.5rem 0; }

.logo{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.logo img{
  height:var(--logo-h);
  transition:height .25s;
}
header.scrolled .logo img{
  height:var(--logo-h-scrolled);
}

.links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem;
  position:relative;
}

.nav a.nav-link{
  color:var(--text);
  opacity:.92;
  padding:.35rem .6rem;
  border-radius:.6rem;
  position:relative;
}
.nav a.nav-link:hover{
  background:rgba(68,121,148,.18);
  text-decoration:none;
}

.indicator{
  position:absolute;
  height:2px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  bottom:-6px;
  left:0;
  width:0;
  border-radius:2px;
  transition:left .25s,width .25s;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  border:1px solid rgba(148,163,184,.25);
  border-radius:.9rem;
  padding:.48rem .9rem;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0));
  color:var(--text);
  cursor:pointer;
  transition:transform .2s,box-shadow .2s;
}
.btn.primary{
  background:linear-gradient(180deg,color-mix(in hsl,var(--brand),white 8%),color-mix(in hsl,var(--brand),black 6%));
  border-color:color-mix(in hsl,var(--brand),black 10%);
  color:#fff;
  box-shadow:0 8px 24px rgba(216,21,46,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}

/* Scroll-Progress */
#progress{
  position:fixed;
  left:0;
  top:0;
  height:3px;
  width:0;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  z-index:120;
}

/* Sections */
section{ scroll-margin-top:calc(var(--header-h) + 8px); }

.section{
  padding:var(--pad) 0;
  position:relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.section.is-visible{
  opacity:1;
  transform:translateY(0);
}

main > section{ background: transparent; }
main > section:nth-of-type(even){ background: transparent; }

/* Container-Boxen mit grauem, halbtransparentem Hintergrund */
.section > .container{
  background: color-mix(in srgb, var(--panel) 88%, transparent 12%);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(4px);
}

/* Trennlinie zwischen Sections (nicht die erste) */
.section:not(:first-of-type)::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background:rgba(148,163,184,.18);
}

/* Hero / Headline */
.hero h1{
  font-size:clamp(2.2rem,3.8vw + 1rem,3.8rem);
  line-height:1.05;
  margin:.35rem 0 .75rem;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--brand-2);
}

.kicker{
  color:var(--brand-2);
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.78rem;
}
.subtle{ color:var(--muted); }

/* Grids */
.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
@media (max-width:1000px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:700px){
  .grid-4{ grid-template-columns:1fr; }
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
@media (max-width:1000px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:700px){
  .grid-3{ grid-template-columns:1fr; }
}

/* Karten */
.card{
  background:color-mix(in hsl,var(--panel),white 3%);
  border:1px solid rgba(148,163,184,.18);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 12px 24px rgba(2,6,23,.16);
  transition:transform .2s,box-shadow .2s;
}
.card:hover{
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.card h3{
  margin:.05rem 0 .35rem;
  font-size:1.25rem;
}

/* HERO SECTION – nutzt jetzt das globale Background-Bild */
#home-section {
  position: relative;
  padding-bottom: 100px;
  background: transparent;
}

/* Hero-Container ohne Kasten */
#home-section > .container {
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

/* Über-uns-Section ohne Kasten */
#about > .container {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

/* HERO GRID LAYOUT */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
  padding: 22px 22px;
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in srgb, var(--panel) 92%, transparent 8%);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(4px);
  color: var(--text);
}

/* Überschrift/Farben im Hero-Textblock */
.hero-copy .kicker,
.hero-copy .hero-title {
  color: var(--text);
}
.hero-copy p{
  color: var(--muted);
}

.hero-media .hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin-left: auto;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-media {
    order: -1; /* Bild über Text auf Mobile */
  }
}

/* GENERISCHE BILDPLATZHALTER */
.image-placeholder {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, .55);
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in hsl, var(--panel), white 4%),
      color-mix(in hsl, var(--panel), white 4%) 8px,
      color-mix(in hsl, var(--panel), black 3%) 8px,
      color-mix(in hsl, var(--panel), black 3%) 16px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-size: .9rem;
  color: var(--muted);
}

.image-placeholder--hero { min-height: 260px; }
.image-placeholder--portrait { aspect-ratio: 4 / 5; }
.image-placeholder--landscape { aspect-ratio: 16 / 9; }
.image-placeholder--logo {
  max-width: 220px;
  min-height: 70px;
  margin: 0 auto;
}

/* HERO VALUE PROPS */
.hero-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in srgb, var(--panel) 88%, transparent 12%);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(4px);
  gap: 6px;
  overflow: hidden;
  color: var(--text);
}

/* Feature-Titel & Text */
.feature-item h4 { color: var(--text); }
.feature-item p,
.feature-item .subtle { color: var(--muted); }

/* kleiner, farbiger Top-Border */
.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 2px solid color-mix(in srgb, var(--brand-2) 70%, var(--brand) 30%);
  pointer-events: none;
}

/* Icon-Badge */
.feature-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  background: radial-gradient(circle at top, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.65);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-features {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .feature-item{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .feature-item .icon{
    margin: 0 0 6px 0;
  }

  .feature-item h4{
    margin: 0;
    text-align: center;
  }

  .feature-item p{
    margin: 0;
    text-align: center;
  }
}


/* Section-Titel */
.section-title {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

/* ABOUT-FEATURES – harmonisiert */
.about-features{
  display:grid;
  gap:3rem;
  margin-top:2rem;
}
.about-feature{
  display:flex;
  gap:2rem;
  align-items:flex-start;
}
.about-feature:nth-child(even){
  flex-direction:row-reverse;
}
.about-feature-content{ flex:1; }
.about-feature-visual{
  flex:1;
  max-width:400px;
  min-width:300px;
}
.about-feature-content ul{
  padding-left:1.2rem;
  margin-top:.4rem;
}
.about-feature-content ul li{
  margin-bottom:.25rem;
}
.about-feature-visual .card{
  padding:2rem;
  border-left:4px solid var(--brand-2);
}
.about-feature-visual .card h3{ margin-top:0; }
.about-feature-visual .card p{ margin-bottom:0; }
.about-feature-visual .card:hover{
  transform:translateY(-2px);
  box-shadow:0 28px 70px rgba(0,0,0,.45);
}

@media (max-width: 900px) {
  .about-feature{
    flex-direction:column !important;
    gap:1.5rem;
  }
  .about-feature-visual{
    max-width:100%;
    min-width:100%;
  }
}

/* Cases / Referenzen – Slider */
#cases .section-title{ margin-bottom: 0.6rem; }
#cases .subtle{ max-width: 720px; }

.cases-shell{
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.case-nav{
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-2);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.7);
}
.case-nav:hover{
  background: rgba(31, 111, 235, 0.12);
}
.case-nav:focus-visible{
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.case-viewport{
  position: relative;
  overflow: hidden;
}

/* Karten wie Metrics */
.case-card{
  display: none;
  background: #eef5fb;
  color: #132042;
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: none;
}
.case-card.active{ display:block; }

.case-logo{ margin-bottom: 12px; }
.case-logo img{
  max-height: 40px;
  width:auto;
  display:block;
}
.case-card h3{
  margin:0 0 8px;
  font-size:1.2rem;
}
.case-company{
  margin:0 0 10px;
  color:#314572;
}
.case-goal{ margin:0 0 12px; }

.case-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  font-size:.95rem;
  text-decoration:none;
  color:var(--brand-2);
}
.case-link:hover{ text-decoration:underline; }

@media (max-width: 700px) {
  .cases-shell{
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .case-nav{
    font-size:1.5rem;
    padding:8px 10px;
  }
}

/* ICONS (Services & Footer) */
.icon,
.icon-svg{
  width: var(--icon-size);
  height: var(--icon-size);
  display:inline-block;
  vertical-align:middle;
}

/* Services */
#services .icon-badge{
  display:inline-grid;
  place-items:center;
  margin-bottom:10px;
  color:var(--brand-2);
}
#services .card:hover .icon-badge{
  color:var(--brand);
}

/* Service-Karten im Metrics-Stil */
#services .card{
  background: #eef5fb;
  color: #132042;
  border-color: rgba(148,163,184,.35);
  box-shadow: 0 10px 28px rgba(15,23,42,.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#services .card h3{ color:#132042; }
#services .card p{ color:#314572; }

#services .card:hover{
  transform: translateY(-2px);
  background: #e1edf9;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  border-color: color-mix(in srgb, var(--brand-2) 65%, rgba(148, 163, 184, 1) 35%);
}

/* SVG coloring ONLY where we want it (Services + Footer) */
#services .icon svg,
#services .icon path,
.footer .icon svg,
.footer .icon path,
.icon-svg svg,
.icon-svg path{
  width:100%;
  height:100%;
  fill:currentColor;
  stroke:currentColor;
}
/* HERO feature badges: center + correct size + no stroke */
.feature-item .icon{
  display:grid;
  place-items:center;
}

.feature-item .icon svg{
  width:18px;
  height:18px;
  display:block;
}

.feature-item .icon svg,
.feature-item .icon svg *{
  stroke:none !important;
  fill:currentColor !important;
}

/* Metrics Block */
#metrics .number{
  font-size: clamp(1.6rem, 2.1vw, 1.9rem);
  font-weight: 600;
}
#metrics .label{
  font-size: 0.9rem;
  color: var(--muted);
}
#metrics .grid-4 > .item{
  padding: 10px 4px;
}
/* Divider zwischen Items */
#metrics .grid-4 > .item + .item{
  border-left: 1px solid rgba(148, 163, 184, 0.25);
}
@media (max-width: 700px) {
  #metrics .grid-4 > .item + .item{
    border-left:none;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
  }
}

/* Primary Buttons / Submit */
.btn-primary,
button[type="submit"]{
  transition: background-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}
.btn-primary:hover,
button[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.55);
}

/* Textlinks in Sections */
.section a:not(.btn):not(.nav-link){
  position:relative;
  text-decoration:none;
  color:var(--brand-2);
  transition:color .15s ease;
}
.section a:not(.btn):not(.nav-link)::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0;
  height:1px;
  background:currentColor;
  transition:width .18s ease;
}
.section a:not(.btn):not(.nav-link):hover::after{
  width:100%;
}

/* Theme-spezifische Box-Optik */
:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .feature-item{
  background: color-mix(in srgb, var(--panel) 82%, transparent 18%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] .hero-copy,
:root[data-theme="light"] .feature-item{
  background: color-mix(in srgb, var(--panel) 96%, transparent 4%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

/* Einheitliche Boxen in Dark-Mode */
:root[data-theme="dark"] .section > .container,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .feature-item,
:root[data-theme="dark"] .metrics{
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section > .container,
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .hero-copy,
  :root:not([data-theme="light"]) .feature-item,
  :root:not([data-theme="light"]) .metrics{
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
  }

  #services .icon-badge,
  #services .icon-badge .icon,
  .footer .icon {
    color: #ffffff;
  }
  #services .icon-badge .icon svg,
  .footer .icon svg,
  #services .icon-badge .icon path,
  .footer .icon path {
    fill: currentColor;
    stroke: currentColor;
  }
}

/* Hero-Container in allen Themes ohne Box */
#home-section > .container,
.section--hero > .container{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: none;
}
:root[data-theme="dark"] #home-section > .container{
  border:none;
  box-shadow:none;
}
:root[data-theme="dark"] #about > .container{
  border:none;
  box-shadow:none;
  background:transparent;
  backdrop-filter:none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #about > .container{
    border:none;
    box-shadow:none;
    background:transparent;
    backdrop-filter:none;
  }
}

/* Kontaktformular */
#contact-form .field{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  margin:12px 0;
}
#contact-form label{
  font-weight:600;
  color:var(--muted);
}
#contact-form .input{
  width:100%;
  padding:.85rem 1rem;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.25);
  background:linear-gradient(180deg,color-mix(in hsl,var(--panel),white 3%),color-mix(in hsl,var(--panel),black 2%));
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:border-color .15s, box-shadow .15s, background .15s;
}
#contact-form .input::placeholder{
  color:color-mix(in hsl,var(--muted),white 10%);
}
#contact-form .input:focus{
  outline:0;
  border-color:color-mix(in hsl,var(--brand-2),black 10%);
  box-shadow:0 0 0 3px var(--ring), inset 0 1px 0 rgba(255,255,255,.06);
}
#contact-form textarea.input{
  resize:vertical;
  min-height:140px;
}

/* Language Dropdown mit runden Flags */
.lang-dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.lang-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  padding:0;
  margin:0;
  border:none;
  border-radius:999px;
  background:transparent;
  cursor:pointer;
}
.lang-toggle:hover{
  background:rgba(148, 163, 184, 0.18);
}
.lang-toggle:focus-visible{
  outline:2px solid var(--brand-2);
  outline-offset:2px;
}
.lang-dropdown .dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  right:0;
  min-width:130px;
  background-color:var(--panel);
  border:1px solid rgba(148,163,184,.25);
  border-radius:var(--radius);
  box-shadow:0 8px 16px rgba(0,0,0,0.25);
  z-index:20;
  margin-top:8px;
  padding:8px;
}
.lang-dropdown .dropdown-content a{
  color:var(--text);
  padding:8px 12px;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:10px;
  white-space:nowrap;
}
.lang-dropdown .dropdown-content a:hover{
  background-color:rgba(68,121,148,.18);
  text-decoration:none;
}

/* Offen-Zustand via JS-Klasse .open */
.lang-dropdown.open .dropdown-content{
  display:block;
}

/* Flag Icons als runde Kreise */
.flag-icon,
#current-flag{
  width:22px;
  height:22px;
  border-radius:50%;
  display:inline-block;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  box-shadow:0 0 0 1px rgba(15, 23, 42, 0.35);
  border:none;
}

/* Hamburger / Mobile-Menü */
.hamburger{
  display:none;
  position:relative;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:transparent;
  cursor:pointer;
  padding:0;
  margin:0;
  align-items:center;
  justify-content:center;
}
.hamburger:focus-visible{
  outline:2px solid var(--brand-2);
  outline-offset:2px;
}
.hamburger-box{
  position:relative;
  display:inline-block;
  width:24px;
  height:18px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  border-radius:999px;
  background-color:var(--text);
  transition:transform .18s ease, top .18s ease, opacity .18s ease, background-color .18s ease;
}
.hamburger-inner{
  top:50%;
  transform:translateY(-50%);
}
.hamburger-inner::before,
.hamburger-inner::after{
  content:"";
}
.hamburger-inner::before{ top:-6px; }
.hamburger-inner::after{ top:6px; }

/* OPEN STATE → X */
.hamburger.is-open .hamburger-inner{
  background-color:transparent;
}
.hamburger.is-open .hamburger-inner::before{
  top:0;
  transform:rotate(45deg);
}
.hamburger.is-open .hamburger-inner::after{
  top:0;
  transform:rotate(-45deg);
}

/* Nur auf kleinen Screens anzeigen */
@media (max-width: 700px) {
  .links a.nav-link{ display:none; }
  .hamburger{ display:inline-flex; }
}

/* Mobile Menü */
.mobile-menu{
  position:fixed;
  top:var(--header-h);
  left:0;
  right:0;
  background:var(--panel);
  border-left:1px solid rgba(148, 163, 184, .35);
  box-shadow:-24px 0 60px rgba(15, 23, 42, .9);
  height:auto;
  max-height:calc(100vh - var(--header-h));
  overflow-y:auto;
  transform:translateX(100%);
  opacity:0;
  pointer-events:none;
  transition:transform .3s ease, opacity .3s ease;
  z-index:120;
}
.mobile-menu.open{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}
.mobile-menu ul{
  list-style:none;
  margin:0;
  padding:18px 20px 24px;
}
.mobile-menu li{
  border-top:1px solid rgba(148, 163, 184, .18);
}
.mobile-menu li:first-child{ border-top:0; }
.mobile-menu a{
  display:block;
  padding:14px 4px;
  font-weight:500;
  font-size:.98rem;
  letter-spacing:.2px;
  color:var(--text);
  text-decoration:none;
}
.mobile-menu a:hover{
  background:rgba(148, 163, 184, .08);
  border-radius:.5rem;
}

/* Menü-Backdrop */
.menu-backdrop{
  position:fixed;
  top:var(--header-h);
  left:0;
  right:0;
  bottom:0;
  background:rgba(2, 6, 23, .55);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:110;
}
.menu-backdrop.open{
  opacity:1;
  pointer-events:auto;
}

/* Mobile-Infra auf großen Screens verstecken */
@media (min-width: 701px) {
  .mobile-menu,
  .menu-backdrop{
    display:none;
  }
}

/* Cookie-Banner */
.cookie{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  max-width:min(720px,92vw);
  background:var(--panel);
  border:1px solid rgba(148,163,184,.25);
  border-radius:16px;
  padding:14px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  z-index:99;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s, transform .25s;
}
.cookie.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
.cookie .options{
  display:grid;
  gap:8px;
  margin:10px 0;
}
.cookie .opt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background:color-mix(in hsl,var(--panel),white 2%);
  border:1px solid rgba(148,163,184,.15);
}
.cookie-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.4);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
  z-index:98;
}
.cookie-backdrop.visible{
  opacity:1;
  pointer-events:auto;
}

/* Footer – neuer Aufbau */
.footer{ padding:0; background:none; border-top:0; }

/* Oberer Bereich */
.footer-top{
  background: color-mix(in hsl, var(--panel), black 6%);
  padding: clamp(28px, 5vw, 60px) 0;
  border-top: 1px solid rgba(148,163,184,.15);
}
.footer-top-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap:28px;
}
.footer-col h4{
  margin:0 0 10px;
  font-size:1.05rem;
  letter-spacing:.2px;
  color:var(--text);
}

/* Kontaktinfos */
.footer-contact-info{ gap:1.2rem; }
.contact-item{
  display:flex;
  align-items:center;
  gap:12px;
}
.contact-item .icon{
  margin-top:0;
  color:var(--brand-2);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.contact-item address{ font-style:normal; }
.contact-item strong{ display:block; margin-bottom:2px; }
.contact-item.hours div:last-child{
  font-size:.9rem;
  line-height:1.4;
}

/* Social Links */
.social-links{
  display:grid;
  gap:10px;
}
.social-links .social{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.18);
  background:color-mix(in hsl, var(--panel), white 2%);
  text-decoration:none;
  color:var(--text);
  opacity:.95;
  transition:transform .15s, box-shadow .15s, color .15s;
}
.social-links .social:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* Keyword-Tags */
.keyword-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  margin:0;
  padding:0;
}
.keyword-tags li{
  font-size:.9rem;
  line-height:1;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background:color-mix(in hsl, var(--panel), white 3%);
  color:var(--text);
}

/* Unterer Legal-Streifen */
.footer-bottom{
  background:var(--footer-bottom-bg);
  color:var(--footer-bottom-fg);
  padding:12px 0;
  border-top:1px solid var(--footer-bottom-border);
  position:relative;
  z-index:1;
}
.footer-bottom-row{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.footer-bottom .copyright{
  color:var(--footer-bottom-fg);
  font-size:.95rem;
}
.footer-bottom .legal-links{
  margin-left:auto;
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}
.footer-bottom .legal-links a,
.footer-bottom .legal-links a:visited{
  color:var(--footer-bottom-fg) !important;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:1px dashed transparent;
  transition:color .15s ease, border-color .15s ease;
}
.footer-bottom .legal-links a:hover,
.footer-bottom .legal-links a:focus-visible{
  color:var(--footer-bottom-fg-hover) !important;
  border-color:rgba(255, 255, 255, .6);
  outline:none;
}

@media (max-width: 900px) {
  .footer-top-grid{ grid-template-columns:1fr; }
  .footer-bottom .legal-links{ margin-left:0; }
}

/* Bigger hero feature badges + clearer icons */
.feature-item .icon{
  width: 60px;          /* was 32px */
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Make the icon itself bigger */
.feature-item .icon svg{
  width: 50px;          /* was ~18-22px */
  height: 50px;
  display: block;
}

/* keep your bold outline style */
.feature-item .icon svg,
.feature-item .icon svg *{
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.4 !important;
  vector-effect: non-scaling-stroke; /* keep line weight stable */
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.feature-item .icon svg{
  shape-rendering: geometricPrecision;
}
.feature-item .icon img{
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* Mobile: center icon + headline inside feature cards */
@media (max-width: 600px) {
  .feature-item{
    grid-template-columns: 1fr;   /* stack */
    text-align: center;
    justify-items: center;
  }

  .feature-item .icon{
    margin: 0 auto 10px auto;     /* center icon */
  }

  .feature-item h3{
    margin: 0 auto 10px auto;
    text-align: center;
  }
}

