.forum-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.forum-header {
    margin-bottom: 2rem;
}

.forum-header h1 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
}

.forum-subtitle {
    color: #666;
    margin: 0 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.post-author {
    font-weight: 600;
    color: #3498db;
}

.post-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #3498db;
}

.post-preview {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stat svg {
    opacity: 0.7;
}

/* Post View */
.post-view {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-header h1 {
    margin: 0 0 1rem;
    color: #2c3e50;
    font-size: 2rem;
}

.post-content {
    line-height: 1.7;
    color: #333;
    margin: 1.5rem 0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Like Button */
.btn-like {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-like:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-like.liked {
    border-color: #6b7280;
    color: #6b7280;
}

.btn-like.liked svg {
    fill: currentColor;
}

.btn-like svg {
    width: 16px;
    height: 16px;
}

.btn-like-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.btn-like-small:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-like-small.liked {
    border-color: #6b7280;
    color: #6b7280;
}

.btn-like-small.liked svg {
    fill: currentColor;
}

/* Subscribe Button */
.btn-subscribe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-subscribe.subscribed {
    border-color: #6b7280;
    color: #6b7280;
}

.btn-subscribe.subscribed svg {
    fill: currentColor;
}

.btn-subscribe svg {
    width: 16px;
    height: 16px;
}

.btn-subscribe-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.btn-subscribe-small:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-subscribe-small.subscribed {
    border-color: #6b7280;
    color: #6b7280;
}

.btn-subscribe-small.subscribed svg {
    fill: currentColor;
}

.btn-subscribe-tiny {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.3rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.btn-subscribe-tiny:hover {
    color: #6b7280;
}

.btn-subscribe-tiny.subscribed {
    color: #6b7280;
}

.btn-subscribe-tiny.subscribed svg {
    fill: currentColor;
}

.btn-subscribe-tiny svg {
    width: 16px;
    height: 16px;
}

/* Favorite Tiny Button (next to subscribe) */
.btn-favorite-tiny {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.3rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.btn-favorite-tiny:hover {
    color: #f59e0b;
}

.btn-favorite-tiny.favorited {
    color: #f59e0b;
}

.btn-favorite-tiny.favorited svg {
    fill: currentColor;
}

.btn-favorite-tiny svg {
    width: 16px;
    height: 16px;
}

/* Dejure.org Legal Reference Links */
.dejure-link {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dejure-link:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

/* Tooltip for dejure links */
.dejure-tooltip {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    max-width: 500px;
    min-width: 300px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dejure-tooltip.active {
    opacity: 1;
    pointer-events: auto;
}

.dejure-tooltip-header {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dejure-tooltip-content {
    max-height: 300px;
    overflow-y: auto;
}

.dejure-tooltip-loading {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
}

.dejure-tooltip-error {
    color: #ef4444;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 4px;
}

/* Scrollbar for tooltip content */
.dejure-tooltip-content::-webkit-scrollbar {
    width: 6px;
}

.dejure-tooltip-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dejure-tooltip-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dejure-tooltip-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Comments Section */
.comments-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comments-section h2 {
    margin: 0 0 1.5rem;
    color: #2c3e50;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* HAUPTKOMMENTARE - Weißes, modernes, elegantes Design */
.comment {
    background: #f9f9f9;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ANTWORTEN - Sanfte Farbe, modern, schlicht */
.comment.depth-1,
.comment.depth-2,
.comment.depth-3,
.comment.depth-4,
.comment.depth-5 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 2px solid #cbd5e1;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: none;
}

/* Indentation */
.comment.depth-1 {
    margin-left: 2.5rem;
}

.comment.depth-2 {
    margin-left: 5rem;
}

.comment.depth-3 {
    margin-left: 7.5rem;
}

.comment.depth-4 {
    margin-left: 10rem;
}

.comment.depth-5 {
    margin-left: 12.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9375rem;
}

.comment-author.is-op {
    color: #2563eb;
}

.op-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comment-date {
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-left: auto;
}

.comment-content {
    color: #1f2937;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.comment-content .mention {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.comment-content .mention:hover {
    text-decoration: underline;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-count-text {
    font-size: 0.85rem;
    color: #666;
}

.no-comments {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Comment Form */
.comment-form-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comment-form-container h3 {
    margin: 0 0 1rem;
    color: #2c3e50;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Post Form */
.post-form-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-help {
    font-size: 0.85rem;
    color: #999;
}

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

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.notification-item.unread {
    background: #e8f4fd;
    border-color: #3498db;
}

.notification-content {
    flex: 1;
    line-height: 1.6;
}

.notification-content a {
    color: #3498db;
    text-decoration: none;
}

.notification-content a:hover {
    text-decoration: underline;
}

.notification-date {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
}

/* Misc */
.login-prompt {
    text-align: center;
    color: #666;
    margin: 1rem 0;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

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

.locked-message {
    text-align: center;
    color: #e74c3c;
    padding: 1rem;
    background: #fef5f5;
    border: 1px solid #fdd;
    border-radius: 4px;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state p {
    margin: 0.5rem 0;
}

.empty-state a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}
