/* -----------------------
   Global Reset & Box-Sizing
------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    line-height: 1.5;
}

/* -----------------------
   Header
------------------------*/
.header {
    isolation: isolate;
    background:
        url('/images/css/header.png') no-repeat center center, /* oben */
        url('/images/css/back_kachel.png') repeat;            /* unten */       
    background-repeat: no-repeat, repeat;
    background-position: center center, top left;
    background-size: 100% auto, auto; /* statt cover */
    min-height: 160px;
    padding: 40px 0;
    color: #ff4000;
    text-align: center;    
}


.inner-header {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-header h1 {
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* -----------------------
   Navigation
------------------------*/
.nav {
    background: #FF6600;
}

.inner-nav {
    max-width: 1400px;
    margin: 0 auto;
}

.inner-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Damit Links umbrechen, wenn Platz knapp */
    justify-content: center;
    align-items: center;
    gap: 0;
}

.inner-nav li {
    margin: 0;
    position: relative;
}

.inner-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
}

.inner-nav a:hover {
    background: #FFB84D;
}

.inner-nav .has-subnav > a::after {
    content: ' \25BE';
    font-size: 0.85em;
}

.inner-nav .subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    margin: 0;
    padding: 4px 0;
    display: none;
    flex-direction: column;
    background: #ff8a1f;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    z-index: 50;
    white-space: nowrap;
}

.inner-nav .subnav li {
    width: 100%;
}

.inner-nav .subnav a {
    padding: 7px 14px;
    line-height: 1.25;
}

.inner-nav li.has-subnav:hover .subnav,
.inner-nav li.has-subnav:focus-within .subnav {
    display: flex;
}

/* -----------------------
   Wrapper / Layout
------------------------*/
.wrapper {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

/* Sidebars */
.sidebar {
    flex: 1;
    min-width: 200px; /* verhindert zu schmale Sidebars */
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

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

.sidebar-tree-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8f4a18;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8c5aa;
}

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

.sidebar-tree-root {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-tree-item {
    margin: 0;
}

.sidebar-tree-link {
    display: block;
    padding: 6px 8px;
    border-radius: 0;
    background: transparent;
    color: #6e3811;
    text-decoration: none;
    border: 0;
    border-left: 3px solid transparent;
    box-shadow: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sidebar-tree-link:hover {
    background: #f6ece3;
    border-color: #d2a27d;
}

.sidebar-tree-link.is-active-branch {
    background: #f2e4d8;
    border-color: #c79067;
    color: #5f2d0d;
}

.sidebar-tree-link.is-current {
    background: #ead3c0;
    border-color: #b86b32;
    color: #4f2204;
    font-weight: 700;
    box-shadow: none;
}

.sidebar-tree-children {
    margin-top: 4px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #e2c2aa;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-tree-level-1 > .sidebar-tree-link:not(.is-current):not(.is-active-branch),
.sidebar-tree-level-2 > .sidebar-tree-link:not(.is-current):not(.is-active-branch),
.sidebar-tree-level-3 > .sidebar-tree-link:not(.is-current):not(.is-active-branch) {
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 3px;
    box-shadow: none;
    padding: 3px 8px;
}

.sidebar-tree-level-1 > .sidebar-tree-link:not(.is-current):not(.is-active-branch):hover,
.sidebar-tree-level-2 > .sidebar-tree-link:not(.is-current):not(.is-active-branch):hover,
.sidebar-tree-level-3 > .sidebar-tree-link:not(.is-current):not(.is-active-branch):hover {
    background: #f6ece3;
    border-left-color: #d0a07a;
    box-shadow: none;
}

.sidebar-tree-level-1 > .sidebar-tree-link:not(.is-current):not(.is-active-branch)::before,
.sidebar-tree-level-2 > .sidebar-tree-link:not(.is-current):not(.is-active-branch)::before,
.sidebar-tree-level-3 > .sidebar-tree-link:not(.is-current):not(.is-active-branch)::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: #bf7a46;
    vertical-align: middle;
}

.sidebar.right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-panel {
    padding: 10px 0 0 0;
    border-bottom: 1px solid #e8c5aa;
}

.sidebar-panel:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.sidebar-panel-title {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #6e3811;
}

.sidebar-panel-text {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    color: #8a5a35;
}

.sidebar-panel-strong {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #4f2204;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8f4a18;
}

.sidebar-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d9bfac;
    background: #fcf8f4;
    color: #44210c;
    border-radius: 0;
    box-shadow: none;
}

.sidebar-input:focus {
    outline: none;
    border-color: #b86b32;
    background: #fffdfb;
}

.sidebar-button {
    align-self: flex-start;
    padding: 6px 10px;
    border: 1px solid #c79067;
    background: #f2e4d8;
    color: #5f2d0d;
    border-radius: 0;
    cursor: pointer;
}

.sidebar-button:hover {
    background: #ead9cb;
}

.sidebar-error {
    padding: 6px 8px;
    border: 1px solid #c96f6f;
    background: #fae8e8;
    color: #7a1f1f;
    font-size: 0.82rem;
}

/* Content */
.content {
    flex: 3;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    min-width: 0;  /* extrem wichtig, sonst scrollt Content raus */
    overflow-x: auto;   /* zwingt Parent nicht, breiter zu werden */
}

.content-block + .content-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ead8c9;
}

.detail-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-gallery {
    margin-bottom: 0;
    padding-top: 0;
    border-bottom: 1px solid #eee1d6;
}

.detail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-title {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #4f2204;
}

.detail-summary {
    margin: 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee1d6;
    color: #75451f;
}

.detail-summary p,
.detail-content p {
    margin: 0;
}

.detail-content {
    color: #2f2a27;
    line-height: 1.6;
}

.detail-meta {
    padding-top: 10px;
    border-top: 1px solid #f1e6dc;
    color: #5d4636;
}

.detail-backlink {
    padding-top: 4px;
}

.content-block-list .item-card {
    border: 0;
    border-top: 1px solid #ead8c9;
    margin-bottom: 0;
    padding: 14px 0;
    background: transparent;
}

.content-block-list .item-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.content-block-list .item-card:hover {
    background: transparent;
}

.content-block-list .item-image {
    width: 92px;
    margin-right: 14px;
}

.content-block-list .item-image img {
    border-radius: 2px;
    box-shadow: none;
}

.content-block-list .item-image img:hover {
    opacity: 0.98;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.content-block-list .item-content {
    padding-top: 1px;
}

.content-block-list .item-header {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
    color: #4f2204;
}

.content-block-list .item-description {
    margin-bottom: 0.45rem;
    color: #6a5240;
    font-style: normal;
}

.content-block-list .item-features {
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: #5d4636;
}

.content-block-list .item-link {
    margin-top: 0.35rem;
}

.content-block-list .item-link a {
    color: #8b4b1b;
}

.content-block-list .item-bestand {
    margin-top: 0.3rem;
    color: #6e3811;
}

/* Footer */
.footer {
    background: #FF6600;
    color: #fff;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10010;
    background: #f7efe7;
    border-top: 1px solid #d6bba3;
    color: #4f2204;
}

.cookie-consent.is-hidden {
    display: none;
}

.cookie-consent-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-consent-text {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.35;
}

.cookie-consent-text a {
    color: #8a3f10;
    margin-left: 10px;
    white-space: nowrap;
}

.cookie-consent-button {
    border: 1px solid #c79067;
    background: #f2e4d8;
    color: #5f2d0d;
    padding: 6px 10px;
    border-radius: 0;
    cursor: pointer;
}

.cookie-consent-button:hover {
    background: #ead9cb;
}

/* -----------------------
   Responsive
------------------------*/
@media (max-width: 700px) {
    .inner-nav ul {
        justify-content: center;
    }

    .inner-nav .subnav {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        background: #ff8a1f;
    }

    .wrapper {
        flex-direction: column;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar.left,
    .content,
    .sidebar.right {
        flex: none;
        width: 100%;
    }
}
