/* ===== Base ===== */
:root{
  --brand-blue: #0b2a4b;  /* passend zum Footer-Blau */
  --brand-blue-strong: #0b3a67;
  --brand-green: #1b6b3c;
  --text: #0a1220;

  --footer-text: #eaf1fb;
  --footer-muted: rgba(234,241,251,.78);
  --footer-line: rgba(255,255,255,.14);
}

*{ box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

main{ flex: 1; }

a{ color: inherit; text-decoration: none; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Top Brandline ===== */
.top-brandline{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 20px;
  background: #ffffff;
}

.top-brandline .brand-name{
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: #0b2a4b;
  letter-spacing: .2px;
}

.top-brandline .line{
  width: 60px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #0b2a4b,
    transparent
  );
  opacity: .5;
}

/* ===== Main Header Bar ===== */
.main-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    #0b2a4b,
    #0e3b68
  );
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.header-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Logo Card */
.header-logo img{
  height: 64px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* Navigation */
.main-nav{
  display: flex;
  gap: 28px;
}

.main-nav a{
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}

/* Hover underline animation (weiß) */
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after{
  transform: scaleX(1);
}


/* Desktop Menü im Balken */
.nav-onbar{
  display:flex;
  align-items:center;
  gap: 18px;
  white-space: nowrap;
}

.nav-onbar a{
  position: relative;
  color: rgba(234,241,251,.95);
  font-weight: 800;
  padding: 8px 2px;
}

/* Hover-Underline wächst nach rechts */
.nav-onbar a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  height:2px;
  width:100%;
  background: rgba(234,241,251,.95);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .18s ease;
  border-radius: 2px;
}
.nav-onbar a:hover::after{ transform: scaleX(1); }
.nav-onbar a.is-active::after{ transform: scaleX(1); }

/* Burger nur mobil */
.menu-toggle{ display:none; }
.nav-mobile{ display:none; }

/* ===== Mobile ===== */
@media (max-width: 920px){
  .nav-onbar{ display:none; }

  .menu-toggle{
    display:inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    align-items:center;
    justify-content:center;
    gap: 5px;
    padding: 12px;
    cursor:pointer;
  }
  .menu-toggle span{
    display:block;
    width: 20px;
    height: 2px;
    background: rgba(234,241,251,.95);
    border-radius: 2px;
    transition: transform .18s ease, opacity .18s ease;
  }

  /* Mobile Menü Overlay */
  .nav-mobile{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 120px; /* Top-Row + Bar */
    display:none;
    z-index: 50;
    background: rgba(10,18,32,.55);
    backdrop-filter: blur(6px);
  }
  .nav-mobile.nav-open{ display:block; }

  .nav-mobile a{
    display:block;
    margin: 10px 18px;
    font-weight: 800;
    text-decoration:none;
    color:#0a1220;
    background:#fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
  }
  .nav-mobile a.nav-cta{
    background:#0b2a4b;
    color:#fff;
  }

  /* Burger -> X */
  .menu-open .menu-toggle span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .menu-open .menu-toggle span:nth-child(2){
    opacity: 0;
  }
  .menu-open .menu-toggle span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-company{
    font-size: 13.5px;
  }

  .brand-logo{ height: 54px; }
}





/* Desktop Navigation + Hover-Animation */
.nav-desktop{
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nav-desktop a{
  position: relative;
  color: var(--text);
  font-weight: 800;
  padding: 8px 4px;
}

.nav-desktop a::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(11,58,103,.95);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  border-radius: 2px;
}
.nav-desktop a:hover::after{ transform: scaleX(1); }
.nav-desktop a.is-active::after{ transform: scaleX(1); }

/* ===== Hero / Layout ===== */
.hero{ background:#f4f4f4; padding: 60px 0; }

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

.box{ border: 1px solid #ddd; padding: 20px; }

.button{
  display:inline-block;
  padding: 12px 18px;
  border: 1px solid #000;
}

/* ===== Footer FINAL (Typografie & Abstände konsistent) ===== */
.footer{
  margin-top: 46px;
  color: var(--footer-text);
  background:
    radial-gradient(900px 380px at 15% 10%, rgba(11,58,103,.75), transparent 60%),
    radial-gradient(900px 380px at 85% 0%, rgba(11,58,103,.55), transparent 62%),
    linear-gradient(135deg, #071526, #0b2a4b);
  border-top: 1px solid var(--footer-line);
}

/* EINHEITLICHE Footer-Typografie */
.footer,
.footer a,
.footer-title,
.footer-sub,
.footer-links a,
.footer-copy{
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.footer-title{
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
}

/* Layout Desktop */
.footer-inner{
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 18px;
  align-items: start;
}

/* Links */
.footer-left{ min-width: 0; }

.footer-company{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* Rechts */
.footer-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
  gap: 10px;
}

.footer-links{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.footer-links a{
  font-weight:700;
  color: var(--footer-text);
  opacity:.95;
}
.footer-links a:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer-sub{
  color: var(--footer-muted);
  margin: 0;
}
.footer-sub a{
  color: var(--footer-text);
  border-bottom: 1px solid rgba(234,241,251,.28);
  opacity: .92;
}
.footer-sub a:hover{
  border-bottom-color: rgba(234,241,251,.6);
  opacity: 1;
}

/* LinkedIn Icon auf Textlinie */
.icon-btn{
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  opacity: .95;
}
.icon-btn svg{
  width: 14px;
  height: 14px;
  display: block;
}
.icon-btn:hover{ opacity: .85; }

.footer-copy{
  color: rgba(234,241,251,.72);
}

/* ===== Burger nur mobil ===== */
.menu-toggle{ display:none; }
.nav-mobile{ display:none; }

/* ===== Responsive ===== */
@media (max-width: 920px){
  /* Header: Desktop Nav aus, Burger an */
  .brand-logo{ height: 72px; }

  .header-right{
    justify-self: start;
    align-items: flex-start;
    gap: 6px;
  }

  .brandline{
    font-size: 13px;
    white-space: normal;
  }

  .nav-desktop{ display:none; }

  .menu-toggle{
    display:inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background:#fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    align-items:center;
    justify-content:center;
    gap: 5px;
    padding: 12px;
    cursor:pointer;
  }
  .menu-toggle span{
    display:block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .18s ease, opacity .18s ease;
  }

  /* Mobile Menü Overlay */
  .nav-mobile{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 92px;
    display:none;
    z-index: 50;
    background: rgba(10,18,32,.55);
    backdrop-filter: blur(6px);
  }
  .nav-mobile.nav-open{ display:block; }

  .nav-mobile a{
    display:block;
    margin: 10px 18px;
    font-weight: 800;
    color: var(--text);
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
  }
  .nav-mobile a.nav-cta{
    background: var(--brand-blue);
    color:#fff;
  }

  /* Burger -> X */
  .menu-open .menu-toggle span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .menu-open .menu-toggle span:nth-child(2){
    opacity: 0;
  }
  .menu-open .menu-toggle span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Grid: 1 Spalte auf Mobil */
  .grid{ grid-template-columns: 1fr !important; }

  /* Footer: 1 Spalte */
  .footer-inner{
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .footer-right{
    align-items:flex-start;
    text-align:left;
  }
  .footer-sub{ word-break: break-word; }
}
