/* ============================================================
   ardda.de - Komplettes Stylesheet (sauber, keine Duplikate)
   Alle Etappen + Mobile-Menü + Netzwerk-Hintergrund + Marktplatz
   ============================================================ */

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

:root {
    --color-primary: #dc2626;
    --color-primary-dark: #991b1b;
    --color-primary-light: #fee2e2;
    --color-accent: #f59e0b;
    --color-bg: #ffffff;
    --color-bg-soft: #fafafa;
    --color-text: #18181b;
    --color-text-muted: #71717a;
    --color-text-light: #a1a1aa;
    --color-border: #e4e4e7;
    --color-border-light: #f4f4f5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-red: 0 8px 24px rgba(220, 38, 38, 0.25);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: linear-gradient(135deg, #ffffff 0%, #fef7f7 50%, #ffffff 100%);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== Animationen ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); } 50% { box-shadow: 0 0 0 20px rgba(220, 38, 38, 0); } }
@keyframes bounce-in { 0% { opacity: 0; transform: scale(0.5); } 60% { opacity: 1; transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ===== Netzwerk-Canvas Hintergrund ===== */
.network-bg {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}
.site-header, .site-main, .site-footer {
    position: relative;
    z-index: 2;
}

/* ===== Header ===== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}
.logo span { color: var(--color-primary); }

/* ===== Navigation Desktop ===== */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.main-nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* ===== Hamburger-Button ===== */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    z-index: 110;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.nav-toggle:hover { background: var(--color-primary-light); }
.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--color-primary);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--color-primary);
}

/* ===== Overlay (Hintergrund hinter Mobile-Menü) ===== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
    display: block;
    opacity: 1;
}

/* ===== Mobile-Navigation (Slide-In) ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header-inner { height: 64px; }
    .logo { font-size: 22px; }

    .main-nav {
        position: fixed;
        top: 64px;
        right: -100%;
        bottom: 0;
        width: 85%;
        max-width: 360px;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 100;
    }
    .main-nav.is-open { right: 0; }

    .main-nav a {
        padding: 16px 24px;
        font-size: 17px;
        font-weight: 500;
        border-radius: 0;
        border-left: 4px solid transparent;
        border-bottom: 1px solid var(--color-border-light);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .main-nav a:hover, .main-nav a:active {
        background: var(--color-primary-light);
        border-left-color: var(--color-primary);
        color: var(--color-primary-dark);
    }
    .main-nav a.btn {
        margin: 16px 24px 8px;
        padding: 14px 20px;
        border-radius: var(--radius);
        text-align: center;
        justify-content: center;
        border-left: none;
        border-bottom: none;
    }
    .main-nav a.btn-primary {
        background: var(--color-primary);
        color: white;
    }
    .main-nav a.btn-ghost {
        border: 1px solid var(--color-border);
    }

    .nav-msg-text { display: inline; }
    .nav-badge {
        position: static;
        margin-left: auto;
        animation: none;
    }
}
@media (min-width: 769px) {
    .nav-msg-text { display: none; }
    .nav-toggle, .nav-overlay { display: none !important; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}
.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}
.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}
.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
}
.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.btn-large { padding: 18px 36px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}
.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 32px;
}
.hero-search {
    max-width: 720px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 8px;
    background: white;
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-search input {
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    background: transparent;
}
.hero-search input:focus {
    outline: none;
    background: var(--color-bg-soft);
}
.hero-search button { padding: 14px 28px; }
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 600px;
    margin: 60px auto 0;
}
.hero-stat { text-align: center; }
.hero-stat-value {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.hero-stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ===== Sections ===== */
section.section { padding: 60px 0; position: relative; }
section.section-soft { background: var(--color-bg-soft); }
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}
.section-eyebrow {
    display: inline-block;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
}

/* ===== "So funktioniert's" Schritte ===== */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
    position: relative;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: var(--shadow-red);
}
.step-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 20px;
    font-size: 24px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--color-text-muted); font-size: 14px; }

/* ===== Branchen ===== */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.branch-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 24px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--color-primary);
    color: white;
}
.branch-icon { font-size: 28px; margin-bottom: 8px; display: block; }

/* ===== Unternehmen-Karten ===== */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.company-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    padding: 24px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}
.company-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.company-logo { margin-bottom: 16px; }
.company-logo img {
    width: 72px; height: 72px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    padding: 8px;
    background: white;
}
.logo-placeholder {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}
.company-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.company-meta { color: var(--color-text-muted); font-size: 13px; margin-bottom: 8px; }
.company-rating {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 14px;
}
.company-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
}

/* ===== Job-Liste ===== */
.job-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}
.job-list-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.job-list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.job-img {
    width: 100%;
    height: 150px;
    background: var(--color-bg-soft);
    overflow: hidden;
}
.job-img img { width: 100%; height: 100%; object-fit: cover; }
.job-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: linear-gradient(135deg, var(--color-primary-light), #fef3c7);
}
.job-list-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.job-list-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}
.job-list-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.job-list-desc {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 10px;
}
.job-budget {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
}
.job-tag {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
}

/* ===== Job-Detail ===== */
.job-detail { padding: 32px 0 64px; }
.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.job-detail-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}
.job-detail-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    margin-bottom: 20px;
}
.job-detail-header h1 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* ===== Bewerbungen ===== */
.application-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--color-border-light);
    margin-bottom: 12px;
}
.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.application-company {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
}
.application-company img {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: white;
    padding: 4px;
}
.proposed-price {
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}
.application-message {
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 14px;
}
.application-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Konversationsliste & Chat ===== */
.conv-list {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}
.conv-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
}
.conv-item:hover { background: var(--color-bg-soft); }
.conv-item.has-unread { background: var(--color-primary-light); }
.conv-avatar img {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: white;
    padding: 3px;
}
.conv-content { flex: 1; min-width: 0; }
.conv-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.conv-time {
    color: var(--color-text-muted);
    font-size: 11px;
    white-space: nowrap;
}
.conv-job {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 600;
}
.conv-preview {
    color: var(--color-text-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conv-unread {
    background: var(--color-primary);
    color: white;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    font-weight: 700;
    font-size: 11px;
}

.chat-page { padding: 32px 0; }
.chat-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 14px 22px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--color-border-light);
    border-bottom: none;
}
.chat-back { color: var(--color-text-muted); text-decoration: none; font-size: 13px; }
.chat-partner {
    display: flex;
    gap: 12px;
    align-items: center;
}
.chat-partner img {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--color-bg-soft);
    padding: 3px;
}
.chat-job {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-light);
    font-size: 12px;
}
.chat-messages {
    background: var(--color-bg-soft);
    border-left: 1px solid var(--color-border-light);
    border-right: 1px solid var(--color-border-light);
    padding: 20px;
    height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-message {
    display: flex;
    max-width: 75%;
}
.chat-message.mine { align-self: flex-end; }
.chat-message.theirs { align-self: flex-start; }
.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.5;
}
.chat-message.mine .chat-bubble {
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-message.theirs .chat-bubble {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    border-bottom-left-radius: 4px;
}
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-time { font-size: 10px; margin-top: 4px; opacity: 0.7; }
.chat-form {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 14px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--color-border-light);
    display: flex;
    gap: 10px;
}
.chat-form textarea {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    min-height: 50px;
}

/* ===== Nachrichten-Icon im Header ===== */
.nav-messages { position: relative; }
.nav-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===== Auth-Seiten ===== */
.auth-page {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.auth-container { max-width: 540px; margin: 0 auto; }
.auth-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.auth-header p { color: var(--color-text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}
.choice-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    text-align: center;
}
.choice-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}
.choice-icon { font-size: 48px; margin-bottom: 16px; }
.choice-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--color-text-muted);
}
.auth-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Formulare ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-weight: 600;
    font-size: 14px;
}
.form-group label small {
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: var(--color-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}
.form-checkbox label {
    display: flex;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.form-checkbox input[type=checkbox] {
    margin-top: 3px;
    width: 18px; height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.form-checkbox a { color: var(--color-primary); font-weight: 600; }
.form-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}
.form-meta a {
    color: var(--color-primary);
    font-size: 14px;
    text-decoration: none;
}

/* ===== Erfolgsseite ===== */
.auth-success { text-align: center; }
.success-icon {
    width: 80px; height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: bounce-in 0.7s ease-out;
}

/* ===== Dashboard ===== */
.dashboard {
    padding: 32px 0 64px;
    min-height: 75vh;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 18px;
    flex-wrap: wrap;
}
.dashboard-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 6px 0 4px;
}
.dashboard-header p { color: var(--color-text-muted); }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.dashboard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dash-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.dash-card-icon { font-size: 28px; margin-bottom: 10px; }
.dash-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dash-stat {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.dash-meta { font-size: 12px; color: var(--color-text-light); }
.dash-card-alert {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}
.dash-card-alert .dash-stat { color: var(--color-primary); }

.dashboard-actions { margin-bottom: 32px; }
.dashboard-actions h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.action-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}
.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.action-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.action-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.action-card p { font-size: 13px; color: var(--color-text-muted); }

/* ===== Status-Farben ===== */
.status-open { color: #10b981; font-weight: 700; }
.status-in_progress { color: #f59e0b; font-weight: 700; }
.status-completed { color: var(--color-text-muted); font-weight: 700; }

/* ===== Profile ===== */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}
.profile-side, .profile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.profile-section {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border-light);
}
.profile-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== Search-Page ===== */
.search-page { padding: 32px 0 64px; }
.search-header { text-align: center; margin-bottom: 28px; }
.search-header h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 6px 0; }
.search-form {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}
.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 8px;
}
.search-row input, .search-row select {
    border: none;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--color-bg-soft);
    font-size: 14px;
}
.result-count {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ===== Empty State ===== */
.empty {
    color: var(--color-text-muted);
    text-align: center;
    padding: 50px 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-border);
}
.empty-mini {
    padding: 14px;
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ===== Marktplatz ===== */
.marktplatz-hero {
    padding: 60px 0 40px;
    text-align: center;
}
.marktplatz-hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 8px 0 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.marktplatz-hero p {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.market-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.market-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    min-width: 130px;
}
.market-stat strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
}
.market-stat span {
    color: var(--color-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.market-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== Marktplatz-Banner auf Startseite ===== */
.market-banner {
    padding: 32px 0;
    position: relative;
}
.market-banner-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.2);
}
.market-banner-card .section-eyebrow {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
}
.market-banner-card h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 10px 0 6px;
    color: white;
}
.market-banner-card p {
    font-size: 16px;
    opacity: 0.95;
}
.market-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.market-banner-actions .btn {
    background: white;
    color: var(--color-primary);
}
.market-banner-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* ===== Filter-Tabs ===== */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    flex-wrap: wrap;
}
.filter-tab {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-tab:hover {
    background: var(--color-bg-soft);
    color: var(--color-text);
}
.filter-tab.active {
    background: var(--color-primary);
    color: white;
}
.filter-count {
    background: rgba(255,255,255,0.25);
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.filter-tab:not(.active) .filter-count {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ===== Tabelle ===== */
.user-table-wrap {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow-x: auto;
}
.user-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-table th, .user-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}
.user-table th {
    background: var(--color-bg-soft);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}
.row-blocked { background: #fee2e2; }

/* ===== Alert-Karten ===== */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.alert-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: var(--transition);
}
.alert-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.alert-card.alert-pending {
    border-left: 4px solid var(--color-primary);
}
.alert-card-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.alert-types { display: flex; gap: 6px; flex-wrap: wrap; }
.type-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.type-phone { background: #fee2e2; color: #991b1b; }
.type-email { background: #dbeafe; color: #1e40af; }
.type-address { background: #fef3c7; color: #92400e; }
.status-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-done { background: #d1fae5; color: #065f46; }
.alert-parties {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 12px;
}
.alert-job {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.alert-content {
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 13px;
    word-break: break-word;
}
.alert-detected {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}
.alert-detected code {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ===== Flash ===== */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-weight: 500;
    animation: bounce-in 0.5s ease-out;
}
.flash-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.flash-error { background: var(--color-primary-light); color: #991b1b; border-left: 4px solid var(--color-primary); }
.flash-info { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ===== Statische Seiten ===== */
.static-page {
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}
.static-page h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 28px;
}
.static-page h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
}
.static-page p, .static-page ul { margin-bottom: 14px; }
.static-page ul { padding-left: 22px; }

/* ===== Error-Seite ===== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--color-primary);
}

/* ===== Logo-Box (Profile) ===== */
.logo-box {
    width: 180px; height: 180px;
    margin: 0 auto 18px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-light);
}
.logo-placeholder-large {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    font-weight: 800;
}
.upload-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
    text-align: center;
}

/* ===== Galerie ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.gallery-public a {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.gallery-public img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Footer ===== */
.site-footer {
    background: #18181b;
    color: #a1a1aa;
    padding: 50px 0 24px;
    margin-top: auto;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}
.footer-brand strong {
    color: white;
    font-size: 20px;
    font-weight: 800;
}
.footer-brand strong span { color: var(--color-primary); }
.footer-brand p {
    margin-top: 10px;
    font-size: 13px;
}
.site-footer h4 {
    color: white;
    margin-bottom: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.site-footer a {
    display: block;
    color: #a1a1aa;
    text-decoration: none;
    padding: 5px 0;
    font-size: 13px;
}
.site-footer a:hover { color: var(--color-primary); }
.footer-copy {
    border-top: 1px solid #27272a;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #71717a;
}

/* ============================================================
   MOBILE OPTIMIERUNG (alles unter 768px)
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Header */
    .header-inner { height: 64px; }

    /* Hero */
    .hero { padding: 50px 0 36px; }
    .hero-search { grid-template-columns: 1fr; }
    .hero-stats { gap: 12px; }

    /* Sections */
    section.section { padding: 44px 0; }

    /* Dashboard */
    .dashboard-header { flex-direction: column; align-items: stretch; }
    .dashboard-header h1 { font-size: 24px; }
    .dashboard-grid, .dashboard-grid-4 { grid-template-columns: 1fr 1fr; }

    /* So funktioniert's */
    .how-it-works-grid { grid-template-columns: 1fr; }

    /* Profile */
    .profile-grid { grid-template-columns: 1fr; }

    /* Job-Detail */
    .job-detail-grid { grid-template-columns: 1fr; }
    .job-detail-side { position: static; }

    /* Search */
    .search-row { grid-template-columns: 1fr; }

    /* Auswahl */
    .choice-grid { grid-template-columns: 1fr; }

    /* Auth */
    .auth-card { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; }

    /* Marktplatz-Banner */
    .market-banner-card {
        padding: 28px 22px;
        flex-direction: column;
        text-align: center;
    }
    .market-banner-actions { justify-content: center; }

    /* Tabellen */
    .user-table { font-size: 12px; }
    .user-table th, .user-table td { padding: 9px 10px; }

    /* Alert-Parties auf Mobile gestapelt */
    .alert-parties { grid-template-columns: 1fr; gap: 6px; }
    .alert-parties > div:nth-child(2) { display: none; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Chat */
    .chat-form { flex-direction: column; }
    .chat-form button { width: 100%; }
    .chat-message { max-width: 85%; }

    /* Buttons größer für Touch */
    .btn { padding: 12px 22px; font-size: 14px; }
    .btn-large { padding: 14px 26px; font-size: 15px; }

    /* Mobile-Animation reduzieren */
    .network-bg { opacity: 0.6; }
}

@media (max-width: 480px) {
    .dashboard-grid, .dashboard-grid-4 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-inner { height: 60px; }
    .logo { font-size: 20px; }
}

@media (hover: none) {
    .branch-card:hover, .company-card:hover, .job-list-card:hover,
    .step-card:hover, .action-card:hover, .alert-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ============================================================
   FIX: Mobile-Menü startet UNTER Header
   ============================================================ */
@media (max-width: 768px) {
    /* Site-Header IMMER über dem Menü */
    .site-header {
        z-index: 105 !important;
        background: white !important;
    }

    /* Hamburger-Button bleibt sichtbar */
    .nav-toggle {
        z-index: 110 !important;
        position: relative;
    }

    /* Menü startet UNTER Header (top:64px) auf voller Breite */
    .main-nav {
        top: 64px !important;
        right: -100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 64px) !important;
        padding: 20px 0 !important;
        z-index: 100 !important;
    }

    .main-nav.is-open {
        right: 0 !important;
    }

    /* Overlay startet auch unter Header */
    .nav-overlay {
        top: 64px !important;
        z-index: 95 !important;
    }
}

@media (max-width: 480px) {
    .main-nav {
        top: 60px !important;
        height: calc(100vh - 60px) !important;
    }
    .nav-overlay {
        top: 60px !important;
    }
}
/* ============================================================
   Paket C - Cookie-Banner
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 720px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border-light);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-inner {
    padding: 24px 28px;
}

.cookie-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.cookie-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.cookie-option label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.cookie-option strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
}

.cookie-option small {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner-inner {
        padding: 20px;
    }
    .cookie-content h3 {
        font-size: 16px;
    }
    .cookie-actions {
        flex-direction: column;
    }
    .cookie-actions .btn {
        width: 100%;
    }
}
/* ============================================================
   Werbung / AdSense-Slots
   ============================================================ */

.ad-container {
    margin: 32px auto;
    max-width: 1100px;
    padding: 0 16px;
    text-align: center;
    min-height: 100px;
    position: relative;
}

.ad-label {
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Damit Anzeigen schön responsive sind */
.ad-container ins.adsbygoogle {
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    min-height: 90px;
}

/* Wenn AdSense nicht lädt (kein Consent oder geblockt) zeigen wir freundlichen Hinweis */
.ad-container:has(ins:empty) .ad-label {
    display: none;
}

/* Werbeflache zwischen Karten - Listen */
.ad-inline {
    grid-column: 1 / -1;
    margin: 16px 0;
}

/* Smaller Mobile-Anzeigen */
@media (max-width: 768px) {
    .ad-container {
        margin: 24px auto;
    }
}

/* Sidebar-Ad */
.ad-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .ad-sidebar {
        position: static;
    }
}

/* ============================================================
   FIX: Galerie-Lösch-Knopf sichtbar
   ============================================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-delete {
    position: absolute !important;
    top: 6px;
    right: 6px;
    margin: 0 !important;
    z-index: 10;
}

.gallery-delete button {
    background: rgba(220, 38, 38, 0.95) !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.gallery-delete button:hover {
    background: #991b1b !important;
    transform: scale(1.1);
}

/* Hover-Effekt aufs ganze Bild */
.gallery-item:hover img {
    opacity: 0.85;
    transform: scale(1.02);
    transition: all 0.2s ease;
}
/* ============================================================
   Business-Dashboard mit Sidebar
   ============================================================ */

.biz-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 76px);
    position: relative;
    z-index: 2;
}

/* ===== Sidebar ===== */
.biz-sidebar {
    background: linear-gradient(180deg, #0f172a, #0b1220);
    color: #cbd5e1;
    border-right: none;
    padding: 24px 16px;
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.biz-sidebar-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(148,163,184,0.10);
    border-radius: 12px;
    margin-bottom: 24px;
}

.biz-logo, .biz-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: white;
    border: 2px solid var(--color-border-light);
    flex-shrink: 0;
}
.biz-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 22px;
    font-weight: 800;
    border: none;
}

.biz-sidebar-brand {
    flex: 1;
    min-width: 0;
}
.biz-sidebar-brand strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.biz-badge-premium {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
}
.biz-badge-upgrade {
    display: inline-block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
}
.biz-badge-upgrade:hover { text-decoration: underline; }

/* Nav */
.biz-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.biz-nav-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 16px 12px 8px;
}
.biz-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.biz-nav-item:hover {
    background: rgba(56,189,248,0.12);
    color: #7dd3fc;
}
.biz-nav-item.active {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.biz-nav-item.active .biz-nav-icon { filter: brightness(1.5); }

.biz-nav-icon {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.biz-nav-badge {
    background: var(--color-primary);
    color: white;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}
.biz-nav-item.active .biz-nav-badge {
    background: white;
    color: var(--color-primary);
}
.biz-nav-logout { color: var(--color-text-muted); margin-top: 16px; }
.biz-nav-logout:hover { background: #fee2e2; color: var(--color-primary); }

/* ===== Main-Bereich ===== */
.biz-main {
    padding: 32px 24px 64px;
    max-width: 100%;
}
.biz-content {
    max-width: 1200px;
    margin: 0 auto;
}

.biz-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.biz-hero h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 6px 0 4px;
}
.biz-hero p { color: var(--color-text-muted); }

/* Stats */
.biz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.biz-stat-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--color-border-light);
    display: flex;
    gap: 14px;
    align-items: center;
    transition: all 0.2s ease;
}
.biz-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.biz-stat-primary {
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-light), white);
}
.biz-stat-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.biz-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    font-weight: 600;
}
.biz-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin: 4px 0;
}
.biz-stat-meta {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Sections */
.biz-section {
    margin-bottom: 32px;
}
.biz-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.biz-section-head h2 {
    font-size: 18px;
    font-weight: 700;
}

/* Action-Karten */
.biz-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.biz-action-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    transition: all 0.2s ease;
}
.biz-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.biz-action-icon {
    font-size: 26px;
    margin-bottom: 8px;
}
.biz-action-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.biz-action-card p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Liste */
.biz-list {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    overflow: hidden;
}
.biz-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border-light);
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s ease;
}
.biz-list-item:last-child { border-bottom: none; }
.biz-list-item:hover { background: var(--color-bg-soft); }
.biz-list-icon {
    width: 38px;
    height: 38px;
    background: var(--color-primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.biz-list-content { flex: 1; min-width: 0; }
.biz-list-content strong { display: block; font-size: 14px; }
.biz-list-content small { color: var(--color-text-muted); font-size: 12px; }

.biz-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.biz-tag-success { background: #d1fae5; color: #065f46; }
.biz-tag-grey { background: #e4e4e7; color: #71717a; }
.biz-tag-pending { background: #fef3c7; color: #92400e; }

/* Tipps */
.biz-tips {
    background: linear-gradient(135deg, var(--color-primary-light), #fef3c7);
    border-radius: 14px;
    padding: 24px;
}
.biz-tips h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.biz-tips ul {
    padding-left: 22px;
    line-height: 1.8;
    font-size: 14px;
}

/* ===== Mobile-Sidebar ===== */
.biz-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    z-index: 90;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}
.biz-sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.biz-sidebar-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.biz-sidebar-toggle.is-active span:nth-child(2) { opacity: 0; }
.biz-sidebar-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.biz-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 88;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.biz-sidebar-overlay.is-open {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .biz-layout {
        grid-template-columns: 1fr;
    }
    .biz-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 80vw;
        z-index: 89;
        transform: translateX(-100%);
        height: 100vh;
        padding-top: 80px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }
    .biz-sidebar.is-open {
        transform: translateX(0);
    }
    .biz-sidebar-toggle {
        display: flex;
    }
    .biz-main {
        padding: 24px 16px 100px;
    }
}
