/* ====== Inter Font Local Import ====== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v18-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v18-latin-italic.woff2') format('woff2');
}

/* Standardmäßig Inter nutzen */
body {
  font-family: 'Inter', sans-serif;
}
/* ========== Allgemein ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h1, h2 {
  color: #003e7e;
}

ul {
  padding-left: 20px;
}

/* ========== Header ========== */
header {
  background-color: #003e7e;
  color: white;
  padding: 30px 0;
  text-align: center;
  opacity: 0;
  -webkit-transform: translateY(-20px);
  transform: translateY(-20px);
  animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

header .logo {
  max-width: 180px;
  margin-bottom: 10px;
}

/* ========== Navigation ========== */
nav {
  background-color: #002e5c;
  overflow: hidden;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
}

nav ul li a:hover {
  background-color: #0050a0;
}

/* ========== Hauptbereich ========== */
main section {
  background-color: white;
  margin: 30px 0;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  opacity: 0;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

main section ul li:hover {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== Slider Buttons ========== */
.slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-button {
  position: absolute;
  bottom: 20%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  z-index: 10;
  text-align: center;
}

.slider-button:hover {
  background-color: #FFFFFF !important;
  color: #003e7e !important;
}

.slider-button:active {
  background-color: #FFFFFF !important;
  color: #003e7e !important;
}

/* ========== Erweiterte Seitenbereiche ========== */
section#leistungen-detail,
section#case-study,
section#kontakt-direkt {
  background-color: #ffffff;
  padding: 40px 20px;
  margin: 30px 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  opacity: 0;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

/* ========== Formular ========== */
form {
  margin-top: 20px;
}

form input,
form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

form button {
  background-color: #003e7e;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
}

form button:hover {
  background-color: #0050a0;
}

/* ========== Footer ========== */
footer {
  background-color: #002e5c;
  color: #ccc;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
}

/* ========== Banner-Slider (Swiper) ========== */
.banner-slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.swiper {
  height: 100%;
  width: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}

.swiper-pagination-bullet {
  background: #fff;
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #0050a0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  header .logo {
    max-width: 140px;
  }
  .slider-button {
    padding: 12px 22px;
    font-size: 1em;
    bottom: 15%;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
    padding: 5px;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }
}

/* ========== Darkmode ========== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ddd;
  }
  header {
    background-color: #001f3d;
    color: white;
  }
  nav {
    background-color: #001732;
  }
  nav ul li a {
    color: #eee;
  }
  nav ul li a:hover {
    background-color: #003366;
  }
  main section,
  section#leistungen-detail,
  section#case-study,
  section#kontakt-direkt {
    background-color: #1e1e1e;
    color: #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  h1, h2 {
    color: #5c9dde;
  }
  form input,
  form textarea {
    background-color: #2a2a2a;
    color: #fff;
    border-color: #444;
  }
  form button {
    background-color: #0050a0;
    color: white;
  }
  form button:hover {
    background-color: #006ac1;
  }
  footer {
    background-color: #001732;
    color: #aaa;
  }

  .slider-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .slider-button:hover {
    background-color: #FFFFFF !important;
    color: #001f3d !important;
  }
  .slider-button:active {
    background-color: #FFFFFF !important;
    color: #001f3d !important;
  }
  .swiper-pagination-bullet {
    background: #aaa;
    opacity: 0.5;
  }
  .swiper-pagination-bullet-active {
    background: #eee;
    opacity: 1;
  }
}

/* ========== Allgemeiner Button-Stil ========== */
.button-primary {
  display: inline-block;
  background-color: #003e7e;
  color: white;
  border: none;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.button-primary:hover {
  background-color: #0050a0;
}

@media (prefers-color-scheme: dark) {
  .button-primary {
    background-color: #0050a0;
    color: white;
  }
  .button-primary:hover {
    background-color: #006ac1;
  }
}
footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #aad4ff;
}
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #003e7e;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.floating-button:hover {
  background-color: #0050a0;
}

@media (prefers-color-scheme: dark) {
  .floating-button {
    background-color: #0050a0;
    color: white;
  }

  .floating-button:hover {
    background-color: #006ac1;
  }
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #002e5c;
  color: #fff;
  padding: 15px 20px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.9em;
}

#cookie-banner .cookie-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-banner button {
  background-color: #0050a0;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

#cookie-banner button:hover {
  background-color: #0070d0;
}
