/* fiebigerCMS 2026.38.01.10 · System-Template · WYSIWYG bleibt strukturell unveraendert */

.template-default {
    --template-shell: min(calc(100% - 48px), 1320px);
    --template-reading: 100%;
    --template-header-height: 72px;
    display: flex;
    flex: 1 0 auto;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    background: var(--bg);
}

.template-default .site-main {
    display: block;
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    background: var(--bg);
}

.template-default .template-header-inner,
.template-default .template-content,
.template-default .template-footer-inner {
    width: var(--template-shell);
    margin-inline: auto;
}

/* Header: eine ruhige Zeile mit Logo links und Navigation rechts. */
.template-default .site-header.template-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: none;
}

.template-default .template-header-inner {
    min-height: var(--template-header-height);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
}

.template-default .template-header .site-name {
    min-width: 0;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    text-decoration: none;
    font-size: 1.22rem;
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.template-default .template-header .site-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(205px, 30vw);
    max-height: 38px;
}

.template-default .template-header-right {
    min-width: 0;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.template-default .template-header .site-nav {
    min-width: 0;
}

.template-default .template-header .site-nav > ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(15px, 1.55vw, 24px);
    list-style: none;
}

.template-default .template-header .site-nav li {
    position: relative;
    list-style: none;
}

.template-default .template-header .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}

.template-default .template-header .site-nav a:hover,
.template-default .template-header .site-nav a:focus-visible {
    color: var(--brand);
}

.template-default .template-header .site-nav li ul {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: -10px;
    z-index: 95;
    min-width: 210px;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(22, 40, 58, .12);
}

.template-default .template-header .site-nav li:hover > ul,
.template-default .template-header .site-nav li:focus-within > ul {
    display: grid;
    gap: 2px;
}

.template-default .template-header .site-nav li ul a {
    width: 100%;
    min-height: 38px;
    padding: 0 9px;
    border-radius: 8px;
    white-space: normal;
}

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

/* Drei-Punkte-Menü: eigenes Popover statt verschachteltem äußerem details. */
.template-default .template-utility-menu {
    position: relative;
    flex: 0 0 auto;
}

.template-default .template-utility-trigger {
    appearance: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.template-default .template-utility-trigger:hover,
.template-default .template-utility-menu.is-open .template-utility-trigger {
    border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
    color: var(--brand);
}

.template-default .template-utility-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.template-default .template-utility-dots i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.template-default .template-utility-trigger:focus-visible,
.template-default .template-nav-toggle:focus-visible,
.template-default .template-header .site-nav a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent);
    outline-offset: 3px;
}

.template-default .template-header-tools.template-utility-panel {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 10px) !important;
    z-index: 110;
    width: min(310px, calc(100vw - 30px)) !important;
    min-width: 280px !important;
    max-width: 310px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 9px !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: 0 22px 54px rgba(24, 39, 57, .16) !important;
    transform: none !important;
    max-height: min(560px, calc(100vh - 110px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.template-default .template-header-tools.template-utility-panel[hidden] {
    display: none !important;
}

.template-default .template-header-tools::before {
    display: none !important;
}

.template-default .template-tool {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
}

.template-default .template-tool:empty {
    display: none;
}

.template-default .template-header-tools .fws-template-search,
.template-default .template-header-tools .quick-access,
.template-default .template-header-tools .language-switcher,
.template-default .template-header-tools .member-menu {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    flex: none !important;
    transform: none !important;
}

.template-default .template-tool--search .fws-template-search {
    display: block !important;
}

.template-default .template-tool--search .fws-template-search > button,
.template-default .template-tool--search .fws-template-search > a,
.template-default .template-tool--search .fws-template-search > summary,
.template-default .template-tool--search .fws-template-search-toggle,
.template-default .template-tool--search .fws-template-search__toggle {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
    padding-inline: 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.template-default .template-header-tools .quick-access > summary,
.template-default .template-header-tools .language-switcher > summary,
.template-default .template-header-tools .member-menu--account > summary {
    width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
    font-size: .82rem !important;
    font-weight: 750 !important;
    cursor: pointer;
}

.template-default .template-header-tools .quick-access > summary:hover,
.template-default .template-header-tools .language-switcher > summary:hover,
.template-default .template-header-tools .member-menu--account > summary:hover {
    background: color-mix(in srgb, var(--brand) 6%, var(--surface)) !important;
    color: var(--brand) !important;
}

.template-default .template-header-tools .quick-access__menu-icon {
    width: 22px;
    display: inline-grid;
    place-items: center;
    color: var(--brand);
}

.template-default .template-header-tools .quick-access__panel,
.template-default .template-header-tools .language-switcher ul,
.template-default .template-header-tools .member-menu__panel {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: 250px;
    overflow: auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    margin: 4px 0 6px !important;
    padding: 5px !important;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent) !important;
    border-radius: 11px !important;
    background: color-mix(in srgb, var(--bg) 62%, var(--surface)) !important;
    box-shadow: none !important;
    transform: none !important;
}

.template-default .template-header-tools .quick-access__item {
    min-height: 39px !important;
    grid-template-columns: 27px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 5px 7px !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

.template-default .template-header-tools .quick-access__item-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
    font-size: .65rem !important;
}

.template-default .template-header-tools .member-menu--guest {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 4px 2px 2px !important;
}

.template-default .template-header-tools .member-menu__link {
    min-height: 38px !important;
    padding-inline: 10px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: .78rem !important;
}

.template-default .template-header-tools .member-menu__link:hover {
    transform: none !important;
}

.template-default .template-header-tools .member-menu__link--login {
    border: 1px solid var(--line) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
}

.template-default .template-header-tools .member-menu__link--register {
    border: 1px solid var(--brand) !important;
    background: var(--brand) !important;
    color: #fff !important;
}

.template-default .template-header-tools .member-menu__avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: .7rem !important;
}

.template-default .template-header-tools .member-menu__account-name {
    max-width: none !important;
}

/* Im Utility-Popover muss das Konto-details untereinander laufen.
   Die globale .member-menu-Regel nutzt flex und wuerde das Panel sonst rechts daneben quetschen. */
.template-default .template-header-tools .member-menu--account {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    align-items: stretch !important;
    gap: 0 !important;
    box-sizing: border-box !important;
}

.template-default .template-header-tools .member-menu--account > summary {
    box-sizing: border-box !important;
}

.template-default .template-header-tools .member-menu--account[open] > summary {
    background: color-mix(in srgb, var(--brand) 6%, var(--surface)) !important;
    color: var(--brand) !important;
}

.template-default .template-header-tools .member-menu--account > .member-menu__panel {
    display: grid !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 4px 0 2px !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.template-default .template-header-tools .member-menu__panel-link,
.template-default .template-header-tools .member-menu__logout button {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

/* Inhaltsbereich: WYSIWYG zuerst. Der Editor liefert semantisches HTML, das Template gestaltet es automatisch. */
.template-default {
    --template-reading: 100%;
    --page-content-width: 100%;
    --page-content-margin: 0;
    --page-heading-width: 100%;
    --page-text-width: 100%;
    --template-card-radius: clamp(16px, var(--theme-radius, 18px), 24px);
    --template-shadow: 0 16px 42px rgba(24, 39, 57, .055);
    --template-soft: color-mix(in srgb, var(--brand) 4%, var(--surface));
    --template-accent: var(--accent, #d5a430);
}

.template-default .template-content {
    align-self: flex-start;
    margin-top: clamp(38px, 4.2vw, 58px);
    margin-bottom: clamp(62px, 7vw, 92px);
}

.template-default .site-content.template-content--default,
.template-default .site-content.template-content--fullwidth,
.template-default .site-content.template-content--landingpage {
    width: var(--template-shell);
}

.template-default .template-content--default .prose,
.template-default .template-content--landingpage .prose,
.template-default .template-content--fullwidth .prose {
    width: min(100%, var(--page-content-width, 100%));
    margin-block: 0;
    margin-inline: var(--page-content-margin, 0);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.template-default .template-content--fullwidth .prose,
.template-default .template-content--landingpage .prose,
.template-default .template-content .prose--builder,
.template-default .template-content .prose--longform {
    width: min(100%, var(--page-content-width, 100%));
}

/* Breadcrumbs wirken wie die kleine Akzentzeile der Designvorschau. */
.template-default .template-content .breadcrumbs {
    margin: 0 0 10px;
    color: var(--template-accent);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .075em;
    line-height: 1.35;
    text-transform: uppercase;
}

.template-default .template-content .breadcrumbs ol {
    gap: 7px;
}

.template-default .template-content .breadcrumbs li,
.template-default .template-content .breadcrumbs a {
    color: inherit;
}

.template-default .template-content .breadcrumbs a {
    text-decoration: none;
}

.template-default .template-content .breadcrumbs a:hover,
.template-default .template-content .breadcrumbs a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Seitentitel bleibt ausserhalb des Editorinhalts. */
.template-default .page-heading {
    position: relative;
    max-width: var(--page-heading-width, 100%);
    margin: 0 0 clamp(24px, 3vw, 34px);
    padding-top: 9px;
}

.template-default .page-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--template-accent);
}

.template-default .page-heading h1 {
    max-width: var(--page-heading-width, 100%);
    margin: 0;
    color: var(--text);
    font-size: clamp(2.15rem, 3.35vw, 2.75rem);
    font-weight: 850;
    letter-spacing: -.048em;
    line-height: 1.04;
    text-wrap: balance;
}

.template-default .prose--home .page-heading {
    margin-bottom: 20px;
}

.template-default .prose--home .page-heading h1 {
    font-size: clamp(2.35rem, 4vw, 3rem);
}

/* Klassischer WYSIWYG-Inhalt: Das vom Editor gespeicherte HTML bleibt auch in der Darstellung
   strukturell unveraendert. Keine automatischen Wrapper, Karten oder Abschnittsumbauten. */
.template-default .wysiwyg-content {
    width: 100%;
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.template-default .wysiwyg-content::after {
    content: '';
    display: table;
    clear: both;
}

.template-default .wysiwyg-content > :first-child {
    margin-top: 0;
}

.template-default .wysiwyg-content > :last-child {
    margin-bottom: 0;
}

/* Eigene page-* / fd-page-* Klassen duerfen im WYSIWYG-HTML bewusst gesetzt werden.
   Deren konkrete Gestaltung kommt aus dem optionalen, separat geladenen Seiten-CSS. */
.template-default .wysiwyg-content div[class*="page-"],
.template-default .wysiwyg-content section[class*="page-"] {
    max-width: 100%;
}

/* Typografie fuer alle normalen WYSIWYG-Tags. */
.template-default .wysiwyg-content h2,
.template-default .builder-content h2 {
    max-width: var(--page-text-width, 100%);
    margin: 1.8em 0 .62em;
    color: var(--text);
    font-size: clamp(1.45rem, 2vw, 1.78rem);
    font-weight: 830;
    letter-spacing: -.032em;
    line-height: 1.16;
    text-wrap: balance;
}


.template-default .wysiwyg-content h3,
.template-default .builder-content h3 {
    max-width: var(--page-text-width, 100%);
    margin: 1.55em 0 .5em;
    color: var(--text);
    font-size: clamp(1.12rem, 1.45vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -.018em;
    line-height: 1.25;
}

.template-default .wysiwyg-content h4,
.template-default .wysiwyg-content h5,
.template-default .wysiwyg-content h6,
.template-default .builder-content h4,
.template-default .builder-content h5,
.template-default .builder-content h6 {
    max-width: var(--page-text-width, 100%);
    margin: 1.4em 0 .45em;
    color: var(--text);
    font-weight: 800;
    line-height: 1.3;
}

.template-default .wysiwyg-content p,
.template-default .wysiwyg-content li,
.template-default .builder-content p,
.template-default .builder-content li {
    max-width: var(--page-text-width, 100%);
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
    font-size: 1rem;
    line-height: 1.74;
}

.template-default .wysiwyg-content p,
.template-default .builder-content p {
    margin: 0 0 1.05em;
}

.template-default .wysiwyg-content strong,
.template-default .builder-content strong {
    color: var(--text);
    font-weight: 800;
}

.template-default .wysiwyg-content em,
.template-default .builder-content em {
    color: color-mix(in srgb, var(--text) 91%, var(--muted));
}

.template-default .wysiwyg-content ul,
.template-default .wysiwyg-content ol,
.template-default .builder-content ul,
.template-default .builder-content ol {
    max-width: var(--page-text-width, 100%);
    margin: .65rem 0 1.25rem;
    padding-left: 1.3rem;
}

.template-default .wysiwyg-content li,
.template-default .builder-content li {
    padding-left: .16rem;
}

.template-default .wysiwyg-content li + li,
.template-default .builder-content li + li {
    margin-top: .32rem;
}

.template-default .wysiwyg-content li::marker,
.template-default .builder-content li::marker {
    color: var(--brand);
    font-weight: 800;
}

.template-default .wysiwyg-content a:not(.content-button),
.template-default .builder-content a:not(.content-button) {
    color: var(--brand);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.template-default .wysiwyg-content a:not(.content-button):hover,
.template-default .wysiwyg-content a:not(.content-button):focus-visible,
.template-default .builder-content a:not(.content-button):hover,
.template-default .builder-content a:not(.content-button):focus-visible {
    text-decoration-thickness: 2px;
}

.template-default .wysiwyg-content blockquote,
.template-default .builder-content blockquote {
    max-width: var(--page-text-width, 100%);
    margin: 1.45rem 0;
    padding: 14px 18px 14px 20px;
    border: 0;
    border-left: 4px solid var(--template-accent);
    border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--template-accent) 8%, var(--surface));
    color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

.template-default .wysiwyg-content blockquote p,
.template-default .builder-content blockquote p {
    margin: 0;
    font-size: 1.02rem;
    font-style: italic;
}

.template-default .wysiwyg-content blockquote p + p,
.template-default .builder-content blockquote p + p {
    margin-top: .6rem;
}

.template-default .wysiwyg-content hr,
.template-default .builder-content hr {
    width: 100%;
    margin: 1.8rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.template-default .wysiwyg-content code,
.template-default .builder-content code {
    padding: .09em .36em;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 6px;
    background: color-mix(in srgb, var(--brand) 4%, var(--surface));
    color: var(--text);
    font-size: .9em;
}

.template-default .wysiwyg-content pre,
.template-default .builder-content pre {
    max-width: 100%;
    margin: 1.2rem 0 1.5rem;
    padding: 18px 20px;
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    border-radius: 14px;
    background: #172330;
    color: #e8eef4;
    line-height: 1.6;
}

.template-default .wysiwyg-content pre code,
.template-default .builder-content pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.template-default .wysiwyg-content mark,
.template-default .builder-content mark {
    padding: .04em .2em;
    border-radius: 4px;
    background: color-mix(in srgb, var(--template-accent) 30%, #fff);
    color: var(--text);
}

/* Bilder aus dem WYSIWYG wirken ohne weitere Bearbeitung fertig. */
.template-default .wysiwyg-content img,
.template-default .builder-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--template-card-radius);
}

.template-default .wysiwyg-content figure,
.template-default .builder-content figure {
    max-width: 100%;
    margin: 1.35rem 0 1.7rem;
}

.template-default .wysiwyg-content figure img,
.template-default .builder-content figure img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(24, 39, 57, .07);
}

.template-default .wysiwyg-content figcaption,
.template-default .builder-content figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
}

.template-default .wysiwyg-content video,
.template-default .wysiwyg-content iframe,
.template-default .builder-content video,
.template-default .builder-content iframe {
    max-width: 100%;
    border-radius: var(--template-card-radius);
}

/* Tabellen aus dem Editor: sauber, responsive und ohne manuelle Klassen. */
.template-default .wysiwyg-content table,
.template-default .builder-content table {
    width: 100%;
    max-width: 100%;
    margin: 1.2rem 0 1.55rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.template-default .wysiwyg-content caption,
.template-default .builder-content caption {
    padding: 0 0 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-align: left;
}

.template-default .wysiwyg-content th,
.template-default .wysiwyg-content td,
.template-default .builder-content th,
.template-default .builder-content td {
    padding: 12px 14px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.template-default .wysiwyg-content th,
.template-default .builder-content th {
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
    color: var(--text);
    font-size: .88rem;
    font-weight: 820;
}

.template-default .wysiwyg-content td,
.template-default .builder-content td {
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
    font-size: .92rem;
}

.template-default .wysiwyg-content tr > *:last-child,
.template-default .builder-content tr > *:last-child {
    border-right: 0;
}

.template-default .wysiwyg-content tbody tr:last-child td,
.template-default .builder-content tbody tr:last-child td {
    border-bottom: 0;
}

.template-default .wysiwyg-content tbody tr:hover td,
.template-default .builder-content tbody tr:hover td {
    background: color-mix(in srgb, var(--brand) 2.5%, var(--surface));
}

/* Content Builder folgt derselben visuellen Sprache. */
.template-default .template-content .builder-content {
    display: grid;
    gap: clamp(18px, 2.6vw, 28px);
    width: 100%;
}

.template-default .template-content .content-columns {
    gap: 14px;
}

.template-default .template-content .content-columns > div {
    min-height: 108px;
    padding: clamp(18px, 2.2vw, 24px);
    border: 1px solid var(--line);
    border-radius: var(--template-card-radius);
    background: var(--surface);
    box-shadow: var(--template-shadow);
}

.template-default .template-content .content-cta,
.template-default .template-content .content-download,
.template-default .template-content .content-notice,
.template-default .template-content .content-contact,
.template-default .template-content .public-form-card,
.template-default .template-content .content-faq details {
    border-color: var(--line);
    border-radius: var(--template-card-radius);
    background: var(--surface);
    box-shadow: var(--template-shadow);
}

.template-default .template-content .content-cta.style-soft {
    background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}

.template-default .template-content .content-button,
.template-default .template-content .public-form button {
    min-height: 46px;
    padding-inline: 19px;
    border-radius: min(var(--theme-radius, 18px), 22px);
    font-weight: 820;
    box-shadow: none;
}

.template-default .template-content .content-image img,
.template-default .template-content .content-gallery figure,
.template-default .template-content .content-video video {
    border-radius: var(--template-card-radius);
}

/* Sidebar bleibt funktional und greift die Kartenform auf. */
.template-default .template-content--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 285px);
    gap: 30px;
}

.template-default .template-content--sidebar .prose {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.template-default .template-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--template-card-radius);
    background: var(--surface);
    box-shadow: var(--template-shadow);
}

/* Footer: kompakt und auf derselben Achse wie der Seiteninhalt. */
.template-default .template-footer {
    width: 100%;
    min-height: 58px;
    margin-top: auto;
    padding: 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: none;
    text-align: left;
    font-size: .78rem;
}

.template-default .template-footer-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 12px;
}

.template-default .template-footer .site-footer-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.template-default .template-footer .site-footer-main nav,
.template-default .template-footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 13px;
}

.template-default .template-footer .site-footer-main a,
.template-default .template-footer .template-powered a,
.template-default .template-footer-meta,
.template-default .template-footer-meta small {
    color: var(--muted);
}

.template-default .template-footer .site-footer-main a:hover,
.template-default .template-footer .template-powered a:hover,
.template-default .template-footer .site-footer-main a:focus-visible,
.template-default .template-footer .template-powered a:focus-visible {
    color: var(--brand);
}

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

.template-default .template-nav-toggle {
    display: none;
    appearance: none;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: .78rem;
    font-weight: 760;
    cursor: pointer;
}

.template-default .template-consent-button {
    width: max-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.template-default .template-consent-button:hover,
.template-default .template-consent-button:focus-visible {
    color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
    .template-default *,
    .template-default *::before,
    .template-default *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
