/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: #000000;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: #0078a0;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #0078a0;
  outline-offset: 2px;
}

.container {
  width: calc(100vw - 250px);
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 220px;
  margin-right: 0px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #ffffffcc;
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #e5e9f2;
}

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

.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.brand-mark {
  display: flex;
  place-items: center;
  width: none;
  height: 100%;
  border-radius: 0px;
  background: #000000;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 0%,
    rgba(92, 92, 92, 1) 97%,
    rgba(255, 255, 255, 1) 100%
  );
  color: #fff;
  font-size: 22px;
  padding: 6px 16px 6px 16px;
  margin-right: 20px;
  contain-intrinsic-block-size: AUTO 100px;
  /* position: absolute; */
}

.brand-text {
  font-weight: normal;
  color: #000000;
  font-size: 16px;
  padding-right: 12px;
}

#nav-toggle {
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}

.menu.open {
  opacity: 1;
}

main.container {
  position: relative;
  z-index: 99;
}

main.container.open {
  position: relative;
  z-index: 1;
}

.menu li {
  margin: 0;
}

.menu a {
  display: block;
  padding: 10px 14px;
  border-bottom: 2px solid #ffffff;
}

.menu a.active {
  font-weight: 500;
  color: #000000;
  border-bottom: 2px solid #080038;
}

.menu li a:hover {
  border-bottom: 2px solid #080038;
}

.menu li a:hover:not(.active) {
  border-bottom: 2px solid #0078a0;
}

.menu {
  list-style: none;
  top: 100%;
  left: 0;
  right: 0;
  display: table;
  position: fixed;
  box-shadow: none;
  background: #fff;
  border-right: 1px solid #b5b5b5;
}

.menu li {
  margin: 0 6px;
  padding-right: 20px;
}

.menu li:last-child {
  margin-left: 16px;
}

.menu a {
  border-radius: 8px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0;
  position: relative;
}

.hero-text {
  flex: 1 1 360px;
}

.hero-text h1 {
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0px;
}

.hero-image {
  flex: 0 1 260px;
  text-align: center;
  margin-top: 24px;
}

.profile-pic {
  width: 220px;
  max-width: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.582);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 40px;
}

.card {
  background: #f7fafc;
  border: 1px solid #babdc5;
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.4s ease, box-shadow 0.2s ease;
}

.card:hover {
  color: #000;
  transform: translate(2px, 2px);
  border: 1px solid #000000;
  background: #0078a021;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.582);
  cursor: pointer;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 10px 10px 10px rgb(17 91 231 / 20%);
  cursor: pointer;
}

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

/* Buttons */
.btn {
  display: inline-block;
  background: #0078a0;
  color: #fff;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 1s ease, transform 0.4s ease, box-shadow 0.2s ease;
  margin-top: 14px;
  text-transform: uppercase;
}

#leistungen .btn.ki-tools { 
  margin-top: 0;
  margin-bottom: 12px;
}

.btn:hover {
  background: #006b8f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.btn.ghost {
  background: transparent;
  color: #000000;
  border: 1px solid #babdc5;
}

.btn.ghost:hover {
  background: #f3f7fb;
}

/* Forms */
label {
  display: block;
  margin: 8px 0 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cfd6e6;
  border-radius: 10px;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: #0078a0;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 120, 160, 0.15);
}

.consent-label {
  font-size: 15px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  background: #0b0f19;
  color: #fff;
}

.site-footer .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f7fb;
  border-top: 1px solid #e5e9f2;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.06);
  padding: 13px 15px;
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 100;
}

#cookie-banner p {
  margin: 0;
  max-width: 90vw;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

#accept-necessary,
#accept-all {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #0078a0;
  font-weight: 700;
  cursor: pointer;
}

#accept-necessary {
  background: #fff;
  color: #0078a0;
}

#accept-all {
  background: #0078a0;
  color: #fff;
}

/* Modal */
#login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  width: min(92vw, 420px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

section.hero > div > h1 i {
  display: inline-block;
  /* wichtig, damit transform greift */
  transform: skewX(-36deg);
  /* negativer Wert = nach rechts */
  transform-origin: bottom left;
  /* bleibt optisch an der Grundlinie */
  font-weight: 400;
  line-height: 1.3;
  font-variant: small-caps;
}

section.hero > div > h1 > nobr {
  font-weight: 100;
}

/* 2-Spalten-Listen für größere Screens */
.cols-2 {
  columns: 2;
  column-gap: 24px;
}

h2 {
  margin-bottom: 12px;
  padding: 0;
  font-variant: small-caps;
}

front {
  font-weight: 500;
}

points {
  font-weight: 300;
}

section.second {
  margin-top: 16px;
}

#leistungen li {
  list-style: square;
}

#home li {
  list-style: square;
}

/* Hamburger Icon */
.hamburger {
  --bar-w: 28px;
  --bar-h: 2px;
  --bar-gap: 6px;
  position: relative;
  width: 34px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #0e1325;
}

.hamburger .bar {
  position: absolute;
  left: 50%;
  width: var(--bar-w);
  height: var(--bar-h);
  background: #000000;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
  transform: translateX(-50%);
}

.hamburger .bar:nth-child(1) {
  top: 4px;
}

.hamburger .bar:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hamburger .bar:nth-child(3) {
  bottom: 4px;
}

/* Zustand: aktiv -> X */
.hamburger.is-active .bar:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.4);
}

.hamburger.is-active .bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hover-Farbtouch */
.hamburger:hover {
  color: #0078a0;
}

b {
  font-weight: 800;
}

b700 {
  font-weight: 700;
}

b600 {
  font-weight: 600;
}
b500 {
  font-weight: 500;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

body.login .menu {
  background: none;
}

body.login .menu * {
  border: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0px #0078a0 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-weight: 500;
  color: #808080;
  border-bottom: 2px solid #080038;
}

.smallcaps {
  font-variant: small-caps;
}

/* Z-INDEX */

.menu.mobil {
  position: absolute;
  box-shadow: 0px 5px 10px rgb(137 174 255);
  padding-bottom: 0; /* am Anfang nix */
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  display: block;
  z-index: -1;
  background: #fff;
  max-height: 0; /* Start klein */
  overflow: hidden; /* kein Inhalt sichtbar */
}

.menu.mobil.open {
  opacity: 1;
  position: absolute !important;
  z-index: 9999;
  transform: translateY(0); /* zurückfahren */
  max-height: 500px; /* oder genug Platz für Menü */
  padding-bottom: 24px;
  margin-top: 0px !important;
}

.menu.mobil.open {
  opacity: 1;
  position: absolute !important;
  z-index: 9999;
  transform: translateY(0); /* zurückfahren */
  max-height: 500px; /* oder genug Platz für Menü */
  padding-bottom: 24px;
}

/* Motion-Respect */
@media (prefers-reduced-motion: reduce) {
  .hamburger .bar {
    transition: none;
  }
}

/* Desktop: Button ausblenden, wie gehabt */
h3 {
  font-size: 18px;
  font-variant: small-caps;
  font-weight: 680;
}

@media (max-width: 940px) {
}

@media (min-width: 768px) {
  #nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .cols-2 {
    columns: 1;
  }
  .container {
    width: min(1100px, 92vw);
    margin: 0 auto;
  }
  .hero-image {
    flex: 0 1 260px;
    text-align: center;
  }
  .profile-pic {
    width: 180px;
  }
  .brand-mark {
  font-size: 16px;
  padding: 4px 12px 4px 12px;
}
}
