/* Font Imports - Roboto Condensed */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../font/Roboto_Condensed/static/RobotoCondensed-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../font/Roboto_Condensed/static/RobotoCondensed-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../font/Roboto_Condensed/static/RobotoCondensed-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../font/Roboto_Condensed/static/RobotoCondensed-Bold.ttf') format('truetype');
}

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

body {
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Überschriften - Typografie */
h1 {
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

/* Slide-In-Menü */
.menu-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        -4px 0 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 
        -8px 0 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.menu-toggle.open {
    transform: translateY(-50%) translateX(-320px);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    box-shadow: 
        -4px 0 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.menu-arrow {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover .menu-arrow {
    color: #764ba2;
    transform: scale(1.1);
}

.slide-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.slide-menu.open {
    right: 0;
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.2);
}

.slide-menu-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.slide-menu-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.current-user {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.slide-menu-nav {
    padding: 1rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    border-left-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-item.active {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.menu-item.active::before {
    opacity: 1;
}

.menu-item.logout {
    margin-top: 0.5rem;
    color: #dc3545;
}

.menu-item.logout:hover {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.menu-item:hover .menu-icon {
    transform: scale(1.1) translateX(2px);
}

.menu-text {
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-item:hover .menu-text {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    margin: 0.75rem 1.5rem;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}



/* Login-Seite Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 400;
}

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

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e1e1;
}

.login-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Forum-Hauptseite */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid #e1e1e1;
    margin-bottom: 2rem;
}

.forum-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    color: #666;
    font-weight: 400;
}

.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.forum-actions-left {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-filter {
    position: relative;
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: space-between;
}

.dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item:first-child {
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.delete-category {
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-left: 0.5rem;
}

.delete-category:hover {
    background-color: rgba(245, 87, 108, 0.1);
}

/* Post Header mit Kategorie */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.post-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Post Detail Header */
.post-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.post-category-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Select Dropdown für Kategorie-Auswahl */
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e1e1;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #d1d1d1;
}

/* Button Group Styles */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group .btn-primary,
.button-group .btn-secondary {
    flex: 1;
    min-width: 120px;
}

/* Modal-Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

/* Beiträge Liste */
.posts-list {
    display: grid;
    gap: 1.5rem;
}

.post-preview {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.post-title {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.post-content {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #f1f1f1;
    padding-top: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 400;
}

.post-author {
    font-weight: 500;
}

.post-id {
    font-family: 'Roboto Condensed', 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 400;
}

.comment-count {
    color: #667eea;
    font-weight: 500;
}

/* Beitrag Detail-Ansicht */
.post-detail {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.post-detail .post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.post-detail .post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e1e1;
}

.post-detail .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    font-weight: 400;
}

.post-detail .post-content p {
    margin-bottom: 1rem;
}

/* Kommentar-System */
.comments-section {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comments-title {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 500;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.25rem;
    border-left: 4px solid #667eea;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 400;
}

.comment-author {
    font-weight: 500;
}

.comment-content {
    color: #444;
    line-height: 1.6;
    font-weight: 400;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Post Actions (Kommentar + Edit) */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-action {
    flex: 1;
}

.edit-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.comment-btn, .edit-btn {
    padding: 0.875rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.comment-btn:hover, .edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.edit-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e1e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-btn:hover {
    background: #e9ecef;
    border-color: #d1d1d1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Kommentar-Formular */
.comment-form {
    padding: 2rem;
}

.comment-form h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
}

.comment-post-reference {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
}

.comment-post-reference strong {
    color: #333;
    font-weight: 500;
}

/* Neuer Beitrag Formular */
.new-post-form {
    padding: 2rem;
}

.new-post-form h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* ID-Vorschau */
.id-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

.id-preview small {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
}

.id-preview code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Roboto Condensed', 'Courier New', monospace;
    color: #333;
    font-weight: 500;
}

/* Loading und No Posts */
.loading, .no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

.loading {
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

/* Zugangsdaten-Seite */
.access-denied {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.access-denied h2 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.access-denied p {
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.users-management {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.users-management h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.5rem;
}

.users-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-basic {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-basic h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.user-details span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

.user-dates {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.user-dates span {
    color: #555;
    font-size: 0.85rem;
    font-weight: 400;
}

.user-actions {
    display: flex;
    justify-content: flex-end;
}

.password-edit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.password-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
}

.password-input:focus {
    outline: none;
    border-color: #667eea;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-small.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-small.btn-secondary:hover {
    background: #e9ecef;
    border-color: #d1d1d1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-container {
        padding: 10px;
    }
    
    .forum-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comment-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .login-box {
        margin: 10px;
    }
    
    .forum-header h1 {
        font-size: 2rem;
    }
    
    .post-detail .post-title {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .new-post-form,
    .comment-form {
        padding: 1.5rem;
    }

    .comment-action {
        justify-content: center;
    }

    .comment-btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile Slide Menu Anpassungen */
    .slide-menu {
        width: 280px;
        right: -280px;
    }

    .slide-menu.open {
        right: 0;
    }

    .menu-toggle.open {
        transform: translateY(-50%) translateX(-240px);
    }

    .forum-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-actions-left {
        justify-content: center;
    }
    
    .dropdown-btn {
        width: 100%;
    }
    
    .post-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-detail-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-category,
    .post-category-large {
        align-self: flex-start;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-action,
    .edit-action {
        flex: none;
        margin-bottom: 1rem;
    }
    
    .edit-action {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .forum-container {
        padding: 5px;
    }
    
    .post-preview,
    .post-detail,
    .comments-section {
        padding: 1rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .login-box {
        padding: 1.5rem;
    }

    .new-post-form,
    .comment-form {
        padding: 1rem;
    }

    .modal-close {
        top: 10px;
        right: 15px;
    }

    .menu-toggle {
        width: 50px;
        height: 70px;
    }
    
    .menu-toggle.open {
        transform: translateY(-50%) translateX(-200px);
    }

    .slide-menu-header {
        padding: 1.5rem 1rem 1rem;
    }

    .menu-item {
        padding: 0.875rem 1rem;
    }

    /* Zugangsdaten Responsive */
    .user-info-row {
        flex-direction: column;
        gap: 1rem;
    }

    .user-details {
        text-align: left;
    }

    .user-dates {
        flex-direction: column;
        gap: 0.5rem;
    }

    .password-edit {
        max-width: 100%;
    }

    .password-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .password-actions {
        flex-direction: column;
    }

    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        margin-top: 0;
        max-height: 50vh;
    }
}

/* Neue Kategorie Formular */
.new-category-form {
    padding: 2rem;
}

.new-category-form h3 {
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.color-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.color-input {
    width: 100%;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Einstellungen-Seite Stile */
.preferences-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.preferences-header h1 {
    color: #333;
    margin: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

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

.tabs-container {
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    gap: 2px;
}

.tab-button {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    background: white;
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-button:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.tab-content {
    background: white;
    border-radius: 0 8px 8px 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories-management {
    min-height: 500px;
}

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

.categories-stats {
    color: #6c757d;
    font-size: 14px;
}

.categories-list {
    display: grid;
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.category-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.category-details {
    flex-grow: 1;
}

.category-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-description {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.category-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.category-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.delete-button {
    background: #dc3545;
    color: white;
}

.delete-button:hover {
    background: #c82333;
}

.system-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.save-button {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.save-button:hover {
    background: #218838;
}

.no-categories {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Emoji Picker Styles */
.emoji-picker-container {
    position: relative;
    margin-top: 8px;
}

.emoji-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emoji-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    min-width: 320px;
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.emoji-picker-header span {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.emoji-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.emoji-close:hover {
    background: #e9ecef;
    color: #333;
}

.emoji-categories {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-category {
    margin-bottom: 20px;
}

.emoji-category:last-child {
    margin-bottom: 0;
}

.emoji-category-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 4px;
}

.emoji-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.emoji-btn:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

.emoji-picker-footer {
    padding: 8px 16px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.emoji-picker-footer small {
    color: #666;
    font-size: 11px;
}

/* Mobile responsiveness for emoji picker */
@media (max-width: 768px) {
    .emoji-picker {
        min-width: 280px;
        max-height: 300px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
    }
    
    .emoji-btn {
        font-size: 16px;
        min-height: 28px;
        padding: 4px;
    }
}

@media (max-width: 480px) {
    .emoji-picker {
        min-width: 240px;
        max-height: 250px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
        gap: 2px;
    }
    
    .emoji-btn {
        font-size: 14px;
        min-height: 24px;
        padding: 2px;
    }
    
    .emoji-toggle-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
} 