/*
 Theme Name: Infravise
 Theme URI: https://infravise.de/
 Author: Infravise GmbH
 Author URI: https://infravise.de/
 Description: Modernes, minimalistisches Theme für Infravise mit Under-Construction-Startseite, Modal-Impressum und Datenschutz.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: infravise
*/

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #152c36;
}

body {
  background: linear-gradient(135deg, #1f3f4d, #0b1920);
  background-size: 300% 300%;
  animation: bg-move 18s ease-in-out infinite;
  font-family: "Poppins", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Haupt-Layout */
.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header mit Logo + optionalem Menü */
.site-header {
  position: relative;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.logo {
  width: 210px;
  max-width: 45vw;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: #d8fefe;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  opacity: 1;
  text-shadow: 0 0 6px rgba(73,182,182,0.8);
}

/* Hauptinhalt */
.site-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

/* Under-Construction-Hero */
.center-text {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: #d8fefe;
  text-shadow: 0 0 14px rgba(0,0,0,0.5);
  animation: glow 2.8s ease-in-out infinite;
}

.center-text span {
  color: #49b6b6;
}

/* Standard Inhalt (Seiten/Beiträge) */
.content-container {
  max-width: 960px;
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 24px rgba(0,0,0,0.5);
  text-align: left;
}

.content-container h1,
.content-container h2,
.content-container h3 {
  color: #d8fefe;
}

.content-container a {
  color: #7cecec;
}

/* Footer mit Impressum/Datenschutz-Links */
.site-footer {
  position: relative;
  padding: 10px 18px;
  font-size: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
}

.site-footer small {
  margin-right: auto;
  opacity: 0.7;
}

.legal-link {
  background: transparent;
  border: none;
  padding: 0;
  color: #c7eaea;
  opacity: 0.7;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  font: inherit;
}

.legal-link:hover,
.legal-link:focus-visible {
  opacity: 1;
  text-shadow: 0 0 6px rgba(73,182,182,0.8);
  outline: none;
}

.legal-link:focus-visible {
  box-shadow: 0 0 0 2px #7cecec;
  border-radius: 4px;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Modal Box */
.modal {
  background: #0f1f25;
  color: #d8fefe;
  padding: 24px;
  width: 92%;
  max-width: 700px;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  position: relative;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  font-size: 0.9rem;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.modal p {
  line-height: 1.5;
  margin: 0 0 0.8em;
}

.modal ul {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 0.8em;
}

/* Scrollbar Styling (Webkit) */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background: #49b6b6;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(73,182,182,0.6);
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #7cecec;
}

/* Scrollbar für Firefox */
.modal {
  scrollbar-width: thin;
  scrollbar-color: #49b6b6 rgba(255,255,255,0.05);
}

/* Close-Button im Modal */
.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: #7cecec;
  background: none;
  border: none;
  padding: 0;
}

.modal-close:focus-visible {
  outline: 2px solid #7cecec;
  border-radius: 50%;
}

/* Animations */
@keyframes bg-move {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow {
  0%   { text-shadow: 0 0 10px rgba(0,0,0,0.4); opacity: 0.9; }
  50%  { text-shadow: 0 0 24px rgba(73,182,182,0.8); opacity: 1; }
  100% { text-shadow: 0 0 10px rgba(0,0,0,0.4); opacity: 0.9; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  .center-text {
    animation: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .logo {
    width: 170px;
  }

  .site-header {
    flex-direction: row;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
  }

  .modal {
    max-height: 86vh;
    padding: 20px;
  }
}
