/* ==========================================================================
   DSU Corporate Identity Stylesheet
   Einheitliches modernes Design – Hochwertig, seriös, barrierearm
   ========================================================================== */

/* ========================
   Grundlayout
   ======================== */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: #fff;

  display: flex;
  flex-direction: row;
  min-height: 100vh;
  overflow-y: auto;
}

main {
  flex-grow: 1;
  overflow: visible;
}

/* ========================
   Header
   ======================== */
header {
  padding: 1.2em 0;
  background: #fff;
  border-bottom: 2px solid #005a9c;
  text-align: center;
  margin-bottom: 25px;
}

.header-img {
  display: block;
  max-width: 100%;
  max-height: 35vh;
  height: auto;
  margin: 0 auto 1em auto;
}

/* ========================
   Navigation (Sidebar + Subnav responsive)
   ======================== */
.tab-sidebar {
  width: 230px;
  background: #eef5fb;
  border-right: 2px solid #cce0f0;
  padding: 30px 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-sidebar a {
  padding: 12px 18px;
  margin: 0 12px;
  background: #ffffff;
  border: 1px solid #cce0f0;
  border-radius: 6px;
  color: #005a9c;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.tab-sidebar a:hover {
  background: #dceaf7;
}

.tab-sidebar a.active {
  background: #eef5fb;
  border-color: #99c2e0;
  color: #003f7a;
}

/* Horizontal Subnav (mobil) */
.subnav {
  display: none;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 25px 0;
}

.subnav a {
  padding: 10px 16px;
  background: #eef5fb;
  border: 1px solid #cce0f0;
  border-radius: 6px;
  color: #005a9c;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}

.subnav a:hover {
  background: #dceaf7;
}

.subnav a.active {
  background: #ffffff;
  border-color: #99c2e0;
  color: #003f7a;
}

/* Content-Bereich neben Sidebar */
.page-content {
  margin-left: 260px;
  padding: 25px;
}

/* ========================
   Buttons (DSU Unified)
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  font-size: 15px;
  background: #005a9c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;

  transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: #003f7a;
}

.btn.disabled {
  background: #999;
  cursor: not-allowed;
}

.btn-textlink {
  background: transparent;
  color: #005a9c;
  padding: 0;
}

.btn-textlink:hover {
  color: #003f7a;
}

/* ========================
   Message-Box (ähnlich Info-Box, aber nicht zentriert)
   ======================== */
.message-box {
  background: #eef5fb;
  border: 1px solid #cce0f0;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 20px 0;      /* NICHT auto → nicht zentriert */
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: justify;
  line-height: 1.55;
}


/* ========================
   Info-Box (DSU Intro/Hint)
   ======================== */
.intro-box,
.info-box {
  background: #eef5fb;
  border: 1px solid #cce0f0;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 900px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: justify;
  line-height: 1.55;
}

/* ========================
   Formularbereich
   ======================== */
.form-help-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 800px;
  margin: 1.5em 0;
}

input[type="text"] {
  background: #f7f9fc;
  padding: 0.5em 0.7em;
  border: 1px solid #cce0f0;
  border-radius: 4px;
  font-size: 15px;
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ========================
   Tabellen – DSU Corporate
   ======================== */

/* Universelle Tabelle */
table {
  width: 100%;
  border-collapse: collapse;
}

/* DSU Standardtable */
.table-wrapper {
  overflow-x: auto;
  padding-bottom: 1em;
}

thead th {
  background: #005a9c;
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #003f7a;
}

td, th {
  padding: 10px 14px;
  border-bottom: 1px solid #d9e6f3;
}

tr:nth-child(even) {
  background: #f5f8fc;
}

tr:last-child td {
  border-bottom: none;
}

/* Statusfarben */
.td-gruen { background: #cfead1 !important; }
.td-gelb  { background: #fff6cc !important; }
.td-rot   { background: #f4c7c3 !important; }

/* ========================
   FAQ
   ======================== */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.faq-item {
  border: 1px solid #cce0f0;
  border-radius: 6px;
  padding: 0.8em 1em;
  margin-bottom: 1em;
  background: #ffffff;
  transition: background 0.2s;
}

.faq-item[open] {
  background: #eef5fb;
}

.faq-summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.07em;
}

.faq-summary:hover {
  color: #005a9c;
}

.faq-scroll {
  padding-top: 0.8em;
  text-align: justify;
}

/* ========================
   Footer-Link
   ======================== */
.footer-link {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #cce0f0;
  text-align: center;
}

.footer-link a {
  background: #005a9c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  font-weight: bold;
}

.footer-link a:hover {
  background: #003f7a;
}

.footer-link .button-group {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ========================
   Responsive Design: Sidebar ↔ Subnav
   ======================== */
@media (max-width: 900px) {

  .tab-sidebar {
    display: none;
  }

  .page-content {
    margin-left: 0;
  }

  .subnav {
    display: flex;
  }
}

@media (min-width: 901px) {
  .subnav {
    display: none;
  }
}

.text-button {
  display: inline-block;
  padding: 2px 0;
  color: #666;              /* dezentes Grau */
  font-size: 0.9rem;        /* etwas kleiner */
  text-decoration: none;    /* kein Unterstrich */
  border: none;
  background: none;         /* kein Button-Hintergrund */
  cursor: pointer;
}

.text-button:hover {
  color: #333;              /* etwas dunkler beim Hover */
  text-decoration: underline;
}

/* ============================================================
   LOGIN-CONTAINER
   ============================================================ */
.login-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 2em;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.login-container h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.6em;
    color: #222;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 0.7em;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1em;
}

.login-container button {
    padding: 0.7em;
    background: #005bbb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
}

.login-container button:hover {
    background: #004999;
}

.login-error {
    margin-top: 0.5em;
    color: #c00000;
    font-weight: bold;
    text-align: center;
}

