/* Farbvariablen */
:root {
    --bg: #f4f6f8;
    --text: #2c3e50;
    --card: #ffffff;
    --header: #ffffff;
    --header-text: #2c3e50;
    --sidebar: #f4f6f8;
    --sidebar-btn: #ecf0f1;
    --sidebar-text: #2c3e50;
    --border: #dcdde1;
    --theme-toggle: #2c3e50;
    --primary-color: #ff6b35;
}

.dark {
    --bg: #1e272e;
    --text: #f5f6fa;
    --card: #2f3640;
    --header: #000000;
    --header-text: #ffffff;
    --sidebar: #1e272e;
    --sidebar-btn: #2f3640;
    --sidebar-text: #ffffff;
    --border: #444;
    --theme-toggle: #f5f6fa;
}

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

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background-color: var(--primary-color);
    color: white;
}

h1,
h2,
h3 {
    line-height: 1.3;
}

.intro h2 {
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.intro p {
    opacity: 0.85;
}

/* Tastatur-Fokus deutlich sichtbar machen (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Header */
header {
    display: flex;
    /* Flexbox aktivieren */
    align-items: center;
    /* Vertikal zentrieren */
    justify-content: space-between;
    /* Abstand zwischen Logo+Titel und Toggle-Button */
    background-color: var(--header);
    color: var(--header-text);
    padding: 10px 20px;
    position: relative;
}

/* Logo und Titel links gruppieren */
header .logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Abstand zwischen Logo und Titel */
}

header img {
    width: 100px;
    height: 100px;
}

/* Titel anpassen */
header h1 {
    color: var(--header-text);
    font-size: 2rem;
    margin: 0;
}

header .logo-title a {
    text-decoration: none;
}

header .logo-title a h1 {
    text-decoration: none;
}

/* Navigation */
nav ul {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-left: 30px;
    /* Abstand nach dem Logo/Titel */
}

nav a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Toggle Button */
#theme-toggle {
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#theme-toggle:hover {
    transform: translateY(-2px) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature {
    background-color: var(--card);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    /* Unterstrich entfernen */
    color: inherit;
    /* Textfarbe übernehmen */
    display: block;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature:hover {
    transform: translateY(-5px);
    /* leicht nach oben bewegen */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Schatten verstärken */
}

/* Checkbox unsichtbar */
.feature input[type="checkbox"] {
    display: none;
}

/* Wenn ausgewählt: ganze Karte grün, Text weiß */
.feature input[type="checkbox"]:checked+h3,
.feature input[type="checkbox"]:checked+h3+p {
    color: white;
}

/* Ganze Karte einfärben: Label selbst mit :has, modern */
.feature:has(input[type="checkbox"]:checked) {
    background-color: var(--primary-color);
    /* grün */
    color: white;
}

/* Hover-Effekt */
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Feature Card Links - Remove purple color and underline */
.feature a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature a:visited {
    color: inherit;
}

.feature a:hover {
    text-decoration: none;
    color: inherit;
}

/* PDF Platzhalter */
.pdf-placeholder {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--bg);
    text-align: center;
}

/* Input Feld */
.menu-input {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 16px;
    background-color: var(--card);
    color: var(--text);
}

/* Fokus Effekt */
.menu-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Inputs allgemein */
.date-input,
.time-input,
.note-input {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 16px;
    background-color: var(--card);
    color: var(--text);
}

/* Fokus Effekt */
.date-input:focus,
.time-input:focus,
.note-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Textarea Resize schöner */
.note-input {
    resize: vertical;
}

/* Speichern-Button */
.save-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.45);
    filter: brightness(1.05);
}

.save-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.35);
}

.save-btn:disabled {
    background: var(--border);
    color: var(--text);
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.success {
    color: #4CAF50;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--card);
    color: var(--text);
    border-top: 1px solid var(--border);
}

/* Authentifizierung */
.auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label {
    font-weight: bold;
    margin-top: 8px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--card);
    color: var(--text);
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form .save-btn {
    margin-top: 18px;
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: bold;
}

.error-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.1);
    color: var(--text);
}

.auth-nav span {
    opacity: 0.8;
    font-size: 14px;
}

@media (max-width: 900px) {
    header .logo-title {
        flex-wrap: wrap;
    }

    nav ul {
        flex-wrap: wrap;
        margin-left: 0;
    }
}


/* ============================================
   Externe Startseite / Landing Page
   ============================================ */

body.landing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 107, 53, 0.16), transparent 35%),
        var(--bg);
}

.landing {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-card {
    width: min(760px, 100%);
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

.landing-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin-bottom: 18px;
}

.landing-eyebrow {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.landing-card h1 {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 24px;
}

.landing-card h1 span {
    color: var(--primary-color);
}

.landing-text {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.82;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.landing-btn {
    display: inline-block;
    min-width: 190px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn:hover {
    transform: translateY(-2px);
}

.landing-btn.primary {
    background: var(--primary-color);
    color: #fff;
}

.landing-btn.secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.landing-note {
    margin-top: 24px;
    font-size: 0.9rem;
    opacity: 0.65;
}

.auth-nav span {
    max-width: 180px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   User-Menü / Burger
   ============================================ */

.user-menu {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Burger Button */

.burger-btn {
    width: 46px;
    height: 46px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 12px;

    background-color: var(--card);
    color: var(--header-text);

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.burger-btn:hover {
    background-color: var(--sidebar-btn);
    border-color: var(--primary-color);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

    transform: translateY(-1px);
}

.burger-btn:active {
    transform: scale(0.95);
}


/* Burger Linien */

.burger-btn span {
    display: block;

    width: 21px;
    height: 2px;

    background-color: currentColor;

    border-radius: 2px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* Burger → X */

.burger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   Dropdown
   ============================================ */

.user-menu-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 270px;

    padding: 8px;

    display: none;
    flex-direction: column;
    gap: 3px;

    background-color: var(--card);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    z-index: 2000;
}

.user-menu-dropdown.open {
    display: flex;
}


/* ============================================
   Benutzerinfo
   ============================================ */

.user-info {
    padding: 11px 12px;
}

.user-label {
    display: block;

    margin-bottom: 4px;

    color: var(--text);

    font-size: 11px;
    font-weight: bold;

    opacity: 0.55;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-email {
    display: block;

    color: var(--text);

    font-size: 14px;
    font-weight: 500;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Trennlinie */

.menu-divider {
    height: 1px;

    margin: 4px 6px;

    background-color: var(--border);
}


/* ============================================
   Dropdown Buttons / Links
   ============================================ */

.dropdown-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 11px 12px;

    border: none;
    border-radius: 9px;

    background: transparent;
    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--sidebar-btn);
    color: var(--primary-color);
}


/* Logout */

.logout-item {
    margin-top: 2px;
}

@media (max-width: 900px) {
    header {
        padding: 10px 15px;
    }

    header .logo-title {
        flex-wrap: wrap;
    }

    nav ul {
        flex-wrap: wrap;
        margin-left: 0;
    }

    .user-menu {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    header img {
        width: 70px;
        height: 70px;
    }

    .user-menu-dropdown {
        width: min(270px, calc(100vw - 30px));
    }
}

/* Event-Karten in "Meine Events" */
.event-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-delete-form {
    margin-top: 12px;
}

.event-delete-btn {
    background-color: transparent;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 20px;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.event-delete-btn:hover {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.event-delete-btn:active {
    transform: scale(0.95);
}

/* "Zurück zu Meine Events" Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background-color: var(--card);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.back-link:active {
    transform: translateX(-1px) scale(0.97);
}

/* Formularfelder nebeneinander (z.B. Datum/Startzeit/Endzeit) */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.form-row .form-group label {
    margin-bottom: 4px;
}

.form-row .date-input,
.form-row .time-input {
    margin-top: 0;
}

/* ============================================
   Übersicht
   ============================================ */
.overview-card {
    background-color: var(--card);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    text-align: left;
}

.overview-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overview-list li {
    padding: 8px 12px;
    background-color: var(--bg);
    border-radius: 6px;
    font-size: 15px;
}

.overview-empty {
    color: #999;
    font-style: italic;
    font-size: 15px;
}

.overview-card p {
    font-size: 15px;
    line-height: 1.5;
}

.overview-notes {
    margin-top: 10px;
    padding: 10px 12px;
    background-color: var(--bg);
    border-radius: 6px;
    font-size: 14px;
}

.overview-card.overview-termin {
    grid-column: 1 / -1;
}

/* ============================================
   Admin-Bereich
   ============================================ */
.admin-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.admin-table-wrapper {
    overflow-x: auto;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.admin-table th {
    color: var(--primary-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: var(--bg);
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.admin-link-btn {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-link-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-link-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .admin-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Navigation zur nächsten/vorherigen Unterseite (Wizard-Flow) */
.step-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.next-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background-color: var(--card);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.next-link:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.next-link:active {
    transform: translateX(1px) scale(0.97);
}

/* ============================================
   Event-Ablehnung
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.rejected {
    background-color: #e74c3c;
    color: white;
}

.reject-banner {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 16px 18px;
    border: 1px solid #e74c3c;
    border-radius: 10px;
    background: rgba(231, 76, 60, 0.1);
    color: var(--text);
}

.reject-banner strong {
    color: #e74c3c;
}

.reject-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reject-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 15px;
    background-color: var(--card);
    color: var(--text);
    resize: vertical;
}

.reject-form textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.reject-btn {
    background-color: transparent;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 20px;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.reject-btn:hover {
    background-color: #e74c3c;
    color: white;
}

.reject-btn:active {
    transform: scale(0.96);
}

/* Schnell ein neues Event anlegen (Header) */
.quick-add-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.quick-add-btn:hover {
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.45);
    filter: brightness(1.05);
}

.quick-add-btn:active {
    transform: scale(0.92);
}

/* Quick-Add Panel (Neues Event über den Header) */
.quick-add-menu {
    position: relative;
}

.quick-add-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    padding: 16px;
    display: none;
    flex-direction: column;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 2000;
}

.quick-add-panel.open {
    display: flex;
}

.quick-add-panel form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-add-panel label {
    font-size: 13px;
    font-weight: bold;
    opacity: 0.7;
}

.quick-add-panel input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-size: 15px;
}

.quick-add-panel input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quick-add-panel .save-btn {
    margin-top: 4px;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .quick-add-panel {
        width: min(260px, calc(100vw - 30px));
    }
}

/* ============================================
   Profil bearbeiten – Modal
   ============================================ */

.profile-edit-btn {
    margin-top: 10px;
    padding: 9px 16px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background-color: var(--sidebar-btn);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.profile-edit-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.profile-edit-btn:active {
    transform: scale(0.97);
}


/* ============================================
   Modal Hintergrund
   ============================================ */

.profile-modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.profile-modal.open {
    display: flex;
}


/* Dunkler Hintergrund */

.profile-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    animation: profileBackdropIn 0.2s ease;
}


/* ============================================
   Modal Fenster
   ============================================ */

.profile-modal-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 450px;

    padding: 32px;

    background-color: var(--card);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 4px 15px rgba(0, 0, 0, 0.08);

    animation: profileModalIn 0.22s ease-out;
}


/* Überschrift */

.profile-modal-content h2 {
    margin: 0 35px 6px 0;

    color: var(--text);

    font-size: 1.5rem;
    line-height: 1.3;
}


/* Beschreibung */

.profile-modal-subtitle {
    margin: 0 0 25px;

    color: var(--text);

    font-size: 14px;
    opacity: 0.65;
}


/* ============================================
   Schließen-Button
   ============================================ */

.profile-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;
    color: var(--text);

    font-family: inherit;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.65;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
}

.profile-modal-close:hover {
    background-color: var(--sidebar-btn);
    color: var(--primary-color);
    opacity: 1;
}

.profile-modal-close:active {
    transform: scale(0.9);
}


/* ============================================
   Profil-Formular
   ============================================ */

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Labels */

.profile-form label {
    margin-top: 5px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;
}


/* ============================================
   Schöne Input-Felder
   ============================================ */

.profile-form input {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background-color: var(--bg);
    color: var(--text);

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        transform 0.15s ease;
}


/* Placeholder */

.profile-form input::placeholder {
    color: var(--text);
    opacity: 0.4;
}


/* Hover */

.profile-form input:hover {
    border-color: var(--primary-color);
}


/* Fokus */

.profile-form input:focus {
    border-color: var(--primary-color);

    background-color: var(--card);

    box-shadow:
        0 0 0 3px rgba(255, 107, 53, 0.12);

    transform: translateY(-1px);
}


/* ============================================
   Formular Buttons
   ============================================ */

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    margin-top: 20px;
}


/* Abbrechen */

.profile-cancel-btn {
    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background-color: transparent;
    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.profile-cancel-btn:hover {
    background-color: var(--sidebar-btn);
    border-color: var(--primary-color);
    color: var(--text);
}

.profile-cancel-btn:active {
    transform: scale(0.96);
}


/* Speichern */

.profile-form-actions .save-btn {
    padding: 10px 20px;
}


/* ============================================
   Animationen
   ============================================ */

@keyframes profileBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes profileModalIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ============================================
   Kein Scrollen hinter dem Modal
   ============================================ */

body.modal-open {
    overflow: hidden;
}


/* ============================================
   Mobile
   ============================================ */

@media (max-width: 500px) {
    .profile-modal {
        padding: 15px;
    }

    .profile-modal-content {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .profile-modal-content h2 {
        font-size: 1.35rem;
    }

    .profile-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .profile-form-actions .save-btn,
    .profile-cancel-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Ort-Auswahl
   ============================================ */

.feature input[type="radio"] {
    display: none;
}

/* Ausgewählte Ortskarte */

.feature:has(input[type="radio"]:checked) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

/* Überschrift der ausgewählten Karte */

.feature:has(input[type="radio"]:checked) h3 {
    color: white;
}

/* Text der ausgewählten Karte */

.feature:has(input[type="radio"]:checked) p {
    color: white;
}

/* Hover bei Ortskarten */

.feature:has(input[type="radio"]) {
    cursor: pointer;
}

.feature:has(input[type="radio"]):hover {
    transform: translateY(-5px);
}