* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    /* Farbpalette */
    --primary-color: #8065e0;
    --primary-light: #9a85e9;
    --primary-dark: #6c4fd8;
    --secondary-color: #34c759;
    --secondary-light: #5fda7c;
    --secondary-dark: #28a347;
    --accent-color: #ff9f0a;
    --text-color: #333333;
    --text-light: #666666;
    --text-secondary: #888888;
    --light-color: #f8f9fa;
    --background-color: #e6e8ed;
    --card-color: #ffffff;
    --border-color: #e1e5eb;
    --success-color: #34c759;
    --warning-color: #ff9f0a;
    --danger-color: #ff3b30;
    --info-color: #5ac8fa;

    /* Räumliche Variablen */
    --border-radius: 12px;
    --card-border-radius: 16px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --card-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --header-height: 70px;
    --sidebar-width: 250px;
    
    /* Status-Farben */
    --status-new: #3498db;
    --status-inProgress: #f39c12;
    --status-needsHelp: #e74c3c;
    --status-completed: #2ecc71;
    --status-archive: #95a5a6;
    --status-blocked: #c0392b;
    --status-repeat: #9b59b6;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header {
    background-color: var(--card-color);
    height: var(--header-height);
    border-bottom: none;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.company-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}

.company-logo:hover {
    transform: scale(1.05);
}

.company-logo i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.search-global {
    position: relative;
    width: 250px;
}

.search-global input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--light-color);
    font-size: 0.9rem;
}

.search-global i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.google-login-btn {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-login-btn:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.google-login-btn img {
    height: 1.2rem;
    margin-right: 0.5rem;
}

.user-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

main {
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    width: 100%;
    grid-column: span 12;
}

.card {
    background-color: var(--card-color);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.3rem;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-actions button {
    padding: 0.4rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.card-actions button:hover {
    background-color: var(--light-color);
}

.tabs-container {
    margin-bottom: 1.5rem;
    grid-column: span 12;
}

.tabs-wrapper {
    background-color: var(--card-color);
    border-radius: var(--card-border-radius);
    padding: 1.2rem;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    position: relative;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    min-width: 120px;
    text-align: center;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    color: #666;
    transition: all 0.2s ease;
    margin: 5px;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(128, 101, 224, 0.3);
    pointer-events: none;
}

/* Badge für Anzahlanzeige im Admin-Bereich */
.tab-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #ff5a5f;
    color: white;
    border-radius: 12px;
    min-width: 26px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0 6px;
    border: 2px solid #fff;
}

.tab-button.active .tab-badge {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.tab-button:hover .tab-badge {
    transform: scale(1.1);
}

/* Badges im öffentlichen Bereich anpassen */
.public-tabs-container .tab-button .tab-badge {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 10px;
    min-width: 22px;
    height: 20px;
    background-color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    color: white;
}

.add-tab-container {
    display: flex;
    justify-content: center;
    margin: 1.2rem 0 1.5rem;
}

.add-button {
    padding: 0.9rem 1.6rem;
    background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(138, 108, 235, 0.3);
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    text-align: center;
    cursor: pointer;
}

.add-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

.add-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(138, 108, 235, 0.4);
}

.add-button:hover::after {
    opacity: 1;
}

.add-button:active::after {
    opacity: 1;
    transition: opacity 0.1s ease;
}

.add-button span {
    position: relative;
    z-index: 1;
}

.add-button span::before {
    content: "+";
    margin-right: 0.7rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.nc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.nc-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(138, 108, 235, 0.2);
}

.nc-card-header {
    padding: 1rem;
    background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.nc-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.nc-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nc-description {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    flex-grow: 1;
}

.nc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.nc-meta div {
    display: flex;
    align-items: center;
}

.nc-meta i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new {
    background-color: rgba(138, 108, 235, 0.1);
    color: var(--primary-color);
}

.status-inprogress {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--secondary-color);
}

.status-blocked {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
}

.status-completed {
    background-color: rgba(90, 200, 250, 0.1);
    color: var(--info-color);
}

/* Statistik-Karten */
.stats-card {
    grid-column: span 2;
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
    height: 100%;
    min-height: 180px;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stats-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stats-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stats-card.clickable:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(138, 108, 235, 0.2);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stats-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.stats-primary .stats-icon {
    background-color: rgba(138, 108, 235, 0.1);
    color: var(--primary-color);
}

.stats-success .stats-icon {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--secondary-color);
}

.stats-warning .stats-icon {
    background-color: rgba(255, 159, 10, 0.1);
    color: var(--accent-color);
}

.stats-danger .stats-icon {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
}

.stats-secondary .stats-icon {
    background-color: rgba(95, 95, 95, 0.1);
    color: #777777;
}

.progress-container {
    margin: 1rem 0;
    height: 0.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

.view {
    display: none;
    visibility: hidden;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.3s;
    grid-column: span 12;
}

.view.active {
    display: block;
    visibility: visible;
    height: auto;
    opacity: 1;
    overflow: visible;
}

.detail-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease-in-out;
}

.detail-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.detail-meta div {
    display: flex;
    align-items: center;
}

.detail-meta i {
    margin-right: 0.3rem;
    font-size: 1rem;
}

.detail-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.detail-photo {
    margin-bottom: 1.5rem;
}

.detail-photo img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.status-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    color: white;
}

.status-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.status-blue {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.status-green {
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.status-yellow {
    background-color: var(--accent-color);
    background-image: linear-gradient(135deg, var(--accent-color), #ff8c00);
}

.status-red {
    background-color: var(--danger-color);
    background-image: linear-gradient(135deg, var(--danger-color), #e62e1d);
}

.status-orange {
    background-color: #ff9500;
    background-image: linear-gradient(135deg, #ff9500, #ff7b00);
}

.comments-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.comments-list {
    margin-bottom: 1.5rem;
}

.comment-item {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-speed);
}

.comment-item:hover {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.add-comment {
    margin-top: 1rem;
}

.add-comment textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 80px;
    font-size: 0.95rem;
    transition: border-color var(--transition-speed);
}

.add-comment textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 108, 235, 0.1);
}

.comment-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.comment-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(138, 108, 235, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color var(--transition-speed);
    font-size: 0.95rem;
    background-color: var(--light-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 108, 235, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.full-width {
    grid-column: 1 / -1;
}

.photo-upload-container {
    position: relative;
    width: 100%;
    min-height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.photo-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.photo-upload-button {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.icon-camera {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-login-container {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 0.8rem 1rem;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--card-shadow);
    border: none;
    transition: all 0.3s;
    max-height: 100px;
    overflow: hidden;
}

.admin-login-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.admin-tabs-container {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 1.2rem;
    margin-top: 0.8rem;
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 1.2rem;
    animation: expandDown 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes expandDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.admin-tabs-header span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.admin-password {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    font-size: 0.85rem;
    width: 100%;
    background-color: var(--light-color);
}

.login-button {
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.login-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 108, 235, 0.3);
}

.logout-button {
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.logout-button:hover {
    background-color: #f0f0f0;
    color: var(--danger-color);
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-bottom: 1.5rem;
}

.back-button:before {
    content: "←";
    margin-right: 0.5rem;
}

.back-button:hover {
    background-color: var(--border-color);
    transform: translateX(-4px);
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.user-display {
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-left: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.user-display i {
    margin-right: 0.5rem;
}

@media (max-width: 992px) {
    .stats-card {
        grid-column: span 6;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-card {
        grid-column: span 12;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .search-global {
        display: none;
    }
    
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .status-options {
        flex-direction: column;
    }
    
    .status-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .app-container {
        padding: 0 10px;
    }
    
    header {
        padding: 0 1rem;
    }
    
    .company-logo {
        font-size: 1.3rem;
        margin-right: 1rem;
    }
    
    .nc-list {
        grid-template-columns: 1fr;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Verbessertes Prioritäten-Dropdown und Suchleiste */
.filter-section {
    margin-bottom: 0.8rem;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.filter-select {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238065e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    transition: all 0.3s;
    color: var(--text-color);
}

.filter-select:hover, 
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(138, 108, 235, 0.1);
    outline: none;
}

.search-bar {
    margin-bottom: 0.8rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1.2rem 0.75rem 2.8rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: white;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238065e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(138, 108, 235, 0.15);
    outline: none;
}

/* Größere und besser gestaltete Reiter im öffentlichen Bereich */
.public-tabs-container {
    margin-bottom: 1.2rem;
    background-color: transparent;
    border-radius: 30px;
    padding: 0.8rem 0;
}

.public-tabs-container .tab-nav {
    justify-content: center;
    gap: 0.6rem;
    border-bottom: none;
    padding-bottom: 0;
}

.public-tabs-container .tab-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    color: #666;
}

.public-tabs-container .tab-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 0;
}

.public-tabs-container .tab-button:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.public-tabs-container .tab-button:hover:before {
    transform: translateY(0);
}

.public-tabs-container .tab-button span {
    position: relative;
    z-index: 1;
}

.public-tabs-container .tab-button.active {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(138, 108, 235, 0.18);
    border: 1px solid rgba(138, 108, 235, 0.25);
    font-weight: 600;
    transform: translateY(-3px);
}

/* Kompakteres und modernes Filter-Layout */
.filter-section,
.search-container .filter-section {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.search-bar,
.search-container .search-bar {
    flex: 2;
    min-width: 250px;
    margin-bottom: 0.8rem;
}

.admin-stats-container {
    display: none;
}

.info-message {
    padding: 20px;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 16px;
    border: 1px dashed #ddd;
}

/* Erfolgsbenachrichtigung für Statusänderungen */
.success-message {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin: 15px 0;
    border: 1px solid rgba(46, 204, 113, 0.2);
    animation: fadeIn 0.3s ease-out;
}

/* Verbesserte Chat-/Kommentarfunktion */
.chat-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.chat-header h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.chat-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.chat-list::-webkit-scrollbar {
    width: 5px;
}

.chat-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0 0.75rem;
}

.chat-message.user-message .chat-avatar {
    background-color: var(--secondary-color);
}

.chat-message.admin-message .chat-avatar {
    background-color: var(--primary-color);
}

.chat-bubble {
    max-width: 70%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.user-message .chat-bubble {
    background-color: var(--primary-light);
    color: white;
    border-top-right-radius: 4px;
}

.chat-message.admin-message .chat-bubble {
    background-color: var(--light-color);
    color: var(--text-color);
    border-top-left-radius: 4px;
}

.chat-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-message.admin-message .chat-meta {
    color: var(--text-secondary);
}

.chat-time {
    font-style: italic;
}

.chat-author {
    font-weight: 600;
}

.chat-form {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.chat-input {
    flex: 1;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    resize: none;
    font-size: 0.95rem;
    transition: border-color var(--transition-speed);
    min-height: 50px;
    max-height: 100px;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 108, 235, 0.1);
    outline: none;
}

.chat-send-button {
    padding: 0 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-button i {
    margin-left: 0.5rem;
}

.chat-send-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 108, 235, 0.3);
}

.chat-notification {
    text-align: center;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.chat-typing {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: fadeIn 0.3s ease-out;
}

.chat-typing-dots {
    display: flex;
    margin-left: 0.5rem;
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    margin: 0 2px;
    animation: typingDot 1.4s infinite ease-in-out;
}

.chat-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
} 