/* General (font, root, global styles) */
@font-face {
  font-family: "Noto Sans";
  src: url("./fonts/NotoSans-Regular.woff2") format("woff2"),
    url("./fonts/NotoSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("./fonts/NotoSans-Italic.woff2") format("woff2"),
    url("./fonts/NotoSans-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Light Theme Colors */
  --background: #ffffff;
  --text-color: #000000;
  --accent-color: #0066cc;
  --hover-color: #004999;

  /* Dark Theme Colors */
  --dark-background: #121212;
  --dark-text-color: #ffffff;
  --dark-accent-color: #66b2ff;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: "Noto Sans", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  background-color: var(--background);
  color: var(--text-color);
  padding-top: 140px;
}

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

/* General Container for Centering Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Top Bar */
.top-bar {
  background-color: #1a1a3c;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1001;
  white-space: nowrap;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  border-bottom: none;
  box-shadow: 0 1px 0 0 #2b2c7d;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-right span,
.top-bar-right button {
  color: white;
  font-size: 0.9rem;
}

.top-bar button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

/* Theme toggle */
body.dark-theme .top-bar {
  background-color: rgba(26, 26, 60, 1);
  color: white;
  box-shadow: 0 1px 0 0 #1a1a3c;
}

body.light-theme {
  background-color: var(--background);
  color: var(--text-color);
}

body.light-theme section h2,
body.light-theme section p {
  color: var(--text-color);
}

body.light-theme .service-box {
  background-color: #f9f9f9;
}

body.light-theme .service-box h3,
body.light-theme .service-box p {
  color: var(--text-color);
}

body.light-theme footer {
  background-color: #2b2c7d;
  color: #ffffff;
}

body.light-theme .contact-info p,
body.light-theme .contact-info a {
  color: var(--text-color);
}

body.light-theme .impressum-section {
  background-color: #f8f8f8;
  color: var(--text-color);
}

body.light-theme .impressum-section a {
  color: var(--accent-color);
}

body.light-theme .top-bar {
  background-color: rgba(43, 44, 125, 1);
  color: white;
}

/* Language switch styles */
.language-switcher {
  position: relative;
  display: inline-block;
  z-index: 1004;
}

.language-switcher #lang-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.language-switcher #lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;

  /* Flexbox for horizontal layout of links */
  display: flex;
  flex-direction: row;
  align-items: center;

  background-color: #1a1a3c;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1006;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;

  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Light theme specific background for language dropdown */
body.light-theme .language-dropdown {
  background-color: rgba(43, 44, 125, 1);
}

.language-dropdown a {
  color: white;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.language-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown.show {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* Header styles*/
header.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  background-color: #2b2c7d;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  margin-top: 0;
  border-top: none;
}

.logo {
  height: 150px;
  width: auto;
  margin-left: -20px;
  padding-bottom: 20px;
}

.nav-bar {
  margin-left: auto;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-bar ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
}

.nav-bar ul li a:hover {
  color: #66b2ff;
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
  margin-top: 30px;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

body.dark-theme .hamburger span {
  background-color: white;
}

/* 'X' transformation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* -------------------------------------------------------------------- */

/* Hero Section */
.hero {
  background-image: url("../images/hero-final.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 10rem 0 5rem;
  position: relative;
  z-index: 1;
}

.hero .hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

.btn:active {
  background-color: var(--hover-color);
  transform: translateY(0);
  transition: background-color 0.1s ease, transform 0.1s ease;
}

.about-section .btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Sections (general styling for all sections) */
section {
  padding: 5rem 0;
  scroll-margin-top: 140px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;

  color: var(--text-color);
}

section p {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* About section */
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-container p {
  max-width: 800px;
  width: 100%;
  margin: 1rem 0;
  text-align: center;
}

ul.about-ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style-type: disc;
  list-style-position: outside;
  max-width: 800px;
  width: 100%;
  padding-left: 20px;
  text-align: left;
}

/* Services section */
.services-section {
  text-align: center;
}

.services-container-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.service-box {
  max-width: 320px;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-6px);
}

.service-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.service-box p {
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Service Box Specific List Styling */
.service-box ul.service-features-list {
  list-style-type: disc;
  list-style-position: inside;
  margin: 1rem auto 0.5rem auto;
  padding-left: 0;
  text-align: left;
  max-width: 90%;
  color: var(--text-color);
}

.service-box ul.service-features-list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

body.dark-theme .service-box ul.service-features-list {
  color: var(--dark-text-color);
}

.service-features-list {
  text-align: left;
}

/* --------------------------------------------------------------------- */

/* Footer styles*/
footer {
  background-color: #333;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav bar styles */
.nav-btn {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-btn:hover {
  color: #66b2ff;
}

body.dark-theme {
  background-color: var(--dark-background);
  color: var(--dark-text-color);
}

body.dark-theme header.main-header {
  background-color: #1a1a3c;
  border-top: none;
}

body.dark-theme section h2,
body.dark-theme section p {
  color: var(--dark-text-color);
}

body.dark-theme .service-box {
  background-color: #1e1e1e;
}

body.dark-theme .service-box h3,
body.dark-theme .service-box p {
  color: var(--dark-text-color);
}

body.dark-theme footer {
  background-color: #1a1a3c;
  color: var(--dark-text-color);
}

body.dark-theme .contact-info p,
body.dark-theme .contact-info a {
  color: var(--dark-text-color);
}

#top-theme-toggle {
  font-size: 1rem;
}

/* Contact section */
.hidden {
  display: none !important;
}

.map-wrapper {
  width: 100%;
  margin: 2rem auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-responsive-container {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.map-placeholder,
#map-iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-placeholder {
  background-color: var(--service-box-bg, #f2f2f2);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color, #000000);
}

.map-placeholder p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-color, #000000);
}

#map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#map-consent-button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  max-width: 200px;
}

#map-consent-button:hover {
  background-color: #0056b3;
}

#revoke-consent-section {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  padding: 1rem 0;
}

#revoke-consent-button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  max-width: 200px;
}

#revoke-consent-button:hover {
  background-color: #0056b3;
}

body.dark-theme .map-placeholder {
  background-color: #1e1e1e;
}

body.dark-theme .map-placeholder h3,
body.dark-theme .map-placeholder p {
  color: var(--dark-text-color);
}

/* ------------------------------------------ */

.contact-section {
  text-align: center;
  padding: 3rem 0;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  margin: 2rem 0;
  font-style: normal;
}

.contact-info p,
.contact-info a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
  max-width: 200px;
  margin: 0;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--hover-color);
}

.contact-info i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* .social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-icons a {
  font-size: 2rem;
  color: var(--accent-color);
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: var(--hover-color);
} */

/* Impressum Section Styles */
.impressum-section {
  padding: 4rem 0;
  background-color: #f8f8f8;
  color: var(--text-color);
  line-height: 1.6;
}

body.dark-theme .impressum-section {
  background-color: #1e1e1e;
  color: var(--dark-text-color);
}

.impressum-section a {
  color: var(--accent-color);
  text-decoration: underline;
}

body.dark-theme .impressum-section a {
  color: var(--dark-accent-color);
}

/* ------------------------------------------------------------- */
h2 a,
h2 a:link,
h2 a:visited,
h2 a:hover,
h2 a:active {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  display: inline-block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  transform: none !important;
  transition: none !important;
}

#privacy-policy {
  scroll-margin-top: 150px;
}

/* -------- Responsive styles (for mobile) -------- */
@media (max-width: 768px) {
  body {
    padding-top: 140px;
  }

  .top-bar {
    flex-wrap: nowrap;
    height: auto;
    min-height: 40px;
    padding: 0.5rem 1rem;
    justify-content: space-between;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .top-bar-right {
    flex: none;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
  }

  .top-bar-right span,
  .top-bar-right button {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  /* Header Mobile */
  header.main-header {
    z-index: 1000;
    padding: 1rem 1rem;
    height: 100px;
  }

  .nav-bar {
    position: absolute;
    top: 100px;
    right: 1rem;
    flex-direction: column;
    background-color: #1a1a3c;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-radius: 12px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }

  body.light-theme .nav-bar {
    background-color: #2b2c7d;
  }

  .nav-bar.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-bar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .services-container-outer {
    padding: 0 1rem;
  }

  .contact-info p,
  .contact-info a {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem;
  }

  .phone-lang {
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
  }

  .language-switcher {
    z-index: 1004;
    position: relative;
    flex-shrink: 0;
  }

  .language-switcher #lang-toggle {
    font-size: 1rem;
    z-index: 1003;
    padding: 0.2rem 0.5rem;
  }

  .language-dropdown {
    top: 0;
    right: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  body.light-theme .language-dropdown {
    background-color: rgba(43, 44, 125, 1);
  }

  .language-dropdown.show {
    display: flex;
    opacity: 1;
    transform: translateX(0);
  }

  .language-dropdown a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .hamburger {
    z-index: 1001;
  }

  .about-content-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  .about-container p {
    max-width: 100%;
    margin: 0.5rem auto;
    padding: 0 10px;
  }

  ul.about-ul {
    max-width: 100%;
    padding-left: 30px;
    margin: 0.5rem 0;
  }

  .service-box ul.service-features-list {
    padding-left: 20px;
    margin: 1rem auto 0.5rem auto;
    max-width: 95%;
  }

  /* ---------------------- */

  .map-responsive-container {
    height: auto;
    min-height: 350px;
    aspect-ratio: auto;
    overflow: visible;
  }

  .map-placeholder {
    position: relative;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem 1rem;
  }

  #map-iframe-container {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
  }

  .map-placeholder h3 {
    font-size: 1rem;
  }
  .map-placeholder p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  #map-consent-button {
    font-size: 0.95rem;
    max-width: none;
  }
}
