/**
 * Custom Styles für den Blog
 */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 28px;
    width: auto;
    display: block;
    margin: 10px 10px 10px 0;
}

.navbar-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.navbar-tagline:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.85);
}

.footer {
    background: #0f1115;
}

.footer-logo {
    height: 42px;
    width: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.footer-contact a,
.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li + li {
    margin-top: 0.25rem;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.footer-heading {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.06em;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    border: none;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: #0d6efd;
}

/* Beitrags-Inhalt */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

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

.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.post-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.post-content table th,
.post-content table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.post-content table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #5d9eff;
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: #7db3ff;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #999;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #666;
}

/* Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.show {
    display: flex;
}

[data-theme="dark"] .scroll-to-top {
    background-color: #0d6efd;
}

[data-theme="dark"] .scroll-to-top:hover {
    background-color: #0b5ed7;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .breadcrumb,
    .scroll-to-top {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Dark Mode */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .card {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #404040;
}

[data-theme="dark"] .card-header {
    background-color: #252525;
    border-bottom-color: #404040;
}

[data-theme="dark"] .card-body {
    background-color: #2d2d2d;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #2d2d2d;
    border-color: #0d6efd;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control::placeholder {
    color: #999;
}

[data-theme="dark"] .alert-info {
    background-color: #1e3a5f;
    border-color: #2d4a6b;
    color: #b3d9ff;
}

[data-theme="dark"] .alert-warning {
    background-color: #5c4a1e;
    border-color: #6b5a2d;
    color: #ffd9b3;
}

[data-theme="dark"] .alert-danger {
    background-color: #5c1e1e;
    border-color: #6b2d2d;
    color: #ffb3b3;
}

[data-theme="dark"] .text-muted {
    color: #999 !important;
}

[data-theme="dark"] .bg-light {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* Badge Styles für Dark Mode */
[data-theme="dark"] .badge.bg-light {
    background-color: #404040 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .badge.bg-light.text-dark {
    background-color: #404040 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .table {
    color: #e0e0e0;
    border-color: #404040;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-color: #404040;
}

[data-theme="dark"] .table thead th {
    background-color: #252525;
    border-bottom-color: #505050;
    color: #e0e0e0;
}

[data-theme="dark"] .table tbody td {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #252525;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > th {
    background-color: #2d2d2d;
}

[data-theme="dark"] .table-hover > tbody > tr:hover > td,
[data-theme="dark"] .table-hover > tbody > tr:hover > th {
    background-color: #333;
    color: #fff;
}

[data-theme="dark"] .table-dark {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .table-dark th,
[data-theme="dark"] .table-dark td,
[data-theme="dark"] .table-dark thead th {
    border-color: #505050;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .table-dark.table-striped > tbody > tr:nth-of-type(odd) > td,
[data-theme="dark"] .table-dark.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #252525;
}

[data-theme="dark"] .table-dark.table-hover > tbody > tr:hover > td,
[data-theme="dark"] .table-dark.table-hover > tbody > tr:hover > th {
    background-color: #333;
}

[data-theme="dark"] .table-bordered {
    border-color: #404040;
}

[data-theme="dark"] .table-bordered th,
[data-theme="dark"] .table-bordered td {
    border-color: #404040;
}

[data-theme="dark"] .table-responsive {
    border-color: #404040;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #999;
}

[data-theme="dark"] .pagination .page-link {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .pagination .page-link:hover {
    background-color: #404040;
    border-color: #505050;
    color: #fff;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

[data-theme="dark"] .post-content table {
    border-color: #404040;
}

[data-theme="dark"] .post-content table th,
[data-theme="dark"] .post-content table td {
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .post-content table th {
    background-color: #252525;
    color: #e0e0e0;
}

[data-theme="dark"] .post-content table tbody td {
    background-color: #2d2d2d;
}

/* Summernote Dark Mode */
[data-theme="dark"] .note-editor.note-frame {
    border-color: #404040;
}

[data-theme="dark"] .note-editor.note-frame .note-editing-area {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .note-editor.note-frame .note-editing-area .note-editable {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .note-editor.note-frame .note-toolbar {
    background-color: #252525;
    border-bottom-color: #404040;
}

[data-theme="dark"] .note-editor.note-frame .note-toolbar .btn {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .note-editor.note-frame .note-toolbar .btn:hover {
    background-color: #404040;
    border-color: #505050;
}

[data-theme="dark"] .note-editor.note-frame .note-toolbar .btn-group .dropdown-toggle {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .note-editor.note-frame .note-statusbar {
    background-color: #252525;
    border-top-color: #404040;
}

[data-theme="dark"] .note-popover .popover {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .note-popover .popover .popover-content {
    background-color: #2d2d2d;
}

[data-theme="dark"] .note-popover .popover .arrow::after {
    border-bottom-color: #2d2d2d;
}

[data-theme="dark"] .note-modal .modal-content {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .note-modal .modal-header {
    border-bottom-color: #404040;
}

[data-theme="dark"] .note-modal .modal-footer {
    border-top-color: #404040;
}

[data-theme="dark"] .note-modal .close {
    color: #e0e0e0;
    opacity: 0.8;
}

[data-theme="dark"] .note-modal .close:hover {
    opacity: 1;
}

/* Dropdown Menüs Dark Mode */
[data-theme="dark"] .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: #404040;
    color: #fff;
}

[data-theme="dark"] .dropdown-item.active,
[data-theme="dark"] .dropdown-item:active {
    background-color: #0d6efd;
    color: #fff;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: #404040;
    opacity: 1;
}

[data-theme="dark"] .dropdown-header {
    color: #999;
}

[data-theme="dark"] .dropdown-menu-dark {
    background-color: #1a1a1a;
    border-color: #505050;
}

[data-theme="dark"] .dropdown-menu-dark .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-menu-dark .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu-dark .dropdown-item:focus {
    background-color: #333;
    color: #fff;
}

[data-theme="dark"] .dropdown-menu-dark .dropdown-item.active,
[data-theme="dark"] .dropdown-menu-dark .dropdown-item:active {
    background-color: #0d6efd;
    color: #fff;
}

[data-theme="dark"] .dropdown-menu-dark .dropdown-divider {
    border-top-color: #505050;
}

[data-theme="dark"] .dropdown-menu-dark .dropdown-header {
    color: #999;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* Kategorien-Liste: Letzte Kategorie ohne Margin */
.card-body > ul.list-unstyled {
    margin-bottom: 0 !important;
}

.card-body > ul.list-unstyled > li:last-child {
    margin-bottom: 0 !important;
}

.card-body > ul.list-unstyled > li:last-child > ul {
    margin-bottom: 0;
}

/* Card Styling - Abgerundete Ecken */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}


/* Carousel Styles */
.carousel-item .card {
    border-radius: 12px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Dark Mode Carousel */
[data-theme="dark"] .carousel-control-prev-icon,
[data-theme="dark"] .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .carousel-indicators [data-bs-target].active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Platzhalterbild im Carousel */
.carousel-item .bg-secondary {
    background-color: #6c757d !important;
}

[data-theme="dark"] .carousel-item .bg-secondary {
    background-color: #404040 !important;
}

