:root {
    /* Palette (Orientierung: fsb.avakadavra — dunkel, clean) */
    --bg-page: #0f1c33;
    --bg: #0f1c33;
    --bg-2: #152a45;
    --teal: #45a4ad;
    --teal-dark: #3a8f97;
    --teal-deep: #2d737a;
    --orange: #f57a46;
    --orange-dark: #e86a36;
    --orange-deep: #c85a2e;
    --cream: #f0d8b0;
    --ink: #0f1c33;

    --panel: #162a44;
    --panel-soft: #1b3350;
    --panel-soft-2: #203a5c;
    --text: #f0d8b0;
    --muted: rgba(240, 216, 176, 0.55);
    --line: rgba(240, 216, 176, 0.14);
    --row-hover: rgba(240, 216, 176, 0.06);
    --input-bg: #1a2f4d;

    --primary: var(--teal);
    --primary-dark: var(--teal-dark);
    --primary-deep: var(--teal-deep);
    --accent: var(--orange);
    --link: #5ebdc6;
    --link-hover: #7ad0d8;
    --btn-on-accent: #0f1c33;

    --success-bg: rgba(69, 164, 173, 0.16);
    --success-text: #bfe8ec;
    --error-bg: rgba(239, 68, 68, 0.12);
    --error-text: #fecaca;
    --warning-bg: rgba(245, 122, 70, 0.14);
    --warning-text: #fcd4b8;

    --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

::selection {
    background: rgba(245, 122, 70, 0.35);
    color: var(--cream);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-page);
    color: var(--text);
    line-height: 1.45;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

/* Meine Events: etwas breitere Liste */
main.container.page-shell.my-events-shell {
    width: min(1320px, calc(100% - 24px));
}

.page-shell {
    padding: 22px 0 34px;
    /* Home-Indikator (iPhone ohne Taste) im Vollbild */
    padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
}

/* Header / Navigation */
.site-header {
    /* Halbe Safe-Area + wenig fester Zuschlag; Variable für mobiles Nav-Overlay */
    --site-header-pad-top: calc(env(safe-area-inset-top, 0px) * 0.5 + 4px);
    background: linear-gradient(135deg, var(--bg), var(--bg-2));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid rgba(240, 216, 176, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding-top: var(--site-header-pad-top);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* PWA Vollbild: wie zuvor ~5px mehr als im Browser */
@media (display-mode: standalone) {
    .site-header {
        --site-header-pad-top: calc(env(safe-area-inset-top, 0px) * 0.5 + 9px);
    }
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 1.1rem;
}

.brand-mark-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.brand-text small {
    color: rgba(255,255,255,0.78);
    font-size: 0.76rem;
    margin-top: 4px;
}

.nav-toggle {
    margin-left: auto;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 4px;
    background: #fff;
    margin: 5px 0;
}

/* Schnellaktionen nur im mobilen Vollbild-Menü, nicht neben der Desktop-Navigation */
.nav-utility-actions {
    display: none;
}

.nav-utility-btn.is-disabled {
    opacity: 0.55;
}

.nav-utility-actions .nav-utility-btn[data-app-back],
.nav-utility-actions .nav-utility-btn[data-app-reload] {
    display: none;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1 1 auto;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-group-right {
    margin-left: auto;
}

/* Haupt-Navigation: Pill-Buttons (nicht Dropdown-Menülinks, nicht .button) */
.nav-group > a:not(.button),
.nav-group-right > a:not(.button),
.nav-dropdown summary {
    color: #fff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 10px 18px;
    min-height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 4px 14px rgba(0, 0, 0, 0.18);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease;
}

.nav-group > a:not(.button):hover,
.nav-group-right > a:not(.button):hover,
.nav-dropdown summary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 6px 18px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.nav-group > a:not(.button).active,
.nav-group-right > a:not(.button).active,
.nav-dropdown summary.active {
    background: rgba(69, 164, 173, 0.28);
    border-color: rgba(94, 189, 198, 0.55);
    box-shadow:
        0 0 0 1px rgba(94, 189, 198, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.nav-group > a:not(.button):focus-visible,
.nav-group-right > a:not(.button):focus-visible,
.nav-dropdown summary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    user-select: none;
    gap: 0.45rem;
    padding-right: 14px;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::marker {
    content: '';
}

/* Chevron statt Text-Pfeile */
.nav-dropdown summary::after {
    content: "";
    display: block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.15em;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.95;
}

.nav-dropdown[open] summary::after {
    transform: rotate(-135deg) translateY(1px);
}

.nav-dropdown[open] > summary {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.34);
}

.nav-dropdown[open] > summary.active {
    background: rgba(69, 164, 173, 0.32);
    border-color: rgba(94, 189, 198, 0.6);
}

/* Registrieren im Header: gleiche Höhe wie Nav-Pills */
.site-header .nav-group-right .button.button-primary.button-sm {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow:
        0 2px 12px rgba(245, 122, 70, 0.38),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.nav-dropdown-left .nav-dropdown-menu {
    left: 0;
    right: auto;
}

.nav-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
    padding: 4px;
    z-index: 10001;
}

.nav-dropdown-menu a {
    display: block;
    color: var(--text) !important;
    padding: 7px 10px;
    border-radius: 8px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--panel-soft);
    text-decoration: none;
}

.nav-dropdown-menu .nav-dropdown-group-label {
    display: block;
    padding: 7px 10px 3px;
    margin-top: 5px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.nav-dropdown-menu a.nav-dropdown-sublink {
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

/* Community: breites Menü, Einträge einzeilig */
.nav-dropdown-menu--community {
    min-width: min(22rem, calc(100vw - 28px));
}

.nav-dropdown-menu--community > a:not(.nav-dropdown-sublink) {
    white-space: nowrap;
}

.nav-dropdown-menu--community a.nav-dropdown-sublink {
    white-space: nowrap;
}

.nav-dropdown-menu--zoll {
    min-width: min(20rem, calc(100vw - 28px));
}

.nav-dropdown-menu--zoll > a:not(.nav-dropdown-sublink) {
    white-space: nowrap;
}

.nav-dropdown-menu--zoll a.nav-dropdown-sublink {
    white-space: nowrap;
}

/* Generic layout */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 17px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.18rem;
    line-height: 1.28;
}

.card > h1:first-child,
.card > h2:first-child,
.card > h3:first-child {
    margin-top: 0;
}

.card > h1:first-child + p,
.card > h2:first-child + p,
.card > h3:first-child + p {
    margin-top: 0.12rem;
}

.card .section-head:first-child h2 {
    margin-top: 0;
}

.card .row {
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row {
    margin-bottom: 14px;
}

/* Telefon + «Community verbergen»-Checkbox direkt darunter (Profil, Onboarding, Admin) */
.phone-privacy-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.phone-privacy-wrap > input[type="text"],
.phone-privacy-wrap > input[type="tel"] {
    width: 100%;
    min-width: 0;
}

.phone-privacy-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: normal;
    cursor: pointer;
    color: var(--text);
}

.phone-privacy-check input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin: 0.12rem 0 0;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    background: var(--input-bg);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(69, 164, 173, 0.65);
    box-shadow: 0 0 0 3px rgba(69, 164, 173, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.muted {
    color: var(--muted);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.section-head h2 {
    margin: 0 0 0.1rem;
    line-height: 1.25;
}

.section-head > div > p {
    margin: 0;
    line-height: 1.42;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input {
    flex: 1 1 320px;
}

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

h1, h2, h3 {
    letter-spacing: -0.01em;
}

/* Buttons */
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

button:not(.flight-tracker-list-item):hover,
.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary,
button:not(.flight-tracker-list-item):not(.map-scope-btn):not(.map-airport-mode-btn):not(.map-label-chip):not(.place-label-btn):not(.pp-participation-toggle):not(.airport-popup-toggle),
.button:not(.button-light):not(.button-danger):not(.button-ghost):not(.button-pdf):not(.flight-tracker-list-item):not(.map-scope-btn):not(.map-airport-mode-btn):not(.map-label-chip):not(.place-label-btn):not(.pp-participation-toggle):not(.airport-popup-toggle) {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 45%, var(--orange-deep) 100%);
    color: var(--btn-on-accent);
    font-weight: 700;
    box-shadow: 0 3px 14px rgba(245, 122, 70, 0.35), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.button-primary:hover,
button:not(.flight-tracker-list-item):not(.map-scope-btn):not(.map-airport-mode-btn):not(.map-label-chip):not(.place-label-btn):not(.pp-participation-toggle):not(.airport-popup-toggle):hover,
.button:not(.button-light):not(.button-danger):not(.button-ghost):not(.button-pdf):not(.flight-tracker-list-item):not(.map-scope-btn):not(.map-airport-mode-btn):not(.map-label-chip):not(.place-label-btn):not(.pp-participation-toggle):not(.airport-popup-toggle):hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    box-shadow: 0 5px 20px rgba(245, 122, 70, 0.45), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.button-light {
    background: var(--panel-soft-2);
    color: var(--text);
    border: 1px solid var(--line);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button-light:hover {
    background: var(--panel-soft);
    color: var(--text);
    border-color: rgba(240, 216, 176, 0.28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.button-danger {
    background: linear-gradient(145deg, #f87171, #dc2626);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.35);
}

.button-danger:hover {
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 5px 16px rgba(185, 28, 28, 0.42);
}

.button-ghost {
    background: transparent;
    color: var(--teal);
    border: 2px solid rgba(69, 164, 173, 0.5);
    font-weight: 700;
}

.button-ghost:hover {
    background: rgba(69, 164, 173, 0.12);
    border-color: var(--teal);
    color: var(--cream);
}

.button-sm {
    padding: 8px 12px;
    font-size: 0.92rem;
}

.action-links,
.compact-actions,
.table-actions,
.user-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions > * {
    margin: 0;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action-link:hover {
    text-decoration: none;
    background: var(--panel-soft);
    border-color: rgba(240, 216, 176, 0.22);
}

button.action-link {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transform: none;
}

button.action-link:hover {
    transform: none;
}

.action-link-favorite {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fb923c;
}

.action-link-favorite:hover {
    background: #fed7aa;
    border-color: #ea580c;
    color: #7c2d12;
}

.action-link-edit {
    background: rgba(69, 164, 173, 0.18);
    color: #a8e4ea;
    border-color: rgba(69, 164, 173, 0.45);
}

.action-link-edit:hover {
    background: rgba(69, 164, 173, 0.28);
    border-color: var(--teal);
    color: var(--cream);
}

.action-link-copy {
    background: #e9d5ff;
    color: #6b21a8;
    border-color: #c084fc;
}

.action-link-copy:hover {
    background: #d8b4fe;
    border-color: #9333ea;
    color: #581c87;
}

.action-link-delete {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}

.action-link-delete:hover {
    background: #fecaca;
    border-color: #ef4444;
    color: #7f1d1d;
}

.action-link-einreichen {
    background: linear-gradient(145deg, #facc15, #eab308);
    color: #422006;
    border-color: #ca8a04;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.35);
}

.action-link-einreichen:hover {
    background: linear-gradient(145deg, #fde047, #facc15);
    color: #1c1917;
    border-color: #a16207;
    box-shadow: 0 3px 12px rgba(202, 138, 4, 0.45);
}

.table-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.table-toolbar input[type="search"],
.table-toolbar input[type="text"] {
    flex: 1 1 280px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
    vertical-align: top;
}

.my-posts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.my-posts-table thead th {
    background: #1a2f4b;
    color: #dbeafe;
    font-weight: 700;
    border-bottom: 1px solid #2b4666;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
.my-posts-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(120, 160, 210, 0.2);
}
.my-posts-table tbody tr:nth-child(odd) {
    background: rgba(32, 58, 92, 0.55);
}
.my-posts-table tbody tr:nth-child(even) {
    background: rgba(23, 45, 74, 0.65);
}
.my-posts-table tbody tr:hover {
    background: rgba(52, 86, 128, 0.55);
}
.my-posts-table td:nth-child(2),
.my-posts-table td:nth-child(3) {
    white-space: nowrap;
    width: 1%;
}
.my-posts-table td:last-child {
    min-width: 220px;
}

th.sortable-col {
    cursor: pointer;
    user-select: none;
}

th.sortable-col::after {
    content: "  ↕";
    color: var(--muted);
    font-weight: 400;
}

th.sortable-col.sort-asc::after {
    content: "  ↑";
    color: var(--primary-dark);
}

th.sortable-col.sort-desc::after {
    content: "  ↓";
    color: var(--primary-dark);
}

.danger-link {
    color: #b91c1c;
    font-weight: 600;
}

.danger-link:hover {
    color: #991b1b;
}

/* Flash */
.flash {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.flash-error {
    background: var(--error-bg);
    color: var(--error-text);
}

.flash-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.flash-warning a {
    color: var(--warning-text);
    font-weight: 700;
    text-decoration: underline;
}

.zoll-profile-hint a:hover {
    color: var(--orange);
}

/* Table-like compact lists */
.compact-list {
    width: 100%;
}

.compact-list-head,
.compact-list-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.compact-list-head {
    font-weight: 700;
    background: var(--panel-soft);
    border-radius: 12px 12px 0 0;
}

.compact-list-row:hover {
    background: var(--row-hover);
}

.simple-list {
    width: 100%;
}

.simple-list-head,
.simple-list-row {
    display: grid;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.simple-list-head {
    font-weight: 700;
    background: var(--panel-soft);
    border-radius: 12px 12px 0 0;
}

.simple-list-row:hover {
    background: var(--row-hover);
}

/* Persons */
.persons-list-head,
.persons-list-row {
    grid-template-columns: 1.8fr 1fr 0.8fr 1.2fr 1.4fr 1.3fr;
}

/* Aircraft */
.airport-picker {
    position: relative;
}

.airport-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    z-index: 30;
    max-height: 320px;
    overflow: auto;
    display: none;
}

.airport-dropdown.open {
    display: block;
}

.airport-group-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    padding: 10px 12px 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.airport-option {
    padding: 10px 12px;
    cursor: pointer;
    border-top: 1px solid var(--line);
}

.airport-option:hover {
    background: var(--row-hover);
}

.airport-option strong {
    display: inline-block;
    min-width: 58px;
}

.airport-option small {
    color: var(--muted);
}

.airport-more {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--link);
    font-weight: 600;
    border-top: 1px solid var(--line);
}

.airport-empty {
    padding: 10px 12px;
    color: var(--muted);
}

/* Kalender: Ort-Vorschläge aus Stamm (Autocomplete) */
.location-airport-suggest {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    font-size: 0.9rem;
}
.location-airport-suggest .location-airport-suggest-title {
    font-weight: 600;
    margin-bottom: 8px;
}
.location-airport-suggest .location-airport-suggest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.location-airport-suggest button.button-sm {
    font-size: 0.82rem;
    padding: 6px 10px;
}

/* Meine Events: kompakte Terminliste */
.my-events-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 8px;
}
.my-events-list-head h2 {
    margin: 0;
}
.my-events-toolbar {
    flex: 1 1 200px;
    max-width: 420px;
    margin: 0;
}
.my-events-toolbar input[type="search"] {
    width: 100%;
    padding: 7px 10px;
    font-size: 0.9rem;
}
.my-events-list-meta {
    margin: 0 0 8px;
    font-size: 0.82rem;
}
.my-events-empty {
    margin-top: 8px;
}
.list-grid-my-events .list-head,
.list-grid-my-events .list-row {
    display: grid;
    gap: 6px 10px;
    align-items: center;
    padding: 6px 8px;
    font-size: 0.8125rem;
}
.list-grid-my-events .list-head {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    text-transform: none;
    letter-spacing: normal;
}
.list-grid-my-events .list-row {
    border-bottom: 1px solid var(--line);
}
.list-grid-my-events .list-row:last-child {
    border-bottom: none;
}
/* Nutzer: Datum | Titel | Ort | ICAO | Status | Aktionen */
.list-grid-my-events:not(.list-grid-my-events--admin) .list-head,
.list-grid-my-events:not(.list-grid-my-events--admin) .list-row {
    grid-template-columns:
        minmax(86px, 0.75fr) minmax(100px, 1.5fr) minmax(72px, 1fr) minmax(44px, 0.45fr) minmax(52px, 0.45fr) minmax(100px, 0.95fr);
}
/* Admin: + Erfasst von */
.list-grid-my-events--admin .list-head,
.list-grid-my-events--admin .list-row {
    grid-template-columns:
        minmax(86px, 0.72fr) minmax(96px, 1.35fr) minmax(68px, 0.95fr) minmax(42px, 0.42fr) minmax(80px, 0.85fr) minmax(48px, 0.42fr) minmax(96px, 0.88fr);
}
.my-events-cell-title {
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-events-cell-loc,
.my-events-cell-creator {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my-events-cell-icao {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.my-events-cell-actions.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: flex-end;
}
@media (max-width: 900px) {
    .list-grid-my-events .list-head {
        display: none;
    }
    .list-grid-my-events .list-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        margin-bottom: 8px;
    }
    .list-grid-my-events .list-row:last-child {
        margin-bottom: 0;
    }
    .my-events-cell-date::before {
        content: "Datum: ";
        font-weight: 600;
        color: var(--muted);
        font-size: 0.75rem;
    }
    .my-events-cell-title::before {
        content: "Titel: ";
        font-weight: 600;
        color: var(--muted);
        font-size: 0.75rem;
    }
    .my-events-cell-loc::before {
        content: "Ort: ";
        font-weight: 600;
        color: var(--muted);
        font-size: 0.75rem;
    }
    .my-events-cell-icao::before {
        content: "ICAO: ";
        font-weight: 600;
        color: var(--muted);
        font-size: 0.75rem;
    }
    .my-events-cell-creator::before {
        content: "Erfasst von: ";
        font-weight: 600;
        color: var(--muted);
        font-size: 0.75rem;
    }
    .my-events-cell-status::before {
        content: "Status: ";
        font-weight: 600;
        color: var(--muted);
        font-size: 0.75rem;
    }
    .my-events-cell-actions.row-actions {
        justify-content: flex-start;
        padding-top: 6px;
        border-top: 1px solid var(--line);
        margin-top: 4px;
    }
    .my-events-cell-title {
        white-space: normal;
    }
}

.aircraft-compact-head,
.aircraft-compact-row {
    grid-template-columns: 0.55fr 1.15fr 1.6fr 0.9fr 2fr;
}

.compact-cell-fav {
    font-size: 1.05rem;
}

/* Dashboard: Community — Highlights, klappbarer Filter, Karte */
main.page-shell:has(.dashboard-map-card) {
    padding-top: 12px;
}

.dashboard-map-card {
    padding-top: 14px;
}

.dashboard-community-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
}

.dashboard-community-lead {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: none;
    hyphens: none;
    overflow-wrap: normal;
}

.dashboard-community-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .dashboard-community-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-community-highlights {
        grid-template-columns: 1fr;
    }
}

.dashboard-calendar-under-map {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.card.dashboard-events-card .dashboard-calendar-under-map--solo-card {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.dashboard-calendar-under-map-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-calendar-under-map-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.dashboard-calendar-under-map-headcopy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dashboard-calendar-under-map-subtitle {
    margin: 0;
    font-size: 0.86rem;
}

.dashboard-calendar-under-map-cta {
    flex-shrink: 0;
}

.dashboard-calendar-under-map-empty {
    margin: 0;
    font-size: 0.9rem;
}

.dashboard-calendar-under-map-list {
    margin: 0;
}

.platz-section-title {
    margin: 18px 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
}

.platz-homebase-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.platz-homebase-list li {
    margin: 6px 0;
    font-weight: 600;
}

.platz-roadmap {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: var(--panel-soft-2);
}

.platz-roadmap-lead {
    margin-bottom: 0;
}

.platz-roadmap-badge {
    font-weight: 600;
}

.platz-mini-map {
    height: 220px;
    width: 100%;
    margin: 14px 0 18px;
    border-radius: 14px;
    /* sichtbar: Leaflet-Popup über den Rand (Community-Popup) */
    overflow: visible;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
    position: relative;
    z-index: 2;
    /* Pinch/double-tap: Karte zoomen, nicht die ganze Seite (iOS/Android) */
    touch-action: none;
}

.platz-mini-map .leaflet-container {
    font: inherit;
    touch-action: none;
    height: 100%;
    width: 100%;
}

.platz-mini-map-fallback {
    margin: 12px 0 18px;
}

.platz-mini-map-marker-wrap {
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platz-subsection-title {
    margin: 14px 0 6px;
    font-size: 0.98rem;
    font-weight: 800;
}

.platz-member-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 10px 0 18px;
}

@media (min-width: 640px) {
    .platz-member-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.platz-member-group-tile {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
    padding: 12px 14px;
    box-sizing: border-box;
}

.platz-member-group-head {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.25;
}

.platz-member-group-empty {
    margin: 0;
    font-size: 0.88rem;
}

.platz-member-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platz-member-group-item {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.platz-member-group-name {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.platz-member-group-name:hover {
    text-decoration: underline;
}

.platz-member-group-ch {
    font-size: 0.85rem;
    margin-left: 4px;
}

.platz-files-manage-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.platz-files-manage-foot .button {
    min-width: min(100%, 280px);
}

/* Meine Platz-Dateien: Akkordeon pro ICAO, kompakte Zeilen */
.platz-my-files-place {
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft-2);
    overflow: hidden;
}

.platz-my-files-place-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 10px;
    user-select: none;
    font-weight: 700;
}

.platz-my-files-place-summary::-webkit-details-marker {
    display: none;
}

.platz-my-files-place-summary::marker {
    content: '';
}

.platz-my-files-place-icao {
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.platz-my-files-place-count {
    font-size: 0.82rem;
    font-weight: 600;
}

.my-uploads-flight-title {
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.06em;
}

.my-uploads-flight-route {
    font-size: 0.78rem;
}

.my-uploads-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.my-uploads-col {
    min-width: 0;
}

@media (min-width: 1100px) {
    .my-uploads-columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.platz-my-files-place-spacer {
    flex: 1 1 auto;
    min-width: 4px;
}

.platz-my-files-place-page {
    flex-shrink: 0;
}

.platz-my-files-place[open] > .platz-my-files-place-summary {
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.platz-my-files-list {
    padding: 4px 6px 6px;
}

.platz-my-file-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 3px;
    padding: 5px 6px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    align-items: start;
}

.platz-my-file-row:last-child {
    margin-bottom: 0;
}

.platz-my-file-preview {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 76px;
    min-height: 56px;
    align-self: start;
}

.platz-my-file-preview-empty {
    width: 100%;
    height: 56px;
    border-radius: 6px;
    border: 1px dashed var(--line);
    background: var(--panel-soft-2);
    box-sizing: border-box;
}

.platz-my-file-thumb {
    display: block;
    width: 76px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.platz-my-file-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platz-my-file-pdf-preview {
    position: relative;
    width: 76px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
}

.platz-my-file-body {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.platz-my-file-head {
    min-width: 0;
}

.platz-my-file-dtitle {
    min-width: 0;
    line-height: 1.25;
}

.platz-my-file-dtitle .platz-files-row-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.platz-my-file-dmeta {
    margin-top: 1px;
    font-size: 0.72rem;
    line-height: 1.3;
    word-break: break-word;
}

.platz-my-file-url-inline {
    display: inline;
    word-break: break-all;
}

.platz-my-file-actionsline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.platz-my-file-actionsline .button {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.platz-my-file-edit-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
}

.platz-my-file-title-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    max-width: 100%;
    padding: 4px 7px;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
    color: var(--text);
    box-sizing: border-box;
}

.platz-my-file-del-form {
    flex-shrink: 0;
}

.platz-my-file-open {
    flex-shrink: 0;
}

@media (max-width: 380px) {
    .platz-my-file-actionsline {
        flex-wrap: wrap;
    }
}

/* Community-Touren / Flüge */
.flight-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flight-list-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.flight-list-item:last-child {
    border-bottom: 0;
}

.flight-list-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: inherit;
    text-decoration: none;
}

.flight-list-title:hover {
    text-decoration: underline;
}

.flight-list-route {
    font-size: 0.88rem;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.platz-flights-foot {
    margin: 14px 0 0;
}

/* Touren-Kacheln: Platz-Seite & flights.php — gleiches Raster */
.flight-tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 8px 0 0;
}

.flight-tiles-grid--page {
    margin-top: 14px;
}

@media (min-width: 640px) {
    .flight-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .flight-tiles-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

a.flight-route-tile,
a.flight-route-tile:visited {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a.flight-route-tile:hover,
a.flight-route-tile:focus-visible {
    color: var(--text);
    text-decoration: none;
    background: var(--panel-soft);
    border-color: rgba(240, 216, 176, 0.22);
}

a.flight-route-tile:focus-visible {
    outline: 2px solid rgba(240, 216, 176, 0.35);
    outline-offset: 2px;
}

.flight-route-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
    box-sizing: border-box;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.flight-route-tile-title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
    color: var(--text);
}

.flight-route-tile-route {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    line-height: 1.35;
    word-break: break-word;
}

@media (min-width: 1200px) {
    .flight-route-tile-route {
        font-size: 0.72rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.flight-route-tile-meta {
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.35;
    word-break: break-word;
}

@media (min-width: 1200px) {
    .flight-route-tile-meta {
        font-size: 0.7rem;
    }
}

.flight-list-meta {
    font-size: 0.8rem;
    margin-top: 4px;
}

.flight-detail-card .section-head.flight-detail-head {
    align-items: flex-start;
}

.flight-detail-id {
    margin: 0 0 4px;
    font-size: 0.82rem;
}

.flight-detail-route {
    margin: 8px 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.flight-route-arrow {
    margin: 0 0.35em;
    color: var(--muted);
    font-weight: 600;
}

.flight-detail-author {
    margin: 0;
    font-size: 0.86rem;
}

.flight-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.flight-desc-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.flight-desc-body {
    font-size: 0.95rem;
    line-height: 1.55;
}

.flight-desc-body .flight-desc-p {
    margin: 0 0 10px;
}

.flight-desc-body .flight-desc-ul {
    margin: 0 0 10px 1.1rem;
    padding: 0;
}

.flight-desc-body .flight-desc-ul li {
    margin-bottom: 4px;
}

.flight-desc-body a {
    color: var(--link);
    word-break: break-word;
}

.flight-files-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.flight-media-upload-details {
    margin-top: 14px;
}

.flight-media-own-actions {
    margin-top: 8px;
    width: 100%;
}

.platz-files-row--link .flight-media-own-actions,
.platz-files-row--file .flight-media-own-actions {
    grid-column: 1 / -1;
}

a.flight-gallery-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    cursor: zoom-in;
}

.flight-form-card .flight-form-label {
    display: block;
    margin: 14px 0 4px;
    font-weight: 700;
    font-size: 0.88rem;
}

.flight-form-card .flight-form-label:first-of-type {
    margin-top: 0;
}

.flight-form-hint {
    margin: 2px 0 6px;
    font-size: 0.82rem;
}

.flight-form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font: inherit;
}

.flight-form-textarea-sm {
    min-height: 5rem;
}

.flight-form-grid-icao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .flight-form-grid-icao {
        grid-template-columns: 1fr;
    }
}

.flight-airport-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.flight-icao-combo {
    position: relative;
    width: 100%;
}

.flight-icao-combo-input {
    width: 100%;
}

.flight-icao-combo-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.flight-icao-combo-empty {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.flight-icao-combo-item {
    margin: 0;
    padding: 0;
}

.flight-icao-combo-hit {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.flight-icao-combo-hit:hover,
.flight-icao-combo-hit.is-active {
    background: var(--row-hover);
}

.flight-icao-combo-code {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.flight-icao-combo-name {
    flex: 1 1 140px;
    font-size: 0.88rem;
    color: var(--muted);
}

.flight-icao-combo-tier {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    margin-left: auto;
}

.flight-waypoints-fieldset {
    margin: 16px 0 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft-2);
}

.flight-waypoints-legend {
    margin: 0;
    padding: 0 6px;
}

.flight-icao-input {
    text-transform: uppercase;
}

.flight-desc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 8px;
}

.flight-form-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.section-head .section-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.platz-section-kicker {
    font-weight: 600;
}

.platz-event-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platz-event-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
}

.platz-event-item--with-image {
    align-items: stretch;
}

.platz-event-thumb {
    flex-shrink: 0;
    display: block;
    width: 132px;
    max-width: 36vw;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.platz-event-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.platz-event-body {
    min-width: 0;
    flex: 1;
}

.platz-event-title {
    margin: 4px 0 6px;
    font-size: 1.02rem;
    font-weight: 800;
}

.platz-event-title a {
    color: inherit;
    text-decoration: none;
}

.platz-event-title a:hover {
    text-decoration: underline;
}

.platz-event-dates {
    font-size: 0.86rem;
}

.platz-event-desc {
    margin: 0 0 8px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.platz-event-ext {
    margin: 0 0 6px;
    font-size: 0.82rem;
}

.platz-event-ext a {
    color: var(--link);
}

.platz-files-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.platz-files-lead {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.platz-files-upload-details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft-2);
    margin-bottom: 16px;
    overflow: hidden;
}

.platz-files-upload-summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 36px 10px 12px;
    position: relative;
    user-select: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.platz-files-upload-summary::-webkit-details-marker {
    display: none;
}

.platz-files-upload-summary::marker {
    content: '';
}

.platz-files-upload-summary::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.platz-files-upload-details[open] > .platz-files-upload-summary::after {
    transform: rotate(-135deg);
    margin-top: -1px;
}

.platz-files-upload-details[open] > .platz-files-upload-summary {
    border-bottom: 1px solid var(--line);
}

.platz-files-upload-summary-hint {
    font-weight: 600;
    font-size: 0.78rem;
}

.platz-files-upload-details-body {
    padding: 12px 12px 4px;
}

.platz-files-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.platz-files-upload-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platz-files-upload-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 800;
}

.platz-files-label {
    font-size: 0.78rem;
}

.platz-files-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.platz-files-upload-card input[type="file"],
.platz-files-upload-card input[type="text"],
.platz-files-upload-card input[type="url"] {
    width: 100%;
    box-sizing: border-box;
}

/* Galerie: bündig mit Kartenrand, kompaktes Raster (3×2 Mobil, 6×2 Desktop) */
/* YouTube (Platz / Flug), Einbettung ohne Zusatz-Chrome */
.media-youtube-section {
    margin: 0 0 20px;
}
.media-youtube-section .platz-subsection-title {
    margin-bottom: 10px;
}
.media-youtube-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.media-youtube-block {
    margin: 0;
}
.media-youtube-meta {
    margin: 0 0 8px;
    font-size: 0.92rem;
}
.media-youtube-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.media-youtube-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.platz-my-file-youtube-preview {
    max-width: 100%;
}
.platz-my-file-youtube-preview .media-youtube-wrap {
    max-width: min(100%, 360px);
}
.platz-my-file-youtube-preview .media-youtube-meta {
    font-size: 0.85rem;
}
@media (min-width: 1100px) {
    .media-youtube-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

.platz-files-gallery-strip {
    margin-left: -17px;
    margin-right: -17px;
    width: calc(100% + 34px);
    max-width: none;
    box-sizing: border-box;
    padding: 0 17px;
}

@media (max-width: 700px) {
    .platz-files-gallery-strip {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        padding-left: 16px;
        padding-right: 16px;
    }
}

.platz-files-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 4px;
    margin: 0 0 12px;
    list-style: none;
    padding: 0;
}

@media (min-width: 701px) {
    .platz-files-gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px 5px;
    }
}

@media (max-width: 700px) {
    .platz-files-gallery-item:nth-child(n + 7) {
        display: none;
    }
}

.platz-files-gallery-item {
    margin: 0;
    min-width: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
}

.platz-gallery-trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    line-height: 0;
}

.platz-gallery-trigger:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.platz-files-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.platz-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
}

.platz-lightbox.is-open {
    display: flex;
}

.platz-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, 0.88);
    cursor: pointer;
}

.platz-lightbox-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    max-width: min(96vw, 1200px);
    padding: 44px 4px 16px;
    box-sizing: border-box;
}

.platz-lightbox-main {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.platz-lightbox-img {
    max-width: calc(100vw - 120px);
    max-height: min(78vh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.platz-lightbox-caption {
    margin: 10px 0 4px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text);
}

.platz-lightbox-count {
    margin: 0;
    font-size: 0.78rem;
}

.platz-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.platz-lightbox-nav {
    flex-shrink: 0;
    width: 40px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.platz-lightbox-nav:hover,
.platz-lightbox-close:hover {
    border-color: rgba(240, 216, 176, 0.35);
}

@media (max-width: 520px) {
    .platz-lightbox-nav {
        width: 34px;
        height: 56px;
        font-size: 1.35rem;
    }

    .platz-lightbox-img {
        max-width: calc(100vw - 88px);
    }
}

.platz-files-gallery-meta {
    padding: 3px 4px 4px;
    font-size: 0.68rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.platz-files-gallery-cap {
    display: block;
    padding: 6px 8px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.platz-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platz-files-list--stack {
    margin-top: 8px;
}

.platz-files-row {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-soft-2);
    font-size: 0.9rem;
}

.platz-files-row--file .platz-files-row-body,
.platz-files-row--link .platz-files-row-body {
    min-width: 0;
}

.platz-files-row--link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

@media (min-width: 520px) {
    .platz-files-row--link {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .platz-files-row--link .platz-files-row-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .platz-files-row--link .platz-files-row-actions {
        flex-shrink: 0;
    }
}

.platz-files-row-body {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    min-width: 0;
}

.platz-files-row-copy {
    min-width: 0;
}

.platz-files-row--pdf .platz-files-row-body {
    grid-template-areas:
        "copy"
        "prev";
}

.platz-files-row--pdf .platz-files-row-copy {
    grid-area: copy;
}

@media (min-width: 520px) {
    .platz-files-row--pdf .platz-files-row-body {
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-areas: "prev copy";
        align-items: start;
        column-gap: 12px;
    }
}

.platz-files-row-meta {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: break-word;
}

.platz-files-meta-sep {
    margin: 0 0.28em;
}

.platz-files-row-kind {
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.platz-files-row-user {
    font-size: 0.82rem;
}

.platz-files-row-title {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
}

a.platz-files-row-title {
    color: inherit;
    text-decoration: none;
}

a.platz-files-row-title:hover {
    text-decoration: underline;
}

.platz-files-row-link {
    word-break: break-word;
    font-size: 0.86rem;
}

a.platz-files-row-link--block {
    display: inline-block;
    max-width: 100%;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--link);
    text-decoration: none;
}

a.platz-files-row-link--block:hover {
    text-decoration: underline;
}

.platz-files-pdf-preview {
    grid-area: prev;
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 104px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 520px) {
    .platz-files-row--pdf .platz-files-pdf-preview {
        max-width: none;
        width: 100%;
    }
}

.platz-files-pdf-preview-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.platz-files-pdf-preview-open {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.platz-files-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.platz-files-inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.platz-files-title-input {
    min-width: 140px;
    max-width: 100%;
    flex: 1 1 160px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

.dashboard-highlight-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-highlight-card:hover {
    border-color: rgba(240, 216, 176, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.dashboard-highlight-kicker {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.dashboard-community-highlights .dashboard-highlight-title {
    display: none;
}

.dashboard-highlight-title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dashboard-highlight-card p {
    margin: 0 0 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    flex: 1 1 auto;
}

.dashboard-highlight-cta {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--orange);
}

.dashboard-highlight-card:hover .dashboard-highlight-cta {
    text-decoration: underline;
}

.dashboard-highlight-teaser {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.78rem;
}

.dashboard-highlight-teaser li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(69, 164, 173, 0.12);
    border: 1px solid rgba(69, 164, 173, 0.3);
}

.dashboard-highlight-icao {
    font-weight: 800;
    letter-spacing: 0.03em;
}

.dashboard-highlight-n {
    font-weight: 700;
    color: var(--muted);
    font-size: 0.72rem;
}

.dashboard-highlight-card--map {
    border-color: rgba(69, 164, 173, 0.35);
    background: linear-gradient(145deg, rgba(69, 164, 173, 0.14) 0%, var(--panel) 55%);
}

.dashboard-highlight-card--map .dashboard-highlight-kicker {
    color: var(--teal);
}

.dashboard-highlight-card--terms {
    border-color: rgba(245, 122, 70, 0.32);
    background: linear-gradient(145deg, rgba(245, 122, 70, 0.12) 0%, var(--panel) 55%);
}

.dashboard-highlight-card--terms .dashboard-highlight-kicker {
    color: #ff9a6e;
}

.dashboard-highlight-card--planned {
    border-color: rgba(69, 164, 173, 0.35);
    background: linear-gradient(145deg, rgba(69, 164, 173, 0.1) 0%, var(--panel) 50%);
}

.dashboard-highlight-card--planned .dashboard-highlight-kicker {
    color: var(--teal);
}

.dashboard-highlight-card--recent {
    border-color: rgba(127, 210, 218, 0.42);
    background: linear-gradient(145deg, rgba(69, 164, 173, 0.18) 0%, var(--panel) 56%);
}

.dashboard-highlight-card--recent .dashboard-highlight-kicker {
    color: #a9f0f5;
}

.dashboard-highlight-card--recent {
    min-height: 0;
}

.dashboard-highlight-mixedlist {
    margin: 8px 0 10px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.dashboard-highlight-mixedlist li {
    font-size: 0.9rem;
    line-height: 1.35;
}

.dashboard-highlight-mixedlist a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 400;
}

.dashboard-highlight-mixedlist a:hover {
    color: #7fd2da;
    text-decoration: underline;
}

.dashboard-highlight-item-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(69, 164, 173, 0.28);
    border: 1px solid rgba(127, 210, 218, 0.45);
    color: #bff4ff;
}

.dashboard-highlight-card--recent .dashboard-highlight-cta {
    display: inline-flex;
    margin-top: 4px;
}

.dashboard-highlight-cta--split {
    gap: 6px;
}

.dashboard-highlight-cta--split a {
    color: inherit;
    text-decoration: none;
}

.dashboard-highlight-cta--split a:hover {
    text-decoration: underline;
}

.dashboard-highlight-card--zoll {
    border-color: rgba(245, 122, 70, 0.4);
    background: linear-gradient(145deg, rgba(245, 122, 70, 0.16) 0%, var(--panel) 55%);
}

.dashboard-highlight-card--zoll .dashboard-highlight-kicker {
    color: #ff9a6e;
}

.community-page-hero {
    padding-top: 14px;
}

.community-page-hero .dashboard-community-highlights {
    margin-bottom: 0;
}

/* Dashboard: Community-Aktivität (Top-Nutzer) */
.dashboard-activity-board {
    margin-bottom: 18px;
    padding: 14px 16px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(69, 164, 173, 0.08) 0%, var(--panel-soft) 42%, var(--panel) 100%);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.dashboard-activity-card .dashboard-activity-board {
    margin-bottom: 0;
}

.dashboard-activity-board-head {
    margin-bottom: 12px;
}

.dashboard-activity-board-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-activity-board-lead {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: none;
    hyphens: none;
    overflow-wrap: normal;
}

.dashboard-activity-board-lead a {
    font-weight: 600;
}

.dashboard-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .dashboard-activity-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-activity-tile {
    border-radius: 12px;
    padding: 12px 14px 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-activity-tile--visited {
    border-color: rgba(69, 164, 173, 0.35);
}

.dashboard-activity-tile--interests {
    border-color: rgba(245, 122, 70, 0.32);
}

.dashboard-activity-tile--planned {
    border-color: rgba(69, 164, 173, 0.28);
}

.dashboard-activity-tile-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-activity-tile-desc {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.dashboard-activity-empty {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    flex: 1 1 auto;
}

.dashboard-activity-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    flex: 1 1 auto;
}

.dashboard-activity-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px 10px;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
}

.dashboard-activity-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-activity-rank {
    font-weight: 700;
    color: var(--muted);
    font-size: 0.78rem;
    min-width: 1.35rem;
}

.dashboard-activity-mid {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
}

.dashboard-activity-namewrap {
    display: inline-flex;
    align-items: center;
    gap: 0.32em;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    text-decoration: none;
    color: var(--link);
    font-weight: 600;
}

.dashboard-activity-namewrap:hover {
    color: var(--link-hover);
}

.dashboard-activity-namewrap:hover .dashboard-activity-name {
    text-decoration: underline;
}

.dashboard-activity-avatar {
    width: 0.92em;
    height: 0.92em;
    min-width: 0.92em;
    min-height: 0.92em;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(240, 216, 176, 0.14);
    vertical-align: middle;
}

.dashboard-activity-avatar--ph {
    display: inline-block;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.07);
}

.dashboard-activity-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-you {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    border: 1px solid rgba(69, 164, 173, 0.45);
    border-radius: 999px;
    padding: 1px 6px;
    line-height: 1.2;
}

.dashboard-activity-score {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.dashboard-activity-more {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
}

.dashboard-activity-more:hover {
    text-decoration: underline;
}

.dashboard-map-filters-details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    margin-bottom: 10px;
    overflow: hidden;
}

.dashboard-map-filters-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 40px 12px 14px;
    position: relative;
    user-select: none;
}

.dashboard-map-filters-summary::-webkit-details-marker {
    display: none;
}

.dashboard-map-filters-summary::marker {
    content: '';
}

.dashboard-map-filters-summary::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.dashboard-map-filters-details[open] > .dashboard-map-filters-summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.dashboard-map-filters-summary-title {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
}

.dashboard-map-filters-summary-hint {
    display: block;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 42rem;
}

.dashboard-map-filters-details .dashboard-map-filters-wrap {
    margin-bottom: 0;
    padding: 0 12px 12px;
    border-top: 1px solid var(--line);
    background: var(--panel-soft);
}

.dashboard-map-filters-details .map-control-group:last-child {
    margin-bottom: 0;
}

.dashboard-map-filter-banner {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    background: linear-gradient(90deg, rgba(69, 164, 173, 0.12) 0%, rgba(245, 122, 70, 0.08) 100%);
    border: 1px solid rgba(69, 164, 173, 0.28);
}

.dashboard-map-filter-banner-em {
    font-weight: 700;
    color: var(--text);
}

.dashboard-map-focus {
    scroll-margin-top: 88px;
}

.dashboard-map-focus .map-legend-and-summary {
    margin-bottom: 10px;
}

.dashboard-map {
    height: 580px;
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-map-filters-wrap {
    margin-bottom: 14px;
    min-width: 0;
}

.dashboard-map-filters-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.quick-links--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 960px) {
    .quick-links--dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-link-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: var(--panel);
    text-decoration: none;
    color: inherit;
}

.quick-link-card:hover {
    border-color: rgba(240, 216, 176, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.quick-link-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.quick-link-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.map-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.map-toolbar button {
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    border: 2px solid rgba(148, 228, 236, 0.85);
    background: rgba(94, 189, 198, 0.26);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.45), 0 2px 8px rgba(0, 0, 0, 0.22);
}

.map-toolbar button:hover {
    background: rgba(94, 189, 198, 0.42);
    color: #ffffff;
    border-color: rgba(200, 248, 255, 0.95);
}

.map-toolbar button.active {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.6),
        0 3px 16px rgba(245, 122, 70, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.map-toolbar button.active:hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
}

.map-toolbar-secondary {
    margin-top: -4px;
    margin-bottom: 14px;
}

.map-toolbar-locations {
    margin-bottom: 14px;
}

.map-control-group {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
}

.map-control-group--scope {
    border-left: 4px solid var(--teal);
    background: rgba(69, 164, 173, 0.08);
}

.map-control-group--airports {
    border-left: 4px solid var(--orange);
    background: rgba(245, 122, 70, 0.08);
}

.map-control-group-head {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, var(--muted));
    margin-bottom: 10px;
}

.map-control-group-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.map-control-group-body--wrap {
    gap: 10px;
}

.map-control-sep {
    user-select: none;
    padding: 0 2px;
}

.map-label-filter-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.map-label-filter-row.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.map-airport-search-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.map-airport-search-field {
    width: 100%;
    max-width: 28rem;
}

.map-airport-search-label {
    display: block;
    margin-bottom: 6px;
}

.map-airport-search-picker .map-airport-search-input {
    width: 100%;
    box-sizing: border-box;
}

.dashboard-map-filters-details,
.dashboard-map-filters-wrap,
.map-control-group--airports,
.member-profile-map-card .map-control-group {
    overflow: visible;
}

/*
 * Karten-Filter: Passiv = Blaugrün wie ausgeschalteter Homebase-Chip | Aktiv = Orange.
 * (Klassen .map-scope-btn / .map-airport-mode-btn / .map-label-chip sind von den globalen Orange-Buttons ausgenommen.)
 */
.button.map-scope-btn.map-btn--off,
.button.map-airport-mode-btn.map-btn--off {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%);
    color: #ffffff;
    border: 2px solid rgba(127, 210, 218, 0.55);
    box-shadow:
        0 0 0 1px rgba(15, 28, 51, 0.5),
        0 3px 12px rgba(0, 0, 0, 0.35);
    font-weight: 700;
    padding: 10px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 12px;
}

.button.map-scope-btn.map-btn--off:hover,
.button.map-airport-mode-btn.map-btn--off:hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%);
    color: #ffffff;
    border-color: rgba(180, 235, 242, 0.75);
    box-shadow:
        0 0 0 1px rgba(15, 28, 51, 0.45),
        0 4px 16px rgba(69, 164, 173, 0.35);
}

.button.map-scope-btn.map-btn--on,
.button.map-airport-mode-btn.map-btn--on {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.65),
        0 4px 20px rgba(245, 122, 70, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    font-weight: 700;
    padding: 10px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 12px;
}

.button.map-scope-btn.map-btn--on:hover,
.button.map-airport-mode-btn.map-btn--on:hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.75),
        0 6px 22px rgba(245, 122, 70, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.map-label-filter-row:not(.is-disabled) .button.button-sm.map-label-chip {
    padding: 8px 14px;
    font-size: 0.86rem;
    min-height: 40px;
    border-radius: 10px;
    letter-spacing: 0.02em;
}

.map-label-filter-row:not(.is-disabled) .button.button-sm.map-label-chip.map-btn--off {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%);
    color: #ffffff;
    border: 2px solid rgba(127, 210, 218, 0.55);
    box-shadow:
        0 0 0 1px rgba(15, 28, 51, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.map-label-filter-row:not(.is-disabled) .button.button-sm.map-label-chip.map-btn--off:hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%);
    color: #ffffff;
    border-color: rgba(180, 235, 242, 0.75);
}

.map-label-filter-row:not(.is-disabled) .button.button-sm.map-label-chip.map-btn--on {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.6),
        0 3px 16px rgba(245, 122, 70, 0.48),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
    font-weight: 700;
}

.map-label-filter-row:not(.is-disabled) .button.button-sm.map-label-chip.map-btn--on:hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.72),
        0 4px 18px rgba(245, 122, 70, 0.52),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.map-label-filter-row.is-disabled .button.button-sm.map-label-chip {
    background: linear-gradient(145deg, rgba(45, 115, 122, 0.35) 0%, rgba(31, 77, 82, 0.45) 100%);
    color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(122, 208, 216, 0.2);
    font-weight: 700;
    box-shadow: none;
    min-height: 40px;
    border-radius: 10px;
}

.map-toolbar-labels {
    margin-top: -4px;
    margin-bottom: 14px;
    align-items: center;
}

.map-toolbar-labels .map-toolbar-hint {
    margin-right: 6px;
    font-size: 0.88rem;
    align-self: center;
}

.map-toolbar-labels .button-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.map-filter-status {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.map-legend-and-summary {
    margin-bottom: 12px;
}

.map-legend-details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft-2);
    margin-bottom: 8px;
    overflow: hidden;
}

.map-legend-summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 34px 8px 12px;
    position: relative;
    user-select: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
}

.map-legend-summary::-webkit-details-marker {
    display: none;
}

.map-legend-summary::marker {
    content: '';
}

.map-legend-summary::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.map-legend-details[open] > .map-legend-summary::after {
    transform: rotate(-135deg);
    margin-top: -1px;
}

.map-legend-details[open] > .map-legend-summary {
    border-bottom: 1px solid var(--line);
}

.map-legend-summary-hint {
    font-weight: 600;
    font-size: 0.78rem;
}

.map-legend--panel {
    padding: 8px 12px 10px;
    margin: 0;
    border: 0;
    background: transparent;
}

.map-legend-items {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.map-legend-items--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 14px;
}

@media (max-width: 480px) {
    .map-legend-items--grid {
        grid-template-columns: 1fr;
    }
}

.map-legend-items li {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.map-legend-dot {
    flex-shrink: 0;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.map-legend-dot--hb {
    background: var(--orange);
    border-color: rgba(240, 216, 176, 0.75);
}

.map-legend-dot--event {
    background: #9333ea;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.45);
}

.map-legend-popup-hint {
    margin: 6px 0 0;
    font-size: 0.76rem;
    line-height: 1.35;
}

.map-filter-summary {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.member-profile-map-card .map-legend-and-summary {
    margin-bottom: 10px;
}

/* Markers */
.map-marker-wrap {
    background: transparent;
    border: 0;
}

.map-marker {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.map-marker-homebase {
    background: var(--teal);
}

.map-marker-wohnort {
    background: #16a34a;
}

.map-marker-other {
    background: var(--muted);
}

.map-marker-airport {
    background: #f59e0b;
}

.map-marker-airport-visited {
    background: var(--teal);
}

.map-marker-airport-planned {
    background: #7c3aed;
}

.map-marker-airport-favorite {
    background: #e11d48;
}

/* Termin: unten rechts + andere Farbe als Homebase-Badge (oben rechts) — kein «leerer Zähler» */
.map-airport-event-dot {
    position: absolute;
    right: -2px;
    bottom: -4px;
    top: auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9333ea;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.45);
    pointer-events: none;
    z-index: 2;
}

/* Flugplatz-Popup: schmal, wenig Abstand (Community-Karte / Profil / Startseite) */
.airport-popup-wrap {
    max-width: 15.5rem;
    box-sizing: border-box;
    font-size: 0.78rem;
}

.leaflet-popup-content:has(.airport-popup-wrap) {
    max-width: 15.5rem;
    margin: 6px 8px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .airport-popup-wrap {
        max-width: min(18.5rem, calc(100vw - 2.5rem));
        font-size: 0.82rem;
    }

    .leaflet-popup-content:has(.airport-popup-wrap) {
        max-width: min(18.5rem, calc(100vw - 2.5rem));
    }
}

.airport-popup-html {
    line-height: 1.25;
}

.airport-popup-html .airport-popup-icao,
.airport-popup-icao {
    display: block;
    font-size: 0.88rem;
    line-height: 1.2;
}

.airport-popup-html .airport-popup-desc,
.airport-popup-desc {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.25;
}

.airport-popup-stats {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.airport-popup-stats--grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px 10px;
    align-items: baseline;
}

.airport-popup-statline {
    line-height: 1.3;
}

.airport-popup-events-block {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.airport-popup-events-title {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 4px;
}

.airport-popup-platz {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

a.airport-popup-platz-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    margin: 0;
    font-weight: 700;
    font-size: 0.78rem;
}

.airport-popup-events {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 0.76rem;
    line-height: 1.35;
}

.airport-popup-events-list {
    margin: 0;
    padding-left: 1rem;
}

.airport-popup-events-list li {
    margin: 2px 0;
}

.airport-popup-events--stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 0;
}

.airport-popup-event-line {
    margin: 0;
    padding: 0;
    list-style: none;
}

.airport-popup-event-line a {
    display: inline;
}

.airport-popup-actions {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.airport-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
}

.airport-popup-buttons .button-sm {
    font-size: 0.72rem;
    padding: 3px 8px;
}

@media (max-width: 640px) {
    .airport-popup-label-grid.airport-popup-buttons .button-sm.airport-popup-toggle {
        font-size: 0.78rem;
        padding: 8px 10px;
        min-height: 2.5rem;
    }
}

.airport-popup-label-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .airport-popup-label-grid {
        gap: 6px;
    }
}

/*
 * Flugplatz-Popup (Homebase / Besucht / Geplant / Favorit):
 * .airport-popup-toggle verhindert die globale Orange-Button-Regel (sonst wirken alle gleich).
 * Gewählt = hellorange; noch wählbar = dunkel.
 */
.airport-popup-label-grid .airport-popup-toggle.button-sm.button-light:not(.is-on) {
    background: linear-gradient(160deg, #1a2638 0%, #0f1826 55%, #0a1018 100%);
    color: rgba(232, 220, 200, 0.92);
    border: 2px solid rgba(90, 104, 128, 0.65);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
    font-weight: 700;
}

.airport-popup-label-grid .airport-popup-toggle.button-sm.button-light:not(.is-on):hover {
    background: linear-gradient(160deg, #243248 0%, #152030 100%);
    color: #fff8f0;
    border-color: rgba(120, 138, 168, 0.75);
}

.airport-popup-label-grid .airport-popup-toggle.button-sm.is-on {
    background: linear-gradient(160deg, #ffe0cc 0%, #ffc9a8 42%, #ffb088 100%);
    color: #0f1c33;
    border: 2px solid rgba(255, 210, 180, 0.95);
    box-shadow:
        0 0 0 1px rgba(245, 122, 70, 0.35),
        0 2px 10px rgba(245, 122, 70, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
    font-weight: 800;
}

.airport-popup-label-grid .airport-popup-toggle.button-sm.is-on:hover {
    background: linear-gradient(160deg, #fff0e5 0%, #ffd8bc 45%, #ffc29a 100%);
    color: #0f1c33;
    border-color: rgba(255, 230, 210, 0.98);
    box-shadow:
        0 0 0 1px rgba(245, 122, 70, 0.42),
        0 3px 12px rgba(245, 122, 70, 0.32),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

/*
 * Meine Plätze + Legacy-Klasse: inaktiv = Türkis-Ton, aktiv = Orange (wie Karten-Popup).
 */
.my-places-airport-table .place-label-btn.button-light:not(.is-on),
.list-grid-my-locations-airports .place-label-btn.button-light:not(.is-on) {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%);
    color: #ffffff;
    border: 2px solid rgba(127, 210, 218, 0.55);
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
    font-weight: 700;
}

.my-places-airport-table .place-label-btn.button-light:not(.is-on):hover,
.list-grid-my-locations-airports .place-label-btn.button-light:not(.is-on):hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%);
    color: #ffffff;
    border-color: rgba(180, 235, 242, 0.75);
}

.my-places-airport-table .place-label-btn.is-on,
.list-grid-my-locations-airports .place-label-btn.is-on {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.6),
        0 3px 14px rgba(245, 122, 70, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    font-weight: 700;
}

.my-places-airport-table .place-label-btn.is-on:hover,
.list-grid-my-locations-airports .place-label-btn.is-on:hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.72),
        0 4px 16px rgba(245, 122, 70, 0.48),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.platz-self-mark-card {
    margin: 14px 0 10px;
    padding: 12px 0 2px;
    border-top: 1px solid var(--line);
}

.platz-self-mark-lead {
    margin: -4px 0 10px;
}

.platz-self-mark-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platz-self-mark-grid .place-label-btn.button-light:not(.is-on) {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%);
    color: #ffffff;
    border: 2px solid rgba(127, 210, 218, 0.55);
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
    font-weight: 700;
}

.platz-self-mark-grid .place-label-btn.button-light:not(.is-on):hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%);
    color: #ffffff;
    border-color: rgba(180, 235, 242, 0.75);
}

.platz-self-mark-grid .place-label-btn.is-on {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.6),
        0 3px 14px rgba(245, 122, 70, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    font-weight: 700;
}

.map-marker-wrap-airport {
    position: relative;
    overflow: visible !important;
}

.map-marker-airport-stack {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

/* Listen: Sprung zur Karte (Community, Profil) */
button.map-focus-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--link);
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
}

button.map-focus-link:hover {
    color: var(--link-hover);
}

.map-airport-hb-badge {
    position: absolute;
    right: -10px;
    top: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    background: var(--orange);
    color: var(--btn-on-accent);
    border-radius: 999px;
    border: 1.5px solid rgba(240, 216, 176, 0.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 3;
}

/* Cluster */
.marker-cluster-small {
    background-color: rgba(69, 164, 173, 0.4);
}

.marker-cluster-small div {
    background-color: rgba(45, 115, 122, 0.92);
}

.marker-cluster-medium {
    background-color: rgba(69, 164, 173, 0.45);
}

.marker-cluster-medium div {
    background-color: rgba(45, 115, 122, 0.95);
}

.marker-cluster-large {
    background-color: rgba(15, 28, 51, 0.45);
}

.marker-cluster-large div {
    background-color: rgba(15, 28, 51, 0.92);
}

/* Cluster: feste Kreise (iconSize 40px im JS), Zahl mittig — sonst „Pille“ durch Textbreite */
.marker-cluster {
    width: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.marker-cluster > div {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
}

.marker-cluster > div > span {
    display: block;
    text-align: center;
    line-height: 1;
}

.marker-cluster:hover > div {
    background-color: var(--teal-deep) !important;
}

/* Landing page */
.landing-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 42px;
    background: linear-gradient(135deg, #0a1428 0%, #152a45 42%, #1a3d48 100%);
    color: var(--cream);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.landing-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 32px;
}

.landing-hero-copy {
    flex: 1 1 280px;
    min-width: 0;
}

.landing-hero-art {
    flex: 0 0 auto;
    margin-left: auto;
}

.landing-hero-img {
    display: block;
    max-width: min(100%, 320px);
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    /* Schatten nur am sichtbaren Motiv (Alpha-Kanal), kein Karten-Hintergrund */
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.landing-hero h1 {
    margin: 0 0 14px;
    font-size: 2.6rem;
    line-height: 1.1;
}

.landing-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(240, 216, 176, 0.88);
    line-height: 1.65;
    font-size: 1.05rem;
}

.landing-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-actions .landing-button-light {
    background: rgba(255,255,255,0.12);
    color: var(--cream);
    border-color: rgba(255,255,255,0.16);
}

.landing-actions .landing-button-light:hover {
    background: rgba(255,255,255,0.2);
    color: var(--cream);
}

.public-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.public-stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
}

.public-stat .value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.public-stat .label {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.2;
}

/* Startseite: Karte + Geplante Ziele im Stack; Zahlen unten nach „Was bietet die Community?“ */
.landing-mid-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.landing-planned-card .landing-planned-promo {
    margin-top: 0;
}

.landing-planned-promo {
    display: block;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(69, 164, 173, 0.35);
    background: linear-gradient(135deg, rgba(69, 164, 173, 0.1) 0%, rgba(69, 164, 173, 0.04) 100%);
    text-decoration: none !important;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.landing-planned-promo:hover,
.landing-planned-promo:hover * {
    text-decoration: none !important;
}

.landing-planned-promo:hover {
    border-color: var(--teal);
    background: rgba(69, 164, 173, 0.12);
    box-shadow: 0 10px 28px rgba(69, 164, 173, 0.12);
}

.landing-planned-promo-inner {
    display: block;
}

.landing-planned-promo-main {
    min-width: 0;
}

@media (min-width: 721px) {
    .landing-planned-promo-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(168px, 240px);
        gap: 24px 28px;
        align-items: center;
    }

    .landing-planned-promo-art {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-shrink: 0;
    }

    .landing-planned-promo-svg {
        width: 100%;
        min-width: 160px;
        max-width: 220px;
        height: auto;
        min-height: 140px;
        display: block;
    }

    .landing-planned-promo-art-caption {
        margin: 10px 0 0;
        font-size: 0.78rem;
        line-height: 1.35;
        max-width: 11rem;
    }
}

.landing-planned-promo-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--teal);
}

.landing-planned-promo-title {
    display: block;
    margin-top: 6px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.landing-planned-promo-lead {
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 40rem;
}

.landing-planned-promo-lead strong {
    color: var(--text);
    font-weight: 700;
}

.landing-planned-promo-meta {
    margin: 12px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

.landing-planned-promo-meta--soft {
    font-weight: 500;
}

.landing-planned-promo-teaser-label {
    margin: 10px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.landing-planned-promo-teaser {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.landing-planned-promo-teaser li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(240, 216, 176, 0.08);
    border: 1px solid rgba(69, 164, 173, 0.35);
    font-size: 0.88rem;
    font-weight: 700;
}

.landing-planned-promo-icao {
    letter-spacing: 0.04em;
}

.landing-planned-promo-n {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.landing-planned-promo-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--teal);
}

@media (max-width: 720px) {
    .landing-planned-promo-art {
        display: none !important;
    }

    .landing-planned-promo {
        padding: 22px 20px;
    }

    .landing-planned-promo-title {
        font-size: 1.55rem;
    }

    .landing-planned-promo-lead {
        font-size: 0.98rem;
    }

    .landing-planned-promo-meta {
        font-size: 0.95rem;
    }

    .landing-planned-promo-teaser li:nth-child(n + 4) {
        display: none !important;
    }

    .landing-planned-promo-teaser li {
        font-size: 0.92rem;
        padding: 8px 14px;
    }

    .landing-planned-promo-cta {
        font-size: 1.02rem;
        margin-top: 10px;
    }
}

/* Meta-Zeile: Kalender-Termin-Interessen + Geplante Ziele (Anzahl Blöcke / Einträge) */
.planned-airports-meta {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    padding: 20px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.public-map {
    height: 540px;
    border-radius: 18px;
    overflow: hidden;
}

.cta-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cta-box {
    border-radius: 18px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.cta-box h3 {
    margin: 0 0 10px;
}

.cta-box p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
}

/* Leaflet: bleibt unter Sticky-Header (Leaflet nutzt hohe interne z-index-Werte) */
.leaflet-container {
    position: relative;
    z-index: 1;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--panel) !important;
    color: var(--text) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
    border: 1px solid var(--line);
}

.leaflet-popup-content {
    color: var(--text);
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--cream) !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--orange) !important;
}

/* Utility */
.live-result-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1000px) {
    .quick-links,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .compact-list-head,
    .simple-list-head {
        display: none;
    }

    .compact-list-row,
    .simple-list-row,
    .persons-list-row,
    .aircraft-compact-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .compact-list-row > div,
    .simple-list-row > div {
        min-width: 0;
    }
}

@media (max-width: 1024px) {
    .nav-utility-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: auto;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .nav-utility-actions .nav-utility-btn[data-app-home],
    .nav-utility-actions .nav-utility-btn[data-app-back],
    .nav-utility-actions .nav-utility-btn[data-app-reload] {
        display: inline-flex;
    }

    .nav-utility-btn {
        width: 100%;
        justify-content: center;
        gap: 8px;
        min-height: 38px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-shell {
        display: none;
        flex: none;
        position: fixed;
        z-index: 9990;
        left: 0;
        right: 0;
        top: calc(72px + var(--site-header-pad-top, env(safe-area-inset-top, 0px)));
        bottom: 0;
        background: linear-gradient(135deg, var(--bg), var(--bg-2));
        padding: 14px;
        border-top: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        align-content: flex-start;
        /* nicht space-between erben: sonst zwei Nav-Blöcke oben/unten mit riesiger Lücke */
        justify-content: flex-start;
        gap: 12px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .nav-shell.open {
        display: flex;
    }

    .nav-group,
    .nav-group-right {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        align-content: flex-start;
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
        flex: 0 0 auto;
    }

    .nav-shell > .nav-group > a:not(.button),
    .nav-shell > .nav-group-right > a:not(.button),
    .nav-dropdown summary {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-dropdown summary {
        justify-content: space-between;
    }

    .site-header .nav-group-right .button.button-primary.button-sm {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-menu {
        position: static;
        margin-top: 6px;
        box-shadow: none;
    }
}

@media (max-width: 800px) {
    .grid,
    .two-cols,
    .public-stat-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 18px, 100%);
    }

    .card {
        padding: 16px;
    }

    .action-link {
        min-height: 38px;
        padding: 8px 12px;
    }

    .landing-hero {
        padding: 24px;
    }

    .landing-hero-art {
        margin-left: 0;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .public-map,
    .dashboard-map {
        height: 420px;
    }

    .quick-links,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .quick-links--dashboard {
        grid-template-columns: 1fr;
    }

    /* Formulare: nicht breiter als die Karte (Grid/Flex min-width:auto sonst overflow) */
    .card .grid {
        min-width: 0;
    }

    .card .grid > .row {
        min-width: 0;
        max-width: 100%;
    }

    .card input:not([type="checkbox"]):not([type="radio"]),
    .card select,
    .card textarea {
        max-width: 100%;
    }

    /* Datum/Zeit: Browser-Mindestbreite + Padding sonst minimal über Kanten */
    .card input[type="date"],
    .card input[type="time"],
    .card input[type="datetime-local"] {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 8px;
        font-size: 16px;
    }

    .card input[type="date"]::-webkit-datetime-edit-fields-wrapper,
    .card input[type="time"]::-webkit-datetime-edit-fields-wrapper,
    .card input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
        padding: 0;
    }

    .card input[type="date"]::-webkit-calendar-picker-indicator,
    .card input[type="time"]::-webkit-calendar-picker-indicator,
    .card input[type="datetime-local"]::-webkit-calendar-picker-indicator {
        margin-inline-start: 2px;
        padding: 0;
    }

    .airport-picker input[type="text"],
    .airport-picker input:not([type="checkbox"]):not([type="hidden"]) {
        min-width: 0;
        max-width: 100%;
    }

    .table-toolbar input[type="search"],
    .table-toolbar input[type="text"] {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Personen-Suche + Zurücksetzen immer eine Zeile */
    .table-toolbar.zoll-persons-toolbar {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .zoll-persons-toolbar .zoll-persons-search-reset {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
}
.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.sort-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    align-items: center;
}
/* Echte Listenansicht */
.list-grid {
    width: 100%;
}

.list-grid-persons .list-head,
.list-grid-persons .list-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.9fr 1.2fr 1.2fr 1.5fr;
    gap: 12px;
    align-items: center;
}

.list-head {
    padding: 10px 12px;
    background: var(--panel-soft);
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}

.list-row {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.list-row:hover {
    background: var(--row-hover);
}

.cell-primary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.row-actions form {
    margin: 0;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.sort-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    align-items: center;
}

@media (max-width: 900px) {
    .list-head {
        display: none;
    }

    /* Personen: Kopfzeile wie die Zeilen nur Name + Aktionen (Basis-Grid wäre sonst spezifischer als .list-head { display: none }) */
    .list-grid-persons .list-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        align-items: center;
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .list-grid-persons .list-head > div:nth-child(2),
    .list-grid-persons .list-head > div:nth-child(3),
    .list-grid-persons .list-head > div:nth-child(4),
    .list-grid-persons .list-head > div:nth-child(5) {
        display: none;
    }

    .list-grid-persons .list-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 10px;
        align-items: center;
    }

    .list-grid-persons .list-row > div:nth-child(2),
    .list-grid-persons .list-row > div:nth-child(3),
    .list-grid-persons .list-row > div:nth-child(4),
    .list-grid-persons .list-row > div:nth-child(5) {
        display: none;
    }

    .list-grid-persons .list-row > div:nth-child(6) {
        margin-top: 0;
    }

    .list-grid-persons .cell-primary {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

.list-grid-zoll .list-head,
.list-grid-zoll .list-row {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    /* Route + Abflug/Anflug etwas schmaler, Kennzeichen + Aktionen mehr Luft */
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 1.1fr)
        minmax(0, 1fr)
        minmax(0, 1.55fr);
    gap: 12px 16px;
    align-items: start;
}

.list-grid-zoll .list-row > div {
    min-width: 0;
}

.list-grid-zoll .zoll-route-main {
    font-weight: 600;
    line-height: 1.35;
    min-width: 0;
}

/* Hochkant: in Klammern hinter ICAO; Desktop/Querformat: nur eigene Spalte */
.list-grid-zoll .zoll-route-reg-suffix {
    display: none;
    font-weight: 600;
    white-space: normal;
}

.list-grid-zoll .zoll-dates {
    font-size: 0.9rem;
    line-height: 1.4;
}

.list-grid-zoll .zoll-cell-actions.row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    gap: 4px;
    justify-content: flex-end;
}

.list-grid-zoll .zoll-cell-actions .action-link {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.85rem;
}

.list-grid-zoll .zoll-inline-form {
    display: inline;
}

.list-grid-zoll .list-head > div {
    min-width: 0;
}

.list-grid-zoll .list-head > div:last-child {
    text-align: right;
}

/* Zoll-Flugliste: schmale Desktop-/Tablet-Breite — Aktionen immer eine Zeile, etwas kompakter */
@media (max-width: 1200px) and (min-width: 901px) {
    .list-grid-zoll .list-head,
    .list-grid-zoll .list-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.05fr)
            minmax(0, 0.72fr)
            minmax(248px, 1.05fr);
        gap: 8px 10px;
        align-items: center;
    }

    .list-grid-zoll .list-row {
        padding: 8px 10px;
    }

    .list-grid-zoll .zoll-dates {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .list-grid-zoll .zoll-dates > div {
        white-space: nowrap;
    }

    .list-grid-zoll .zoll-cell-actions.row-actions {
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: flex-end;
    }

    .list-grid-zoll .zoll-cell-actions .action-link {
        padding: 5px 7px;
        font-size: 0.8rem;
        min-height: 30px;
    }
}

.list-grid-zoll .list-row.zoll-row-past {
    color: var(--muted);
}

.list-grid-zoll .list-row.zoll-row-past:hover {
    background: var(--row-hover);
}

.list-grid-zoll .list-row.zoll-row-past .zoll-route-main,
.list-grid-zoll .list-row.zoll-row-past .zoll-cell-reg {
    color: var(--muted);
}

.list-grid-zoll-persons .list-head,
.list-grid-zoll-persons .list-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.zoll-persons-toolbar {
    margin-bottom: 10px;
}

.zoll-persons-toolbar .zoll-persons-search-reset {
    flex: 0 0 auto;
    white-space: nowrap;
}

.zoll-persons-pagination {
    margin-bottom: 10px;
}

.zoll-persons-pagination-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Zoll-Formular: Personenwahl (viele Einträge, Mobil + Desktop) */
.zoll-persons-card-head h2 {
    margin-bottom: 4px;
}

.zoll-persons-hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 52rem;
}

.zoll-persons-scroll {
    max-height: min(52vh, 460px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
}

.zoll-persons-scroll .list-grid-zoll-persons .list-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 1px 0 var(--line);
}

.zoll-persons-scroll .list-grid-zoll-persons .list-row:last-child {
    border-bottom: none;
}

.list-grid-zoll-persons .zoll-person-cell-name {
    min-width: 0;
}

.list-grid-zoll-persons .zoll-person-name-line {
    font-size: 0.98rem;
    line-height: 1.4;
    word-break: break-word;
}

.list-grid-zoll-persons .zoll-person-name-sep {
    font-weight: 400;
}

.list-grid-zoll-persons .zoll-person-meta {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.zoll-persons-self-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
    background: linear-gradient(180deg, rgba(69, 164, 173, 0.22) 0%, rgba(69, 164, 173, 0.12) 100%);
    border: 1px solid rgba(69, 164, 173, 0.45);
    color: #b8ecf0;
}

.list-grid-zoll-persons .zoll-person-cell-role {
    min-width: 0;
}

.list-grid-zoll-persons .zoll-person-cell-role select {
    width: 100%;
    max-width: 220px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
}

/* Zoll erzeugen: Regel-Infos in einer Zeile hinter der Flug-ID */
.zoll-generate-titleline {
    line-height: 1.5;
}

.zoll-generate-meta {
    font-size: 0.78rem;
    font-weight: 400;
    color: inherit;
    opacity: 0.88;
}

.zoll-generate-meta-warning {
    color: #b91c1c;
    opacity: 1;
}

/* Zoll PDF-Downloads (zoll_generate.php) */
.zoll-pdf-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.zoll-pdf-heading {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.zoll-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.button.button-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    white-space: normal;
    text-align: left;
    background: linear-gradient(180deg, var(--panel-soft-2) 0%, var(--panel) 100%);
    border: 1px solid rgba(245, 122, 70, 0.35);
    color: #fecaca;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button.button-pdf:hover {
    background: var(--panel-soft);
    border-color: var(--orange);
    color: #ffe4e6;
    text-decoration: none;
}

.button-pdf-icon {
    display: flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

.button-pdf-text {
    line-height: 1.25;
}

@media (max-width: 700px) {
    .list-grid-zoll-persons .list-head,
    .list-grid-zoll-persons .list-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .list-grid-zoll-persons .list-head {
        display: none;
    }

    .list-grid-zoll-persons .list-row {
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .list-grid-zoll-persons .zoll-person-cell-role select {
        max-width: none;
    }

    .zoll-persons-scroll {
        max-height: none;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .zoll-persons-scroll .list-grid-zoll-persons .list-head {
        position: static;
        box-shadow: none;
    }

    .zoll-persons-scroll .list-grid-zoll-persons .list-row:last-child {
        border-bottom: 1px solid var(--line);
    }
}

.list-grid-community .list-head,
.list-grid-community .list-row {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 0.75fr)
        minmax(200px, 2fr);
    gap: 12px;
    align-items: center;
}

.list-grid-aircraft .list-head,
.list-grid-aircraft .list-row {
    display: grid;
    grid-template-columns:
        minmax(0, 2.25rem)
        minmax(0, 0.95fr)
        minmax(0, 1.15fr)
        minmax(0, 4.25rem)
        auto;
    gap: 8px 10px;
    align-items: center;
}

.list-grid-aircraft .list-head {
    padding: 7px 10px;
}

.list-grid-aircraft .list-row {
    padding: 7px 10px;
}

.list-grid-aircraft .list-row > div {
    min-width: 0;
}

.list-grid-aircraft .compact-cell-fav {
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.2;
}

.list-grid-aircraft .list-row > div:nth-child(3) {
    font-size: 0.88rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-grid-aircraft .list-row > div:nth-child(4) {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.list-grid-aircraft .row-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1px;
}

.list-grid-aircraft .row-actions .action-link {
    padding: 5px 7px;
    font-size: 0.78rem;
    min-height: 28px;
    white-space: nowrap;
}

.list-grid-favorites .list-head,
.list-grid-favorites .list-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(0, 1.6fr)
        minmax(0, 0.9fr)
        minmax(140px, 1.8fr);
    gap: 12px;
    align-items: center;
}

.list-grid-admin-users .list-head,
.list-grid-admin-users .list-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 1.85fr)
        minmax(0, 1fr)
        minmax(220px, 2fr);
    gap: 12px;
    align-items: center;
}

.list-grid-admin-users .list-row > div {
    min-width: 0;
}

.list-grid-admin-users .list-head > div:last-child,
.list-grid-admin-users .admin-user-cell-actions {
    text-align: right;
}

.list-grid-admin-users .admin-user-cell-actions.row-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.list-grid-admin-users .admin-user-cell-actions .action-link {
    padding: 6px 8px;
    font-size: 0.8rem;
    min-height: 30px;
    white-space: nowrap;
}

/* Admin-Benutzerliste: Tablet — kompakte Zeile, Aktionen bleiben horizontal */
@media (max-width: 1024px) {
    .list-grid-admin-users .list-head {
        display: none;
    }

    .list-grid-admin-users .list-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px 10px;
        padding: 10px 12px;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .list-grid-admin-users .admin-user-cell-name {
        order: 1;
        flex: 0 1 28%;
        min-width: 0;
        max-width: 36%;
        font-weight: 600;
        font-size: 0.88rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .list-grid-admin-users .admin-user-cell-email {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.8rem;
        color: var(--muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    .list-grid-admin-users .admin-user-cell-role {
        order: 3;
        flex: 0 0 auto;
    }

    .list-grid-admin-users .admin-user-cell-role .user-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .list-grid-admin-users .admin-user-cell-actions {
        order: 4;
        flex: 0 0 auto;
        margin-top: 0;
        justify-content: flex-end;
    }
}

/* Zollregeln (Admin): kompakte Liste ohne Tabellen */
.list-grid-customs-rules .list-head,
.list-grid-customs-rules .list-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 2.2fr)
        minmax(0, 0.85fr)
        minmax(180px, 1.4fr);
    gap: 12px 16px;
    align-items: start;
}

.list-grid-customs-rules .list-head {
    align-items: center;
}

.list-grid-customs-rules .list-row > div {
    min-width: 0;
}

.list-grid-customs-rules .customs-rule-airport {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.list-grid-customs-rules .customs-rule-airport-name {
    font-size: 0.9rem;
    margin-top: 2px;
}

.list-grid-customs-rules .list-head > div:nth-child(3),
.list-grid-customs-rules .list-row > div:nth-child(3) {
    text-align: center;
}

.list-grid-customs-rules .list-head > div:last-child,
.list-grid-customs-rules .row-actions {
    text-align: right;
    justify-content: flex-end;
}

.list-grid-customs-rules .customs-rule-outputs {
    font-size: 0.9rem;
    line-height: 1.4;
}

.list-grid-customs-rules .customs-rule-out-block + .customs-rule-out-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.list-grid-customs-rules .customs-rule-out-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.list-grid-customs-rules .customs-rule-out-email {
    word-break: break-word;
}

.list-grid-customs-rules .customs-rule-pdf {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}

.list-grid-customs-rules .customs-rule-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.list-grid-customs-rules .customs-rule-status.is-active {
    background: var(--success-bg);
    color: var(--success-text);
}

.list-grid-customs-rules .customs-rule-status.is-inactive {
    background: var(--panel-soft);
    color: var(--muted);
}

@media (max-width: 900px) {
    .list-grid-zoll .list-head {
        display: none;
    }

    /* Kompakt Hochkant: ICAO + (Kennzeichen) eine Zeile, darunter Daten; rechts Aktionen (ohne Umbruch) */
    .list-grid-zoll .list-row.zoll-flight-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(168px, auto);
        grid-template-rows: auto auto;
        gap: 4px 10px;
        padding: 8px 10px;
        margin-bottom: 8px;
        border: 1px solid var(--line);
        border-radius: 10px;
        align-items: center;
    }

    .list-grid-zoll .zoll-cell-route {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        min-width: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .list-grid-zoll .zoll-cell-reg {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        min-width: 0;
    }

    .list-grid-zoll .zoll-cell-date {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
    }

    .list-grid-zoll .zoll-cell-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: end;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 4px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        width: auto;
        max-width: 100%;
    }

    .list-grid-zoll .zoll-dates {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .list-grid-zoll .zoll-cell-actions .action-link {
        padding: 4px 6px;
        font-size: 0.78rem;
        min-height: 30px;
    }

    @media (orientation: portrait) {
        .list-grid-zoll .zoll-route-reg-suffix {
            display: inline;
        }

        .list-grid-zoll .zoll-cell-reg {
            display: none !important;
        }

        .list-grid-zoll .zoll-cell-route {
            justify-self: stretch;
            white-space: normal;
        }

        /* Hochkant: eine Spalte, Aktionen darunter — Buttons dürfen umbrechen */
        .list-grid-zoll .list-row.zoll-flight-row {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto auto auto;
            gap: 6px 0;
            align-items: stretch;
        }

        .list-grid-zoll .zoll-cell-route {
            grid-column: 1;
            grid-row: 1;
        }

        .list-grid-zoll .zoll-cell-date {
            grid-column: 1;
            grid-row: 2;
        }

        .list-grid-zoll .zoll-cell-actions {
            grid-column: 1;
            grid-row: 3;
            width: 100%;
            max-width: none;
            justify-self: stretch;
            justify-content: flex-start;
            align-self: stretch;
            flex-wrap: wrap;
            gap: 6px 8px;
            margin-top: 4px;
            padding-top: 8px;
            border-top: 1px solid var(--line);
        }

        .list-grid-zoll .zoll-cell-actions .action-link {
            flex: 0 1 auto;
            white-space: normal;
            text-align: center;
            line-height: 1.25;
        }

        .list-grid-zoll .zoll-cell-actions .zoll-inline-form {
            display: inline-flex;
            flex: 0 1 auto;
        }
    }

    .list-grid-community .list-row,
    .list-grid-favorites .list-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .list-grid-community .list-row > div:last-child,
    .list-grid-favorites .list-row > div:last-child {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .list-grid-customs-rules .list-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 10px;
        align-items: stretch;
    }

    .list-grid-customs-rules .list-head > div:nth-child(3),
    .list-grid-customs-rules .list-row > div:nth-child(3) {
        text-align: left;
    }

    .list-grid-customs-rules .row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 8px;
        border-top: 1px solid var(--line);
        margin-top: 4px;
        text-align: left;
    }
}

/* Zoll-Liste schmal + Querformat: eine Zeile, Aktionen fix rechts */
@media (max-width: 900px) and (orientation: landscape) {
    .list-grid-zoll .zoll-route-reg-suffix {
        display: none !important;
    }

    .list-grid-zoll .zoll-cell-reg {
        display: block !important;
    }

    .list-grid-zoll .list-row.zoll-flight-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(228px, auto);
        grid-template-rows: auto;
        gap: 6px 12px;
        padding: 7px 10px;
        margin-bottom: 6px;
    }

    .list-grid-zoll .zoll-cell-route {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .list-grid-zoll .zoll-cell-reg {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .list-grid-zoll .zoll-cell-date {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        min-width: 0;
    }

    .list-grid-zoll .zoll-cell-actions {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
    }
}

/* Flugzeugliste: Tablet — eine Zeile inkl. Aktionen (kein Umbruch der Button-Zeile) */
@media (max-width: 900px) and (min-width: 641px) {
    .list-grid-aircraft .list-head {
        display: grid;
        grid-template-columns:
            minmax(0, 2.25rem)
            minmax(0, 0.95fr)
            minmax(0, 1.1fr)
            minmax(0, 4rem)
            auto;
        gap: 6px 8px;
        align-items: center;
        padding: 7px 10px;
        margin-bottom: 0;
        border-radius: 12px 12px 0 0;
    }

    .list-grid-aircraft .list-row {
        grid-template-columns:
            minmax(0, 2.25rem)
            minmax(0, 0.95fr)
            minmax(0, 1.1fr)
            minmax(0, 4rem)
            auto;
        gap: 6px 8px;
        padding: 7px 10px;
        border: none;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        margin-bottom: 0;
    }

    .list-grid-aircraft .list-row > div:last-child {
        grid-column: auto;
        margin-top: 0;
    }

    .list-grid-aircraft .row-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .list-grid-aircraft .row-actions .action-link {
        padding: 5px 6px;
        font-size: 0.76rem;
        min-height: 28px;
        white-space: nowrap;
    }
}

/* Flugzeugliste: schmales Handy — eine Zeile, horizontal scrollen wenn nötig */
@media (max-width: 640px) {
    .list-grid-aircraft .list-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px 10px;
        padding: 8px 10px;
        margin-bottom: 8px;
        border: 1px solid var(--line);
        border-radius: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .list-grid-aircraft .list-row > div {
        flex-shrink: 0;
        min-width: 0;
    }

    .list-grid-aircraft .compact-cell-fav {
        flex: 0 0 1.5rem;
        text-align: center;
    }

    .list-grid-aircraft .cell-primary {
        flex: 0 1 auto;
        max-width: 38vw;
    }

    .list-grid-aircraft .list-row > div:nth-child(3) {
        flex: 1 1 0;
        min-width: 0;
    }

    .list-grid-aircraft .list-row > div:nth-child(4) {
        flex: 0 0 auto;
    }

    .list-grid-aircraft .list-row > div:last-child {
        grid-column: auto;
        margin-top: 0;
        flex: 0 0 auto;
    }

    .list-grid-aircraft .row-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
        margin-top: 0;
    }

    .list-grid-aircraft .row-actions .action-link {
        padding: 5px 6px;
        font-size: 0.74rem;
        min-height: 28px;
    }
}

/* --- Flieger-Kalender --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Kalender: Kopfblock — Vernetzungs-Titel, CTA; Jahres-Switcher unten */
.calendar-page-header {
    border-color: rgba(69, 164, 173, 0.35);
    background: linear-gradient(135deg, rgba(69, 164, 173, 0.11) 0%, rgba(69, 164, 173, 0.04) 100%);
    box-shadow: 0 6px 20px rgba(69, 164, 173, 0.06);
    margin-bottom: 16px;
}

.calendar-page-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px 24px;
}

.calendar-page-header-copy {
    flex: 1 1 min(100%, 36rem);
    min-width: 0;
}

.calendar-page-header-kicker {
    margin: 0 0 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
}

.calendar-page-header-title {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.calendar-page-header-lead,
.calendar-page-header-note {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.calendar-page-header-note {
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--panel-soft);
    border: 1px solid rgba(69, 164, 173, 0.28);
}

.calendar-page-header-aside {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 16rem;
}

.calendar-page-header-aside .button {
    justify-content: center;
    text-align: center;
}

.calendar-page-header-year-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(69, 164, 173, 0.18);
    display: flex;
    justify-content: center;
}

@media (min-width: 720px) {
    .calendar-page-header-aside {
        align-items: center;
    }
}

.calendar-year-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-year-label {
    font-weight: 800;
    font-size: 1.25rem;
    min-width: 3.5rem;
    text-align: center;
}

.calendar-month-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-empty-card {
    scroll-margin-top: 72px;
}

.calendar-month-card {
    scroll-margin-top: 72px;
    border-color: rgba(69, 164, 173, 0.2);
    box-shadow: 0 6px 22px rgba(69, 164, 173, 0.05);
}

.calendar-month-card--landing {
    border-color: rgba(69, 164, 173, 0.22);
    box-shadow: 0 4px 18px rgba(69, 164, 173, 0.05);
    padding: 14px 16px;
}

.calendar-month-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(69, 164, 173, 0.35);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.calendar-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 960px) {
    .calendar-event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Kalender: gleiche Karte wie Startseite (.landing-terms-entry), Zusatzfelder */
.calendar-page-event-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0 0 6px;
}

/* Ort / Flugplatz-Beschreibung verlinkt zur Karte (Dashboard) */
.calendar-page-loc-link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}

.calendar-page-loc-link:hover {
    text-decoration: underline;
}

/* Kalender Mobil: links Datum/Bild, rechts Titel & Text; Interesse über volle Kartenbreite */
@media (max-width: 639px) {
    .calendar-page-event-item.landing-terms-entry {
        display: grid;
        grid-template-columns: minmax(0, 122px) minmax(0, 1fr);
        grid-template-areas:
            'datecol textblock'
            'interest interest';
        gap: 10px 12px;
        align-items: start;
    }

    .calendar-page-event-item .calendar-page-event-main {
        display: contents;
    }

    .calendar-page-event-item > .landing-terms-entry-datecol.landing-terms-datecol--stack {
        grid-area: datecol;
    }

    .calendar-page-event-item .landing-terms-entry-textblock {
        grid-area: textblock;
        min-width: 0;
        text-align: left;
    }

    .calendar-page-event-item .calendar-interest-block {
        grid-area: interest;
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        width: 100%;
        min-width: 0;
    }
}

/* Startseite Mobil: gleiche Karten-Zeile wie /calendar (links Datum/Bild im Rahmen, rechts Titel → ICAO → Beschreibung) */
@media (max-width: 639px) {
    .landing-terms-body--mobile .landing-terms-mevent-body.landing-terms-mevent--calendar-row.landing-terms-entry {
        display: grid;
        grid-template-columns: minmax(0, 122px) minmax(0, 1fr);
        grid-template-areas: 'datecol textblock';
        gap: 10px 12px;
        align-items: start;
    }

    .landing-terms-body--mobile .landing-terms-mevent-body.landing-terms-mevent--calendar-row .landing-terms-entry-main {
        display: contents;
    }

    .landing-terms-body--mobile .landing-terms-mevent-body.landing-terms-mevent--calendar-row > .landing-terms-entry-datecol.landing-terms-datecol--stack {
        grid-area: datecol;
    }

    .landing-terms-body--mobile .landing-terms-mevent-body.landing-terms-mevent--calendar-row .landing-terms-entry-textblock {
        grid-area: textblock;
        min-width: 0;
        text-align: left;
    }

    .landing-terms-body--mobile .landing-terms-mevent-body.landing-terms-mevent--calendar-row .landing-terms-entry-desc {
        font-size: 0.8rem;
        line-height: 1.35;
        margin: 0 0 6px;
    }
}

/* Linke Spalte: Datum, Uhr, Bild — leicht abgesetzt (Kalender + Startseite) */
.landing-terms-entry-datecol.landing-terms-datecol--stack {
    --landing-datecol-pad-x: 10px;
    --landing-datecol-pad-x-end: 12px;
    --landing-datecol-pad-y: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: right;
    /* kein horizontales Padding am Kasten → Bild 100% Breite im Rahmen */
    padding: var(--landing-datecol-pad-y) 0 0 0;
    background: rgba(69, 164, 173, 0.08);
    border: 1px solid rgba(69, 164, 173, 0.28);
    border-radius: 9px;
    box-sizing: border-box;
    width: auto;
    min-width: 6.5rem;
    max-width: 12rem;
    overflow: hidden;
}

.landing-terms-entry-datecol.landing-terms-datecol--stack .landing-terms-entry-dateline {
    margin-bottom: 6px;
    padding-left: var(--landing-datecol-pad-x);
    padding-right: var(--landing-datecol-pad-x-end);
    box-sizing: border-box;
    width: 100%;
}

.landing-terms-entry-datecol.landing-terms-datecol--stack .landing-terms-entry-time {
    margin-bottom: 6px;
    padding-left: var(--landing-datecol-pad-x);
    padding-right: var(--landing-datecol-pad-x-end);
    box-sizing: border-box;
    width: 100%;
}

.landing-terms-entry.landing-terms-entry--datecol-stack {
    gap: 14px;
}

/* Teal-Bereich bündig mit äusserer Event-Karte: links, oben, unten (Padding der Karte ausgleichen) */
.landing-terms-entry.landing-terms-entry--datecol-stack > .landing-terms-entry-datecol.landing-terms-datecol--stack {
    margin-left: -8px;
    margin-top: -9px;
    margin-bottom: -9px;
    border-radius: 10px 9px 9px 10px;
}

.landing-terms-card--compact .landing-terms-entry.landing-terms-entry--datecol-stack > .landing-terms-entry-datecol.landing-terms-datecol--stack {
    margin-left: -6px;
    margin-top: -7px;
    margin-bottom: -7px;
}

.landing-terms-mevent-body.landing-terms-entry.landing-terms-entry--datecol-stack > .landing-terms-entry-datecol.landing-terms-datecol--stack {
    margin-left: -10px;
    margin-top: -10px;
    margin-bottom: -10px;
}

/* Mit Bild: feste Spaltenbreite → alle Vorschau-Bilder gleich breit */
.landing-terms-entry--with-image > .landing-terms-entry-datecol.landing-terms-datecol--stack {
    width: 122px;
    min-width: 122px;
    max-width: 122px;
}

/*
 * Bild im Teal-Rahmen: links, rechts und unten bündig (Padding ausgleichen);
 * volles Bild ohne Zuschnitt; Rahmenhöhe wächst mit dem Bild.
 */
.landing-terms-datecol-thumb {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    line-height: 0;
}

.landing-terms-datecol-thumb .landing-terms-thumb-link {
    border: none;
    border-radius: 0;
    display: block;
    width: 100%;
}

.landing-terms-datecol-thumb .landing-terms-thumb-img {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    vertical-align: middle;
    /* volle Breite, Seitenverhältnis; kein cover/contain aus .landing-terms-thumb-img */
    object-fit: unset;
    object-position: unset;
}

/* Datum und Titel ähnlich gross, Titel leicht betont (Zwischengrösse) */
.landing-terms-entry--datecol-stack .landing-terms-entry-dateline,
.landing-terms-entry--datecol-stack .landing-terms-dateline-seg {
    font-size: 0.97rem;
    line-height: 1.25;
}

.landing-terms-entry--datecol-stack .landing-terms-entry-time {
    font-size: 0.9rem;
}

.landing-terms-entry--datecol-stack .landing-terms-entry-title {
    font-size: 1.03rem;
    font-weight: 700;
}

.calendar-interest-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.calendar-interest-block--guest {
    margin-top: 10px;
    padding-top: 10px;
}

.calendar-interest-guest-lead {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.calendar-guest-scope-note {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 42rem;
}

.calendar-interest-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 8px;
}

.calendar-interest-count-wrap {
    font-size: 0.86rem;
}

.calendar-interest-count {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--teal);
}

.calendar-interest-btn--on {
    border-color: rgba(69, 164, 173, 0.45);
}

.calendar-interest-names {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.calendar-interest-names li {
    margin: 4px 0;
}

.calendar-interest-names--empty {
    display: none;
}

.calendar-interest-empty {
    margin: 0;
    font-size: 0.84rem;
}

.calendar-interests-page-head {
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Nur-Icon-Mail: schmal, gleiche vertikale Polsterung wie .button-sm am Interessen-Button */
.calendar-interests-block-actions .calendar-interests-mail-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 9px;
    line-height: 0;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-interests-block-actions .calendar-interests-mail-btn--icon .calendar-interests-mail-icon {
    flex-shrink: 0;
    display: block;
}

/* Geplante Ziele / Termin-Interessen: türkis = nicht dabei, orange = dabei (wie Meine Plätze) */
.calendar-interests-block-actions .pp-participation-toggle.button-light:not(.pp-participation-toggle--on) {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%);
    color: #ffffff;
    border: 2px solid rgba(127, 210, 218, 0.55);
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
    font-weight: 700;
}

.calendar-interests-block-actions .pp-participation-toggle.button-light:not(.pp-participation-toggle--on):hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%);
    color: #ffffff;
    border-color: rgba(180, 235, 242, 0.75);
}

.calendar-interests-block-actions .pp-participation-toggle.pp-participation-toggle--on {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.6),
        0 3px 14px rgba(245, 122, 70, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    font-weight: 700;
}

.calendar-interests-block-actions .pp-participation-toggle.pp-participation-toggle--on:hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.72),
        0 4px 16px rgba(245, 122, 70, 0.48),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.calendar-interests-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

@media (min-width: 900px) {
    .calendar-interests-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.calendar-interests-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--panel-soft);
    min-width: 0;
}

.calendar-interests-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 8px;
}

.calendar-interests-block-head-main {
    flex: 1 1 10rem;
    min-width: 0;
}

.calendar-interests-block-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 520px) {
    .calendar-interests-block-head {
        flex-wrap: nowrap;
    }

    .calendar-interests-block-actions {
        width: auto;
        min-width: 10.75rem;
        max-width: 13rem;
    }
}

.calendar-interests-event-title {
    margin: 0 0 4px;
    font-size: 1.02rem;
    line-height: 1.25;
    min-width: 0;
}

.calendar-interests-event-meta {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.calendar-interests-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.84rem;
    line-height: 1.35;
}

.calendar-interests-member-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.calendar-interests-member-name {
    font-weight: 600;
}

.calendar-interests-member-contact {
    font-size: 0.8rem;
}

.calendar-interests-member-contact a {
    font-weight: 600;
}

/* Mitgliedprofil: Plätze & Termine — Karten wie Homebase, ohne Listenpunkte */
.member-profile-details .member-profile-panel-lead {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.member-profile-details .member-profile-slot-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.member-profile-details .member-profile-slot-row {
    margin: 0;
    padding: 0;
}

.member-profile-details button.map-focus-link.member-profile-slot-hit,
.member-profile-details .member-profile-slot-hit--plain {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid rgba(69, 164, 173, 0.42);
    border-radius: 7px;
    background: var(--panel-soft);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    color: var(--link);
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-profile-details .member-profile-slot-hit--plain {
    cursor: default;
}

.member-profile-details button.map-focus-link.member-profile-slot-hit:hover {
    color: var(--link-hover);
    background: var(--panel-soft-2);
    border-color: rgba(69, 164, 173, 0.65);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.member-profile-details button.map-focus-link.member-profile-slot-hit:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.member-profile-details a.member-profile-slot-hit--event {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(69, 164, 173, 0.42);
    border-radius: 7px;
    background: var(--panel-soft);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-profile-details a.member-profile-slot-hit--event:hover {
    background: var(--panel-soft-2);
    border-color: rgba(69, 164, 173, 0.65);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.member-profile-details a.member-profile-slot-hit--event:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.member-profile-details .member-profile-slot-cal-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.member-profile-details .member-profile-slot-cal-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

/* Startseite: Termine (nach Geplante Ziele), nach Monat, Mehrspalter */
.landing-terms-card {
    border-color: rgba(69, 164, 173, 0.22);
    box-shadow: 0 4px 18px rgba(69, 164, 173, 0.05);
    padding: 14px 16px;
    margin-bottom: 12px;
}

/* Startseite: dichtere Terminliste */
.landing-terms-card--compact {
    padding: 10px 12px;
    margin-bottom: 8px;
}

.landing-terms-card--compact .landing-terms-head {
    padding-bottom: 8px;
    gap: 8px 12px;
}

.landing-terms-card--compact .landing-terms-title {
    font-size: 1.05rem;
}

.landing-terms-card--compact .landing-terms-lead {
    font-size: 0.82rem;
    line-height: 1.35;
}

.landing-terms-card--compact .landing-terms-month {
    margin-top: 10px;
}

.landing-terms-card--compact .landing-terms-month:first-child {
    margin-top: 6px;
}

.landing-terms-card--compact .landing-terms-month-title {
    font-size: 0.88rem;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.landing-terms-card--compact .landing-terms-grid {
    gap: 6px;
}

.landing-terms-card--compact .landing-terms-entry {
    padding: 7px 8px 7px 6px;
    gap: 8px;
}

.landing-terms-card--compact .landing-terms-entry-title {
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.landing-terms-card--compact .landing-terms-entry-loc,
.landing-terms-card--compact .landing-terms-entry-interest {
    font-size: 0.74rem;
    margin-bottom: 2px;
}

.landing-terms-card--compact .landing-terms-mobile-region {
    gap: 8px;
}

.landing-terms-card--compact .landing-terms-mcard-title {
    padding: 8px 10px;
    font-size: 0.82rem;
}

.landing-terms-card--compact .landing-terms-mevent-body.landing-terms-entry {
    padding: 8px 10px 8px 8px;
}

.landing-terms-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.landing-terms-head-text {
    min-width: min(100%, 280px);
    flex: 1;
}

.landing-terms-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin: 0 0 3px;
}

.landing-terms-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.landing-terms-lead {
    margin: 0;
    max-width: 38rem;
    line-height: 1.45;
    font-size: 0.88rem;
}

.landing-terms-cta {
    flex-shrink: 0;
    align-self: center;
}

.landing-terms-body {
    padding-top: 0;
}

/* Termine: Desktop = volle Liste; Mobil = Monats-Cards + „Weiter“ klappt auf.
   Breakpoint 960px: Smartphones im Querformat sind oft >720px und bekämen sonst die Desktop-<ul>.
   !important: schützt vor verdeckten Regeln, damit nie beide Blöcke oder die falsche Liste sichtbar ist. */
.landing-terms-body--desktop {
    display: none;
}

.landing-terms-body--mobile {
    display: block;
    margin-top: 10px;
}

@media (max-width: 959.98px) {
    .landing-terms-body--desktop {
        display: none !important;
    }

    .landing-terms-body--mobile {
        display: block !important;
    }
}

@media (min-width: 960px) {
    .landing-terms-body--desktop {
        display: block !important;
    }

    .landing-terms-body--mobile {
        display: none !important;
    }
}

.landing-terms-mobile-region {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-terms-mcard {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
    border-left: 4px solid var(--teal);
    overflow: hidden;
}

.landing-terms-mcard-title {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    background: rgba(69, 164, 173, 0.07);
    border-bottom: 1px solid var(--line);
}

.landing-terms-mcard-events {
    padding: 0;
}

.landing-terms-mevent {
    border-bottom: 1px solid var(--line);
}

.landing-terms-mevent:last-child {
    border-bottom: none;
}

.landing-terms-mevent-body.landing-terms-entry {
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    background: transparent;
    padding: 10px 12px 10px 10px;
    margin: 0;
}

@media (max-width: 959.98px) {
    .landing-terms-mobile--collapsed .landing-terms-mevent--overflow {
        display: none;
    }

    .landing-terms-mobile--collapsed .landing-terms-mcard--overflow-only {
        display: none;
    }
}

.landing-terms-mobile-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.landing-terms-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.landing-terms-month {
    margin-top: 14px;
}

.landing-terms-month:first-child {
    margin-top: 10px;
}

.landing-terms-month-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(69, 164, 173, 0.35);
    letter-spacing: -0.02em;
}

/* Startseite Kalender-Teaser Desktop: 2 Spalten */
.landing-terms-grid--index-pc {
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 960px) {
    .landing-terms-grid--index-pc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }
}

.landing-terms-grid {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

/* Spalten nur hier — nicht auf .landing-terms-grid allein, sonst überschreibt es .landing-terms-grid--index-pc */
.landing-terms-grid:not(.landing-terms-grid--index-pc) {
    grid-template-columns: minmax(0, 1fr);
}

.landing-terms-grid > li {
    list-style: none;
    list-style-type: none;
    margin: 0;
}

.landing-terms-grid > li::marker {
    content: none;
}

@media (min-width: 960px) {
    .landing-terms-grid:not(.landing-terms-grid--index-pc) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }
}

@media (min-width: 1100px) {
    .landing-terms-grid:not(.landing-terms-grid--index-pc) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-terms-entry {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 10px 9px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    box-shadow: none;
    border-left: 3px solid var(--teal);
}

.landing-terms-entry-datecol {
    flex-shrink: 0;
    width: 4.5rem;
    text-align: right;
    line-height: 1.3;
}

.landing-terms-entry-dateline {
    display: block;
    font-weight: 800;
    font-size: 0.76rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.landing-terms-entry-time {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
}

.landing-terms-entry-main {
    min-width: 0;
    flex: 1;
}

.landing-terms-entry-main-inner--split {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.landing-terms-entry-textblock {
    min-width: 0;
    flex: 1;
}

.landing-terms-entry-media {
    flex-shrink: 0;
    width: 36%;
    max-width: 132px;
}

.landing-terms-thumb-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    line-height: 0;
}

.landing-terms-thumb-link:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.landing-terms-thumb-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 104px;
    object-fit: cover;
    vertical-align: middle;
}

@media (max-width: 420px) {
    .landing-terms-entry-main-inner--split {
        flex-direction: column;
    }

    .landing-terms-entry-media {
        width: 100%;
        max-width: none;
    }

    .landing-terms-thumb-img {
        max-height: 200px;
    }
}

/* Flugplatz → Karte: einfacher Link, hellblau, ohne Unterstreichung */
.landing-terms-map-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: #7ebfcf;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.landing-terms-map-link:hover,
.landing-terms-map-link:focus-visible {
    color: #9ad4e8;
    text-decoration: none;
}

.landing-terms-entry-title {
    margin: 0 0 3px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.landing-terms-entry-loc {
    margin: 0 0 3px;
    font-size: 0.8rem;
    line-height: 1.35;
}

.landing-terms-entry-desc {
    margin: 6px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.landing-terms-entry-interest {
    margin: 0 0 4px;
    font-size: 0.76rem;
    line-height: 1.35;
}

.landing-terms-entry-actions {
    margin-top: 0;
}

.landing-terms-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}

.landing-terms-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .landing-terms-entry:not(.calendar-page-event-item):not(.landing-terms-mevent--calendar-row),
    .landing-terms-mevent-body.landing-terms-entry:not(.landing-terms-mevent--calendar-row) {
        flex-direction: column;
        gap: 6px;
    }

    .landing-terms-entry:not(.calendar-page-event-item):not(.landing-terms-mevent--calendar-row) .landing-terms-entry-datecol,
    .landing-terms-mevent-body:not(.landing-terms-mevent--calendar-row) .landing-terms-entry-datecol {
        text-align: left;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 10px;
    }

    .landing-terms-entry:not(.calendar-page-event-item):not(.landing-terms-mevent--calendar-row) .landing-terms-entry-datecol.landing-terms-datecol--stack {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        align-self: stretch;
        max-width: none;
        width: 100%;
    }

    .landing-terms-entry:not(.calendar-page-event-item):not(.landing-terms-mevent--calendar-row).landing-terms-entry--with-image > .landing-terms-entry-datecol.landing-terms-datecol--stack {
        width: 122px;
        min-width: 122px;
        max-width: 122px;
        align-self: flex-start;
    }

    .landing-terms-entry.landing-terms-entry--datecol-stack {
        gap: 12px;
    }

    .landing-terms-entry-time {
        margin-top: 0;
    }

    .landing-terms-body--mobile .landing-terms-entry-title {
        font-size: 0.86rem;
    }

    .landing-terms-body--mobile .landing-terms-entry-loc,
    .landing-terms-body--mobile .landing-terms-entry-interest {
        font-size: 0.74rem;
    }

    .landing-terms-card {
        padding: 12px 12px;
    }

    .landing-terms-head {
        padding-bottom: 8px;
    }
}

.admin-calendar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.calendar-import-help {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    overflow-x: auto;
    line-height: 1.45;
}

.calendar-import-textarea {
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}

.calendar-admin-form .row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.calendar-admin-form .row-2-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 640px) {
    .calendar-admin-form .row-2,
    .calendar-admin-form .row-2-inner {
        grid-template-columns: 1fr;
    }
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin: 8px 0 14px;
}
.digest-check-row {
    border: 1px solid rgba(61, 97, 136, 0.75);
    border-radius: 10px;
    background: rgba(15, 28, 51, 0.42);
    padding: 9px 11px;
    margin: 6px 0 10px;
}
.digest-checkbox-inline {
    margin: 0 !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}
.digest-checkbox-inline input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
}
.digest-checkbox-inline span {
    display: block;
    line-height: 1.3;
}

.weekly-digest-form {
    max-width: 100%;
}

.weekly-digest-grid {
    display: grid;
    grid-template-columns: minmax(320px, 680px);
    gap: 12px;
}

.weekly-digest-main input[type="email"] {
    width: 100%;
}

.weekly-digest-option-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
}

.weekly-digest-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(74, 121, 165, 0.75);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18, 43, 73, 0.75) 0%, rgba(13, 32, 56, 0.9) 100%);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.weekly-digest-option:hover {
    border-color: rgba(115, 181, 226, 0.85);
    box-shadow: 0 6px 18px rgba(4, 16, 31, 0.35);
}

.weekly-digest-option input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--orange);
}

.weekly-digest-option span {
    display: block;
}

.weekly-digest-option strong {
    display: block;
    font-size: 0.98rem;
    color: #f1f6ff;
    margin-bottom: 2px;
}

.weekly-digest-option small {
    display: block;
    color: #b9cce4;
    line-height: 1.35;
}

.weekly-digest-actions {
    margin-top: 12px;
}

.weekly-digest-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
}

.weekly-digest-preview-pane h3 {
    margin: 4px 0 8px;
    font-size: 1rem;
}

.weekly-digest-preview-pane pre,
.weekly-digest-preview-html {
    margin: 0;
    border: 1px solid rgba(74, 121, 165, 0.6);
    border-radius: 10px;
    background: rgba(11, 27, 47, 0.85);
    padding: 12px;
}

.weekly-digest-preview-html {
    max-height: 520px;
    overflow: auto;
}

.weekly-digest-preview-frame {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
}

@media (max-width: 900px) {
    .weekly-digest-option-grid,
    .weekly-digest-preview-grid {
        grid-template-columns: 1fr;
    }

    .weekly-digest-grid {
        grid-template-columns: 1fr;
    }
}

.inline-form {
    display: inline;
}

/* Strecken-Inspiration */
.flight-tracker-filter-card .h2-compact {
    margin: 0 0 4px;
    font-size: 1.12rem;
}

.flight-tracker-filter-hint {
    margin: 0 0 10px;
    font-size: 0.88rem;
    max-width: 44rem;
    line-height: 1.45;
}

.flight-tracker-map-card .section-head {
    margin-bottom: 6px;
}

.flight-tracker-map-card .section-head h2 {
    margin-bottom: 0.08rem;
}

.flight-tracker-aircraft-wrap {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.flight-tracker-aircraft-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.flight-tracker-aircraft-bulk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flight-tracker-aircraft-bulk .button.button-sm {
    background: rgba(94, 189, 198, 0.26);
    color: #ffffff;
    border: 2px solid rgba(148, 228, 236, 0.85);
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.45), 0 2px 8px rgba(0, 0, 0, 0.22);
    font-weight: 700;
    border-radius: 10px;
}

.flight-tracker-aircraft-bulk .button.button-sm:hover {
    background: rgba(94, 189, 198, 0.42);
    color: #ffffff;
    border-color: rgba(200, 248, 255, 0.95);
}

.flight-tracker-aircraft-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.flight-tracker-aircraft-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 228, 236, 0.65);
    border-left-width: 4px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.flight-tracker-aircraft-chip:has(input:checked) {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-left-width: 4px;
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.55),
        0 3px 14px rgba(245, 122, 70, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.flight-tracker-aircraft-chip:has(input:not(:checked)) {
    background: rgba(94, 189, 198, 0.26);
    color: #ffffff;
    border: 2px solid rgba(148, 228, 236, 0.85);
    border-left-width: 4px;
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.flight-tracker-aircraft-chip input {
    width: auto;
    margin: 0;
    accent-color: var(--orange);
}

.flight-tracker-aircraft-chip:hover {
    filter: brightness(1.06);
}

.flight-tracker-aircraft-chip:has(input:checked):hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%);
}

.flight-tracker-slider-row {
    margin-bottom: 12px;
}

.flight-tracker-slider-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.flight-tracker-slider {
    width: 100%;
    max-width: 28rem;
    height: 8px;
    border-radius: 4px;
    accent-color: var(--teal);
    cursor: pointer;
}

.flight-tracker-form-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flight-tracker-status-line {
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.flight-tracker-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
}

.flight-tracker-hero-copy {
    flex: 1 1 280px;
    min-width: 0;
}

.flight-tracker-hero-copy h1 {
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.flight-tracker-lead {
    margin: 0;
    max-width: 40rem;
    line-height: 1.48;
    font-size: 0.95rem;
}

.flight-tracker-hero-art {
    flex: 0 0 auto;
    margin-left: auto;
}

.flight-tracker-hero-img {
    display: block;
    max-width: min(100%, 320px);
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.flight-tracker-form .flight-tracker-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    margin-bottom: 14px;
}

@media (max-width: 820px) {
    .flight-tracker-form .flight-tracker-fields {
        grid-template-columns: 1fr;
    }

    .flight-tracker-hero-art {
        margin-left: 0;
    }
}

.flight-tracker-status {
    align-self: center;
}

.flight-tracker-map {
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--line);
}

/* Fix: Carto Voyager, für dunkles UI abgedunkelt */
.flight-tracker-map--dim-voyager .leaflet-tile-pane {
    filter: brightness(0.5) contrast(1.12) saturate(0.9);
}

.flight-tracker-map--bg-topo {
    background: #252830;
}

/* Leaflet auf dunkler Karte (Strecken-Inspiration) */
.flight-tracker-map .leaflet-control-attribution {
    background: rgba(22, 42, 68, 0.92);
    color: rgba(240, 216, 176, 0.5);
    font-size: 10px;
    line-height: 1.35;
    max-width: 100%;
    white-space: normal;
}

.flight-tracker-map .leaflet-control-attribution a {
    color: var(--link);
    text-decoration: none;
}

.flight-tracker-map .leaflet-control-attribution a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.flight-tracker-map .leaflet-bar {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.flight-tracker-map .leaflet-bar a {
    background: var(--panel-soft-2);
    color: var(--text);
    border-color: var(--line);
    width: 34px;
    height: 34px;
    line-height: 34px;
}

.flight-tracker-map .leaflet-bar a:hover {
    background: var(--panel-soft);
    color: var(--cream);
}

.flight-tracker-map .leaflet-popup-content-wrapper {
    background: var(--panel);
    color: var(--text);
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.flight-tracker-map .leaflet-popup-content {
    margin: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.flight-tracker-map .leaflet-popup-tip {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: none;
}

.flight-tracker-map .leaflet-popup-close-button {
    color: var(--muted);
    padding: 6px 8px 0 0;
}

.flight-tracker-map .leaflet-popup-close-button:hover {
    color: var(--cream);
}

.flight-tracker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
}

.flight-tracker-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.42fr) minmax(0, 1fr) minmax(0, 0.52fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    justify-items: start;
    text-align: left;
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-weight: 400;
    cursor: pointer;
    white-space: normal;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transform: none;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

@media (max-width: 767px) {
    .flight-tracker-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .flight-tracker-list-item {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .flight-tracker-list-item {
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
        row-gap: 4px;
    }

    .flight-tracker-list-item .flight-tracker-col--route {
        grid-column: 1 / -1;
    }
}

.flight-tracker-list-item:hover {
    border-color: rgba(240, 216, 176, 0.22);
    background-color: var(--panel-soft-2);
    transform: none;
    box-shadow: none;
}

.flight-tracker-list-item:focus-visible {
    outline: 2px solid rgba(69, 164, 173, 0.55);
    outline-offset: 2px;
}

.flight-tracker-list-item--active {
    border-color: rgba(69, 164, 173, 0.45);
    background: rgba(69, 164, 173, 0.1);
    box-shadow: 0 0 0 1px rgba(69, 164, 173, 0.2);
}

.flight-tracker-profile {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.flight-tracker-profile-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.flight-tracker-profile-hint {
    font-size: 0.86rem;
    margin: 0 0 12px;
    line-height: 1.45;
}

.flight-tracker-profile-hint code {
    font-size: 0.9em;
}

.flight-tracker-profile-canvas-wrap {
    width: 100%;
    max-width: none;
}

.flight-tracker-profile-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.flight-tracker-col {
    min-width: 0;
    text-align: left;
    justify-self: stretch;
}

.flight-tracker-col--route {
    font-weight: 600;
    color: var(--text);
}

.flight-tracker-col--reg,
.flight-tracker-col--dist,
.flight-tracker-col--date {
    color: var(--muted);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
    .flight-tracker-list-item {
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
    }

    .flight-tracker-list-item .flight-tracker-col--route {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .flight-tracker-list-item {
        grid-template-columns: 1fr;
    }

    .flight-tracker-list-item .flight-tracker-col--route {
        grid-column: 1;
    }
}

/* Admin: OpenSky Import — Quellenliste */
#opensky-sources,
#opensky-add {
    scroll-margin-top: 88px;
}

.opensky-sources-card .opensky-sources-head {
    margin-bottom: 14px;
}

.opensky-sources-title {
    margin: 0 0 4px;
}

.opensky-sources-sub {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.opensky-sources-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: var(--panel-soft);
}

.opensky-sources-empty-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.opensky-sources-empty-link:hover {
    text-decoration-thickness: 2px;
}

.opensky-sources-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opensky-source-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.opensky-source-body {
    flex: 1;
    min-width: min(100%, 220px);
}

.opensky-source-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 8px;
}

.opensky-source-icao code {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.opensky-source-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.opensky-source-status--on {
    background: rgba(69, 164, 173, 0.2);
    color: #2d8a92;
    border: 1px solid rgba(69, 164, 173, 0.35);
}

.opensky-source-status--off {
    background: rgba(120, 120, 130, 0.12);
    color: var(--muted);
    border: 1px solid var(--line);
}

.opensky-source-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.opensky-source-label {
    font-weight: 600;
    color: var(--text);
}

.opensky-source-label--empty {
    font-weight: 500;
}

.opensky-source-reg {
    font-variant-numeric: tabular-nums;
}

.opensky-source-reg-k {
    margin-right: 4px;
    font-size: 0.82rem;
}

.opensky-source-created {
    font-size: 0.82rem;
}

.opensky-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.opensky-source-form {
    margin: 0;
    display: inline-flex;
}

.opensky-source-form .button-sm {
    white-space: nowrap;
}

@media (max-width: 560px) {
    .opensky-source-item {
        flex-direction: column;
        align-items: stretch;
    }

    .opensky-source-actions {
        padding-top: 4px;
        border-top: 1px solid var(--line);
    }
}

/* --- Footer & Rechtliches --- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(15, 28, 51, 0.35), var(--bg-page));
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.site-footer-copy {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.footer-legal a {
    font-weight: 600;
    font-size: 0.92rem;
}

/* Cookie-Hinweis (fix unten) */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 28, 51, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
}

.cookie-consent-text {
    flex: 1 1 280px;
    min-width: 0;
}

.cookie-consent-text strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
}

.cookie-consent-text a {
    font-weight: 600;
}

.cookie-consent-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.cookie-consent-open .page-shell {
    padding-bottom: calc(34px + 120px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 560px) {
    .cookie-consent-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* Rechtstexte */
.legal-page h1 {
    margin-top: 0;
}

.legal-lead {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.55;
}

.legal-section {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-section h2 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.legal-section p,
.legal-section ul {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.legal-section ul {
    padding-left: 1.2rem;
}

.legal-section li {
    margin: 0.35rem 0;
}

.legal-last-updated {
    margin-top: 1.5rem !important;
}

/* Beiträge */
.post-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 18px;
}
.post-search-input {
    min-width: 240px;
    max-width: 340px;
}
.post-filter-row .post-filter-btn,
.post-filter-row [data-filter-clear="1"] {
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(127, 210, 218, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
    font-weight: 700;
    transition: all .12s ease;
}
.post-filter-row .button.is-active,
.post-filter-row .post-filter-btn.is-active {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%) !important;
    color: var(--btn-on-accent) !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.6),
        0 3px 14px rgba(245, 122, 70, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    font-weight: 700;
}
.post-filter-row .post-filter-btn:not(.is-active),
.post-filter-row [data-filter-clear="1"]:not(.is-active) {
    opacity: 1;
}
.post-filter-row .post-filter-btn:not(.is-active):hover,
.post-filter-row [data-filter-clear="1"]:not(.is-active):hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 50%, var(--teal-deep) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(180, 235, 242, 0.75) !important;
}
.post-filter-row .post-filter-btn.is-active:hover,
.post-filter-row [data-filter-clear="1"].is-active:hover {
    background: linear-gradient(145deg, #ff8f5c 0%, var(--orange) 50%, var(--orange-dark) 100%) !important;
    color: var(--btn-on-accent) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 0 0 2px rgba(245, 122, 70, 0.72),
        0 4px 16px rgba(245, 122, 70, 0.48),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.post-created-date {
    margin: 0 0 8px;
    font-size: 0.86rem;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.post-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    background: var(--panel);
}

.post-card h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.post-meta {
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-airport-link {
    margin: 8px 0;
}

.post-label-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.post-label-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.04);
}
.post-label-chip-btn {
    cursor: pointer;
}

.post-form {
    display: grid;
    gap: 10px;
}

.post-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.post-label-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.post-label-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal-deep) 55%, #1f4d52 100%);
    color: #ffffff;
    border: 1px solid rgba(127, 210, 218, 0.55);
    box-shadow: 0 0 0 1px rgba(15, 28, 51, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    font-size: 0.86rem;
    line-height: 1.2;
}
.post-label-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.post-label-toggle.is-on {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--btn-on-accent);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(245, 122, 70, 0.45),
        0 2px 8px rgba(245, 122, 70, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.post-body {
    line-height: 1.6;
    margin-top: 10px;
}
.post-body img,
.post-comment-body img {
    max-width: min(100%, 760px);
    height: auto;
    margin: 10px 0;
}
.post-body figure.image,
.post-comment-body figure.image {
    max-width: min(100%, 760px);
    margin: 10px 0;
}
.post-body figure.image.image-style-align-center,
.post-comment-body figure.image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}
.post-body figure.image.image-style-align-left,
.post-comment-body figure.image.image-style-align-left {
    margin-right: auto;
}
.post-body figure.image.image-style-align-right,
.post-comment-body figure.image.image-style-align-right {
    margin-left: auto;
}
.post-body .image-style-align-left,
.post-comment-body .image-style-align-left {
    float: left;
    margin: 10px 14px 10px 0;
}
.post-body .image-style-align-right,
.post-comment-body .image-style-align-right {
    float: right;
    margin: 10px 0 10px 14px;
}

.post-comment-form {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.post-comment-body {
    line-height: 1.6;
}

.note-editor.note-frame {
    border: 1px solid #24405e;
    background: #0f1c33;
    color: #e5eefc;
}
.note-editor.note-frame .note-toolbar {
    background: #162a44;
    border-bottom: 1px solid #24405e;
}
.note-editor.note-frame .note-toolbar .note-btn {
    background: #1a2f4b;
    border-color: #2f4f73;
    color: #e5eefc;
}
.note-editor.note-frame .note-toolbar .note-btn i,
.note-editor.note-frame .note-toolbar .note-btn span {
    color: #e5eefc;
}
.note-editor.note-frame .note-toolbar .note-btn:hover,
.note-editor.note-frame .note-toolbar .note-btn:focus {
    background: #24405e;
    color: #ffffff;
}
.note-popover .popover-content,
.note-modal-content,
.note-dropdown-menu {
    background: #162a44;
    color: #e5eefc;
    border-color: #24405e;
}
.note-modal-content .modal-header,
.note-modal-content .modal-footer {
    background: #162a44;
    border-color: #24405e;
}
.note-modal-content .modal-title,
.note-modal-content label,
.note-modal-content .note-form-label {
    color: #e5eefc;
}
.note-modal-content input,
.note-modal-content textarea,
.note-modal-content select,
.note-modal-content .note-input,
.note-modal-content .form-control {
    background: #0f1c33;
    color: #e5eefc;
    border: 1px solid #2f4f73;
}
.note-modal-content input:focus,
.note-modal-content textarea:focus,
.note-modal-content select:focus,
.note-modal-content .form-control:focus {
    border-color: #5f86b3;
    box-shadow: 0 0 0 2px rgba(95, 134, 179, 0.3);
}
.note-modal-content .btn-primary,
.note-popover .btn-primary {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}
.note-modal-content .btn-secondary,
.note-popover .btn-secondary {
    background: #24405e;
    border-color: #2f4f73;
    color: #e5eefc;
}
.note-modal,
.note-modal .modal-content,
.note-modal .note-modal-content {
    background: #0f1c33 !important;
    color: #e5eefc !important;
}
.note-modal .modal-content {
    border: 1px solid #2f4f73 !important;
}
.note-modal .modal-header,
.note-modal .modal-body,
.note-modal .modal-footer {
    background: #0f1c33 !important;
    color: #e5eefc !important;
    border-color: #24405e !important;
}
.note-modal .modal-title,
.note-modal .note-form-label,
.note-modal label,
.note-modal .custom-control-label,
.note-modal .form-check-label {
    color: #e5eefc !important;
}
.note-modal .modal-body a,
.note-modal .modal-body small,
.note-modal .note-hint-item {
    color: #bcd3ef !important;
}
.note-modal .form-control,
.note-modal input,
.note-modal textarea,
.note-modal select {
    background: #162a44 !important;
    color: #e5eefc !important;
    border: 1px solid #2f4f73 !important;
}
.note-modal .form-control::placeholder,
.note-modal input::placeholder,
.note-modal textarea::placeholder {
    color: #94b3d6 !important;
}
.note-modal .form-control:focus,
.note-modal input:focus,
.note-modal textarea:focus,
.note-modal select:focus {
    border-color: #5f86b3 !important;
    box-shadow: 0 0 0 2px rgba(95, 134, 179, 0.3) !important;
}
.note-modal .btn-primary,
.note-modal .note-btn-primary {
    background: linear-gradient(145deg, var(--orange) 0%, var(--orange-dark) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}
.note-modal .btn-primary:hover,
.note-modal .note-btn-primary:hover {
    filter: brightness(1.05) !important;
}
.note-modal .btn-secondary,
.note-modal .note-btn-secondary {
    background: #24405e !important;
    border: 1px solid #2f4f73 !important;
    color: #e5eefc !important;
}
.note-modal .close,
.note-modal button.close {
    color: #e5eefc !important;
    opacity: 0.9 !important;
}
.note-dropdown-menu .dropdown-item {
    color: #e5eefc;
}
.note-dropdown-menu .dropdown-item:hover {
    background: #24405e;
    color: #ffffff;
}
.note-editor.note-frame .note-editing-area .note-editable {
    background: #0f1c33;
    color: #e5eefc;
    min-height: 180px;
}
.note-editor .note-editable img {
    max-width: 100%;
    height: auto;
}

.ck.ck-editor {
    --ck-color-base-background: #0f1c33;
    --ck-color-toolbar-background: #162a44;
    --ck-color-toolbar-border: #24405e;
    --ck-color-base-border: #24405e;
    --ck-color-text: #e5eefc;
    --ck-color-button-default-hover-background: #1d3553;
    --ck-color-button-default-active-background: #26466a;
    --ck-color-button-on-background: #26466a;
    --ck-color-button-on-color: #ffffff;
    --ck-color-dropdown-panel-background: #162a44;
    --ck-color-list-background: #162a44;
    --ck-color-panel-background: #162a44;
    --ck-color-input-background: #0f1c33;
    --ck-color-input-text: #e5eefc;
    --ck-color-input-border: #2f4f73;
}
.ck.ck-editor .ck-toolbar,
.ck.ck-editor .ck-toolbar__items,
.ck.ck-editor .ck-editor__main > .ck-editor__editable {
    background: #0f1c33;
    color: #e5eefc;
    border-color: #24405e;
}
.ck.ck-editor .ck-editor__main > .ck-editor__editable {
    min-height: 180px;
}
.ck.ck-content img,
.ck-editor__editable img {
    max-width: 100%;
    height: auto;
}

.post-comments-list {
    display: grid;
    gap: 10px;
}

.post-comment-item {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.post-files-block {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.post-video-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.post-video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.post-video-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-files-block h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.post-existing-files {
    display: grid;
    gap: 6px;
}

.post-admin-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 10px 0;
}

.post-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 780px) {
    .post-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .post-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .post-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .post-body img,
    .post-comment-body img {
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .post-list {
        grid-template-columns: 1fr;
    }
    .post-airport-link,
    .post-label-row,
    .post-excerpt,
    .post-created-date {
        display: none;
    }
    .post-card {
        padding: 10px;
    }
    .post-card h2 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .post-meta {
        margin-bottom: 0;
    }
    .post-search-input {
        min-width: 0;
        width: 100%;
    }
    .post-pagination {
        justify-content: space-between;
    }
    .post-video-grid {
        grid-template-columns: 1fr;
    }
}