/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap");


/* Flaggen-Emojis sollen sich den Farben des Themes anpassen */
.flag { filter: grayscale(0); }

.flag,
select option { filter:none !important; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark {
  background: linear-gradient(135deg, #121212, #2c2c2e);
  color: #fff;
}

/* Light Mode */
body.light {
  background: #fff;
  color: rgb(36, 11, 100);
}

/* Header, Main und Footer */
header, main.container, footer {
  position: relative;
  z-index: 2;
}

/* Header */
header {
  width: 100%;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  background: inherit;
  z-index: 1100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inquiry-link a {
  text-decoration: none;
  font-size: 1em;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.inquiry-link a:hover {
  border-bottom: 1px solid currentColor;
}
.user-controls button {
  background: none;
  border: none;
  cursor: pointer;
}
#toggle-icon {
  font-size: 1.5em;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: opacity 1s ease;
}
.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Main Content */
main.container {
  width: 100%;
  padding: 20px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 60px;
}
@media (max-width: 480px) {
  main.container {
    padding: 10px;
  }
}

/* Logo */
#logo {
  width: 180px;
  margin-bottom: 20px;
  transition: all 1s ease;
}

/* Titel & Info */
#title-text {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 10px;
}
.main-text {
  animation: textBlink 2.5s linear infinite;
}
@keyframes textBlink {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}
#info-text {
  font-size: 1em;
  font-weight: 300;
  margin-bottom: 20px;
}

/* Datum & Sprachwechsel */
.datetime-switcher {
  margin-bottom: 15px;
}
#currentDateTime,
#languageSwitcher {
  width: 280px;
  padding: 10px;
  margin: 8px auto;
  border-radius: 8px;
  border: none;
  text-align: center;
  font-size: 1em;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s, color 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
}
body.dark #languageSwitcher {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}
body.light #languageSwitcher {
  background: rgba(36,11,100,0.1);
  color: #000;
}

/* Buttons */
.button {
  padding: 10px 30px;
  border: 2px solid currentColor;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
body.dark .button {
  color: #fff;
  border-color: #fff;
}
body.dark .button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}
body.light .button {
  color: rgb(36,11,100);
  border-color: rgb(36,11,100);
}
body.light .button:hover {
  background: rgb(36,11,100);
  color: #fff;
  transform: translateY(-3px);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 10px 0;
}
.social-icons a {
  font-size: 1.6em;
  transition: transform 0.3s, opacity 0.3s;
}
.social-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}
.footer-right a {
  margin-left: 15px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.footer-right a:hover {
  border-bottom: 1px solid currentColor;
}
#footer-datetime {
  font-size: 0.8em;
}
@media (max-width: 480px) {
  footer {
    position: static;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    text-align: center;
  }
  .footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
}
