/* === Banner über jeder .rahmen-Box, volle Breite === */
.rahmen {
  position: relative;      
  padding-top: 100px;      /* = Banner-Höhe */
  margin: 0 auto 60px;     /* zentriert, unten Abstand */
  background-color: white;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  border-radius: 8px;
  width: 1000px;
  max-width: 95%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.rahmen::before {
  content: "";
  position: absolute;
  top: 0;                  /* direkt am oberen Padding-Rand */
  left: 0;
  width: 100%;             /* volle Breite des Containers */
  height: 100px;           /* Banner-Höhe */
  background-color: #f2f2f2;      
  background-image: url('/images/banner.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* === Grundlayout === */
body {
  background-color: #f2f2f2;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* === Buttons === */
.knopf {
  display: inline-block;
  padding: 4px 8px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  margin: 4px 5px 10px 0;
  cursor: pointer;
  vertical-align: middle;
  font-family: inherit;
}
.knopf:hover { background-color: #1e48c4; }
button.knopf {
  all: unset; display: inline-block;
  padding: 4px 8px; font-size: 14px; line-height: 1.2;
  background-color: #2563eb; color: white; border-radius: 4px;
  cursor: pointer; text-decoration: none; vertical-align: middle;
  font-family: inherit;
}
button.knopf:hover { background-color: #1e48c4; }
.btn-mini { padding: 2px 6px; font-size: 13px; line-height: 1.2; }

/* === Erfolg & Fehlerhinweise === */
.success {
  background: #e6ffed; border-left: 4px solid #28a745;
  padding: 10px; margin-bottom: 15px; color: #19692c;
}
.error {
  background: #ffe5e5; border-left: 4px solid #d62828;
  padding: 10px; margin-bottom: 15px; color: #a00000;
}

/* === Formularfelder === */
input[type="text"], input[type="email"],
input[type="password"], textarea, select {
  width: 100%; padding: .5rem; margin-bottom: 1rem;
  border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
  font-size: 14px;
}

/* === Tabellen === */
table {
  border-collapse: collapse; width: 100%;
  margin-top: 20px; margin-bottom: 1.5rem;
}
th, td {
  padding: 10px; border: 1px solid #ccc;
  text-align: left; vertical-align: middle; font-size: 14px;
}
th { background-color: #f9f9f9; }
table a { color: #2563eb; text-decoration: none; }
table a:hover { text-decoration: underline; }

/* === Spaltenbreiten === */
table td:first-child, table th:first-child { width: 60px; }
table td:nth-child(2), table th:nth-child(2) { width: 320px; }
table td:nth-child(3), table th:nth-child(3) { width: 160px; }
table td:nth-child(4), table th:nth-child(4) { width: 180px; }
table td:last-child, table th:last-child { width: 130px; }

/* === Kommentarblöcke === */
.comment {
  border-left: 4px solid #2563eb; padding-left: 10px;
  margin-bottom: 10px; background: #f8f9ff;
}
