/* =========================================
   1. BASIS EINSTELLUNGEN & RESET
   ========================================= */
html {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth; /* Weiches Scrollen */
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: #14396a; /* DS Blau */
  font-family: Tahoma, "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #312f2e;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Bilder responsive machen */
img {
  max-width: 100%;
  height: auto;
  border-width: 0;
}

/* Links allgemein */
a {
  color: #316ac5;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s ease;
}
a:hover {
  color: #000000;
}

/* =========================================
   2. LAYOUT & CONTAINER
   ========================================= */
#umalles {
  max-width: 920px;
  margin: 0 auto;
  margin-bottom: 20px;
  text-align: left;
  background-color: transparent;
}

/* Weißer Inhalts-Bereich */
#koerper {
  background-color: #ffffff;
  max-width: 955px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden; /* Wichtig für runde Ecken etc. */
}

/* Container Padding Helper */
#inhalt4 {
  padding: 20px 40px;
}

/* Hilfsklassen */
.left {
  text-align: left;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.block {
  text-align: justify;
}

/* =========================================
   3. TYPOGRAFIE
   ========================================= */
h1,
h2,
h3,
h4 {
  font-family: "Trebuchet MS", sans-serif;
  margin: 0;
  padding: 8px 0;
  color: #316ac5;
}

h1 {
  font-size: 31px;
  font-weight: bold;
  line-height: 1.2;
  padding-bottom: 10px;
  color: #000;
}
h2 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  color: #000;
}
h3 {
  font-size: 18px;
  font-weight: bold;
}

p {
  margin: 0;
  padding: 6px 0;
  line-height: 1.5;
}

/* Listen */
ol,
ul {
  margin: 8px 0;
  padding-left: 25px;
}
li {
  margin-top: 2px;
  line-height: 1.5;
}

/* Listen schön machen (Partnerseite) */
.content-list {
  margin-left: 20px;
  margin-bottom: 20px;
}
.content-list li {
  margin-bottom: 8px;
}

/* =========================================
   4. HELFER-KLASSEN (Farben & Abstände)
   ========================================= */
.font12 {
  font-size: 12px;
}
.font14 {
  font-size: 14px;
}
.font16 {
  font-size: 16px;
}
.font18 {
  font-size: 18px;
}
.font20 {
  font-size: 20px;
}
.font24 {
  font-size: 24px;
}

.pt0 {
  padding-top: 0px;
}
.pb0 {
  padding-bottom: 0px;
}
.ptb3 {
  padding: 3px 0px;
}
.pt10 {
  padding-top: 10px;
}
.pb10 {
  padding-bottom: 10px;
}
.mt10 {
  margin-top: 10px;
}
.mt15 {
  margin-top: 15px;
}
.mt25 {
  margin-top: 25px;
}

.rot {
  color: #cc0000;
}
.gold {
  color: #ffc000;
}
.silbergrau {
  color: #999;
}

/* Dunkler Hintergrund für Überschriften */
.background {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0;
  margin-bottom: 0;
}

/* Text-Effekte */
.shadow {
  text-shadow: 2px 2px 2px #000000;
}

/* === UNIVERSELLE KOPIER-FELDER (Für Guide & Texte) === */
.copy-area {
  width: 100%;
  background-color: #fff;
  color: #444;
  border: 1px solid #ccc;
  border-left: 4px solid #14396a; /* Standard-DS-Blau */
  padding: 15px;
  border-radius: 4px;
  font-family: inherit;
  resize: none;
  overflow: hidden; /* Scrollbalken-Killer */
  box-sizing: border-box;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* === GLOBALE FARB-CODES (Für spezifische Themen) === */
.copy-area.gold {
  border-left-color: #d4af37;
} /* Für Premium / Business */
.copy-area.blue {
  border-left-color: #3498db;
} /* Für Logik / Info */
.copy-area.green {
  border-left-color: #2ecc71;
} /* Für Sicherheit / Positives */
.copy-area.red {
  border-left-color: #e74c3c;
} /* Für Warnungen / Einwände */

/* =========================================
   5. BUTTONS (MODERNISIERT)
   ========================================= */
/* Basis Button Style */
.btn-base {
  display: inline-block;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 30px;
  text-decoration: none !important;
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.btn-base:active {
  position: relative;
  top: 2px;
  box-shadow: none;
}

/* Oranger Button (Download, Login) */
.btn-orange,
.btn-download {
  background: linear-gradient(to bottom, #ffcc33 5%, #ff9900 100%);
  background-color: #ff9900;
  border: 1px solid #cc8800;
  color: #000000 !important;
  text-shadow: 0px 1px 0px #ffeeaa;
}
.btn-orange:hover,
.btn-download:hover {
  background: linear-gradient(to bottom, #ff9900 5%, #ffcc33 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Grüner Button (Registrierung) */
.btn-green {
  background: linear-gradient(to bottom, #77d42a 5%, #5cb811 100%);
  background-color: #77d42a;
  border: 1px solid #268a16;
  color: #003300 !important;
  text-shadow: 0px 1px 0px #aade7c;
}
.btn-green:hover {
  background: linear-gradient(to bottom, #5cb811 5%, #77d42a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* 'Nach oben' Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #0a192f;
  color: #c5a059;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: #c5a059;
  color: #0a192f;
  transform: translateY(-3px);
}

/* =========================================
   6. NAVIGATION (Tabs & Menü)
   ========================================= */
/* Container für die Buttons */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
}

/* Basis-Design für Buttons */
.nav-btn {
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none !important;
  border: 2px solid;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Aktiv (Hier bin ich) */
.nav-btn.active {
  background-color: #ffc000;
  border-color: #ffc000;
  color: #14396a !important;
  cursor: default;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Inaktiv (Link) */
.nav-btn.link {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
}
.nav-btn.link:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* =========================================
   7. FOOTER & LEGAL SHIELD (NEU!)
   ========================================= */

/* Der graue Warn-Bereich (Legal Shield) */
.legal-shield {
  background-color: #f4f6f8;
  border-top: 3px solid #ccc;
  padding: 25px 30px;
  font-family: sans-serif;
  color: #555;
  font-size: 0.85em;
  line-height: 1.6;
  text-align: left; /* Reset Center vom Body */
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.legal-title {
  margin-top: 0;
  color: #333;
  text-transform: uppercase;
  font-size: 1.2em;
  letter-spacing: 0.5px;
  font-weight: bold;
}

.legal-date {
  text-align: right; /* Rechtsbündig wirkt wie eine Unterschrift */
  font-size: 0.85em; /* Etwas kleiner als der Fließtext */
  color: #999; /* Helles Grau (Dezent) */
  margin-top: 20px; /* Abstand zum Text darüber */
  padding-top: 10px; /* Innenabstand */
  border-top: 1px dotted #ccc; /* Eine sehr feine gepunktete Linie darüber */
  font-style: italic; /* Kursiv wirkt amtlicher */
}

/* Der dunkelblaue System-Footer */
.footer-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
}
.footer-bar a {
  color: #fff;
  text-decoration: underline;
}

/* =========================================
   8. MEDIA & LOGIK
   ========================================= */

/* Video Wrapper (16:9) */
.video-wrapper,
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 0;
  height: 0;
  margin-bottom: 20px;
  background-color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.video-wrapper iframe,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Grid & Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  width: 100%;
}
.card-item {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  text-decoration: none !important;
  color: #333;
  transition: transform 0.2s;
}
.card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}
.login-card {
  background-color: #ffffcc;
  border: 1px solid #ffcc33;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 350px;
  text-align: center;
}
.input-code {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin: 15px 0;
}
.error-box {
  background-color: #fff0f0;
  color: #cc0000;
  border: 1px solid #cc0000;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* Mobile Tabelle */
.table-container {
  margin-bottom: 30px;
  position: relative;
}
.mobile-scroll-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-bottom: 5px;
  animation: pulse 2s infinite;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
}
.value-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 0.9em;
  min-width: 600px;
}
.value-table th,
.value-table td {
  padding: 10px;
  border: 1px solid #ddd;
  vertical-align: top;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* =========================================
   9. MOBILE OPTIMIERUNGEN (Ganz unten)
   ========================================= */
@media only screen and (max-width: 768px) {
  /* Layout */
  h1,
  h2 {
    font-size: 20px;
  }
  #inhalt4 {
    padding: 15px;
    margin: 0;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links,
  .footer-right {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  /* Tabelle Mobile */
  .mobile-scroll-hint {
    display: block;
  }
  .value-table th,
  .value-table td {
    font-size: 0.85em;
    padding: 6px;
  }
}
