/* fiebigerCMS 2026.38.01.10 · responsive Template-Regeln */

@media (max-width: 1080px) and (min-width: 901px) {
    .template-default {
        --template-shell: min(calc(100% - 42px), 1020px);
        --template-reading: 100%;
    }

    .template-default .template-header-inner {
        gap: 20px;
    }

    .template-default .template-header .site-nav > ul {
        gap: 13px;
    }

    .template-default .template-header .site-nav a {
        font-size: .8rem;
    }
}

@media (max-width: 900px) {
    .template-default {
        --template-shell: min(calc(100% - 36px), 760px);
        --template-reading: 100%;
    }

    .template-default .site-header.template-header {
        position: static;
    }

    .template-default .template-header-inner {
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 9px 0;
    }

    .template-default .template-header .site-name {
        grid-column: 1;
        min-height: 40px;
    }

    .template-default .template-header .template-nav-toggle {
        grid-column: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
    }

    .template-default .template-header-right {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        justify-self: stretch;
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

    .template-default .template-header.is-nav-open .template-header-right {
        display: flex;
    }

    .template-default .template-header .site-nav {
        width: 100%;
    }

    .template-default .template-header .site-nav > ul {
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
        padding: 2px 0 4px;
    }

    .template-default .template-header .site-nav > ul > li > a {
        display: flex;
        min-height: 40px;
        align-items: center;
        padding: 0 9px;
        border-radius: 9px;
    }

    .template-default .template-header .site-nav > ul > li > a:hover,
    .template-default .template-header .site-nav > ul > li > a:focus-visible {
        background: color-mix(in srgb, var(--brand) 6%, var(--surface));
    }

    .template-default .template-header .site-nav li ul {
        position: static;
        display: grid;
        gap: 2px;
        margin: 0 0 6px 12px;
        padding: 2px 0 2px 10px;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }

    .template-default .template-utility-menu {
        align-self: flex-start;
    }

    .template-default .template-header-tools.template-utility-panel {
        right: auto !important;
        left: 0 !important;
        width: min(310px, calc(100vw - 36px)) !important;
        min-width: min(280px, calc(100vw - 36px)) !important;
        max-width: calc(100vw - 36px) !important;
    }

    .template-default .template-content--sidebar {
        grid-template-columns: 1fr;
    }

    .template-default .template-sidebar {
        position: static;
    }

    .template-default .template-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-block: 15px;
    }

    .template-default .template-footer .site-footer-main,
    .template-default .template-footer-meta {
        align-items: flex-start;
    }

    .template-default .template-powered {
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .template-default {
        --template-shell: min(calc(100% - 30px), 680px);
    }

    .template-default .template-content {
        margin-top: 28px;
        margin-bottom: 50px;
    }

    .template-default .template-content .breadcrumbs {
        margin-bottom: 9px;
        font-size: .66rem;
    }

    .template-default .page-heading {
        margin-bottom: 20px;
        padding-top: 8px;
    }

    .template-default .page-heading h1,
    .template-default .prose--home .page-heading h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
        line-height: 1.05;
    }

    .template-default .wysiwyg-content h2,
    .template-default .builder-content h2 {
        font-size: clamp(1.35rem, 7vw, 1.6rem);
    }

    .template-default .wysiwyg-content h3,
    .template-default .builder-content h3 {
        font-size: 1.12rem;
    }

    .template-default .wysiwyg-content p,
    .template-default .wysiwyg-content li,
    .template-default .builder-content p,
    .template-default .builder-content li {
        font-size: .96rem;
        line-height: 1.7;
    }

    .template-default .template-content .content-columns.columns-2,
    .template-default .template-content .content-columns.columns-3 {
        grid-template-columns: 1fr;
    }

    .template-default .wysiwyg-content table,
    .template-default .builder-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 12px;
    }

    .template-default .wysiwyg-content th,
    .template-default .wysiwyg-content td,
    .template-default .builder-content th,
    .template-default .builder-content td {
        padding: 10px 12px;
    }

    .template-default .wysiwyg-content blockquote,
    .template-default .builder-content blockquote {
        margin-inline: 0;
        padding: 12px 15px 12px 17px;
    }
}

@media (max-width: 620px) {
    .template-default .template-header .site-logo {
        max-width: 54vw;
    }

    .template-default .template-header-tools.template-utility-panel {
        width: calc(100vw - 30px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 30px) !important;
        padding: 7px !important;
        border-radius: 14px !important;
    }

    .template-default .template-header-tools .member-menu--guest {
        grid-template-columns: 1fr !important;
    }

    .template-default .template-footer .site-footer-main nav,
    .template-default .template-footer-meta {
        gap: 6px 11px;
    }
}
