/*
  Zentrales Stylesheet der Website
  Enthält Farbvariablen, Layout-Grundregeln und Responsive-Styles
*/
/* Grundlegendes Layout */
:root {
  --primary-color: #0066ff;
  --primary-color-rgb: 0, 102, 255;
  --secondary-color: #004bbd;
  --secondary-color-rgb: 0, 75, 189;
  --accent-color: #00c9a7;
  --background-color: #f9fbfd;
  --text-color: #333;
  --card-bg: #ffffff;
  --footer-bg: #fff;
  --section-alt-bg: #f5f5f5;
  --button-bg: var(--primary-color);
  --button-text: #fff;
  --font-family-base: 'Inter', 'Poppins', Arial, sans-serif;
  --font-family-headings: 'Poppins', Arial, sans-serif;
  --heading-color: var(--primary-color);
  --navbar-height: 80px;
  --footer-height: 52px;
}
body.dark-theme {
  --background-color: #121212;
  --text-color: #eee;
  --card-bg: #1e1e1e;
  --footer-bg: #000;
  --section-alt-bg: #1d1d1d;
}

body {
  font-family: var(--font-family-base);
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  background-color: var(--background-color);
  color: var(--text-color);
  padding-top: 0;
  padding-bottom: calc(var(--footer-height) + 1rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--heading-color, var(--text-color));
  text-align: left;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}
/* Standardabstand zwischen Sektionen reduziert */
.section {
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
}

main .section:nth-of-type(even) {
  background: none;
}

main .section:nth-of-type(even) > .container {
  background: var(--section-alt-bg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.js-enabled .section { /* Wird per JavaScript ein- bzw. ausgeblendet */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-enabled .section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: min(90%, 1200px);
  margin: auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.3s, box-shadow 0.3s;
  color: var(--text-color);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.dark-theme .navbar {
  background: rgba(30, 30, 30, 0.95);
}
/* Gradient modifier for the navbar */
.navbar.gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
}
body.dark-theme .navbar.gradient {
  background: linear-gradient(90deg, #003366, #001a33);
}
.navbar.gradient .menu a {
  color: inherit;
}
.navbar.gradient .menu a:hover {
  color: inherit;
  opacity: 0.85;
}
.navbar.gradient .menu a::after {
  background: #fff;
}
.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.navbar.scrolled .nav-wrapper {
  padding: 0.5rem 2rem;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
}
.logo img {
  height: 40px;
}
.nav-logo-akis {
  height: 24px;
  vertical-align: middle;
}
.menu {
  display: block;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  position: relative;
}
.menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  transition: width 0.3s;
}
.menu a:hover {
  color: var(--primary-color);
}
.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}
.menu a.active {
  color: var(--primary-color);
}
body.dark-theme .menu a {
  color: var(--text-color);
}
.menu a.button {
  color: var(--button-text);
}
.button {
  background: var(--button-bg);
  border: none;
  border-radius: 6px;
  color: var(--button-text);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.button.secondary {
  background: var(--secondary-color);
}
.button:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}
.button.akislg {
  background: #fff;
  color: var(--button-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.button.akislg:hover {
  background: var(--secondary-color);
}
.button.akislg .nav-logo-akis {
  height: 32px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
}
.nav-toggle .bar {
  position: absolute;
  width: 100%;
  height: 3px;
  left: 0;
  background: var(--text-color);
  transition: transform 0.3s, opacity 0.3s;
}
body.dark-theme .nav-toggle .bar {
  background: #fff;
}
.nav-toggle .bar:nth-child(1) { top: 6px; }
.nav-toggle .bar:nth-child(2) { top: 14px; }
.nav-toggle .bar:nth-child(3) { top: 22px; }
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  padding-top: 0;
  background: linear-gradient(180deg, rgba(0,102,255,0.05), rgba(0,201,167,0.05));
}
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.hero-image {
  flex: 1 1 300px;
  max-width: 600px;
}
.hero-text {
  flex: 1 1 300px;
}
.hero-text h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.2;
  margin: 1.5rem 0;
}
.hero-text p {
  font-size: clamp(1rem, 4vw, 1.125rem);
}
.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#leistungen-details .cards {
  display: flex;
  flex-direction: column;
}
.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.card img {
  max-width: 80px;
  margin-bottom: 0.75rem;
}
/* Intro Bereich */
.intro-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.intro-text {
  flex: 1 1 300px;
}
.intro-image {
  flex: 1 1 300px;
  max-width: 600px;
}


/* AKIS */
.akis-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.akis-text {
  flex: 1 1 300px;
}
.akis-text ul {
  padding-left: 1.2rem;
}
.akis-text li {
  margin-bottom: 0.5rem;
}
.akis-grid img {
  flex: 1 1 300px;
  max-width: 400px;
}

/* Neue AKIS Features */
.akis-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.akis-feature img {
  flex: 1 1 300px;
  max-width: 400px;
}
.feature-text {
  flex: 1 1 300px;
}

.feature-text ul {
  list-style: none;
  padding-left: 1.5rem;
}

.feature-text li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

/* Accordion for AKIS features */
.accordion.section {
  padding: 1.5rem 0;
}

/* Ensure consistent spacing above the footer on pages using accordions */
.accordion.section:last-of-type {
  padding-bottom: 3rem;
}
.accordion details {
  margin: 0.75rem auto;
  width: 90%;
  max-width: 1200px;
  border: none;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "✔";
  position: absolute;
  right: 1.25rem;
  font-size: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion details[open] summary::after {
  transform: rotate(90deg);
}
.accordion-content {
  padding: 0 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}
.accordion details[open] .accordion-content {
  padding: 1rem 1.5rem;
  opacity: 1;
}

.feature-menu {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1000;
}

.feature-menu .feature-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, background 0.3s;
}

.feature-menu .feature-toggle:hover {
  background: var(--secondary-color);
}

.feature-menu.open .feature-toggle {
  transform: rotate(45deg);
}

.feature-menu .feature-nav {
  position: absolute;
  top: 0;
  right: 60px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.9);
  color: #fff;
  backdrop-filter: blur(6px);
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.feature-menu.open .feature-nav {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.feature-menu .feature-nav a,
.feature-menu .feature-nav button {
  display: block;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: none;
  background: none;
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
  transition: background 0.3s;
}

.feature-menu .feature-nav a:hover,
.feature-menu .feature-nav a.active,
.feature-menu .feature-nav button:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* Kontakt */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.contact-form {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
}
.contact-form form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-family-base);
  color: var(--text-color);
  background: var(--background-color);
}
.contact-form textarea,
.contact-form button {
  grid-column: 1 / -1;
}
.contact-form textarea {
  resize: vertical;
}
.map {
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Neues Kontaktformular */
.contact-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.contact-card form {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .contact-card form {
    grid-template-columns: 1fr 1fr;
  }
  .contact-card form .full-width {
    grid-column: 1 / -1;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--background-color);
  font-family: var(--font-family-base);
  box-sizing: border-box;
  margin: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--text-color);
}

.contact-card input::placeholder,
.contact-card textarea::placeholder,
.contact-card select::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select::placeholder {
  color: #888;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.contact-card textarea {
  resize: none;
  overflow: hidden;
}

.contact-card .button {
  justify-self: start;
  margin-top: 0.75rem;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--text-color);
  padding: 0.5rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}
.footer a {
  color: var(--text-color);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}
.footer nav a:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: -0.75rem;
  color: var(--text-color);
}
.footer a:hover {
  color: var(--accent-color);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    padding-top: 4rem;
    transition: right 0.3s;
  }
  .menu.open {
    right: 0;
  }
  .menu-list {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-toggle {
    display: block;
  }
  body.dark-theme .menu {
    background: rgba(30, 30, 30, 0.95);
  }
}

@media (max-width: 480px) {
  .menu {
    width: 100%;
  }
  .nav-wrapper {
    padding: 0.75rem 1rem;
  }
  .menu a {
    padding: 1rem 1.25rem;
  }
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.dark-theme .theme-toggle {
  color: #fff;
}
.theme-toggle:hover {
  /* Gleiche Hover-Animation wie die übrigen Buttons */
}

/* Radial action menu */
.c-circle-nav {
  position: fixed;
  bottom: calc(var(--footer-height) + 2rem);
  right: 1rem;
  z-index: 1000;
  width: 32px;
  height: 32px;
  border-radius: 16px;
}

@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav {
    width: 64px;
    height: 64px;
    border-radius: 32px;
  }
}

.c-circle-nav__items {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 90;
}

.c-circle-nav__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition-property: transform, opacity;
  transition-duration: 0.2s, 0.2s;
  transition-timing-function: cubic-bezier(0.35, -0.59, 0.47, 0.97);
}

@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__item {
    width: 64px;
    height: 64px;
    border-radius: 32px;
  }
}

.c-circle-nav__item:nth-child(1) { transition-delay: 0.25s; }
.c-circle-nav__item:nth-child(2) { transition-delay: 0.2s; }
.c-circle-nav__item:nth-child(3) { transition-delay: 0.15s; }
.c-circle-nav__item:nth-child(4) { transition-delay: 0.1s; }
.c-circle-nav__item:nth-child(5) { transition-delay: 0.05s; }
.c-circle-nav__item:nth-child(6) { transition-delay: 0s; }

.c-circle-nav.is-active .c-circle-nav__item {
  transition-timing-function: cubic-bezier(0.35, 0.03, 0.47, 1.59);
  opacity: 1;
  pointer-events: auto;
}

.c-circle-nav.is-active .c-circle-nav__item:nth-child(1) {
  transition-delay: 0s;
  transform: translate(-100px, 0);
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav.is-active .c-circle-nav__item:nth-child(1) {
    transform: translate(-200px, 0);
  }
}
.c-circle-nav.is-active .c-circle-nav__item:nth-child(2) {
  transition-delay: 0.05s;
  transform: translate(-95px, -30px);
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav.is-active .c-circle-nav__item:nth-child(2) {
    transform: translate(-190px, -60px);
  }
}
.c-circle-nav.is-active .c-circle-nav__item:nth-child(3) {
  transition-delay: 0.1s;
  transform: translate(-81px, -59px);
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav.is-active .c-circle-nav__item:nth-child(3) {
    transform: translate(-162px, -118px);
  }
}
.c-circle-nav.is-active .c-circle-nav__item:nth-child(4) {
  transition-delay: 0.15s;
  transform: translate(-59px, -81px);
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav.is-active .c-circle-nav__item:nth-child(4) {
    transform: translate(-118px, -162px);
  }
}
.c-circle-nav.is-active .c-circle-nav__item:nth-child(5) {
  transition-delay: 0.2s;
  transform: translate(-30px, -95px);
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav.is-active .c-circle-nav__item:nth-child(5) {
    transform: translate(-60px, -190px);
  }
}
.c-circle-nav.is-active .c-circle-nav__item:nth-child(6) {
  transition-delay: 0.25s;
  transform: translate(0, -100px);
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav.is-active .c-circle-nav__item:nth-child(6) {
    transform: translate(0, -200px);
  }
}

.c-circle-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px #fff;
  background: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__link {
    border-radius: 32px;
    font-size: 1.25rem;
  }
}

.c-circle-nav__link svg {
  width: 1em;
  height: 1em;
}

@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__link svg {
    width: 1.25em;
    height: 1.25em;
  }
}
.c-circle-nav__link:hover {
  box-shadow: inset 0 0 0 2px var(--secondary-color);
  background: var(--secondary-color);
}

.c-circle-nav__toggle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  font-size: 0;
  text-indent: -9999px;
  border-radius: 16px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  appearance: none;
  box-shadow: none;
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__toggle {
    width: 64px;
    height: 64px;
    border-radius: 32px;
  }
}
.c-circle-nav__toggle:hover,
.c-circle-nav__toggle:focus,
.c-circle-nav__toggle.is-active {
  outline: none;
  background-color: var(--secondary-color);
}
.c-circle-nav__toggle span,
.c-circle-nav__toggle span::before,
.c-circle-nav__toggle span::after {
  display: block;
  position: absolute;
  height: 4px;
  background: #fff;
  border-radius: 1px;
  width: auto;
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__toggle span,
  .c-circle-nav__toggle span::before,
  .c-circle-nav__toggle span::after {
    height: 8px;
    border-radius: 2px;
  }
}
.c-circle-nav__toggle span {
  top: 14px;
  left: 6px;
  right: 6px;
  transition: background 0.2s;
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__toggle span {
    top: 28px;
    left: 12px;
    right: 12px;
  }
}
.c-circle-nav__toggle span::before,
.c-circle-nav__toggle span::after {
  content: "";
  left: 0;
  width: 100%;
  transition-duration: 0.2s, 0.2s;
  transition-delay: 0.2s, 0s;
}
.c-circle-nav__toggle span::before {
  top: -5px;
  transition-property: top, transform;
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__toggle span::before {
    top: -9px;
  }
}
.c-circle-nav__toggle span::after {
  bottom: -5px;
  transition-property: bottom, transform;
}
@media (min-width: 480px) and (min-height: 480px) {
  .c-circle-nav__toggle span::after {
    bottom: -9px;
  }
}
.c-circle-nav__toggle.is-active span {
  background: none;
}
.c-circle-nav__toggle.is-active span::before {
  top: 0;
  transform: rotate(45deg);
  transition-delay: 0s, 0.2s;
}
.c-circle-nav__toggle.is-active span::after {
  bottom: 0;
  transform: rotate(-45deg);
  transition-delay: 0s, 0.2s;
}

.c-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  z-index: 900;
  transition: opacity 0.2s, visibility 0.2s;
}
.c-mask.is-active {
  opacity: 1;
  visibility: visible;
}

/* Scroll to top button */
.scroll-top {
  width: 32px;
  height: 32px;
  display: none;
}

@media (min-width: 480px) and (min-height: 480px) {
  .scroll-top {
    width: 64px;
    height: 64px;
  }
}

.scroll-top.show {
  display: flex;
}

/* Section headings */
.section h2 {
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* Partner logos */
.partner-slider {
  text-align: center;
  overflow: hidden;
}
.partner-slider .logos {
  display: flex;
  gap: 2rem;
  will-change: transform;
}
.partner-slider img {
  height: 100px;
  width: auto;
}

/* Team list */
.hidden {
  display: none !important;
}
.team-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.team-list li {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-family-base);
}
.team-member .profile {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}
.team-member .info {
  margin-top: 0.75rem;
}

.team-member .info strong,
.team-member .info span,
.team-member .info .linkedin {
  display: block;
}
.team-member .linkedin {
  margin-top: 0.5rem;
  background: none;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.team-member .linkedin img,
.team-member .linkedin i {
  width: 24px;
  height: 24px;
  color: #fff;
}
.team-member .linkedin:hover {
  transform: scale(1.1);
}

/* FAQ */
details {
  background: var(--card-bg);
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
summary {
  cursor: pointer;
  font-weight: 600;
}

/* Contact */
.contact-form {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.akis-logo {
  max-width: 300px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.3));
}

.calculator-logo {
  max-width: 300px;
  margin: 0 auto 1rem;
  display: block;
}

/* Einsparungsrechner Teaser */
.calculator-intro-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.calculator-illustration {
  flex: 0 0 200px;
  max-width: 250px;
  width: 100%;
}

.calculator-text {
  flex: 1 1 300px;
}

#einsparungsrechner .calculator-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
}

#einsparungsrechner .title-text {
  font-size: inherit;
}

.logo-highlight {
  animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(0, 102, 255, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(0, 102, 255, 0.8));
    transform: scale(1.05);
  }
}

/* Reusable animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moveOrb {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, 20px);
  }
}

@keyframes moveOrbReverse {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Intro-Bereich: Abstand nach oben f\u00fcr besseres Layout */
#intro {
  padding-top: 3rem;
  text-align: center;
  position: relative;
}

#leistungen-intro {
  text-align: left;
}

/* Vollbild-Vorschau f\u00fcr Bilder */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 2000;
}
.image-modal.open {
  opacity: 1;
  visibility: visible;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
.image-modal .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Bottom CTA */
.end-cta {
  position: fixed;
  bottom: calc(var(--footer-height) + 2rem);
  right: 1rem;
  margin: 0;
  transform: translateY(40px);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-color);
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 280px;
  text-align: left;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}
.end-cta::before,
.end-cta::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
  z-index: -1;
}
.end-cta::before {
  width: 1.8rem;
  height: 1.8rem;
  top: -0.9rem;
  left: 0.4rem;
}
.end-cta::after {
  width: 1.4rem;
  height: 1.4rem;
  top: -1.1rem;
  left: 1.6rem;
}
.end-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.end-cta.nav-offset {
  right: calc(64px + 10rem);
}
.end-cta a.button {
  background: #fff;
  color: var(--primary-color);
}
body.dark-theme .end-cta {
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
}


/* Cookie consent overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}
.cookie-overlay.show {
  display: flex;
}
.cookie-banner {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  max-width: 420px;
  width: 90%;
}
.cookie-banner p {
  margin: 0 0 0.75rem;
}
.cookie-banner label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.cookie-banner .actions {
  margin-top: 0.75rem;
}
.cookie-banner button {
  margin-right: 0.5rem;
}
body.dark-theme .cookie-banner {
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
}

/* Demo Termin Modal */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 2000;
}
.demo-modal.open {
  opacity: 1;
  visibility: visible;
}
.demo-modal .dialog {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.demo-modal .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation dropdown enhanced */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  transform: scale(0.95);
  transform-origin: top left;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .submenu,
.nav-dropdown.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.nav-dropdown .submenu a {
  padding: 0.5rem 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown .submenu a:hover {
  background: var(--section-alt-bg);
}

body.dark-theme .nav-dropdown .submenu {
  background: var(--card-bg);
}

.nav-dropdown .nav-dropdown .submenu {
  top: calc(100% + 0.5rem);
  left: 0;
  transform: scale(0.95);
}

.nav-dropdown .nav-dropdown:hover .submenu,
.nav-dropdown .nav-dropdown.open .submenu {
  transform: scale(1);
}

@media (max-width: 768px) {
  .nav-dropdown .nav-dropdown .submenu {
    position: static;
    padding-left: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-dropdown .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 1rem;
    border: none;
    display: none;
  }
.nav-dropdown.open > .submenu {
    display: block;
  }
}

/* Modern Navbar Styles */
.navbar {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5em 1em;
}

.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navbar-item {
  position: relative;
}

.navbar-menu a {
  display: block;
  padding: 0.5em 1em;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.navbar-menu a:hover {
  color: var(--accent-color);
}

.dropdown-toggle::after {
  content: "\25BE";
  margin-left: 0.3em;
  transition: transform 0.3s;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.3em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  list-style: none;
  padding: 0.5em 0;
  margin: 0;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  margin-top: 0.2em;
  z-index: 1000;
}

.dropdown-menu li a {
  padding: 0.5em 1em;
  color: #000;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent-color);
}

.navbar-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

.navbar-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

.dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.btn-cta {
  background: var(--accent-color);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 0.3em;
  font-weight: 600;
}

.btn-cta:hover {
  background: #d14f04;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1em;
}

.navbar-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #000;
  transition: 0.4s;
}

.navbar.open .navbar-toggle .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar.open .navbar-toggle .bar:nth-child(2) {
  opacity: 0;
}

.navbar.open .navbar-toggle .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-menu .navbar-item {
    width: 100%;
    text-align: center;
  }

  .navbar-menu a {
    padding: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar.open .navbar-menu {
    max-height: 500px;
  }

  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    transform: none;
    transition: max-height 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu li a {
    padding: 0.5em 2em;
    text-align: left;
    width: 100%;
  }
}

/* ==== Modern Animated Navbar ==== */
.navbar.glass {
  background: rgba(var(--primary-color-rgb), 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 2rem;
  width: 100%;
}

.navbar .logo img {
  height: 40px;
}

.navbar .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.navbar .nav-links {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar .menu li {
  position: relative;
}

.navbar .menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  display: block;
}

.navbar .menu .cta .button {
  background: #F25C05;
  color: #fff;
  border-radius: 1rem;
  font-size: 0.875rem;
  padding: 0.4rem 0.8rem;
}

.navbar .menu .cta .button:hover {
  background: #d14f04;
}


.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.navbar .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}

.navbar .nav-toggle .bar {
  width: 24px;
  height: 3px;
  background: var(--text-color);
  transition: transform 0.3s, opacity 0.3s;
}

.navbar.open .nav-toggle .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar.open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
}

.navbar.open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.navbar .submenu {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  top: 100%;
  left: 0;
  min-width: 180px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.navbar li:hover > .submenu,
.navbar li.open > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar .submenu a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.navbar .submenu .submenu {
  top: 0;
  left: 100%;
}

body.dark-theme .navbar .submenu {
  background: rgba(30, 30, 30, 0.95);
}

body.dark-theme .navbar .submenu a {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .navbar .nav-toggle {
    display: flex;
  }

  .navbar .menu {
    position: fixed;
    right: -280px;
    top: var(--navbar-height);
    flex-direction: column;
    width: 280px;
    height: calc(100% - var(--navbar-height));
    background: rgba(var(--primary-color-rgb), 0.1);
    backdrop-filter: blur(12px);
    padding: 1rem;
    gap: 0;
    transition: right 0.3s ease;
  }

  .navbar.open .menu {
    right: 0;
  }

  .navbar .menu li {
    width: 100%;
  }

  .navbar .menu a {
    padding: 0.75rem 1rem;
  }

  .navbar .menu .submenu {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    box-shadow: none;
    backdrop-filter: none;
    padding-left: 1rem;
  }

  .navbar .menu li.open > .submenu {
    display: block;
  }

  .navbar .submenu .submenu {
    padding-left: 1rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }


  .navbar .nav-wrapper {
    padding: 0.75rem 1rem;
  }
}

/* OnliU page visuals */
.onliu-hero .hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.onliu-hero .hero-text {
  flex: 1;
}

.onliu-hero .hero-image {
  flex: 1;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
}

.onliu-section .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.onliu-section img {
  flex: 1;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
}

.onliu-section .text {
  flex: 1;
}

.onliu-section:nth-of-type(even) .container {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .onliu-hero .hero-grid,
  .onliu-section .container {
    flex-direction: column;
    text-align: center;
  }

  .onliu-hero .hero-image,
  .onliu-section img {
    max-width: 100%;
  }
}
