/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS VARIABLES === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --border-color: #495057;
    --accent-color: #4dabf7;
    --accent-hover: #339af0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
    overflow-y: auto;
}

/* === HEADER === */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    transition: background 0.3s, border-color 0.3s;
}


/* === NAVBAR CONTAINER === */
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === BRAND/LOGO === */
.navbar-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
}

/* === DESKTOP / MOBILE VISIBILITY === */
.navbar-desktop {
    display: block;
    background: var(--bg-primary);
    transition: box-shadow 0.3s ease;
}

.navbar-mobile {
    display: none;
    background: var(--bg-primary);
    transition: box-shadow 0.3s ease;
}

/* W3Schools Sticky Method */
.navbar-desktop.sticky,
.navbar-mobile.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;  /* Niedriger als Offcanvas! */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background: var(--bg-primary) !important;
}

/* Dark Mode */
[data-theme="dark"] .navbar-desktop.sticky,
[data-theme="dark"] .navbar-mobile.sticky {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Verstärkter Schatten beim Scrollen */
body.is-scrolled .navbar-desktop.sticky,
body.is-scrolled .navbar-mobile.sticky {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] body.is-scrolled .navbar-desktop.sticky,
[data-theme="dark"] body.is-scrolled .navbar-mobile.sticky {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    .navbar-desktop {
        display: none;
    }
    
    .navbar-mobile {
        display: block;
    }
}

/* === HORIZONTAL MENU === */
.navbar-horizontal .navbar-menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: 1rem;
}

.navbar-horizontal .navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.navbar-horizontal .navbar-nav li {
    position: relative;
}

.navbar-horizontal .navbar-nav a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-horizontal .navbar-nav a:hover {
    color: var(--accent-color);
}

/* === DROPDOWN MENU === */
.navbar-horizontal .has-dropdown {
    position: relative;
}

.navbar-horizontal .dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.navbar-horizontal .has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.navbar-horizontal .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.navbar-horizontal .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-horizontal .dropdown-menu li {
    margin: 0;
}

.navbar-horizontal .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.navbar-horizontal .dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

/* Nested Dropdowns (Submenus) */
.navbar-horizontal .dropdown-menu .has-dropdown {
    position: relative;
}

.navbar-horizontal .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin: 0 0 0 0.5rem;
}

/* === THEME TOGGLE === */
.theme-toggle-wrapper {
    margin-left: auto;
}

/* Navbar Actions: Theme Toggle + Hamburger nebeneinander */
.navbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;  /* Erhöht von 0.5rem auf 1rem */
}

.theme-toggle-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.theme-toggle-btn:hover {
    background: none;
    border-color: vnone;
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-icon-light {
    color: #111;
}

.theme-icon-dark {
    color: #fff;
}

/* Light Mode: Zeige Sonne, verstecke Mond */
:root .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

:root .theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg);
}

/* Dark Mode: Zeige Mond, verstecke Sonne */
[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* === TOGGLE BUTTON (Hamburger) === */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-offcanvas-left .navbar-toggle,
.navbar-offcanvas-right .navbar-toggle,
.navbar-mobile .navbar-toggle {
    display: flex;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

.navbar-toggle:hover span {
    background: var(--accent-color);
}

/* === OFFCANVAS MENU (Desktop) === */
.offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 1050;
    transition: transform 0.3s ease, background 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

.offcanvas.active {
    transform: translateX(0);
}

/* === OFFCANVAS HEADER === */
.offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-brand a {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-primary);
}

.offcanvas-brand img {
    height: 35px;
    width: auto;
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-primary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.offcanvas-close:hover {
    color: var(--accent-color);
}

/* === OFFCANVAS BODY === */
.offcanvas-body {
    padding: 1rem;
    flex: 1;
}

.offcanvas-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas-nav li {
    margin-bottom: 0.25rem;
}

.offcanvas-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.offcanvas-nav a:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

/* === ACCORDION/SUBMENU für Offcanvas === */
.offcanvas-nav .has-submenu {
    margin-bottom: 0;
}

.offcanvas-nav .menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.offcanvas-nav .menu-item-wrapper a {
    flex: 1;
    padding: 0.75rem 1rem;
}

.offcanvas-nav .submenu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-nav .submenu-toggle:hover {
    color: var(--accent-color);
}

.offcanvas-nav .has-submenu.active > .menu-item-wrapper .submenu-toggle i {
    transform: rotate(180deg);
}

.offcanvas-nav .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.offcanvas-nav .has-submenu.active > .submenu {
    max-height: 500px;
}

.offcanvas-nav .submenu li {
    margin: 0;
}

.offcanvas-nav .submenu a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

/* Nested Submenus */
.offcanvas-nav .submenu .submenu a {
    padding-left: 3rem;
}

/* === WIDGET AREAS === */
.offcanvas-widget-area {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.widget {
    margin-bottom: 1rem;
}

.widget:last-child {
    margin-bottom: 0;
}

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

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1050;
    background: var(--bg-primary);
    transition: transform 0.3s ease, background 0.3s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Offcanvas Mobile Styles */
.mobile-menu-offcanvas-left,
.mobile-menu-offcanvas-right {
    width: 300px;
    max-width: 85vw;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.mobile-menu-offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.mobile-menu-offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

/* Fullscreen Mobile Style */
.mobile-menu-fullscreen {
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-100%);
}

.mobile-menu.active {
    transform: translate(0, 0);
}

/* === MOBILE MENU HEADER === */
.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-primary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--accent-color);
}

/* === MOBILE MENU BODY === */
.mobile-menu-body {
    padding: 1rem;
    flex: 1;
}

/* Fullscreen: Center navigation */
.mobile-menu-fullscreen .mobile-menu-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 0.25rem;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

/* Fullscreen: Larger text, centered */
.mobile-menu-fullscreen .mobile-nav a {
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
}

.mobile-nav a:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

/* === ACCORDION/SUBMENU für Mobile === */
.mobile-nav .has-submenu {
    margin-bottom: 0;
}

.mobile-nav .menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mobile-nav .menu-item-wrapper a {
    flex: 1;
    padding: 0.75rem 1rem;
}

.mobile-nav .submenu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav .submenu-toggle:hover {
    color: var(--accent-color);
}

.mobile-nav .has-submenu.active > .menu-item-wrapper .submenu-toggle i {
    transform: rotate(180deg);
}

.mobile-nav .submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav .has-submenu.active > .submenu {
    max-height: 500px;
}

.mobile-nav .submenu li {
    margin: 0;
}

.mobile-nav .submenu a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

/* Fullscreen Submenu Styles */
.mobile-menu-fullscreen .mobile-nav .submenu a {
    font-size: 1.2rem;
    padding-left: 2.5rem;
}

/* Nested Submenus */
.mobile-nav .submenu .submenu a {
    padding-left: 3rem;
}

/* === MOBILE MENU FOOTER === */
.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

/* === MOBILE WIDGET AREAS === */
.mobile-widget-area {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* === BACKDROP === */
.offcanvas-backdrop,
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.offcanvas-backdrop.active,
.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* === MAIN CONTENT === */
main {
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0 1rem;
}

/* === POSTS GRID === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-card .post-thumbnail {
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .entry-header {
    padding: 1.5rem 1.5rem 0;
}

.post-card .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card .entry-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card .entry-title a:hover {
    color: var(--accent-color);
}

.post-card .entry-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-card .entry-summary {
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.post-card .read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-card .read-more:hover {
    color: var(--accent-hover);
}

/* === SINGLE POST / PAGE === */
article {

}

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

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entry-meta > span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 0rem;
}

.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--accent-hover);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

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

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.tags-links a:hover {
    background: var(--accent-color);
    color: white;
}

/* === PAGE HEADER === */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-color);
    color: white;
}

/* === POST NAVIGATION === */
.post-navigation {
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.post-navigation a:hover {
    background: var(--accent-color);
    color: white;
}

/* === COMMENTS === */
.comments-area {
    max-width: 800px;
    margin: 3rem auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

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

.comment-metadata {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* === COMMENT FORM === */
.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form input[type="submit"] {
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-hover);
}

/* === SEARCH FORM === */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-submit {
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-submit:hover {
    background: var(--accent-hover);
}

/* === 404 PAGE === */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-404 ul {
    list-style: none;
    padding: 0;
}

.error-404 li {
    margin-bottom: 0.5rem;
}

.error-404 a {
    color: var(--accent-color);
    text-decoration: none;
}

.error-404 a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Widgets */
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* Footer Column Widths */
.footer-col-full {
    flex: 0 0 100%;
}

.footer-col-half {
    flex: 0 0 calc(50% - 1rem);
}

.footer-col-third {
    flex: 0 0 calc(33.333% - 1.334rem);
}

.footer-col-quarter {
    flex: 0 0 calc(25% - 1.5rem);
}

/* Footer Widget Styles */
.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-widget p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Site Info */
.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.site-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-col-half,
    .footer-col-third,
    .footer-col-quarter {
        flex: 0 0 100%;
    }
    
    .footer-widgets {
        gap: 1rem;
    }
}

/* === SCROLLBAR DARK MODE === */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* === SPLIDE SLIDER CUSTOM STYLES === */
.splide {
    margin: 2rem 0;
}

.splide__slide {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slide-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.slide-text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.slide-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.slide-button:hover {
    background: var(--accent-hover);
}

/* Dark Mode Splide */
[data-theme="dark"] .splide__arrow {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .splide__pagination__page.is-active {
    background: var(--accent-color);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slide-image img {
        height: 300px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-text {
        font-size: 0.9rem;
    }
}

/* === PAGEBUILDER STYLES === */
#pagebuilder-content {
    width: 100%;
}

.pagebuilder-section {
    position: relative;
    width: 100%;
}

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

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.pagebuilder-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.pagebuilder-column {
    padding: 0.5rem;
    box-sizing: border-box;
    min-height: 1px;
}

/* Responsive Columns */
@media (max-width: 768px) {
    .pagebuilder-column {
        width: 100% !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ACF Info Box */
.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
    color: var(--text-secondary);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   BLUEPRINT GRID SYSTEM
   ======================================== */

.bp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.bp-container-fluid {
  width: 100%;
  padding: 0 15px;
}

.bp-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="bp-col-"] {
  padding: 0 15px;
  width: 100%;
}

/* Mobile First Grid */
.bp-col-1 { width: 8.333%; }
.bp-col-2 { width: 16.666%; }
.bp-col-3 { width: 25%; }
.bp-col-4 { width: 33.333%; }
.bp-col-5 { width: 41.666%; }
.bp-col-6 { width: 50%; }
.bp-col-7 { width: 58.333%; }
.bp-col-8 { width: 66.666%; }
.bp-col-9 { width: 75%; }
.bp-col-10 { width: 83.333%; }
.bp-col-11 { width: 91.666%; }
.bp-col-12 { width: 100%; }

/* Responsive Grid - Small */
@media (min-width: 576px) {
  .bp-col-sm-1 { width: 8.333%; }
  .bp-col-sm-2 { width: 16.666%; }
  .bp-col-sm-3 { width: 25%; }
  .bp-col-sm-4 { width: 33.333%; }
  .bp-col-sm-5 { width: 41.666%; }
  .bp-col-sm-6 { width: 50%; }
  .bp-col-sm-7 { width: 58.333%; }
  .bp-col-sm-8 { width: 66.666%; }
  .bp-col-sm-9 { width: 75%; }
  .bp-col-sm-10 { width: 83.333%; }
  .bp-col-sm-11 { width: 91.666%; }
  .bp-col-sm-12 { width: 100%; }
}

/* Responsive Grid - Medium */
@media (min-width: 768px) {
  .bp-col-md-1 { width: 8.333%; }
  .bp-col-md-2 { width: 16.666%; }
  .bp-col-md-3 { width: 25%; }
  .bp-col-md-4 { width: 33.333%; }
  .bp-col-md-5 { width: 41.666%; }
  .bp-col-md-6 { width: 50%; }
  .bp-col-md-7 { width: 58.333%; }
  .bp-col-md-8 { width: 66.666%; }
  .bp-col-md-9 { width: 75%; }
  .bp-col-md-10 { width: 83.333%; }
  .bp-col-md-11 { width: 91.666%; }
  .bp-col-md-12 { width: 100%; }
}

/* Responsive Grid - Large */
@media (min-width: 992px) {
  .bp-col-lg-1 { width: 8.333%; }
  .bp-col-lg-2 { width: 16.666%; }
  .bp-col-lg-3 { width: 25%; }
  .bp-col-lg-4 { width: 33.333%; }
  .bp-col-lg-5 { width: 41.666%; }
  .bp-col-lg-6 { width: 50%; }
  .bp-col-lg-7 { width: 58.333%; }
  .bp-col-lg-8 { width: 66.666%; }
  .bp-col-lg-9 { width: 75%; }
  .bp-col-lg-10 { width: 83.333%; }
  .bp-col-lg-11 { width: 91.666%; }
  .bp-col-lg-12 { width: 100%; }
}

/* Responsive Grid - XL */
@media (min-width: 1200px) {
  .bp-col-xl-1 { width: 8.333%; }
  .bp-col-xl-2 { width: 16.666%; }
  .bp-col-xl-3 { width: 25%; }
  .bp-col-xl-4 { width: 33.333%; }
  .bp-col-xl-5 { width: 41.666%; }
  .bp-col-xl-6 { width: 50%; }
  .bp-col-xl-7 { width: 58.333%; }
  .bp-col-xl-8 { width: 66.666%; }
  .bp-col-xl-9 { width: 75%; }
  .bp-col-xl-10 { width: 83.333%; }
  .bp-col-xl-11 { width: 91.666%; }
  .bp-col-xl-12 { width: 100%; }
}

/* Column Order */
.bp-order-1 { order: 1; }
.bp-order-2 { order: 2; }
.bp-order-3 { order: 3; }
.bp-order-4 { order: 4; }
.bp-order-5 { order: 5; }

@media (min-width: 576px) {
  .bp-order-sm-1 { order: 1; }
  .bp-order-sm-2 { order: 2; }
  .bp-order-sm-3 { order: 3; }
  .bp-order-sm-4 { order: 4; }
  .bp-order-sm-5 { order: 5; }
}

@media (min-width: 768px) {
  .bp-order-md-1 { order: 1; }
  .bp-order-md-2 { order: 2; }
  .bp-order-md-3 { order: 3; }
  .bp-order-md-4 { order: 4; }
  .bp-order-md-5 { order: 5; }
}

@media (min-width: 992px) {
  .bp-order-lg-1 { order: 1; }
  .bp-order-lg-2 { order: 2; }
  .bp-order-lg-3 { order: 3; }
  .bp-order-lg-4 { order: 4; }
  .bp-order-lg-5 { order: 5; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing - Margin Top */
.bp-mt-0 { margin-top: 0 !important; }
.bp-mt-1 { margin-top: 0.25rem !important; }
.bp-mt-2 { margin-top: 0.5rem !important; }
.bp-mt-3 { margin-top: 1rem !important; }
.bp-mt-4 { margin-top: 1.5rem !important; }
.bp-mt-5 { margin-top: 3rem !important; }

/* Spacing - Margin Bottom */
.bp-mb-0 { margin-bottom: 0 !important; }
.bp-mb-1 { margin-bottom: 0.25rem !important; }
.bp-mb-2 { margin-bottom: 0.5rem !important; }
.bp-mb-3 { margin-bottom: 1rem !important; }
.bp-mb-4 { margin-bottom: 1.5rem !important; }
.bp-mb-5 { margin-bottom: 3rem !important; }

/* Spacing - Padding Top */
.bp-pt-0 { padding-top: 0 !important; }
.bp-pt-1 { padding-top: 0.25rem !important; }
.bp-pt-2 { padding-top: 0.5rem !important; }
.bp-pt-3 { padding-top: 1rem !important; }
.bp-pt-4 { padding-top: 1.5rem !important; }
.bp-pt-5 { padding-top: 3rem !important; }

/* Spacing - Padding Bottom */
.bp-pb-0 { padding-bottom: 0 !important; }
.bp-pb-1 { padding-bottom: 0.25rem !important; }
.bp-pb-2 { padding-bottom: 0.5rem !important; }
.bp-pb-3 { padding-bottom: 1rem !important; }
.bp-pb-4 { padding-bottom: 1.5rem !important; }
.bp-pb-5 { padding-bottom: 3rem !important; }

/* Spacing - Padding Right */
.bp-pr-0 { padding-right: 0 !important; }
.bp-pr-1 { padding-right: 0.25rem !important; }
.bp-pr-2 { padding-right: 0.5rem !important; }
.bp-pr-3 { padding-right: 1rem !important; }
.bp-pr-4 { padding-right: 1.5rem !important; }
.bp-pr-5 { padding-right: 3rem !important; }

/* Spacing - Padding Left */
.bp-pl-0 { padding-left: 0 !important; }
.bp-pl-1 { padding-left: 0.25rem !important; }
.bp-pl-2 { padding-left: 0.5rem !important; }
.bp-pl-3 { padding-left: 1rem !important; }
.bp-pl-4 { padding-left: 1.5rem !important; }
.bp-pl-5 { padding-left: 3rem !important; }

/* Spacing - Padding Y (top + bottom) */
.bp-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.bp-py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.bp-py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.bp-py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.bp-py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.bp-py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Text Alignment */
.bp-text-left { text-align: left !important; }
.bp-text-center { text-align: center !important; }
.bp-text-right { text-align: right !important; }

/* Display */
.bp-d-none { display: none !important; }
.bp-d-block { display: block !important; }
.bp-d-flex { display: flex !important; }
.bp-d-inline { display: inline !important; }
.bp-d-inline-block { display: inline-block !important; }

/* Flex Utilities */
.bp-flex-row { flex-direction: row !important; }
.bp-flex-column { flex-direction: column !important; }
.bp-justify-start { justify-content: flex-start !important; }
.bp-justify-end { justify-content: flex-end !important; }
.bp-justify-center { justify-content: center !important; }
.bp-justify-between { justify-content: space-between !important; }
.bp-align-start { align-items: flex-start !important; }
.bp-align-end { align-items: flex-end !important; }
.bp-align-center { align-items: center !important; }

/* Screen Reader Only */
.bp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Animated State */
.bp-animated {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Animation Types */
.bp-animate-fade-in.bp-animated {
    opacity: 1;
}

.bp-animate-fade-up.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-fade-down.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-fade-left.bp-animated {
    opacity: 1;
    transform: translateX(0);
}

.bp-animate-fade-right.bp-animated {
    opacity: 1;
    transform: translateX(0);
}

.bp-animate-zoom-in.bp-animated {
    opacity: 1;
    transform: scale(1);
}

.bp-animate-zoom-out.bp-animated {
    opacity: 1;
    transform: scale(1);
}

.bp-animate-flip-up.bp-animated {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

.bp-animate-flip-down.bp-animated {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

.bp-animate-slide-up.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-slide-down.bp-animated {
    opacity: 1;
    transform: translateY(0);
}

.bp-animate-slide-left.bp-animated {
    opacity: 1;
    transform: translateX(0);
}

.bp-animate-slide-right.bp-animated {
    opacity: 1;
    transform: translateX(0);
}
/* ========================================
   ADRESSBLOCK FOOTER
   ======================================== */
/* Footer Address Styles - Jetzt in footer-icons.css */
/* Siehe /assets/css/footer-icons.css für editierbare Icon-Farben */

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ========================================
   PAGE WITH SIDEBAR LAYOUT
   ======================================== */

.content-with-sidebar {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.content-with-sidebar .main-content {
    min-width: 0;
}

.content-with-sidebar .sidebar {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    position: sticky;
    top: calc(80px + 2rem);
}

.sidebar .widget {
    margin-bottom: 2rem;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: var(--accent-color);
}

/* Mobile: Stack Layout */
@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-with-sidebar .sidebar {
        position: static;
        width: 100%;
    }
}
