/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Login Styles */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00234F;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.login-button {
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 158, 227, 0.3);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

/* Microsoft SSO Styles */
.sso-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

.sso-divider::before,
.sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5e9;
}

.sso-divider span {
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.95);
}

.microsoft-login-button {
    width: 100%;
    background: #0078d4;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.microsoft-login-button:hover {
    background: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
}

.microsoft-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.microsoft-icon {
    flex-shrink: 0;
}

/* Footer Styles */
.footer, .footer-dashboard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-top: auto;
}

.footer-dashboard {
    margin: 30px;
    max-width: none;
    border-radius: 20px;
    margin-top: auto;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-dashboard .footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.footer-dashboard .footer-links a:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.footer-dashboard .footer-separator {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 300;
}

.footer-dashboard .footer-copyright {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #00234F;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    background: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
}

.header-left p {
    color: #666;
    font-size: 0.9rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-role {
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.logout-button {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.page-content {
    padding: 30px;
    flex: 1;
}

/* Welcome Section */
.welcome-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 40px;
}

.welcome-text h2 {
    font-size: 2.5rem;
    color: #00234F;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.welcome-graphic {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    position: relative;
}

.graphic-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* INCON Logo Styling */
.incon-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.3));
    transition: all 0.3s ease;
    /* Logo ist jetzt unabhängig vom pulsierenden Kreis */
}

.incon-logo:hover {
    filter: drop-shadow(0 0 15px rgba(135, 206, 235, 0.5));
    transform: translate(-50%, -50%) scale(1.05);
}

/* Plasma-Effekt um das Logo */
.plasma-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid;
    z-index: 3;
    animation: plasmaPulse 4s ease-in-out infinite;
}

.plasma-ring-1 {
    width: 80%;
    height: 80%;
    border-color: rgba(135, 206, 235, 0.3);
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.2);
    animation-delay: 0s;
}

.plasma-ring-2 {
    width: 90%;
    height: 90%;
    border-color: rgba(65, 105, 225, 0.4);
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.3);
    animation-delay: 1.3s;
}

.plasma-ring-3 {
    width: 100%;
    height: 100%;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation-delay: 2.6s;
}


@keyframes plasmaPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}





/* Dashboard Stats */
.dashboard-stats {
    padding: 20px;
}

.dashboard-stats h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00234F;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.recent-activity {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.activity-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-time {
    color: #999;
    font-size: 0.85rem;
}

/* Create Post Section */
.create-post-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Post Type Tabs */
.post-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-type-tab {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-type-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #009EE3;
}

.post-type-tab.active {
    background: linear-gradient(135deg, #009EE3 0%, #0078D4 100%);
    border-color: #009EE3;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 158, 227, 0.3);
}

.post-type-tab .tab-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.post-type-tab .tab-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.post-type-tab .tab-description {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
}

.post-type-tab.active .tab-description {
    opacity: 0.9;
}

/* Form Visibility */
.create-post-form {
    display: none !important;
    animation: fadeIn 0.3s ease-in-out;
}

.create-post-form.active {
    display: flex !important;
    flex-direction: column;
    gap: 25px;
}

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

/* Full Width Form Group */
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.full-width textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

/* Manual Text Width - so breit wie zwei normale Felder */
.form-group.manual-text-width {
    grid-column: span 2;
}

.form-group.manual-text-width textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

/* Image Options Group */
.image-options-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-option-left {
    width: 100%;
}

/* Image Options Vertical Layout */
.image-options-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
    grid-column: 1 / -1;
    width: 100%;
}

.image-option-container {
    width: 100%;
}

.image-option-container label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}


/* Image Switch */
.image-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 0;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    width: auto;
    min-width: 350px;
    max-width: 500px;
    margin: 0 auto;
}


.switch-option {
    flex: 1;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
}

.switch-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    line-height: 1.2;
    padding: 0 5px;
    white-space: nowrap;
}

.switch-wrapper {
    position: relative;
    flex-shrink: 0;
    margin: 0 15px;
}

.switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-label-toggle {
    display: block;
    width: 60px;
    height: 30px;
    background: #009EE3;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-input:checked + .switch-label-toggle {
    background: #009EE3;
}

.switch-input:checked + .switch-label-toggle .switch-slider {
    transform: translateX(30px);
}

/* Aktive Option hervorheben */
.image-switch-container .switch-option:first-child .switch-text {
    color: #009EE3;
    font-weight: 600;
}

.image-switch-container .switch-option:last-child .switch-text {
    color: #666;
    font-weight: 500;
}

.switch-input:checked ~ .switch-option:first-child .switch-text {
    color: #666;
    font-weight: 500;
}

.switch-input:checked ~ .switch-option:last-child .switch-text {
    color: #009EE3;
    font-weight: 600;
}


/* Image Upload Section */
.image-upload-section {
    width: auto;
    min-width: 350px;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    min-height: 120px;
    display: none;
    flex-direction: column;
    justify-content: center;
}

.image-upload-section.show {
    display: flex;
}

.image-upload-section:hover {
    border-color: #009EE3;
    background: #f0f8ff;
}

.file-upload-area {
    text-align: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-upload-area:hover {
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.upload-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.upload-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.upload-formats {
    font-size: 0.75rem;
    color: #999;
}

/* Image Preview */
.image-preview {
    position: relative;
    margin-top: 10px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.remove-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.create-post-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #009EE3;
    box-shadow: 0 0 0 3px rgba(0, 158, 227, 0.15);
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.checkbox-group label input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    transform: scale(1.5);
}

.checkbox-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
    margin-left: 2rem; /* Einrücken der Beschreibung */
}

/* Datetime Group Styling */
.datetime-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.datetime-group input[type="date"] {
    flex: 2;
}

.datetime-group input[type="time"] {
    flex: 1;
    min-width: 120px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 20px;
    grid-column: 1 / -1;
    width: 100%;
}

.create-button {
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
}

.create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 158, 227, 0.3);
}

.create-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text,
.button-loading {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
}

/* Message Styles */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #009EE3;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Activities Section */
.activities-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.section-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.view-all {
    color: #009EE3;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8fafc;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f1f5f9;
}

.activity-icon {
    font-size: 1.5rem;
    color: #667eea;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.activity-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-time {
    color: #999;
    font-size: 0.8rem;
}

/* Posts Page */
.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.posts-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.posts-stats {
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Posts Sortierung */
.posts-sorting {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.sort-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.sort-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.sort-direction-btn {
    background: #009EE3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    min-width: 140px;
    justify-content: center;
}

.sort-direction-btn:hover {
    background: #007bb5;
}

.sort-direction-btn:active {
    background: #006699;
}

.sort-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.sort-text {
    font-size: 0.9rem;
}

/* Posts Bulk-Edit */
.posts-bulk-edit {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.bulk-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #bbdefb;
}

.bulk-edit-info {
    font-weight: 600;
    color: #1976d2;
    font-size: 1rem;
}

.clear-selection-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clear-selection-btn:hover {
    background: #d32f2f;
}

.bulk-edit-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.bulk-edit-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.bulk-edit-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1976d2;
    margin: 0;
}

.bulk-edit-select {
    padding: 8px 12px;
    border: 1px solid #90caf9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bulk-edit-select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.25);
}

.apply-bulk-btn {
    background: #009EE3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
}

.apply-bulk-btn:hover:not(:disabled) {
    background: #007bb5;
}

.apply-bulk-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.delete-bulk-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
}

.delete-bulk-btn:hover:not(:disabled) {
    background: #c82333;
}

.delete-bulk-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.bulk-icon {
    font-size: 1rem;
    font-weight: bold;
}

.bulk-text {
    font-size: 0.9rem;
}

/* Post Checkbox */
.post-checkbox-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.post-checkbox {
    display: none;
}

.post-checkbox-label {
    display: block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-checkbox-label:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.post-checkbox:checked + .post-checkbox-label {
    background: #007bff;
    border-color: #007bff;
}

.post-checkbox:checked + .post-checkbox-label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.post-card {
    position: relative;
}

.posts-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    flex: 1;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.filter-select,
.filter-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus,
.filter-date:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.apply-filters-btn {
    background: #009EE3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
    align-self: flex-start;
    font-weight: 600;
}

.apply-filters-btn:hover {
    background: #007bb5;
}

.apply-filters-btn:active {
    background: #006699;
}

.clear-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
    align-self: flex-start;
}

.clear-filters-btn:hover {
    background: #5a6268;
}

.clear-filters-btn:active {
    background: #545b62;
}

/* Responsive Sortierung */
@media (max-width: 768px) {
    .posts-sorting {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .sort-group {
        min-width: auto;
    }
    
    .sort-direction-btn {
        min-width: auto;
        align-self: stretch;
    }
}

/* Responsive Bulk-Edit */
@media (max-width: 768px) {
    .bulk-edit-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .bulk-edit-group {
        min-width: auto;
    }
    
    .apply-bulk-btn {
        min-width: auto;
        align-self: stretch;
    }
    
    .delete-bulk-btn {
        min-width: auto;
        align-self: stretch;
    }
}

/* Responsive Filter-Layout */
@media (max-width: 1200px) {
    .posts-filters {
        gap: 15px;
    }
    
    .filter-group {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .posts-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
        flex: none;
    }
    
    .apply-filters-btn,
    .clear-filters-btn {
        margin-top: 0;
        align-self: stretch;
    }
}

/* WICHTIG: Posts nebeneinander anzeigen */
.posts-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    padding: 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    align-items: start !important;
}

/* Post-card Definition wurde in die andere Regel verschoben */

@media (max-width: 768px) {
    .posts-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .post-card {
        width: 100%;
        max-width: 100%;
    }
    
    .post-image-container {
        height: 350px;
        min-height: 350px;
        max-height: 350px;
    }
    
    .post-image-container img {
        min-width: 66.67%;
        min-height: 66.67%;
        height: 100%;
    }
    
    .post-content-container {
        padding: 15px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .post-footer > div {
        width: 100%;
        justify-content: space-between;
    }
}

/* WICHTIG: Post-Karten Styling */
.post-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease !important;
    overflow: hidden !important;
    width: 80% !important;
    max-width: 80% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    justify-self: center !important;
}

.post-card:hover {
    transform: translateY(-2px);
}

/* Neue Post-Karten-Struktur */
.post-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    max-height: 500px;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    min-width: 66.67%;
    min-height: 66.67%;
    max-width: 100%;
    max-height: 100%;
}

.post-image-placeholder {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.post-content-container {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-text-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

.post-text {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #009EE3;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: none;
    overflow: visible;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.post-platform {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Erstelldatum unter dem Text */
.post-created-date {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    text-align: left;
    margin: 4px 0 8px 0;
    padding: 0 4px;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #666;
}

.edit-post-btn {
    background: #009EE3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.edit-post-btn:hover {
    background: #007bb5;
}

.edit-disabled {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Edit Post Modal Styles */
.edit-post-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edit-post-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-post-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.edit-post-form textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 120px;
}

.edit-post-form textarea:focus {
    border-color: #009EE3;
    outline: none;
}

.edit-post-form select,
.edit-post-form input[type="datetime-local"] {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.edit-post-form select:focus,
.edit-post-form input[type="datetime-local"]:focus {
    border-color: #009EE3;
    outline: none;
}

.edit-post-form input[type="file"] {
    padding: 8px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.edit-post-form input[type="file"]:hover {
    border-color: #009EE3;
    background: #f0f8ff;
}

.edit-post-form small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

.edit-post-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
}

/* Layout für Edit Post Modal */
.edit-post-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.edit-post-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.edit-post-form .form-group.full-width {
    width: 100%;
}

.delete-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    box-sizing: border-box;
}

.delete-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.delete-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.edit-post-form .cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    height: 50px;
    box-sizing: border-box;
}

.edit-post-form .cancel-button:hover {
    background: #5a6268;
}

.edit-post-form .create-button {
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    height: 50px;
    box-sizing: border-box;
}

.edit-post-form .create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 158, 227, 0.3);
}

.edit-post-form .create-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Edit Post Modal Content */
.edit-post-form {
    padding: 30px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-status.in_bearbeitung {
    background: #fff3cd;
    color: #856404;
}

.post-status.erstellt {
    background: #d1ecf1;
    color: #0c5460;
}

.post-status.freigegeben {
    background: #cce5ff;
    color: #004085;
}

.post-status.veroeffentlicht {
    background: #d4edda;
    color: #155724;
}

.post-content {
    margin-bottom: 15px;
}

.post-topic {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.post-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.post-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-detail-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.post-detail-value {
    color: #333;
    font-weight: 500;
}

.post-text {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #009EE3;
    margin-bottom: 15px;
    white-space: pre-wrap;
    line-height: 1.6;
}

.post-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.loading-posts {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    color: #666;
    margin-bottom: 25px;
}

.create-first-post-btn {
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-first-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 158, 227, 0.3);
}

/* Coming Soon */
.coming-soon {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.coming-soon h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 20px;
}

.coming-soon p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.coming-soon ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    color: #666;
}

.coming-soon li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.coming-soon li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Profile */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.info-item label {
    font-weight: 600;
    color: #333;
}

.info-item span {
    color: #666;
}

/* Admin-Bereich */
.admin-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header h3 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.admin-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.admin-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .sidebar-nav {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-graphic {
        width: 150px;
        height: 150px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .datetime-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .datetime-group input[type="date"],
    .datetime-group input[type="time"] {
        flex: none;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-dashboard {
        margin: 15px;
        border-radius: 15px;
    }
}

/* API Key Verwaltung */
.api-keys-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.api-keys-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.api-keys-section .section-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.api-key-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.api-docs-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.api-docs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.create-api-key-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-api-key-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.api-key-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.api-key-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.api-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.api-key-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.1em;
}

.api-key-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.api-key-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.api-key-status.inactive {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.api-key-status.expired {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.api-key-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.api-key-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.api-key-detail-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-key-detail-value {
    color: #fff;
    font-weight: 500;
}

.api-key-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.api-key-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-api-key-btn {
    background: rgba(0, 158, 227, 0.15);
    color: #009EE3;
    border: 1px solid rgba(0, 158, 227, 0.3);
}

.view-api-key-btn:hover {
    background: rgba(0, 158, 227, 0.25);
}

.toggle-api-key-btn {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.toggle-api-key-btn:hover {
    background: rgba(40, 167, 69, 0.3);
}

.toggle-api-key-btn.inactive {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.toggle-api-key-btn.inactive:hover {
    background: rgba(220, 53, 69, 0.3);
}

.delete-api-key-btn {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.delete-api-key-btn:hover {
    background: rgba(220, 53, 69, 0.3);
}

.loading-api-keys {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Styles */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

/* Modal sichtbar machen */
.modal[style*="display: flex"] {
    display: flex !important;
}

.modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-content {
    background: white !important;
    border-radius: 15px !important;
    padding: 0 !important;
    max-width: 700px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 10000 !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.api-key-form {
    padding: 30px;
}

.api-key-form .form-group {
    margin-bottom: 20px;
}

.api-key-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.api-key-form input,
.api-key-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.api-key-form input:focus,
.api-key-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.api-key-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.api-key-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: #5a6268;
}

/* API Key Details Modal */
.api-key-details {
    padding: 30px;
}

.api-key-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.api-key-detail-row:last-child {
    border-bottom: none;
}

.api-key-detail-label {
    font-weight: 600;
    color: #333;
}

.api-key-detail-value {
    color: #666;
    word-break: break-all;
}

.api-key-value {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #333;
    word-break: break-all;
    border: 1px solid #e9ecef;
    margin: 10px 0;
}

.copy-api-key-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.copy-api-key-btn:hover {
    background: #5a6fd8;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .api-key-details {
        padding: 20px;
    }
    
    .api-key-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .api-key-form .form-actions {
        flex-direction: column;
    }
    
    .edit-post-form .form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .edit-post-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .edit-post-form .form-row .form-group {
        flex: none;
    }
    
    .delete-button {
        width: 100%;
        justify-content: center;
    }
    
    .api-key-actions {
        flex-direction: column;
    }
    
    .api-key-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .api-docs-btn {
        width: 100%;
    }
}

/* Bild-Upload Styles */

.image-upload-section {
    margin-top: 15px;
}

.image-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.upload-text {
    color: #666;
}

.upload-text strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
}

.upload-text span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.upload-text small {
    display: block;
    font-size: 12px;
    color: #999;
}

.image-preview {
    position: relative;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Responsive Bild-Upload */
@media (max-width: 768px) {
    
    .image-switch-container {
        min-width: auto;
        padding: 15px 20px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .image-upload-section {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .switch-wrapper {
        order: -1;
        margin: 0;
    }
    
    .switch-option {
        white-space: normal;
        min-width: auto;
    }
}

/* Passwort-Änderung Styles */
.password-change-card {
    background: white;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.password-change-header {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e1e5e9;
}

.password-change-header:hover {
    background-color: #f8f9fa;
}

.password-change-header h3 {
    color: #00234F;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
    user-select: none;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.password-change-content {
    padding: 30px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.password-change-form {
    max-width: 500px;
}

.password-change-form .form-group {
    margin-bottom: 20px;
}

.password-change-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.password-change-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.password-change-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.change-password-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.change-password-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.change-password-button:active {
    transform: translateY(0);
}

.change-password-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Passwort-Validierung Styles */
.password-change-form input.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.password-change-form input.success {
    border-color: #27ae60;
    background: #f2fdf2;
}

.password-strength {
    margin-top: 5px;
    font-size: 0.85rem;
}

.password-strength.weak {
    color: #e74c3c;
}

.password-strength.medium {
    color: #f39c12;
}

.password-strength.strong {
    color: #27ae60;
}

/* Message Styles für Passwort-Änderung */
.password-change-card .message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

.password-change-card .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-change-card .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Passwort-Änderung */
@media (max-width: 768px) {
    .password-change-card {
        margin-top: 15px;
    }
    
    .password-change-header {
        padding: 15px 20px;
    }
    
    .password-change-header h3 {
        font-size: 1.2rem;
    }
    
    .password-change-content {
        padding: 20px;
    }
    
    .password-change-form {
        max-width: 100%;
    }
    
    .change-password-button {
        width: 100%;
        min-width: auto;
    }
}

/* Dashboard Container - nur für Statistiken */
.dashboard-stats {
    max-width: 66.666667%; /* 2/3 der Breite nur für Statistiken */
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard Statistiken */
.stats-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.stats-section-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e1e5e9;
}

.stats-section-header:hover {
    background-color: #f8f9fa;
}

.stats-section-header h3 {
    color: #00234F;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-section-content {
    padding: 25px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

.stats-categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stats-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e1e5e9;
}

.stats-category h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    transition: height 0.3s ease;
}

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

.stat-card:hover::before {
    height: 5px;
}

/* Stat Card Varianten */
.stat-card.primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.success::before {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat-card.ai::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.manual::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.ai-text::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card.ai-image::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00234F;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monthly-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

#monthlyChart {
    max-width: 100%;
    height: auto;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-stats {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .stats-section {
        margin-bottom: 20px;
    }
    
    .stats-section-header {
        padding: 15px 20px;
    }
    
    .stats-section-header h3 {
        font-size: 1.2rem;
    }
    
    .stats-section-content {
        padding: 20px;
    }
    
    .stats-categories-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-category {
        margin-bottom: 0;
        padding: 15px;
    }
    
    .stats-category h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .monthly-chart-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
}

/* Kosten Dashboard - Neue monatliche Ansicht */
.monthly-costs-detailed {
    margin-bottom: 30px;
}

.monthly-costs-detailed h4 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.monthly-costs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.month-cost-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.month-cost-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.month-cost-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.3s ease;
}

.month-cost-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.month-cost-header h5 {
    color: #00234F;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-cost-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
}

.month-cost-toggle {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.month-cost-toggle.rotated {
    transform: rotate(180deg);
}

.month-cost-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.month-cost-content.expanded {
    max-height: 1000px;
    padding: 25px;
}

.cost-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cost-detail-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e1e5e9;
}

.cost-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cost-detail-icon {
    font-size: 1.2rem;
}

.cost-detail-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.cost-detail-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cost-detail-count {
    font-size: 0.85rem;
    color: #6c757d;
}

.cost-detail-price {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.cost-detail-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    text-align: right;
}

.month-cost-summary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 8px;
    padding: 15px;
    color: white;
    text-align: center;
}

.month-cost-summary-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.month-cost-summary-amount {
    font-size: 1.8rem;
    font-weight: 700;
}

/* User Management */
.user-management-header {
    margin-bottom: 30px;
}

.user-management-header h2 {
    color: #00234F;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.user-management-header p {
    color: #6c757d;
    font-size: 1rem;
}

.users-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    position: relative;
}

.users-table-container::after {
    content: '← Scrollen für mehr Spalten →';
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .users-table-container::after {
        opacity: 1;
    }
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px 8px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.users-table th:nth-child(1) { width: 50px; }  /* ID */
.users-table th:nth-child(2) { width: 120px; } /* Name */
.users-table th:nth-child(3) { width: 150px; } /* E-Mail */
.users-table th:nth-child(4) { width: 80px; }  /* Rolle */
.users-table th:nth-child(5) { width: 80px; }  /* Status */
.users-table th:nth-child(6) { width: 70px; }  /* €/Post */
.users-table th:nth-child(7) { width: 80px; }  /* €/KI-Text */
.users-table th:nth-child(8) { width: 80px; }  /* €/KI-Bild */
.users-table th:nth-child(9) { width: 100px; } /* €/Veröffentlichung */
.users-table th:nth-child(10) { width: 120px; } /* Aktionen */

.users-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.users-table tr:hover {
    background-color: #f8f9fa;
}

.loading-row {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #dc3545;
    color: white;
}

.role-badge.user {
    background: #6c757d;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.inactive {
    background: #dc3545;
    color: white;
}

.cost-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: right;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
    min-width: 120px;
    flex-wrap: wrap;
}

.btn-edit {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 60px;
    white-space: nowrap;
}

.btn-edit:hover {
    background: #0056b3;
}

.btn-save {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-save:hover {
    background: #1e7e34;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cancel:hover {
    background: #545b62;
}

/* Responsive für Kosten und User Management */
@media (max-width: 768px) {
    .month-cost-header {
        padding: 15px 20px;
    }
    
    .month-cost-header h5 {
        font-size: 1.1rem;
    }
    
    .month-cost-total {
        font-size: 1.2rem;
    }
    
    .cost-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cost-detail-item {
        padding: 12px;
    }
    
    .month-cost-summary-amount {
        font-size: 1.5rem;
    }
    
    .users-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .users-table {
        min-width: 800px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 80px;
    }
    
    .btn-edit {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .cost-input {
        width: 60px;
        font-size: 0.7rem;
        padding: 2px 4px;
    }
    
    .role-badge,
    .status-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .users-table {
        min-width: 850px;
    }
    
    .users-table th,
    .users-table td {
        padding: 6px 2px;
        font-size: 0.7rem;
    }
    
    .action-buttons {
        min-width: 90px;
    }
    
    .btn-edit {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: 75px;
    }
    
    .cost-input {
        width: 55px;
        font-size: 0.65rem;
    }
    
    .price-entry-modal {
        width: 95vw;
        margin: 10px;
    }
    
    .price-entry-modal .form-group input {
        width: 100%;
    }
}

/* Preis-Historie Modals */
.price-history-modal {
    max-width: 90vw;
    width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.price-entry-modal {
    max-width: 90vw;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.price-entry-modal .form-group {
    margin-bottom: 20px;
}

.price-entry-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.price-entry-modal .form-group input {
    width: 50%;
    margin: 0 auto;
    display: block;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.price-entry-modal .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-entry-modal .form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.price-history-actions {
    margin-bottom: 20px;
    text-align: right;
}

.price-history-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.price-history-table {
    width: 100%;
    border-collapse: collapse;
}

.price-history-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-history-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.85rem;
    vertical-align: middle;
}

.price-history-table tr:hover {
    background-color: #f8f9fa;
}

.price-history-table tr:last-child td {
    border-bottom: none;
}

/* Form Styles für Preis-Eintrag */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Responsive für Preis-Historie */
@media (max-width: 768px) {
    .price-history-modal {
        max-width: 95vw;
        width: 100%;
    }
    
    .price-history-table-container {
        overflow-x: auto;
    }
    
    .price-history-table {
        min-width: 600px;
    }
    
    .price-history-table th,
    .price-history-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
} 