/* ========== Grundlayout ========== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #e6f0ff;
  margin: 0;
  padding: 0;
  color: #0a1a3c;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== Überschriften & Text ========== */
h1, h2 {
  margin-top: 2rem;
  color: #0a1a3c;
  text-align: center;
}

.center-text {
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #0a1a3c;
  text-align: center;
}

form label,
form input,
form select,
form textarea,
small,
.info,
.vertrag-box p,
.bank-info,
.bank-info p,
.bank-info strong,
.support-container,
.footer {
  color: #0a1a3c;
}

/* ========== Formularfelder ========== */
form {
  max-width: 600px;
  margin: auto;
  text-align: left;
}

form label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
}

/* Ergänzung: Datumsfelder angleichen */
input[type="date"] {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

/* ========== Formular-Submit-Button ========== */
form button[type="submit"],
.form-button,
button {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  background-color: #192a56;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  margin: 20px auto;
  display: block;
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover,
.form-button:hover,
button:hover {
  background-color: #273c75;
  transform: translateY(-2px);
}

/* ========== Navigationsbuttons ========== */
.nav-links {
  margin-top: 30px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.nav-button {
  background-color: #192a56;
  color: white;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 24px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.nav-button:hover {
  background-color: #273c75;
  transform: translateY(-2px);
}

.nav-button.logout {
  background-color: #e84118;
}

.nav-button.logout:hover {
  background-color: #c23616;
}

/* ========== Link-Buttons ========== */
.button-link {
  background-color: #192a56;
  color: white;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px 5px;
}

.button-link:hover {
  background-color: #273c75;
  transform: translateY(-2px);
}

.button-link.center {
  display: block;
  margin: 20px auto;
  text-align: center;
}

/* ========== Button-Gruppen ========== */
.simple-links,
.button-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ========== Tabellen ========== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

th, td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #f9f9f9;
  font-weight: bold;
}

.file-link {
  text-decoration: none;
  color: #007BFF;
}

.file-link:hover {
  text-decoration: underline;
}

/* ========== Alerts ========== */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-align: center;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========== Checkbox ========== */
.checkbox-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

/* ========== Footer ========== */
.footer {
  margin-top: 50px;
  font-size: 16px;
  color: #7f8c8d;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.footer a {
  color: #273c75;
  font-weight: bold;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========== Zusatzinfos, Kleinschrift ========== */
small,
.info {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

/* ========== Vertragsübersicht Styles ========== */
.vertrag-box {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

.vertrag-box h2 {
  color: #192a56;
  margin-bottom: 25px;
  text-align: center;
}

.vertrag-box p {
  font-size: 16px;
  margin: 8px 0;
}

.bar-container {
  background-color: #eee;
  border-radius: 20px;
  overflow: hidden;
  height: 25px;
  margin: 25px 0;
}

.bar {
  background-color: #44bd32;
  height: 100%;
  color: white;
  font-weight: bold;
  line-height: 25px;
  text-align: center;
  transition: width 0.5s ease;
}

.hinweis {
  color: #e84118;
  font-weight: bold;
  margin-top: 15px;
  text-align: center;
}

/* ========== Support-Formular Container ========== */
.support-container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== Responsive Styles ========== */
@media (max-width: 600px) {
  .container,
  .vertrag-box,
  .support-container {
    padding: 20px;
    margin: 20px 10px;
  }

  .row {
    flex-direction: column;
    align-items: center;
  }

  .button-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 5px;
  }

  .button-row .button-link {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
  }

  .bar {
    font-size: 14px;
    line-height: 22px;
  }

  .support-container h2 {
    font-size: 20px;
  }

  .support-container input[type="text"],
  .support-container textarea,
  .support-container button {
    font-size: 15px;
    padding: 10px;
  }

  .checkbox-label {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }

@media (max-width: 600px) {
  /* ... bestehende Styles ... */

  input[type="date"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
}

/* ========== Programmierer Hinweis ========== */
.programmierer-hinweis {
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 20px;
  background-color: #f0f4ff;
  border: 1px solid #d0d8e8;
  border-radius: 10px;
  text-align: center;
  color: #0a1a3c;
  font-size: 16px;
  line-height: 1.6;
}

/* Zwei-Spalten-Tabelle für Bankdaten (nur Desktop) */
.bank-table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 auto;
}

.bank-table {
  min-width: 100%;
  max-width: 600px;
  margin: 0 auto;
  table-layout: fixed;
}

/* Standard: Mobile zuerst */
.mobile-only {
  display: block;
}
.desktop-only {
  display: none;
}

/* Ab 701px: Desktop-Ansicht aktiv */
@media (min-width: 701px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: table; /* oder display: block; je nach Element */
}
input[type="date"] {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* ========== Header-Styles ========== */
.main-header {
  background-color: #007BFF;
  padding: 12px 20px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  font-size: 15px;
  transition: text-decoration 0.2s ease;
}

.main-nav a:hover {
  text-decoration: underline;
}
.public-header {
    background-color: #ffffff;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.public-header .logo span {
    font-size: 28px;
    font-weight: bold;
    color: #192a56;
}
.index-container h1,
.index-container h2,
.index-container p,
.index-container .feedback-box {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.index-container ul.features {
    text-align: left;
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 20px;
}
