:root{
  --bg: #ffffff;
  --fg: #111111;
  --muted: #555555;
  --rule: #e6e6e6;
  --accent: #1a4d8f;

  --max: 860px;
  --pad: 22px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Typografie */
  --lh-body: 1.52;
  --p-gap: 0px;
  --li-gap: 3px;
  --lead-gap: 6px;

  /* Sections */
  --section-gap: 48px;
  --section-pad: 36px;

  /* Hero-Streifen */
  --hero-h: 240px;
  --hero-opacity: 0.22;
  --hero-y: 50%;
}

*{ box-sizing: border-box; }
[hidden]{ display:none !important; }

html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 12px;
  border-radius: 8px;
}
.skip-link:focus{ left: 12px; z-index: 10; }

/* -----------------------
   Header
----------------------- */
.site-header{
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.header-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}

.brand__name-link{
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 4px; /* zweite Zeile unter dem Tag */
}
.brand__name-link:hover{
  color: var(--fg);
  text-decoration: none;
}

.brand__tag{
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0;
}

/* Links (Desktop + Footer shared) */
.nav-links{
  display:flex;
  gap:16px;
  align-items:center;
  white-space: nowrap; /* Desktop: sauber in einer Zeile */
}

.nav-links a{
  color: var(--muted) !important;
  text-decoration:none;
  font-size: 0.95rem;
}
.nav-links a:hover{
  color: var(--fg) !important;
  text-decoration:none;
}

/* Desktop nav */
.nav-desktop{ display:flex; }

/* Hamburger Button */
.nav-toggle{
  display:none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle__bar{
  display:block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

/* Mobile menu panel */
.nav-mobile{
  display:none;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.nav-mobile[hidden]{ display:none !important; }

.nav-mobile__inner{
  padding: 12px var(--pad);
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  width: 100%;

  /* rechtsbündig wie im Footer */
  justify-content: flex-end;
}

.nav-mobile a{
  color: var(--muted) !important;
  text-decoration:none;
  font-size: 0.95rem;
  display: inline-flex;
  padding: 6px 0;
}
.nav-mobile a:hover{
  color: var(--fg) !important;
  text-decoration:none;
}

/* -----------------------
   Hero-Strip (Option 1)
----------------------- */
.hero-strip{
  width: 100%;
  height: var(--hero-h);
  background-image: url("/images/Enterprise-Advisor2.png");
  background-repeat: no-repeat;

  /* volle Breite; Höhe automatisch */
  background-size: 100% auto;
  background-position: center var(--hero-y);

  opacity: var(--hero-opacity);
  border-bottom: 1px solid var(--rule);

  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
}

/* -----------------------
   Main
----------------------- */
main.container{
  padding-top: 34px;
  padding-bottom: 60px;
}

main a{
  color: var(--accent);
  text-decoration: none;
}
main a:hover{
  text-decoration: underline;
}

/* Sections */
section{ margin: 0 0 var(--section-gap); }
section + section{ padding-top: var(--section-pad); border-top: 1px solid var(--rule); }

main.container > section:last-of-type{
  margin-bottom: 0;
}

/* Divider */
.divider{
  display:block;
  height: 1px;
  width: 100%;
  background: var(--rule);
  margin: 28px 0;
}

/* Typography */
h1{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.05rem, 3.0vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h2{
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  color: var(--muted);
}

h3{
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 18px 0 8px;
}

p{
  margin: 0 0 var(--p-gap);
  font-size: 1.06rem;
}

ul{
  margin: 0 0 16px 18px;
  padding: 0;
}
li{ margin: var(--li-gap) 0; }

.list-lead{ margin-bottom: var(--lead-gap); }
.list-block{ margin-top: 12px; }

.keyline{
  margin: 12px 0 16px;
  padding: 10px 12px;
  background: #f2f6ff;
  border-radius: 10px;
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.45;
  display: block;
  width: 100%;
}

/* -----------------------
   Footer (Ziel-Layout)
----------------------- */
.site-footer{
  border-top: 1px solid var(--rule);
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Layout:
   - links oben: Cookies
   - links unten: Copyright
   - rechts: Menü (darf umbrechen, bevor Cookies umbricht)
*/
.site-footer .footer-inner.footer-priority{
  width: 100%;
  display: grid;

  /* links: so breit wie nötig (Cookies stabil),
     rechts: flexibel (Menü darf umbrechen) */
  grid-template-columns: max-content minmax(0, 1fr);

  grid-template-areas:
    "cookies nav"
    "copy   nav";

  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
}

/* linke Spalte */
.site-footer .footer-top-left{
  grid-area: cookies;
  justify-self: start;
  text-align: left;
  white-space: nowrap; /* Cookies nicht früh umbrechen */
}

.site-footer .footer-bottom-left{
  grid-area: copy;
  justify-self: start;
  text-align: left;
}

/* Footer: Copyright-Link wie Menü/Cookies */
.site-footer .footer-bottom-left a{
  color: var(--muted);
  text-decoration: none;
}
.site-footer .footer-bottom-left a:hover{
  color: var(--fg);
  text-decoration: none;
}

.site-footer .footer-bottom-left span{
  white-space: nowrap;
}

/* rechte Spalte: Menü */
.site-footer .footer-nav{
  grid-area: nav;

  /* flexible Spalte wirklich füllen */
  justify-self: stretch;
  width: 100%;

  /* Footer-Menü darf umbrechen (überschreibt .nav-links nowrap) */
  white-space: normal;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
  gap: 14px;
}

/* Cookie-Button wie Link */
.consent-link{
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.consent-link:hover{ color: var(--fg); }

/* -----------------------
   Mobile / schmale Fenster
----------------------- */
@media (max-width: 820px){
  .header-inner{ align-items:flex-start; }

  .nav-desktop{ display:none !important; }
  .nav-toggle{ display:inline-flex !important; }
  .nav-mobile{ display:block; }

  :root{
    --hero-h: 150px;
    --hero-opacity: 0.20;
    --hero-y: 50%;
  }
}

/* Mobile: 1 Spalte, Reihenfolge: Menü -> Cookies -> Copyright */
@media (max-width: 560px){
  .site-footer{ font-size: 0.9rem; }

  .site-footer .footer-inner.footer-priority{
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "cookies"
      "copy";
  }

  .site-footer .footer-nav{
    justify-self: stretch;
    justify-content: flex-end; /* Menü bleibt rechts */
    text-align: right;
  }

  .site-footer .footer-bottom-left span{
    white-space: normal;
  }
}

/* -----------------------
   Consent (GA Opt-in)
----------------------- */
.consent{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(0,0,0,0.28);
  z-index: 9999;
}

.consent__box{
  width: min(560px, 100%);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.consent__title{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.consent__text{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.consent__text a{
  color: var(--accent);
  text-decoration: none;
}
.consent__text a:hover{ text-decoration: underline; }

.consent__actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.consent__btn{
  border: 1px solid var(--rule);
  background: var(--fg);
  color: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.consent__btn--ghost{
  background: transparent;
  color: var(--fg);
}

.consent__btn:hover{
  filter: brightness(0.98);
}

@media (max-width: 820px){
  .consent{ place-items: end stretch; }
  .consent__actions{ justify-content: stretch; }
  .consent__btn{ width: 100%; }
}