.topbar {
    height: var(--topbar-height, 60px);
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #dbe3ea);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    padding-top: var(--safe-top);
}

/* Hamburger - default versteckt, nur Mobile sichtbar */
.topbar__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text, #1f2937);
    border-radius: 10px;
    cursor: pointer;
    transition: background 200ms ease;
    flex-shrink: 0;
}

.topbar__menu-toggle:hover {
    background: #f3f4f6;
}

.topbar__menu-toggle:active {
    background: #e5e7eb;
}

.topbar__menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.topbar__menu-toggle:focus-visible {
    outline: 2px solid var(--primary, #0f766e);
    outline-offset: 2px;
}

/* Search */
.topbar__search {
    position: relative;
    flex: 1;
    max-width: 560px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar__search-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.topbar__search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 38px;
    border: 1px solid var(--border, #dbe3ea);
    border-radius: 10px;
    background: var(--surface-2, #f8fafc);
    color: var(--text, #1f2937);
    font-size: 0.95rem;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
    min-width: 0;
}

.topbar__search-input::placeholder {
    color: #9ca3af;
}

.topbar__search-input:hover {
    background: #ffffff;
}

.topbar__search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Mobile: kompakte Topbar */
@media (max-width: 768px) {
    .topbar {
        height: 52px;
        padding: 0 8px;
        gap: 6px;
    }

    .topbar__menu-toggle {
        display: inline-flex;
        width: 34px;
        height: 34px;
        min-height: 34px;
        border-radius: 8px;
    }

    .topbar__menu-toggle svg {
        width: 20px;
        height: 20px;
    }

    .topbar__search {
        max-width: none;
    }

    .topbar__search-input {
        height: 38px;
        font-size: 16px;
    }

    .topbar__search-input::placeholder {
        font-size: 0.875rem;
    }

}

/* Sehr kleine Screens: Search-Placeholder kuerzen, nur Icon-Padding */
@media (max-width: 380px) {
    .topbar {
        padding: 0 8px;
        gap: 6px;
    }

    .topbar__menu-toggle {
        width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .topbar__search-input {
        padding-left: 34px;
        padding-right: 8px;
    }

    .topbar__search-icon {
        left: 10px;
    }
}
