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

:root {
    --primary: #0d47a1;
    --primary-dark: #08306b;
    --background: #f5f5f5;
    --surface: #ffffff;
    --text: #1f2937;
    --text-light: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    --content-max-width: 1400px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

#wartung {
    color: red;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* Gesamtes Seitenlayout */
.page-wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 100px);
}

/* Navigation links */
.nav {
    width: 260px;
    min-width: 260px;
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.head_logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px 24px 16px;
    width: 100%;
}

.head_logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
}

/* Menü */
.nav_menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav_menu a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    word-break: break-word;
}

.nav_menu a:hover,
.nav_menu a:focus {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateX(2px);
    outline: none;
}

/* Hauptinhalt */
.content {
    flex: 1;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.content_box {
    width: 100%;
    max-width: var(--content-max-width);
    background-color: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Typografie im Inhalt */
.content_box h1,
.content_box h2,
.content_box h3,
.content_box h4,
.content_box h5,
.content_box h6 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

.content_box h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.content_box h4 {
    font-size: 1.2rem;
    margin-top: 24px;
}

.content_box p {
    margin-bottom: 14px;
    font-size: 1rem;
}

.content_box ul,
.content_box ol {
    margin: 0 0 16px 24px;
}

.content_box a {
    color: var(--primary);
}

.content_box img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.version-header {
    margin: 20px 0 24px 0;
}

.version-badge-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0d47a1;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.version-badge-link:hover,
.version-badge-link:focus,
.version-badge-link:visited,
.version-badge-link:active {
    background-color: #08306b;
    color: #ffffff !important;
    text-decoration: none;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.version-item {
    background-color: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.version-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background-color: #f4f8fc;
    transition: background-color 0.2s ease;
}

.version-item summary::-webkit-details-marker {
    display: none;
}

.version-item summary:hover {
    background-color: #eaf2fb;
}

.version-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d47a1;
}

.version-date {
    font-size: 0.95rem;
    color: #4b5563;
    white-space: nowrap;
}

.version-content {
    padding: 18px 20px 20px 20px;
}

.version-content p:last-child {
    margin-bottom: 0;
}

.version-content ul {
    margin-top: 10px;
    margin-bottom: 16px;
    padding-left: 20px;
}

.version-content h4 {
    margin-top: 18px;
    margin-bottom: 10px;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0d47a1;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Hover */
.button:hover {
    background-color: #08306b;
    color: #ffffff !important;
}

/* Browser-Standard */
.button:visited,
.button:active,
.button:focus {
    color: #ffffff !important;
}

.button-secondary {
    background-color: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.button-secondary:hover {
    background-color: rgba(13, 71, 161, 0.08);
}

/* Meldungsformulare */
.meldung-group {
    border: 1px solid #dbe4f0;
    border-radius: var(--border-radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.meldung-group legend {
    font-weight: 700;
    color: var(--primary-dark);
    padding: 0 8px;
}

.modul-box {
    border: 1px solid #dbe4f0;
    border-radius: var(--border-radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.modul-box h4 {
    margin-top: 0;
}

.meldung-field {
    margin-bottom: 16px;
}

.meldung-field label,
.meldung-group-label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 6px;
}

.field-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--primary);
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
}

.field-info-icon:hover,
.field-info-icon:focus-visible {
    background-color: var(--primary);
    color: #fff;
    outline: none;
}

.field-info-tooltip {
    display: block;
    max-width: 360px;
    margin: 6px 0 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
}

.field-info-tooltip[hidden] {
    display: none;
}

.field-info-icon:hover + .field-info-tooltip[hidden],
.field-info-icon:focus-visible + .field-info-tooltip[hidden] {
    display: block;
}

.meldung-field input[type="text"],
.meldung-field input[type="date"],
.meldung-field input[type="email"],
.meldung-field input[type="password"],
.meldung-field select,
.meldung-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.meldung-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.recipient-picker-box {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    background-color: var(--surface);
}

.recipient-picker-box span {
    color: #64748b;
}

.recipient-picker-list {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipient-picker-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

/* Login/Rollen-System */
.form-error {
    padding: 10px 14px;
    border-radius: var(--border-radius);
    background-color: #fdecea;
    color: #922b21;
    border: 1px solid #f5c6c0;
}

.form-notice {
    padding: 10px 14px;
    border-radius: var(--border-radius);
    background-color: #eaf6ec;
    color: #1e6b32;
    border: 1px solid #c5e6cc;
}

.form-notice-warning {
    padding: 10px 14px;
    border-radius: var(--border-radius);
    background-color: #fdf0e0;
    color: #9a5b0f;
    border: 1px solid #f3d2a8;
}

.inline-form {
    display: inline;
}

.field-hint {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.meldung-radio-option,
.meldung-checkbox-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

/* Gruppenseiten: Kopfzeile im Content-Bereich mit Gruppenname und, bewusst
   optisch abgesetzt, dem gruppen-eigenen Mini-CMS-Menü (max. 4 Tabs) - das
   blaue Seitenband selbst ist gemeinsam für globale und Gruppenseiten (siehe
   shell.php). */
.group-content-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.group-content-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.group-cms-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    background-color: var(--background);
    border: 1px dashed #cbd5e1;
    border-radius: 999px;
}

.group-cms-tabs a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.group-cms-tabs a:hover,
.group-cms-tabs a:focus {
    background-color: var(--primary);
    color: var(--text-light);
    outline: none;
}

@media (max-width: 720px) {
    .group-content-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mini-CMS-Editor für Gruppen-Unterseiten (eigene Toolbar, getrennt von .richtext-*) */
.cms-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.cms-toolbar button {
    border: 1px solid #cbd5e1;
    background-color: var(--surface);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cms-toolbar button:hover {
    background-color: #eaf2fb;
}

.cms-editor {
    min-height: 160px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: var(--surface);
}

.cms-editor:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.billing-table,
.referee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.billing-table th,
.billing-table td,
.referee-table th,
.referee-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.billing-table th,
.referee-table th {
    color: var(--primary-dark);
    font-weight: 700;
}

.referee-table td .inline-form {
    margin-right: 8px;
    margin-bottom: 4px;
    display: inline-block;
}

.table-scroll {
    overflow-x: auto;
}

/* Suchfeld + Status-Filter oberhalb einer Tabelle (SR-Übersicht, Admin-Nutzer) */
.table-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.table-filter-bar input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.table-filter-bar select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: var(--surface);
}

/* Tab-Leiste für Verwaltungs-Unterseiten (Gruppe + Admin) - bewusst nicht
   .group-cms-tabs, das ist Verwaltungs-Chrome statt gruppen-eigener Inhalt. */
.section-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.section-tabs a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-tabs a:hover,
.section-tabs a:focus {
    background-color: var(--background);
    outline: none;
}

.section-tabs a.is-active {
    background-color: var(--primary);
    color: var(--text-light);
}

/* News-Feed (Kategorien Rot/Gelb/Grün), natives <details>/<summary> - Titel
   immer sichtbar, Inhalt erst beim Aufklappen. */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.news-item {
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    border-radius: 8px;
    padding: 10px 14px;
    background-color: var(--surface);
}

.news-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.news-item summary::-webkit-details-marker {
    display: none;
}

.news-item .news-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.news-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
}

.news-rot {
    border-left-color: #c0392b;
}

.news-rot .news-badge {
    background-color: #fdecea;
    color: #922b21;
}

.news-gelb {
    border-left-color: #d4a017;
}

.news-gelb .news-badge {
    background-color: #fdf6e3;
    color: #8a6d1a;
}

.news-gruen {
    border-left-color: #1e6b32;
}

.news-gruen .news-badge {
    background-color: #eaf6ec;
    color: #1e6b32;
}

.meldung-hint {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 8px;
}

.richtext-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.richtext-toolbar button {
    border: 1px solid #cbd5e1;
    background-color: var(--surface);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.richtext-toolbar button:hover {
    background-color: #eaf2fb;
}

.ai-check-group {
    position: relative;
    margin-left: auto;
}

.ai-check-group .ai-check-icon {
    margin-left: 0;
}

.ai-check-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
    list-style: none;
    margin: 4px 0 0;
    padding: 4px;
    min-width: 260px;
    background-color: var(--surface);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ai-check-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.ai-check-menu button:hover {
    background-color: #eaf2fb;
}

.ai-check-result {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
}

.ai-check-message {
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.ai-check-grades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.grade-legend {
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.grade-legend ul {
    margin: 6px 0 0;
    padding-left: 0;
    list-style: none;
}

.grade-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.grade-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.grade-badge.grade-1 {
    background-color: #eaf6ec;
    color: #1e6b32;
}

.grade-badge.grade-2 {
    background-color: #eef7e1;
    color: #4c7a1e;
}

.grade-badge.grade-3 {
    background-color: #fdf6e3;
    color: #8a6d1a;
}

.grade-badge.grade-4 {
    background-color: #fdece0;
    color: #a3540f;
}

.grade-badge.grade-5 {
    background-color: #fdecea;
    color: #922b21;
}

.ai-suggestion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .ai-suggestion-cards {
        grid-template-columns: 1fr;
    }
}

.ai-suggestion-card {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-suggestion-preview {
    font-size: 0.9rem;
    min-height: 60px;
}

.richtext-editor {
    min-height: 90px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: var(--surface);
}

.richtext-editor:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.field-status {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    font-size: 0.85rem;
}

.meldung-review-field {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.meldung-review-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 720px) {
    .meldung-review-columns {
        grid-template-columns: 1fr;
    }
}

.meldung-review-column-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-light);
}

.richtext-editor.is-readonly {
    background-color: #f1f5f9;
    color: var(--text);
}

.ai-placeholder-hint {
    font-size: 0.8rem;
    color: #7a5200;
    margin-bottom: 8px;
}

.news-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.news-main {
    flex: 1 1 320px;
    min-width: 0;
}

.news-cost-box {
    flex: 0 0 auto;
    width: 260px;
    padding: 16px 18px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--surface);
}

.news-cost-box h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.news-cost-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.news-cost-row:first-of-type {
    border-top: none;
}

.news-cost-total span:last-child {
    font-weight: 600;
    color: var(--primary-dark);
}

@media (max-width: 720px) {
    .news-layout {
        flex-direction: column;
    }

    .news-cost-box {
        width: 100%;
    }
}

.meldung-warning {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #f0b429;
    border-left: 4px solid #f0b429;
    border-radius: var(--border-radius);
    background-color: #fff8e6;
    color: #7a5200;
    font-size: 0.9rem;
}

.meldung-warning strong {
    color: #7a5200;
}

.form-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(15, 23, 42, 0.55);
}

.form-loading-overlay.is-visible {
    display: flex;
}

.form-loading-overlay-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.form-loading-bar {
    width: 240px;
    height: 8px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.form-loading-bar-fill {
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background-color: var(--primary);
    animation: form-loading-indeterminate 1.1s ease-in-out infinite;
}

@keyframes form-loading-indeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

.field-status-described,
.field-status-ai-checked {
    color: #9ca3af;
}

.field-status-described.is-active,
.field-status-ai-checked.is-active {
    color: #15803d;
    font-weight: 600;
}

.meldung-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    flex-wrap: wrap;
}

.footer_copy h4 {
    font-size: 1rem;
    font-weight: 500;
}

.footer_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer_nav a {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.footer_nav a:hover,
.footer_nav a:focus {
    background-color: rgba(255, 255, 255, 0.16);
    outline: none;
}

.sozial_icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sozial_icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.sozial_icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* Große Bildschirme */
@media (min-width: 1400px) {
    .content {
        padding: 32px;
    }

    .content_box {
        padding: 32px;
    }
}

/* Laptop / kleinere Desktopgeräte */
@media (max-width: 1200px) {
    .nav {
        width: 230px;
        min-width: 230px;
    }

    .content {
        padding: 20px;
    }

    .content_box {
        padding: 22px;
    }

    .content_box h3 {
        font-size: 1.6rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .version-item summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .version-date {
        white-space: normal;
    }

    .version-badge-link {
        width: 100%;
        text-align: center;
    }
}

/* Tablets quer */
@media (max-width: 992px) {
    .page-wrapper {
        flex-direction: column;
    }

    .nav {
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 16px;
    }

    .head_logo {
        padding: 0 0 16px 0;
    }

    .head_logo img {
        width: 90px;
        height: 90px;
    }

    .nav_menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0;
    }

    .nav_menu a {
        padding: 12px 14px;
        text-align: center;
    }

    .content {
        padding: 18px;
    }

    footer {
        padding: 16px 18px;
    }
}

/* Tablets hoch / große Smartphones */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav {
        padding: 14px;
    }

    .nav_menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav_menu a {
        width: 100%;
        text-align: left;
    }

    .content {
        padding: 14px;
    }

    .content_box {
        padding: 18px;
        border-radius: 10px;
    }

    .content_box h3 {
        font-size: 1.45rem;
    }

    .content_box h4 {
        font-size: 1.1rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer_nav {
        width: 100%;
    }

    .sozial_icon {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Smartphones */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .head_logo img {
        width: 78px;
        height: 78px;
    }

    .nav {
        padding: 12px;
    }

    .nav_menu a {
        padding: 11px 12px;
        font-size: 0.95rem;
    }

    .content {
        padding: 12px;
    }

    .content_box {
        padding: 16px;
    }

    .content_box h3 {
        font-size: 1.3rem;
    }

    .footer_copy h4 {
        font-size: 0.95rem;
    }

    .footer_nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer_nav a {
        padding: 6px 0;
    }

    .sozial_icon img {
        width: 28px;
        height: 28px;
    }

    .version-item summary {
        padding: 14px 16px;
    }

    .version-content {
        padding: 16px;
    }

    .version-title {
        font-size: 1rem;
    }

    .version-date {
        font-size: 0.9rem;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
    .content_box {
        padding: 14px;
    }

    .nav_menu a {
        font-size: 0.9rem;
        padding: 10px;
    }

    .content_box h3 {
        font-size: 1.2rem;
    }

    .content_box h4 {
        font-size: 1rem;
    }
}

/* Admin: Gruppen anlegen/verwalten */
.admin-group-name-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.admin-group-name-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #eaf2fb;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 700;
    color: var(--primary-dark);
}

.admin-group-name-row input {
    border-radius: 0 8px 8px 0 !important;
}

.admin-group-list {
    list-style: none;
}

.admin-group-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.admin-user-list {
    list-style: none;
}

.admin-user-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.admin-user-role-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #eaf2fb;
    color: var(--primary-dark);
}