﻿/* =========================
   Basis / Reset
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ganze Höhe einnehmen */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #f9fafb;
    color: #111827;
}

/* Content-Bereich */
#content {
    flex: 1 0 auto;
    padding: 1.5rem 1rem;
}

/* Überschrift auf der Home-Seite */
.centeredContent {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bigHeading {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0;
}

/* =========================
   Header & Navigation (MOBILE FIRST)
   ========================= */

.navigationContentWrap {
    background-color: #111827;
    color: #f9fafb;
    padding: 0.5rem 1rem;
}

/* nav-Container */
.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Burger-Checkbox ausblenden */
.menu-toggle-input {
    display: none;
}

/* Burger-Icon */
.menu-toggle-label {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(249, 250, 251, 0.2);
}

/* UL standardmäßig verstecken (Mobile: ausgeklappt über Burger) */
.main-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* Mobile: initial versteckt */
    flex-direction: column;
    width: 100%;
    background-color: #111827;
    position: absolute;
    left: 0;
    top: 3.25rem; /* in etwa Höhe des Headers */
    gap: 0.25rem;
    border-top: 1px solid rgba(249, 250, 251, 0.15);
}

/* Wenn Burger aktiviert ist: Menü anzeigen */
.menu-toggle-input:checked ~ .main-nav-list {
    display: flex;
}

/* Einzelne Punkte */
.main-nav-list > li {
    padding: 0.5rem 1rem;
}

/* Links */
.menu-link,
.main-nav-list a {
    color: #f9fafb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
}

/* Dropdown-Checkboxen ausblenden */
.submenu-toggle-input {
    display: none;
}

/* Pfeil / Label fürs Untermenü */
.submenu-toggle-label {
    cursor: pointer;
}

/* Dropdown-Liste mobil: untereinander anzeigen, aber zunächst versteckt */
.menu-dropdown {
    list-style: none;
    margin: 0.35rem 0 0;
    padding-left: 0.75rem;
    display: none;
}

/* Dropdown sichtbar, wenn Checkbox aktiv */
.menu-hasdropdown > .submenu-toggle-input:checked ~ .menu-dropdown {
    display: block;
}

/* Dropdown-Links */
.menu-dropdown a {
    display: block;
    padding: 0.25rem 0;
    color: #e5e7eb;
    font-size: 0.9rem;
}

/* =========================
   Footer (MOBILE FIRST)
   ========================= */

footer {
    flex-shrink: 0;
}

    footer.contentwrap {
        background-color: #111827;
        color: #e5e7eb;
        padding: 1.5rem 1rem 2rem;
        margin-top: 2rem;
        font-size: 0.9rem;
    }

#footerNavigationLinks ul {
    list-style: none;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

#footerNavigationLinks a {
    color: #e5e7eb;
    text-decoration: none;
}

    #footerNavigationLinks a:hover {
        text-decoration: underline;
    }

.footerLastLine {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Optional: flex-container auf Mobile erstmal nur stacking */
.flex-container {
    display: block;
}

/* =========================
   Dashboard (MOBILE FIRST)
   ========================= */

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Kopfbereich: Mobile = alles untereinander */
.dashboard-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dashboard-title {
    font-weight: 600;
}

/* CTA-Button: Mobile schön breit */
.dashboard-cta {
    align-self: stretch;
    text-align: center;
}

/* Kennzahlen: Mobile untereinander als Cards */
.dashboard-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-metric .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Aktuelle Anfragen: Listeneinträge mobile-freundlich */
.dashboard-recent-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
}

.dashboard-recent-main {
    flex: 1 1 auto;
}

.dashboard-recent-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
}

/* etwas Luft nach oben/unten */
.dashboard-recent {
    margin-bottom: 0.5rem;
}

/* =========================
   Wizard – Mobile First
   ========================= */

.wizard {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Titel: auf Mobile etwas kompakter */
.wizard-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

/* Fortschrittsanzeige: Mobile = Chips, die umbrechen dürfen */
.wizard-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wizard-step {
    flex: 1 1 45%;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background-color: #e5e7eb; /* grau */
    color: #111827;
}

.wizard-step-active {
    background-color: #2563eb; /* blau */
    color: #ffffff;
    font-weight: 600;
}

/* Formular-Layout */
.wizard-form {
    display: flex;
    flex-direction: column;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Button auf Mobile schön breit, aber rechts ausgerichtet */
.wizard-next {
    min-width: 160px;
}

/* Status "fertig" (z.B. Step 1, wenn man in Step 2 ist) */
.wizard-step-completed {
    background-color: #16a34a; /* grün */
    color: #ffffff;
    font-weight: 500;
}

/* Adresse-Textarea */
.wizard-textarea {
    min-height: 6rem;
    resize: vertical;
}

/* Datei-Upload im Wizard etwas großzügiger */
.wizard-form input[type="file"].form-control {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* Summary-Card im Wizard */
.wizard-summary .list-group-item {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.wizard-summary strong {
    display: inline-block;
    min-width: 7rem; /* sorgt für etwas Spalte, aber bleibt simpel */
}

.wizard-consent {
    font-size: 0.9rem;
}

    /* Label soll neben/unter der Checkbox gut umbrechen */
    .wizard-consent .form-check-label {
        padding-left: 0.35rem;
    }

/* =========================
   Wizard – Ergebnis / Success Page
   ========================= */

.wizard-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.25rem;
}

/* Grüner Check-Kreis */
.wizard-result-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Success-Alert */
.wizard-result-alert {
    background-color: #16a34a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 100%;
}

/* Text unterhalb */
.wizard-result-text {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
    color: #374151;
}

/* CTA */
.wizard-result-button {
    min-width: 180px;
}

/* =========================
   Auth – Login / Register / Reset
   ========================= */

.auth {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.auth-title {
    font-size: 1.45rem;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.auth-subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.auth-info {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Form-Felder */

.auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.auth-label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #374151;
}

.auth-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

    .auth-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
    }

/* Validierung */

.auth-validation-summary {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.auth-error {
    font-size: 0.8rem;
    color: #b91c1c;
    margin-top: 0.2rem;
}

/* ReturnUrl-Hinweis */

.auth-returnurl {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
    word-break: break-all;
}

/* Actions / Button */

.auth-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.auth-submit {
    min-width: 140px;
}

/* =========================
   Auth – Passwort-Richtlinie
   ========================= */

.auth-password-policy {
    margin-top: 1.75rem;
    padding: 1rem 0.9rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #4b5563;
}

.auth-password-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.auth-password-intro {
    margin: 0 0 0.5rem;
}

.auth-password-policy ul {
    margin: 0.25rem 0;
    padding-left: 1.2rem;
}

    .auth-password-policy ul ul {
        margin-top: 0.15rem;
    }

/* =========================
   Status Pages – Success / Error / Info
   ========================= */

.status-page {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.status-card {
    width: 100%;
    max-width: 460px;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.status-icon {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 2.2rem;
    color: #ffffff;
}

/* Varianten */

.status-success .status-icon {
    background-color: #16a34a; /* grün */
}

.status-error .status-icon {
    background-color: #b91c1c; /* rot */
}

.status-info .status-icon {
    background-color: #2563eb; /* blau */
}

.status-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.status-text {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0 0 1.25rem;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* =========================
   Anfrage-Details – Mobile First
   ========================= */

.request-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Kopfbereich */

.request-header {
    gap: 0.5rem;
}

.request-title {
    margin-top: 0.25rem;
}

.request-status {
    align-self: flex-start;
}

/* Flash-Message etwas Abstand */

.request-flash {
    margin-bottom: 0.75rem;
}

/* Timeline */

.request-activities .card-body {
    padding-bottom: 1rem;
}

.request-activity {
    align-items: flex-start;
}

.request-activity-icon i {
    font-size: 1.4rem;
}

.request-activity-body {
    border-color: #e5e7eb;
    padding-top: 0;
}

.request-activity-header {
    gap: 0.5rem;
}

.request-activity-date {
    white-space: nowrap;
}

/* Notes */

.request-note textarea {
    font-size: 0.9rem;
}

/* Sidebar-Karten */

.request-sidebar .card + .card {
    margin-top: 0.75rem;
}

/* Dateien */

.request-file-item span {
    max-width: 70%;
}

/* Profil-Infos im Auth-Card-Layout */

.profile-info {
    margin: 1rem 0 1.25rem;
    font-size: 0.95rem;
}

    .profile-info dt {
        font-weight: 600;
        margin-bottom: 0.1rem;
        color: #111827;
    }

    .profile-info dd {
        margin: 0 0 0.6rem;
    }

.profile-email-badge {
    font-size: 0.8rem;
}

.profile-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}


/* =========================
   Breakpoints (Tablet & Desktop)
   ========================= */

/* Ab ~Tablet */
@media (min-width: 768px) {
    /* Content etwas breiter/zentrischer */
    #content {
        padding: 2rem;
        max-width: 960px;
        margin: 0 auto;
    }

    /* Header-Navi: horizontal, ohne Burger */
    .navigationContentWrap {
        padding: 0.75rem 2rem;
    }

    .menu {
        position: relative;
    }

    .menu-toggle-label {
        display: none; /* Burger ausblenden */
    }

    .main-nav-list {
        position: static; /* wieder im Flow */
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        width: auto;
        border-top: none;
        background: transparent;
    }

        .main-nav-list > li {
            padding: 0;
            position: relative;
        }

        .menu-link,
        .main-nav-list a {
            font-size: 0.95rem;
        }

    /* Dropdowns Desktop: Hover statt Checkbox */
    .menu-hasdropdown {
        position: relative;
    }

    .menu-dropdown {
        position: absolute;
        top: 100%; /* direkt unter dem li */
        left: 0;
        margin: 0; /* <<< WICHTIG: KEIN margin-top mehr */
        padding: 0.5rem 0.75rem;
        min-width: 220px;
        border-radius: 0.375rem;
        box-shadow: 0 8px 15px rgba(15, 23, 42, 0.4);
        background-color: #1f2933;
        display: none;
        z-index: 20;
    }

    .menu-hasdropdown:hover > .menu-dropdown {
        display: block;
    }

    .menu-dropdown li {
        padding: 0.25rem 0;
    }

    .menu-dropdown a {
        white-space: nowrap;
    }

    .submenu-toggle-input,
    .submenu-toggle-label {
        display: none;
    }

    /* Footer-Layout ab Tablet */
    .flex-container {
        display: flex;
        gap: 2rem;
    }

    footer.contentwrap {
        padding: 2rem 2rem 2.5rem;
    }

    /* Header: Titel links, Button rechts */
    .dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .dashboard-cta {
        align-self: auto;
        width: auto;
    }

    /* Kennzahlen: 2 Spalten */
    .dashboard-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .dashboard-metric .card-body {
        padding-inline: 1.25rem;
        padding-block: 0.75rem;
    }

    /* Aktuelle Anfragen: Daten & Meta nebeneinander */
    .dashboard-recent-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-inline: 0.75rem;
    }

    .dashboard-recent-meta {
        justify-content: flex-end;
        min-width: 150px;
        text-align: right;
    }

    /* Fortschrittsbalken wie Tabs oben (wie bei deinem Dashboard-Look) */
    .wizard-progress {
        flex-wrap: nowrap;
        gap: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .wizard-step {
        flex: 1 1 0;
        border-radius: 0;
        padding: 0.75rem 1rem;
        background-color: transparent;
        border-bottom: 3px solid transparent;
    }

    .wizard-step-active {
        background-color: transparent;
        color: #111827;
        border-bottom-color: #2563eb;
        font-weight: 600;
    }

    .wizard-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .wizard-form {
        max-width: 640px;
    }

    .wizard-step-completed {
        background-color: transparent;
        border-bottom-color: #16a34a;
        color: #111827;
        font-weight: 500;
    }

    .wizard-result {
        padding-top: 3rem;
    }

    .wizard-result-icon {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }

    .wizard-result-text {
        font-size: 1.1rem;
    }

    .auth {
        padding: 3rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.75rem;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .auth-password-policy {
        padding: 1.25rem 1.1rem;
        font-size: 0.88rem;
    }

    .status-page {
        padding: 3rem 1rem;
    }

    .status-card {
        padding: 2rem 1.75rem 2.25rem;
    }

    .status-icon {
        width: 86px;
        height: 86px;
        font-size: 2.5rem;
    }

    .status-title {
        font-size: 1.6rem;
    }

    .status-text {
        font-size: 1.03rem;
    }

    .request-header {
        flex-direction: row;
        align-items: center;
    }

    .request-status {
        align-self: center;
    }

    .request-layout {
        margin-top: 0.5rem;
    }

    .request-sidebar .card + .card {
        margin-top: 1rem;
    }
}

/* Ab Desktop breiter werden lassen */
@media (min-width: 1200px) {
    #content {
        max-width: 1120px;
    }

    /* Kennzahlen: 4 Spalten nebeneinander */
    .dashboard-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .request-activities .card-body {
        padding: 1.5rem;
    }

    .request-meta .card-body,
    .request-files .card-body,
    .request-actions .card-body,
    .request-related .card-body {
        padding: 1.25rem 1.25rem 1rem;
    }
}
