/* ==================================================
   GRUNDLAGEN
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;


  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(129, 140, 248, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(192, 38, 211, 0.12),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #eef2ff,
      #f8f9ff 45%,
      #eef2ff
    );

  color: #20243a;

  line-height: 1.6;

  overflow-x: hidden;
}


/* ==================================================
   CONTAINER
================================================== */

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}


/* ==================================================
   HEADER
================================================== */

.contact-header {
  position: relative;

  width: 100%;

  padding:
    70px
    0
    55px;

  text-align: center;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(129, 140, 248, 0.25),
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #096dba,
      #09b8d3,
      #8edbf2
    );

  color: white;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.18);

  overflow: visible;
}


/* ==================================================
   LOGO
================================================== */

.hero__logo {
  position: absolute;

  top: 25px;
  right: 25px;

  left: auto;

  z-index: 10;

  width: 145px;

  padding: 0;

  border-radius: 14px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(8px);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero__logo img {
  width: 100%;

  height: auto;

  display: block;

  object-fit: contain;

  border-radius: 8px;
}

.hero__logo:hover {
  transform: translateY(-3px) scale(1.04);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35);
}


/* ==================================================
   SPRACHAUSWAHL
================================================== */

.language-selector {
  position: absolute;

  top: 25px;

  left: 25px;

  z-index: 10;
}

.language-button {
  display: inline-flex;

  justify-content: center;
  align-items: center;

  padding: 11px 18px;

  color: white;

  font-family: inherit;

  font-size: 14px;

  font-weight: 700;

  background: rgba(0, 0, 0, 0.45);

  border: 1px solid rgba(255, 255, 255, 0.4);

  border-radius: 50px;

  backdrop-filter: blur(8px);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.25);

  cursor: pointer;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.language-button:hover {
  transform: translateY(-3px);

  background: rgba(0, 0, 0, 0.6);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3);
}


/* ==================================================
   LANGUAGE MENU
================================================== */

.language-menu {
  position: absolute;

  top: calc(100% + 8px);

  left: 0;

  min-width: 150px;

  padding: 7px;

  background: rgba(15, 23, 42, 0.96);

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 13px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35);

  opacity: 0;

  visibility: hidden;

  transform: translateY(-8px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.language-menu--open {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.language-menu a {
  display: block;

  padding: 10px 13px;

  color: white;

  text-decoration: none;

  font-size: 14px;

  border-radius: 9px;

  transition:
    background 0.2s ease;
}

.language-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}


/* ==================================================
   HEADER TITEL
================================================== */

.contact-header__title {
  margin: 0 0 15px;

  text-align: center;

  font-size: clamp(38px, 6vw, 68px);

  font-weight: 800;

  line-height: 1.1;

  letter-spacing: 0.5px;

  text-shadow:
    0 5px 25px rgba(0, 0, 0, 0.35);
}


/* ==================================================
   HEADER NAVIGATION
================================================== */

.contact-header__navigation {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 18px;

  margin-top: 30px;
}

.contact-header__link {
  display: inline-flex;

  justify-content: center;
  align-items: center;

  min-width: 130px;

  padding: 12px 24px;

  color: white;

  text-decoration: none;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: 0.3px;

  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.35);

  border-radius: 50px;

  backdrop-filter: blur(10px);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.15);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.contact-header__link:hover {
  transform: translateY(-4px);

  background: rgba(255, 255, 255, 0.22);

  border-color: white;

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.25);
}

.contact-header__link--active {
  background: rgba(255, 255, 255, 0.22);

  border-color:
    rgba(255, 255, 255, 0.75);
}


/* ==================================================
   MAIN
================================================== */

.main {
  position: relative;

  padding: 60px 0;

  padding-left: 400px;

  padding-right: 400px;
}


/* ==================================================
   KONTAKT BEREICH
================================================== */

.contact-section {
  display: grid;

  grid-template-columns:
    minmax(280px, 0.9fr)
    minmax(320px, 1.1fr);

  gap: 40px;

  align-items: start;
}


/* ==================================================
   EINLEITUNG
================================================== */

.contact-intro {
  position: relative;

  padding: 40px;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 250, 255, 0.94)
    );

  border:
    1px solid rgba(224, 231, 255, 0.9);

  box-shadow:
    0 12px 35px rgba(30, 27, 75, 0.07),
    0 3px 8px rgba(30, 27, 75, 0.03);

  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-intro::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 5px;

  background:
    linear-gradient(
      90deg,
      #4f46e5,
      #7c3aed,
      #c026d3,
      #ec4899
    );
}

.contact-intro:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 45px rgba(30, 27, 75, 0.11);
}

.contact-section__title {
  margin-bottom: 25px;

  font-size: clamp(30px, 4vw, 44px);

  line-height: 1.15;

  font-weight: 800;

  color: #1e1b4b;
}

.contact-section__text {
  margin-bottom: 18px;

  font-size: 22px;

  line-height: 1.8;

  color: #000000;
}


/* ==================================================
   KONTAKTDATEN
================================================== */

.contact-details {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px;
}


/* ==================================================
   KONTAKT CARDS
================================================== */

.contact-card {
  display: flex;

  align-items: flex-start;

  gap: 18px;

  padding: 28px;

  min-height: 160px;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 250, 255, 0.94)
    );

  border:
    1px solid rgba(224, 231, 255, 0.9);

  box-shadow:
    0 12px 35px rgba(30, 27, 75, 0.07),
    0 3px 8px rgba(30, 27, 75, 0.03);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}


/* ==================================================
   TELEFON-KARTE
================================================== */

.contact-card:first-child {
  min-height: 210px;
}


.contact-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(124, 58, 237, 0.25);

  box-shadow:
    0 22px 50px rgba(30, 27, 75, 0.12);
}


/* ==================================================
   KONTAKT ICON
================================================== */

.contact-card__icon {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 55px;
  height: 55px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #4f46e5,
      #7c3aed,
      #c026d3
    );

  color: white;

  font-size: 24px;

  box-shadow:
    0 8px 18px rgba(79, 70, 229, 0.22);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-card:hover .contact-card__icon {
  transform:
    scale(1.08)
    rotate(-3deg);

  box-shadow:
    0 12px 24px rgba(79, 70, 229, 0.30);
}


/* ==================================================
   KONTAKT TEXT
================================================== */

.contact-card__content h3 {
  margin-bottom: 9px;

  font-size: 21px;

  font-weight: 800;

  color: #1e1b4b;
}

.contact-card__content p {
  font-size: 19px;

  line-height: 1.65;

  color: #000000;
}

.contact-card:hover .contact-card__content h3 {
  color: #3730a3;
}


/* ==================================================
   SOCIAL MEDIA
================================================== */

.navigation {
  position: relative;

  background:
    radial-gradient(
      circle at 50% -100%,
      rgba(129, 140, 248, 0.25),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      #0f172a,
      #1e1b4b,
      #312e81
    );

  box-shadow:
    0 -8px 30px rgba(0, 0, 0, 0.18);
}

.navigation__container {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 28px;

  padding: 26px 0;
}

.navigation__link {
  display: flex;

  justify-content: center;
  align-items: center;

  width: 52px;
  height: 52px;

  color: #e5e7eb;

  text-decoration: none;

  font-size: 23px;

  font-weight: bold;

  border:
    1px solid rgba(255, 255, 255, 0.12);

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.07);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(8px);

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navigation__link:hover {
  color: white;

  transform:
    translateY(-7px)
    scale(1.08);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.35);
}

.navigation__link--youtube:hover {
  background: #ff0000;

  border-color: #ff0000;

  transform:
    translateY(-7px)
    scale(1.08)
    rotate(-5deg);
}

.navigation__link--facebook:hover {
  background: #1877f2;

  border-color: #1877f2;

  transform:
    translateY(-7px)
    scale(1.08)
    rotate(5deg);
}

.navigation__link--twitter:hover {
  background: #000000;

  border-color: #555;

  transform:
    translateY(-7px)
    scale(1.08)
    rotate(-5deg);
}

.navigation__link--instagram:hover {
  background:
    linear-gradient(
      135deg,
      #833ab4,
      #fd1d1d,
      #fcb045
    );

  border-color: transparent;

  transform:
    translateY(-7px)
    scale(1.08)
    rotate(5deg);
}


/* ==================================================
   FOOTER
================================================== */

.footer {
  padding: 45px 0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(79, 70, 229, 0.18),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #080b13,
      #111827,
      #17133a
    );

  color: white;

  text-align: center;

  box-shadow:
    0 -5px 25px rgba(0, 0, 0, 0.2);
}

.footer p {
  margin-bottom: 10px;

  color: #c7d2fe;

  font-size: 15px;
}

.footer__links {
  display: flex;

  justify-content: center;

  gap: 30px;

  flex-wrap: wrap;
}

.footer__links a {
  position: relative;

  color: #ddd6fe;

  text-decoration: none;

  font-size: 14px;

  transition:
    color 0.3s ease;
}

.footer__links a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -5px;

  width: 100%;

  height: 1px;

  background: #818cf8;

  transform: scaleX(0);

  transition:
    transform 0.3s ease;
}

.footer__links a:hover {
  color: white;
}

.footer__links a:hover::after {
  transform: scaleX(1);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1000px) {

  .contact-header {
    padding-top: 120px;
    padding-bottom: 45px;
  }

  .hero__logo {
    top: 20px;
    right: 20px;

    width: 120px;
  }

  .language-selector {
    top: 20px;
    left: 20px;
  }

  .contact-header__title {
    margin-bottom: 28px;
  }

  .contact-header__navigation {
    gap: 12px;
  }

  .contact-header__link {
    min-width: 135px;

    font-size: 18px;

    padding:
      11px 18px;
  }

  .main {
    padding: 60px 0;
  }

  .contact-section {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .contact-intro {
    padding: 35px;
  }

  /* Telefon auf Tablet ebenfalls größer */

  .contact-card:first-child {
    min-height: 280px;
  }

}


/* ==================================================
   HANDY
================================================== */

@media (max-width: 700px) {

  .container {
    width: min(92%, 600px);
  }


  /* ========================================
     HEADER / LOGO
  ======================================== */

  .contact-header {
    padding:
      120px
      0
      40px;
  }

  .hero__logo {
    top: 15px;

    right: 15px;

    width: 90px;
  }


  /* ========================================
     SPRACHAUSWAHL
  ======================================== */

  .language-selector {
    top: 15px;

    left: 15px;
  }

  .language-button {
    padding:
      9px 14px;

    font-size: 13px;
  }

  .language-menu {
    min-width: 135px;
  }


  /* ========================================
     HEADER TITEL
  ======================================== */

  .contact-header__title {
    font-size: 38px;
  }


  /* ========================================
     OBERE NAVIGATION
  ======================================== */

  .contact-header__navigation {
    gap: 10px;

    margin-top: 25px;
  }

  .contact-header__link {
    min-width: 0;

    padding:
      10px 17px;

    font-size: 14px;
  }


  /* ========================================
     HAUPTINHALT
  ======================================== */

  .main {
    padding: 35px 0;
  }


  /* ========================================
     KONTAKT BEREICH
  ======================================== */

  .contact-section {
    gap: 20px;
  }


  /* ========================================
     EINLEITUNG
  ======================================== */

  .contact-intro {
    padding: 25px;

    border-radius: 17px;
  }

  .contact-section__title {
    font-size: 27px;
  }

  .contact-section__text {
    font-size: 15px;

    line-height: 1.8;
  }


  /* ========================================
     KONTAKTDATEN
  ======================================== */

  .contact-details {
    grid-template-columns: 1fr;

    gap: 16px;
  }


  /* ========================================
     KONTAKT CARDS
  ======================================== */

  .contact-card {
    padding: 22px;

    min-height: auto;

    border-radius: 17px;
  }


  /* Telefon auf Handy wieder normal */

  .contact-card:first-child {
    min-height: auto;
  }


  /* ========================================
     ICONS
  ======================================== */

  .contact-card__icon {
    width: 50px;

    height: 50px;

    font-size: 21px;
  }

  .contact-card__content h3 {
    font-size: 19px;
  }

  .contact-card__content p {
    font-size: 16px;
  }


  /* ========================================
     SOCIAL MEDIA
  ======================================== */

  .navigation__container {
    gap: 18px;

    padding: 20px 0;
  }

  .navigation__link {
    width: 45px;

    height: 45px;

    font-size: 20px;
  }


  /* ========================================
     FOOTER
  ======================================== */

  .footer {
    padding: 30px 0;
  }

  .footer__links {
    flex-direction: column;

    align-items: center;

    gap: 12px;
  }

}


/* ==================================================
   SEHR KLEINE HANDYS
================================================== */

@media (max-width: 420px) {

  .container {
    width: 92%;
  }


  .contact-header {
    padding:
      105px
      0
      35px;
  }

  .hero__logo {
    top: 12px;

    right: 12px;

    width: 75px;
  }

  .language-selector {
    top: 12px;

    left: 12px;
  }

  .language-button {
    padding:
      8px 12px;

    font-size: 12px;
  }


  .contact-header__title {
    font-size: 31px;
  }

  .contact-header__link {
    width: auto;

    font-size: 14px;
  }


  .contact-intro {
    padding: 21px;

    border-radius: 15px;
  }

  .contact-section__title {
    font-size: 23px;
  }


  .contact-card {
    padding: 20px;

    gap: 14px;
  }


  /* Telefon auch auf sehr kleinen Handys kompakt */

  .contact-card:first-child {
    min-height: auto;
  }


  .contact-card__icon {
    width: 45px;

    height: 45px;

    border-radius: 13px;

    font-size: 19px;
  }


  .navigation__container {
    gap: 14px;
  }

  .navigation__link {
    width: 42px;

    height: 42px;
  }

}