@font-face {
  font-family: "Raleway-Regular";
  src: url("./fonts/Raleway-Regular.ttf");
}

@font-face {
  font-family: "Raleway-Bold";
  src: url("./fonts/Raleway-Bold.ttf");
}

@font-face {
  font-family: "Economica-Bold";
  src: url("./fonts/Economica-Bold-OTF.otf");
}

/* =========================
   RESET / BASIS
   ========================= */
html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f202a 0%, #122632 100%);
  color: antiquewhite;
  font-family: "Raleway-Regular", sans-serif;
  overflow-x: hidden;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  padding: 16px 20px;
  background: rgba(15, 32, 42, 0.96);
  box-shadow: 0 8px 30px rgba(0, 136, 169, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
}

.site-header h1 {
  text-align: center;
  font-family: "Raleway-Bold", sans-serif;
  font-size: 28px;
  line-height: 1.2;
  padding: 0 12px;
  word-break: break-word;
}

/* =========================
   NAVIGATION
   ========================= */
.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav_list {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav_list li {
  margin: 0;
  padding: 0;
}

.nav_list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav_list a:hover {
  background: rgba(0, 136, 169, 0.2);
  color: #7fe3ff;
  transform: translateY(-1px);
}

/* =========================
   BURGER MENU
   ========================= */
.menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  z-index: 2000;
}

.menu-toggle:hover {
  background: rgba(0, 136, 169, 0.22);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: white;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   MAIN
   ========================= */
.main {
  margin-top: 28px;
}

.tagline {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  text-align: center;
}

.tagline p {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
  color: #7fe3ff;
  font-family: "Raleway-Bold", sans-serif;
}

/* =========================
   CAROUSEL
   ========================= */
.carousel-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 24px;
}

.carousel {
  list-style: none;
  width: calc(100% - 20px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-y;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel li {
  scroll-snap-align: center;
  padding: 0 10px;
}

.img-overlay {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.img-carousel {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.img-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.img-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: "Raleway-Bold", sans-serif;
  font-size: clamp(18px, 2.3vw, 34px);
  line-height: 1.3;
  color: beige;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 3;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .img-overlay:hover::after {
    opacity: 1;
  }

  .img-overlay:hover .img-overlay-text {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .img-overlay:hover .img-carousel {
    filter: brightness(0.75);
    transform: scale(1.01);
  }
}

/* =========================
   CAROUSEL BUTTONS
   ========================= */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: antiquewhite;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(0, 136, 169, 0.22);
  border-color: rgba(127, 227, 255, 0.35);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(0, 136, 169, 0.18);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* =========================
   DOTS
   ========================= */
.carousel-dots {
  width: calc(100% - 20px);
  margin: 16px auto 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.carousel-dots button {
  display: block;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition:
    width 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.carousel-dots button:hover {
  background: rgba(250, 235, 215, 0.58);
  transform: scale(1.05);
}

.carousel-dots button.active {
  width: 20px;
  height: 7px;
  background: #0088a9;
  box-shadow: 0 0 12px rgba(0, 136, 169, 0.35);
}

/* =========================
   STARTSEITE CARDS
   ========================= */
.description-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 136, 169, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: #7fe3ff;
  margin-bottom: 10px;
  font-family: "Raleway-Bold", sans-serif;
  font-size: 20px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================
   IMPRESSUM / KONTAKT
   ========================= */
.impressum-card,
.contact-card {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.impressum-card h2,
.contact-card h2 {
  margin-bottom: 24px;
  font-family: "Raleway-Bold", sans-serif;
  color: #7fe3ff;
  font-size: 32px;
}

.impressum-card p,
.contact-card p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 16px;
}

.impressum-card a,
.contact-card a {
  color: #7fe3ff;
  word-break: break-word;
}

/* =========================
   FOOTER
   ========================= */
footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(15, 32, 42, 0.96);
  box-shadow: 0 -8px 30px rgba(0, 136, 169, 0.25);
}

.logo-footer {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-footer:hover {
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE <= 1100px
   ========================= */
@media (max-width: 1100px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .site-header h1 {
    font-size: 24px;
    padding: 0 8px;
  }

  .nav_list {
    gap: 6px;
  }

  .nav_list a {
    padding: 9px 12px;
    font-size: 14px;
  }
}

/* =========================
   RESPONSIVE <= 780px
   ========================= */
@media (max-width: 780px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 96px;
    padding: 14px 16px;
  }

  .logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .site-header h1 {
    font-size: 20px;
    line-height: 1.2;
    padding: 0 52px 0 8px;
    text-align: left;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav_list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 32, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .nav_list li {
    width: 100%;
  }

  .nav_list li a {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .description-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    width: calc(100% - 24px);
  }

  .img-carousel {
    height: 46vh;
    min-height: 280px;
    border-radius: 18px;
  }

  .img-overlay,
  .img-overlay::after {
    border-radius: 18px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .carousel-btn.left {
    left: 10px;
  }

  .carousel-btn.right {
    right: 10px;
  }

  .impressum-card,
  .contact-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .impressum-card h2,
  .contact-card h2 {
    font-size: 26px;
  }

  .impressum-card p,
  .contact-card p {
    font-size: 14px;
  }
}

/* =========================
   RESPONSIVE <= 640px
   ========================= */
@media (max-width: 640px) {
  .site-header {
    min-height: 88px;
    padding: 12px 14px;
    gap: 10px;
  }

  .logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .site-header h1 {
    font-size: 18px;
    line-height: 1.2;
    padding: 0 48px 0 6px;
  }

  .menu-toggle {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .main-nav {
    left: 12px;
    right: 12px;
  }

  .img-carousel {
    height: 40vh;
    min-height: 240px;
  }

  .card {
    padding: 22px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }
}

/* =========================
   RESPONSIVE <= 480px
   ========================= */
@media (max-width: 480px) {
  .site-header {
    min-height: 80px;
    padding: 10px 12px;
    gap: 8px;
  }

  .logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .site-header h1 {
    font-size: 16px;
    line-height: 1.15;
    padding: 0 44px 0 4px;
  }

  .menu-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .main-nav {
    left: 10px;
    right: 10px;
  }

  .nav_list {
    padding: 12px;
  }

  .nav_list li a {
    font-size: 14px;
    padding: 12px 14px;
  }

  .tagline {
    margin: 28px auto;
  }

  .img-carousel {
    height: 34vh;
    min-height: 220px;
    border-radius: 16px;
  }

  .img-overlay,
  .img-overlay::after {
    border-radius: 16px;
  }

  .img-overlay-text {
    font-size: 16px;
    width: 90%;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .logo-footer {
    width: 55px;
    height: 55px;
  }

  .impressum-card,
  .contact-card {
    margin: 24px auto;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .impressum-card h2,
  .contact-card h2 {
    font-size: 22px;
  }

  .impressum-card p,
  .contact-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .description-grid {
    width: calc(100% - 20px);
  }
}

/* =========================
   RESPONSIVE <= 360px
   ========================= */
@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 10px 10px;
    gap: 8px;
  }

  .logo-wrapper {
    display: none;
  }

  .site-header h1 {
    font-size: 15px;
    line-height: 1.15;
    padding: 0 42px 0 0;
    text-align: left;
  }

  .menu-toggle {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .main-nav {
    left: 8px;
    right: 8px;
  }

  .img-carousel {
    height: 30vh;
    min-height: 200px;
  }
}

/* =========================
   RESPONSIVE <= 320px
   ========================= */
@media (max-width: 320px) {
  .site-header h1 {
    font-size: 14px;
    line-height: 1.1;
    padding: 0 40px 0 0;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .description-grid {
    width: calc(100% - 16px);
  }

  .card {
    padding: 18px 14px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
    line-height: 1.5;
  }
}
