/*
 * Wiederverwendbare Bausteine (Figma: 03 Buttons, 07 Theme-Blöcke, 08 WordPress-Elemente).
 * Buttons, Hinweise, Badges, Pagination, Suche, Kommentare, Karten, Hilfsklassen.
 */

/* ---------- Basis-Links ---------- */
.link,
.entry-meta a,
.comment-meta a,
.breadcrumbs a,
.widget a:not(.button) {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.link:hover,
.entry-meta a:hover,
.comment-meta a:hover,
.breadcrumbs a:hover,
.widget a:not(.button):hover {
    color: var(--blue-hover);
}
.link:visited {
    color: var(--purple);
}

/* ---------- Buttons ---------- */
:where(input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]:not([class]), .search-submit, .wp-block-search__button, .wpcf7-submit, .comment-form .submit) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
:where(input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]:not([class]), .search-submit, .wp-block-search__button, .wpcf7-submit):hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
:where(input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]:not([class]), .search-submit, .wp-block-search__button, .wpcf7-submit):active {
    background: var(--lime-dark);
    color: var(--lime);
    filter: none;
    transform: none;
}
:where(input[type="reset"]) {
    background: var(--hover);
    color: var(--white);
}

/* Buttons im Textinhalt: nicht wie normale Links (weiß, unterstrichen) darstellen */
.entry-content a.button,
.entry-content a.button:hover,
.notice a.button {
    color: var(--ink);
    text-decoration: none;
}
.entry-content a.button.outline,
.entry-content a.button.outline:hover,
.entry-content a.button.danger,
.entry-content a.button.danger:hover,
.entry-content a.button.muted,
.entry-content a.button.muted:hover,
.entry-content .notice a.button,
.entry-content .notice a.button:hover {
    color: var(--white);
}
.entry-content a.button.ghost,
.entry-content a.button.ghost:hover {
    color: var(--lime);
    text-decoration: underline;
}

.button:active {
    transform: none;
    filter: brightness(0.9);
}
.button.blue,
.button.info {
    background: var(--blue);
}
.button.danger {
    background: var(--red);
    color: var(--white);
}
.button.muted {
    background: var(--hover);
    color: var(--white);
}
.button.ghost {
    height: auto;
    padding: 0;
    background: none;
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.button.small {
    height: 30px;
    padding: 0 16px;
    font-size: 14px;
}
.button.large {
    height: 56px;
    padding: 0 42px;
    font-size: 30px;
    letter-spacing: -0.76px;
    gap: 14px;
}
.button.block {
    display: flex;
    width: 100%;
}
.button.outline:hover {
    border-color: var(--white);
}
.button.is-loading,
.button[disabled],
.button[aria-disabled="true"],
input[type="submit"]:disabled {
    opacity: 0.4;
    pointer-events: none;
}
.button.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: gd-spin 0.8s linear infinite;
}
@keyframes gd-spin {
    to { transform: rotate(360deg); }
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
}
.icon-button--outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.icon-button--muted {
    background: var(--hover);
    color: var(--white);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Navigation: aktiv und Untermenü ---------- */
.navigation a,
.navigation .nav-item > a {
    position: relative;
    transition: color 0.2s ease;
}
.navigation a:hover {
    color: var(--lime);
}
.navigation a[aria-current="page"]::after,
.navigation .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 24px;
    height: 2px;
    margin-left: -12px;
    border-radius: 1px;
    background: var(--lime);
}
.navigation .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
.navigation .nav-item--parent > a {
    display: inline-flex;
    align-items: center;
}
.navigation .nav-item--parent > a::before {
    content: "";
    order: 2;
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    margin-top: -3px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
}
.navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 5;
    display: none;
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid var(--card-line);
    border-radius: var(--radius-sm);
    background: var(--card-strong);
    box-shadow: 0 12px 30px #0005;
}
.navigation .nav-item--parent:hover > .sub-menu,
.navigation .nav-item--parent:focus-within > .sub-menu {
    display: block;
}
.navigation .sub-menu a {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    white-space: nowrap;
}
.navigation .sub-menu a:hover {
    background: var(--hover);
    color: var(--white);
}
@media (max-width: 900px) {
    .navigation .nav-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .navigation .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 16px;
        border: 0;
        background: none;
        box-shadow: none;
    }
    .navigation .sub-menu a {
        padding: 6px 0;
    }
    .navigation .nav-item--parent > a::before {
        display: none;
    }
}

/* ---------- Hilfsklassen ---------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}
.screen-reader-text:focus,
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 20px;
    overflow: visible;
    clip-path: none;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink);
    font-weight: 600;
    outline: 2px solid var(--white);
    outline-offset: 2px;
}
.alignleft {
    float: left;
    margin: 0.4em 24px 16px 0;
}
.alignright {
    float: right;
    margin: 0.4em 0 16px 24px;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* ---------- Hinweise (Notices) ---------- */
.notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice,
.wpcf7-response-output {
    --notice: var(--lime);
    --notice-bg: var(--lime-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 12px;
    padding: 14px 20px;
    border: 0;
    border-left: 5px solid var(--notice);
    border-radius: var(--radius-sm);
    background: var(--notice-bg);
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
    list-style: none;
}
.notice--info,
.woocommerce-info {
    --notice: var(--blue);
    --notice-bg: var(--blue-dark);
}
.notice--warning {
    --notice: var(--orange);
    --notice-bg: var(--orange-dark);
}
.notice--danger,
.woocommerce-error {
    --notice: var(--red);
    --notice-bg: var(--red-dark);
}
.notice strong:first-child {
    color: var(--notice);
}
.woocommerce-error li {
    margin: 0;
}
.notice .button,
.woocommerce-message .button {
    order: 2;
    margin-left: auto;
    height: 28px;
    padding: 0 14px;
    border: 1.5px solid var(--white);
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
}

/* Formular-Meldungen (Contact Form 7 u. a.): umrandet statt gefüllt */
.wpcf7-response-output {
    border: 1.5px solid var(--lime);
    background: var(--card);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: var(--red);
}
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    border-color: var(--orange);
}
.wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 14px;
    color: var(--red);
}

/* ---------- Badges und Tags ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.badge--sale,
.onsale {
    background: var(--red);
    color: var(--white);
}
.badge--muted {
    background: var(--hover);
    color: var(--muted);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.breadcrumbs span[aria-hidden] {
    color: var(--muted);
}

/* ---------- Seitenlayout für Beiträge, Archive, Suche ---------- */
.site-main {
    background: var(--top);
    padding: 24px 24px 96px;
}
.site-main__inner {
    max-width: 1104px;
    margin: 0 auto;
}
.site-main--narrow .site-main__inner {
    max-width: 760px;
}
body:has(.site-main) {
    background: var(--top);
}
.archive-header {
    margin: 0 0 40px;
}
.archive-title {
    max-width: none;
    margin: 0 0 12px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.archive-description {
    margin: 0;
    color: var(--text-secondary);
}
@media (max-width: 900px) {
    .site-main {
        padding: 8px 24px 72px;
    }
    .archive-title {
        font-size: 36px;
        letter-spacing: -1.35px;
    }
}

/* ---------- Karten (Query Loop / Beitragsliste) ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin: 0 0 56px;
    padding: 0;
    list-style: none;
}
.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--card);
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), border-color 0.2s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-line);
}
.post-card.sticky {
    border-color: var(--lime);
}
.post-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--top);
}
.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}
.post-card__date {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.post-card__title {
    margin: 0;
    font-size: 17.6px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0;
}
.post-card__title a:hover {
    color: var(--lime);
}
.post-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.post-card__more {
    margin-top: auto;
    font-size: 14px;
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Einzelbeitrag ---------- */
.entry-title {
    max-width: none;
    margin: 0 0 20px;
    font-size: 64.8px;
    line-height: 1.04;
    letter-spacing: -2.4px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--muted);
}
.entry-meta .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.entry-featured {
    margin: 0 0 32px;
}
.entry-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
}
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 0;
}
.entry-tags a {
    padding: 5px 12px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius-pill);
    background: var(--field);
    font-size: 14px;
}
.entry-tags a:hover {
    border-color: var(--lime);
    color: var(--lime);
}
.page-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--muted);
}
.page-links a,
.page-links > .post-page-numbers.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--card-line);
    border-radius: 50%;
    color: var(--white);
}
.page-links > .post-page-numbers.current {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink);
}
@media (max-width: 900px) {
    .entry-title {
        font-size: 36px;
        letter-spacing: -1.35px;
    }
}

/* ---------- Pagination ---------- */
/* Abstand zur letzten Trennlinie der Ergebnisliste */
.site-main .pagination {
    margin-top: 40px;
}
.pagination .nav-links,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--card-line);
    border-radius: 20px;
    font-size: 14px;
    color: var(--white);
    transition: border-color 0.2s ease, color 0.2s ease;
}
a.page-numbers:hover {
    border-color: var(--lime);
    color: var(--lime);
}
.page-numbers.current {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--ink);
    font-weight: 600;
}
.page-numbers.dots {
    border-color: transparent;
    color: var(--muted);
}
.post-navigation .nav-links {
    justify-content: space-between;
}
.post-navigation a {
    display: inline-flex;
    height: 36px;
    align-items: center;
    padding: 0 22px;
    border: 1.5px solid var(--white);
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.post-navigation .nav-next a {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--ink);
}
.post-navigation { margin: 48px 0 0; }

/* ---------- Suche ---------- */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.search-form label {
    flex: 1;
    margin: 0;
}
.search-form .search-field {
    min-height: 48px;
    padding-left: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239899a6' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='6.5' cy='6.5' r='5'/%3E%3Cpath d='M10.5 10.5L14.5 14.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}
.search-form .search-submit {
    min-height: 48px;
}

.search-result {
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
}
.search-result:first-child {
    border-top: 1px solid var(--divider);
}
.search-result__title {
    margin: 0 0 4px;
    font-size: 17.6px;
    font-weight: 600;
    letter-spacing: 0;
}
.search-result__title a {
    color: var(--blue);
}
.search-result__excerpt {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--card);
    text-align: center;
}
.no-results .search-form {
    width: 100%;
}
.no-results h1,
.no-results h2 {
    max-width: none;
    margin: 0;
    font-size: 30.4px;
    letter-spacing: -0.76px;
}
.no-results p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- 404 ---------- */
.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    margin: 40px auto 0;
    padding: 56px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--card);
    text-align: center;
}
.error-404__code {
    max-width: none;
    margin: 0;
    font-size: 64.8px;
    line-height: 1;
    letter-spacing: -2.4px;
    font-weight: 700;
    color: var(--lime);
}
.error-404__title {
    margin: 0;
    font-size: 30.4px;
    letter-spacing: -0.76px;
}
.error-404__text {
    margin: 0;
    color: var(--text-secondary);
}
.error-404 .search-form {
    width: 100%;
    max-width: 420px;
}

/* ---------- Kommentare ---------- */
.comments-area {
    margin: 64px 0 0;
}
.comments-title,
.comment-reply-title {
    margin: 0 0 12px;
    font-size: 17.6px;
    font-weight: 600;
    letter-spacing: 0;
    max-width: none;
}
.comment-list,
.comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}
.comment-list .children {
    padding-left: 54px;
}
.comment-body {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
}
.comment-list .children .comment-body {
    border-bottom: 0;
}
.comment-body .avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.comment-main {
    flex: 1;
    min-width: 0;
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 6px;
}
.comment-author {
    font-size: 14px;
    font-weight: 600;
}
.comment-date {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
}
.bypostauthor > .comment-body .comment-author::after {
    content: "Autor";
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.comment-content p {
    margin: 0 0 0.8em;
}
.comment-content p:last-child {
    margin-bottom: 0;
}
.reply {
    margin-top: 6px;
    font-size: 14px;
}
.reply a {
    color: var(--blue);
}
.comment-awaiting-moderation {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--orange);
}
.comment-respond {
    margin: 40px 0 0;
}
.comment-form {
    display: grid;
    gap: 14px;
}
.comment-form p {
    margin: 0;
}
.comment-form .comment-form-comment textarea {
    min-height: 120px;
}
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.comment-form .comment-form-cookies-consent label {
    margin: 0;
}
.comment-form .form-submit {
    margin-top: 6px;
}
.comment-form .submit {
    min-height: 36px;
}
.comment-notes,
.logged-in-as {
    font-size: 14px;
    color: var(--muted);
}
#cancel-comment-reply-link {
    margin-left: 12px;
    font-size: 14px;
    color: var(--blue);
}
.no-comments {
    margin-top: 24px;
    color: var(--muted);
}

/* ---------- Passwortgeschützter Beitrag ---------- */
.post-password-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--card);
}
.post-password-form > p:first-child {
    flex: 1 1 100%;
    margin: 0;
    color: var(--text-secondary);
}
.post-password-form p {
    margin: 0;
}
.post-password-form label {
    margin: 0;
}
.post-password-form input[type="password"] {
    min-height: 48px;
}

/* ---------- Bildunterschrift (classic caption) ---------- */
.wp-caption {
    max-width: 100%;
    margin: 0 0 1.25em;
}
.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.wp-caption-text,
.gallery-caption {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Klassische Galerie ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
    gap: 8px;
    margin: 0 0 1.25em;
}
.gallery-columns-1 { --gallery-cols: 1; }
.gallery-columns-2 { --gallery-cols: 2; }
.gallery-columns-4 { --gallery-cols: 4; }
.gallery-columns-5 { --gallery-cols: 5; }
.gallery-item {
    margin: 0;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ---------- Widgets / Seitenleiste ---------- */
.widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin: 72px 0 0;
    padding-top: 40px;
    border-top: 1px solid var(--divider);
}
.widget {
    font-size: 14px;
}
.widget-title {
    margin: 0 0 14px;
    font-size: 17.6px;
    font-weight: 600;
    letter-spacing: 0;
}
.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.widget li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--divider);
    color: var(--muted);
}
.widget li a {
    color: var(--white);
    text-decoration: none;
}
.widget li a:hover {
    color: var(--lime);
}
.widget .post-date {
    color: var(--muted);
}

/* Schlagwortwolke */
.tagcloud,
.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tagcloud a,
.wp-block-tag-cloud a {
    padding: 5px 12px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius-pill);
    background: var(--field);
    color: var(--white);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
    border-color: var(--lime);
    color: var(--lime);
}

/* Kalender */
.wp-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}
.wp-calendar-table caption {
    padding: 0 0 12px;
    text-align: left;
    font-size: 15.2px;
    font-weight: 600;
    color: var(--white);
}
.wp-calendar-table th {
    padding: 4px 0;
    border: 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}
.wp-calendar-table td {
    padding: 4px 0;
    border: 0;
    color: var(--text-secondary);
}
.wp-calendar-table td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    border-radius: 14px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.wp-calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
}

/* ---------- Cookie-Banner (Klassen für Plugin- oder Eigenlösung) ---------- */
.cookie-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    padding: 24px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius-card);
    background: var(--card-strong);
}
.cookie-banner__text {
    flex: 1 1 360px;
}
.cookie-banner__text h2,
.cookie-banner__text h3 {
    margin: 0 0 6px;
    font-size: 17.6px;
    letter-spacing: 0;
}
.cookie-banner__text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cookie-setting {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 14px;
}
.cookie-setting label {
    flex: 1;
    margin: 0;
}


/* ---------- Header: Konto- und Warenkorb-Symbole ---------- */
.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--card-line);
    border-radius: 50%;
    color: var(--white);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.icon-link:hover,
.icon-link:focus-visible {
    border-color: var(--lime);
    color: var(--lime);
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
.nav-extra {
    display: none;
}
@media (min-width: 901px) {
    .header-actions {
        position: fixed;
        top: 28px;
        right: 40px;
        z-index: 10;
        height: 38px;
        gap: 14px;
    }
    .header-actions .contact {
        position: static;
    }
}
@media (max-width: 900px) {
    .icon-link {
        display: none;
    }
    .navigation.is-open .nav-extra {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        padding-top: 24px;
        border-top: 1px solid var(--divider);
    }
    .nav-extra a {
        color: var(--white);
    }
}

/* ---------- Hinweise: Symbol im Fluss statt über dem Text (WooCommerce setzt es absolut) ---------- */
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before,
body .woocommerce-notice::before,
body .notice::before {
    content: "";
    position: static;
    flex: none;
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 50%;
    background-color: var(--notice);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230f0d12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.4l2.4 2.4 4.6-5'/%3E%3C/svg%3E");
    font-family: inherit;
    font-size: 0;
    color: transparent;
    line-height: 1;
}
body .woocommerce-info::before,
body .notice--info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230f0d12' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 6.2v4.3'/%3E%3Ccircle cx='7' cy='3.6' r='.6' fill='%230f0d12'/%3E%3C/svg%3E");
}
body .woocommerce-error::before,
body .notice--danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23f7f7f8' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4.2 4.2l5.6 5.6M9.8 4.2L4.2 9.8'/%3E%3C/svg%3E");
}
body .notice--warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230f0d12' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 3.2v4.6'/%3E%3Ccircle cx='7' cy='10.4' r='.6' fill='%230f0d12'/%3E%3C/svg%3E");
}
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error,
body .woocommerce-notice {
    padding: 14px 20px;
    text-indent: 0;
}
/* Fehlerliste: Symbol links, Meldungen untereinander */
body ul.woocommerce-error {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding-left: 58px;
}
body ul.woocommerce-error::before {
    position: absolute;
    top: 14px;
    left: 20px;
}
body ul.woocommerce-error li {
    margin: 0;
    padding: 0;
    list-style: none;
}
body ul.woocommerce-error li strong {
    color: var(--white);
}
/* WooCommerce-Hinweise (div): Fließtext mit Symbol links, Button rechts bzw. mobil darunter */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-notice):not(ul) {
    position: relative;
    display: block;
    padding: 14px 20px 14px 58px;
    min-height: 52px;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-notice):not(ul)::before {
    position: absolute;
    top: 14px;
    left: 20px;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-notice):not(ul)::after {
    content: "";
    display: table;
    clear: both;
}
/* .notice (eigene Klasse) bleibt Flex: Symbol, Text und Button in einer Zeile */
body .notice {
    flex-wrap: nowrap;
    align-items: center;
}
/* Buttons in Hinweisen: Outline, rechts */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-notice) a.button {
    float: right;
    margin: -2px 0 0 16px;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice) a.button {
    order: 2;
    flex: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 28px;
    margin: 0 0 0 auto;
    padding: 0 14px;
    border: 1.5px solid var(--white);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice) a.button:hover {
    background: var(--white);
    color: var(--ink);
    filter: none;
    transform: none;
}
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    body :is(.woocommerce-message, .woocommerce-info, .woocommerce-notice):is(.woocommerce-message, .woocommerce-info, .woocommerce-notice) a.button {
        float: none;
        display: flex;
        width: fit-content;
        margin: 12px 0 0;
    }
    body .notice {
        flex-wrap: wrap;
    }
    body .notice a.button {
        margin: 6px 0 0 38px;
    }
}

/* ---------- Header: Hintergrund beim Scrollen (nur Desktop; mobil scrollt der Header mit) ---------- */
@media (min-width: 901px) {
    /* Navigation fest, damit sie wie Logo und Buttons beim Scrollen sichtbar bleibt */
    .navigation {
        position: fixed;
    }
    /* Balken liegt im Stapel des Headers (z-index 2): über dem Inhalt, hinter Logo, Navigation und Buttons */
    .header::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: -1;
        height: 92px;
        border-bottom: 1px solid var(--divider);
        background: rgb(24 22 28 / 0.94);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    body.is-scrolled .header::before {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .header::before {
        transition: none;
    }
}
