/* ============================================================
   EVENTHUB – Instagram-Style Dark Mode
   ============================================================ */

:root {
    --bg: #000;
    --bg-secondary: #111;
    --bg-card: #1a1a1a;
    --bg-sheet: #1a1a1a;
    --bg-hover: #222;
    --text: #f5f5f5;
    --text-secondary: #ccc;
    --text-muted: #888;
    --border: #262626;
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --like: #ed4956;
    --star: #f39c12;
    --star-empty: #444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --header-h: 52px;
    --bottom-h: 56px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-h) + 16px);
    padding-top: var(--header-h);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 4px;
}

.header-btn {
    background: none;
    border: none;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.header-btn:hover,
.header-btn:focus-visible {
    background: var(--bg-hover);
    outline: none;
}

/* ============================================================
   STORIES
   ============================================================ */
.stories-bar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.stories-inner {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.stories-inner::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.15s;
}

.story-item:active {
    transform: scale(0.93);
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #fd79a8, #fdcb6e);
    padding: 2.5px;
}

.story-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-ring-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.initials {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.story-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    max-width: 68px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

/* ============================================================
   FEED
   ============================================================ */
.feed {
    max-width: 600px;
    margin: 0 auto;
    padding: 90px 0 0;
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.feed-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feed-empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feed-empty p {
    font-size: 0.85rem;
}

/* ============================================================
   EVENT CARD
   ============================================================ */
.event-card {
    max-width: 470px;
    margin: 0 auto 20px;
    width: 100%;
    animation: cardIn 0.4s ease-out both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 10px;
    cursor: pointer;
}

.card-venue {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-venue-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-venue-name span {
    font-weight: 400;
    color: var(--text-muted);
}

.card-venue-dist {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.card-more {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.card-more:hover {
    background: var(--bg-hover);
}

/* Image */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}

/* Actions */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
}

.card-actions-left {
    display: flex;
    gap: 4px;
}

.card-action-btn {
    background: none;
    border: none;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}

.card-action-btn:hover {
    background: var(--bg-hover);
}

.card-action-btn.liked svg {
    fill: var(--like);
    stroke: var(--like);
}

.card-rating {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    gap: 1px;
    font-size: 0.85rem;
}

.star {
    color: var(--star-empty);
}

.star.filled {
    color: var(--star);
}

.star.half {
    color: var(--star);
    opacity: 0.7;
}

/* Info */
.card-info {
    padding: 0 4px;
}

.card-date {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    cursor: pointer;
    line-height: 1.3;
}

.card-title:hover {
    color: var(--accent);
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   BOTTOM SHEETS
   ============================================================ */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
}

.bottom-sheet.active {
    pointer-events: all;
    visibility: visible;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.bottom-sheet.active .sheet-backdrop {
    opacity: 1;
}

.sheet-content {
    position: relative;
    background: var(--bg-sheet);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    -webkit-overflow-scrolling: touch;
}

.bottom-sheet.active .sheet-content {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 8px auto;
    flex-shrink: 0;
}

.sheet-header {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 8px;
}

.sheet-close {
    background: var(--bg-hover);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.sheet-body {
    padding: 0 16px 24px;
}

/* Detail Flyer */
.detail-flyer {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 16px;
}

.detail-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.detail-venue-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 16px;
}

.detail-venue-row:active {
    background: var(--bg-hover);
}

.detail-venue-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.detail-venue-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-venue-info {
    flex: 1;
    min-width: 0;
}

.detail-venue-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-venue-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-venue-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

.detail-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

.detail-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border: none;
}

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

.detail-btn.primary:active {
    background: var(--accent-hover);
}

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

.detail-btn.secondary:active {
    background: var(--bg-hover);
}

/* ============================================================
   VENUE SHEET
   ============================================================ */
.venue-banner {
    width: 100%;
    height: 160px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: -30px;
    position: relative;
    background: var(--bg-secondary);
}

.venue-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--bg-sheet);
    overflow: hidden;
    margin-left: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.venue-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-info {
    padding: 0 16px 12px;
}

.venue-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.venue-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.rating-num {
    font-weight: 700;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.venue-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
}

.venue-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin: 0 16px 12px;
}

.venue-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.venue-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.venue-upcoming,
.venue-gallery {
    padding: 0 16px;
}

.venue-upcoming-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.venue-upcoming-item:last-child {
    border-bottom: none;
}

.venue-upcoming-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.upc-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.upc-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 2px 0;
}

.upc-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.venue-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.venue-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.venue-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-h);
    background: rgba(0,0,0,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 100;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
    padding: 4px 0;
    position: relative;
}

.nav-item span {
    font-size: 0.6rem;
}

.nav-item.active {
    color: var(--text);
}

.nav-item.active svg {
    stroke-width: 2.5;
}

.nav-item:active {
    opacity: 0.7;
}

.nav-profile {
    position: relative;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.nav-item.active .nav-avatar {
    border-color: var(--accent);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 150;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0 12px;
    height: 44px;
    color: var(--text-muted);
}

.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    height: 100%;
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
}

.search-body {
    padding: 20px 16px;
    flex: 1;
}

.search-radius {
    margin-bottom: 24px;
}

.search-radius label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.search-radius input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.search-radius input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
}

.search-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:active {
    background: var(--accent-hover);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background: var(--bg-sheet);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.modal-body input[type="email"],
.modal-body input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.modal-body input:focus {
    border-color: var(--accent);
}

.form-msg {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: none;
}

.form-msg.error {
    background: rgba(237, 73, 86, 0.15);
    color: var(--like);
    display: block;
}

.form-msg.success {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
    display: block;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
}

.modal-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-h) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    animation: toastIn 0.3s ease-out;
    pointer-events: all;
    width: 100%;
}

.toast.error {
    background: rgba(237, 73, 86, 0.25);
}

.toast.success {
    background: rgba(0, 200, 83, 0.2);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   LOADER
   ============================================================ */
.feed-loader {
    display: none;
    justify-content: center;
    padding: 40px;
}

.feed-loader.active {
    display: flex;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   HIDDEN
   ============================================================ */
.hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
    body {
        padding-top: 58px;
    }
    .header-inner {
        padding: 0 24px;
    }
    .feed {
        padding: 0;
        margin-top: 20px;
    }
    .event-card {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0 12px 12px;
    }
    .card-header {
        padding: 12px 4px 10px;
    }
}

/* ============================================================
   MOBILES MENÜ
   ============================================================ */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--bg-sheet);
    z-index: 251;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.menu-panel.active {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.menu-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.menu-close {
    background: none;
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.menu-close:hover {
    background: var(--bg-hover);
}

.menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.1s;
}

.menu-item:active {
    background: var(--bg-hover);
}

.menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.menu-item-admin {
    color: var(--primary);
    font-weight: 600;
}

.menu-divider {
    border-top: 1px solid var(--border);
    margin: 8px 16px;
}

.menu-btn {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   MEHR LESEN (Read More)
   ============================================================ */
.card-desc-short {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-readmore {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    padding: 4px 0 0;
    transition: opacity 0.1s;
}

.card-readmore:active {
    opacity: 0.6;
}

/* ============================================================
   HEADER ANPASSUNG
   ============================================================ */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.menu-btn:hover,
.menu-btn:focus-visible {
    background: var(--bg-hover);
    outline: none;
}

/* ============================================================
   LEGAL MODAL (Impressum etc)
   ============================================================ */
#legalModal .modal-body {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-height: 60vh;
    overflow-y: auto;
}
