@font-face {
  font-family: 'opensans'; /* Ein Name für Ihre Schrift */
  src: url('fonts/OpenSans-Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'Segoe UI', opensans,  Tahoma, Geneva, Verdana, sans-serif;
  background-color: #333333;
  color: #ffffff;
  line-height: 1.6;
  padding: 20px;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: #242424;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 239, 96, 0.476);
}

.middle {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* nimmt die volle Höhe des Viewports ein */
  width: 100%;
  padding: 20px 0; /* Abstand oben/unten bei Bedarf */
}

.grid-container {
  display: grid;
  place-items: center; /* Zentriert Elemente sowohl horizontal als auch vertikal */
}

.abstand {
  height: 10px;
}
/* Überschriften */
h1, h2, h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}
h1 {
  display: grid;
  place-items: center;
}

/* Absätze */
p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #005eff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
button, .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #005eff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #005fa3;
}

/* Formulare */
input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  background-color: #242424;
  border: 1px solid #454545;
  border-radius: 6px;
  font-size: 1rem;
  color: #fff;
}


/* Button Hover */
  .button2:hover {box-shadow:0 8px 16px 0 rgba(0,0,0,0.6)}



/* CSS */
.button-29 {
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%);
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono",monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 18px;
}

.button-29:focus {
  box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
}

.button-29:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
  transform: translateY(-2px);
}

.button-29:active {
  box-shadow: #001eff 0 3px 7px inset;
  transform: translateY(2px);
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.background {
  background-image: url('img/bg_2.jpg'); /* Pfad zum Bild */
  background-size: cover;
  background-attachment: fixed;  /* Wichtig: Bild bleibt beim Scrollen fest */
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.content {
  background-color: rgba(255, 255, 255, 0); /* optional: halbtransparenter Hintergrund für bessere Lesbarkeit */
  padding: 50px;
  max-width: 800px;
  margin: 0 auto;
}

/* Message Styles */
.msg_success, .msg_warning, .msg_error, .msg_info {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.msg_success:hover, .msg_warning:hover, .msg_error:hover, .msg_info:hover {
    transform: translateY(-2px);
}

.msg_success {
    background: linear-gradient(145deg, #28a745, #218838);
    border-left: 5px solid #1e7e34;
    color: #fff;
}

.msg_warning {
    background: linear-gradient(145deg, #ffc107, #e0a800);
    border-left: 5px solid #d39e00;
    color: #000;
}

.msg_error {
    background: linear-gradient(145deg, #dc3545, #c82333);
    border-left: 5px solid #bd2130;
    color: #fff;
}

.msg_info {
    background: linear-gradient(145deg, #17a2b8, #138496);
    border-left: 5px solid #117a8b;
    color: #fff;
}

/* Optional: Icons für die Nachrichten */
.msg_success::before {
    content: "✅";
    margin-right: 10px;
}

.msg_warning::before {
    content: "⚠️";
    margin-right: 10px;
}

.msg_error::before {
    content: "❌";
    margin-right: 10px;
}

.msg_info::before {
    /* Füge das Leerzeichen direkt nach dem Emoji im content-Attribut hinzu */
    content: "ℹ️";
    margin-right: 10px; 
}


/* Weihnachten extras */
/* Box */
.xmas-box {
  margin: 25px auto;
  padding: 20px 25px;
  max-width: 350px;
  text-align: center;
  font-size: 1.6rem;
  color: white;
  background: linear-gradient(135deg, #b30000, #e00000);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.5);
  animation: xmasGlow 3s ease-in-out infinite;
}

/* ✨ Glow Animation */
@keyframes xmasGlow {
  0%   { box-shadow: 0 0 15px rgba(255,0,0,0.4); }
  50%  { box-shadow: 0 0 25px rgba(255,215,0,0.7); }
  100% { box-shadow: 0 0 15px rgba(255,0,0,0.4); }
}

.snow-container,
.snow-container * {
  pointer-events: none !important;  /* <-- ALLES schneebezogene ist durchklickbar */
}
/* Der Schneebereich */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

/* Flocken */
.snowflake {
  pointer-events: none;
  position: absolute;
  top: -10px;
  color: white;       /* fallback */
  background: white;  /* hier richtige Flocke */
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(1px);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Vertikaler Fall */
@keyframes fall {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(110vh) translateX(var(--wind));
  }
}



/* 📱 Mobile Optimierung – für Bildschirme unter 768px */
@media (max-width: 768px) {

  /* --- Allgemein --- */
  body {
    font-size: 15px;
    padding: 10px;
    background-color: #2b2b2b;
    line-height: 1.5;
  }

  .container {
    width: 95%;
    margin: 10px auto;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 239, 96, 0.25);
  }

  h1, h2, h3 {
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.3;
  }

  p {
    font-size: 0.95rem;
  }

  /* --- Formular / Inputs --- */
  input, textarea, select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1f1f1f;
    color: #fff;
  }

  label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
  }

  textarea {
    min-height: 100px;
  }

  /* --- Buttons --- */
  button, .btn, .button-29 {
    width: 100%;
    font-size: 16px;
    height: 46px;
    margin-top: 10px;
    border-radius: 8px;
    display: block;
    text-align: center;
  }

  .button-29 {
    font-size: 15px;
    height: 44px;
    line-height: 44px;
    white-space: normal;
    padding: 0 12px;
  }

  /* --- Layout & Abstände --- */
  .content {
    padding: 20px 10px;
    max-width: 95%;
  }

  .background {
    background-attachment: scroll;
    background-position: center;
  }

  /* --- Fundmeldungen (Übersicht) --- */
  .fund {
    padding: 12px 0;
    border-bottom: 1px solid #555;
  }

  .fund h2 {
    font-size: 1.1rem;
  }

  .fund small {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 5px;
  }

  .bilder {
    flex-direction: column;
    align-items: center;
  }

  .bilder img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
  }

  /* --- Nachrichten / Alerts --- */
  .msg_success, .msg_warning, .msg_error, .msg_info {
    font-size: 0.95rem;
    padding: 12px 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* --- Admin / Login / Dashboard --- */
  .admin-section {
    padding: 1rem;
    background: #1e1e1e;
    border-radius: 10px;
    margin-top: 1rem;
  }

  table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
  }

  table td, table th {
    padding: 8px;
    border-bottom: 1px solid #444;
    word-break: break-word;
  }

  /* --- Footer / Center-Content --- */
  .center-div-1 {
    width: 95%;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 30px;
  }

  .center-div-1 a {
    display: inline-block;
    margin: 5px;
  }

  /* Fix: Keine grauen Ränder um Bilder */
  .bilder img {
  display: block;
  border: none !important;
  background: none !important;
  box-shadow: none !important;

  
}

@media (max-width: 768px) {


  .background {
  background-image: url('img/bg_2.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* Hintergrundfarbe nur als Fallback, falls das Bild nicht lädt */
html, body {
  background-color: #000; /* schwarz statt grau, kein sichtbarer Rand */
  height: 100%;
  margin: 0;
  padding: 0;
}

}


}

/* Loader: passt zum vorhandenen Farbschema (blau/türkis) */
.loader-overlay {
  position: fixed;
  inset: 0;
  display: none;              /* sichtbar machen mit display:flex oder .visible-Klasse */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45); /* dunkler Overlay */
  z-index: 99999;
  backdrop-filter: blur(4px);
}

.loader-overlay.visible { display: flex; }

.loader {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 0deg, #5adaff 0deg, #5468ff 140deg, rgba(255,255,255,0.06) 160deg);
  filter: drop-shadow(0 12px 30px rgba(84,104,255,0.12));
  animation: loader-rotate 1s linear infinite;
  box-shadow: 0 10px 30px rgba(0, 239, 96, 0.06), inset 0 -6px 18px rgba(90,218,255,0.06);
  display: grid;
  place-items: center;
}

.loader::after {
  content: '';
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.loader-label {
  margin-top: 12px;
  color: #e6f7ff;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

@keyframes loader-rotate {
  to { transform: rotate(360deg); }
}
/* accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loader { animation: none; }
}

/* Modal / Confirm box */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 100000;
  padding: 20px;
}

.modal-box {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, #1100ff, #2a2a2a);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  color: #fff;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.03);
}

.modal-content h2 { margin-bottom: 8px; font-size: 1.2rem; }
.modal-content p { margin-bottom: 16px; color: #ddd; }

.modal-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.modal-btn { padding: 10px 14px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
.modal-btn-yes { background: linear-gradient(90deg,#28a745,#1e7e34); color: #fff; }
.modal-btn-no { background: linear-gradient(90deg,#e0e0e0,#bdbdbd); color:#111; }
.modal-btn:focus { outline: 3px solid rgba(90,218,255,0.2); }

@media (max-width: 480px){
  .modal-box { padding: 14px; }
  .modal-buttons { flex-direction: column-reverse; }
  .modal-btn { width: 100%; }
}
