/*
Theme Name: Kreativshop Child
Template: astra
Description: Eigenes Child-Theme für den Kreativshop
Version: 1.0
*/

/* --- Eigene Schriften, lokal vom eigenen Server (DSGVO) --- */
@font-face {
    font-family: 'Caveat';
    src: url('fonts/caveat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/nunito-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/nunito-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Grundschrift für die ganze Seite */
body,
button,
input,
select,
textarea {
    font-family: 'Nunito', sans-serif;
}

/* ==========================================================
   Design B · Landhaus & Natur
   Grundfarben kommen aus dem Customizer (Global → Farben).
   Schriften kommen aus dieser Datei (siehe oben).
   ========================================================== */

/* --- Schriften: Handschrift nur für große Überschriften --- */
h1, h2,
.site-title,
.woocommerce-products-header__title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    line-height: 1.1;
}

h3, h4, h5, h6,
.woocommerce-loop-product__title,
.product_title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* --- Buttons: eckiger, kräftig --- */
.button,
button,
input[type="submit"],
.ast-button,
.wp-block-button__link {
    border-radius: 4px !important;
    font-weight: 700;
}

/* --- Produktkarten in der Übersicht: "genähter" Rahmen --- */
.woocommerce ul.products li.product {
    background: #fbf8f2;
    border: 2px dashed #d9cdb9;
    border-radius: 6px;
    padding: 14px !important;
}

.woocommerce ul.products li.product img {
    border-radius: 3px;
}

/* --- Preise in Rostbraun --- */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #8c5a3c;
    font-weight: 700;
}

/* --- Angebots-Badge --- */
.woocommerce span.onsale,
.ast-onsale-card {
    background-color: #8c5a3c !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

/* --- Unser Marktstand-Hinweis aus dem Plugin --- */
.markt-hinweis {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: #4a5a32;
    margin: 8px 0 16px;
}

/* ==========================================================
   Startseite (Klassen aus den Blöcken der Seite "Startseite")
   ========================================================== */

/* Handschrift-Zeile, z. B. "Mit Herz & Hand gemacht" */
.wk-handschrift {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 30px;
    color: #8c5a3c;
    line-height: 1;
    margin-bottom: 8px;
}

/* Großer Bildbereich oben. Hintergrundbild später im Block
   unter "Stile → Hintergrundbild" einsetzen. */
.wk-hero {
    min-height: 460px;
    background-color: #c9cfb4;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    padding: 40px !important;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
}

.wk-hero-box {
    background: #fbf8f2;
    padding: 32px 36px;
    max-width: 480px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(58, 49, 40, 0.12);
}

.wk-hero-box h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 34px;
    margin: 0 0 12px;
}

/* Vertrauensleiste */
.wk-vertrauen {
    border-top: 1px solid #d9cdb9;
    border-bottom: 1px solid #d9cdb9;
    padding: 20px 0;
    margin-bottom: 48px !important;
    font-size: 15px;
}

.wk-vertrauen p {
    margin: 0;
}

/* Kategorie-Kacheln mit "genähtem" Rahmen */
.wk-kachel {
    background: #fbf8f2;
    border: 2px dashed #d9cdb9;
    border-radius: 6px;
    padding: 20px;
}

.wk-kachel h3 {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    margin-bottom: 6px;
}

.wk-kachel p:last-child {
    margin-bottom: 0;
    font-weight: 700;
}

.wk-kacheln {
    margin-bottom: 56px !important;
}

/* "Hallo, ich bin Wencke" + Laden */
.wk-ueber-mich {
    background: #4a5a32;
    color: #f3ede3;
    border-radius: 6px;
    padding: 48px 40px !important;
    margin-top: 56px;
}

.wk-ueber-mich h2,
.wk-ueber-mich h3,
.wk-ueber-mich a {
    color: #ffffff;
}

/* ==========================================================
   Wunschtext-Feld (aus dem Plugin) und kleine Shop-Hinweise
   ========================================================== */
.kreativshop-wunschtext {
    margin-bottom: 16px;
}

.kreativshop-wunschtext label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.kreativshop-wunschtext input {
    width: 100%;
    max-width: 420px;
    border: 2px dashed #d9cdb9;
    border-radius: 4px;
    background: #fbf8f2;
    padding: 10px 12px;
}

/* Steuer-/Versandhinweis in der Produktübersicht klein und dezent */
.woocommerce ul.products li.product .wc-gzd-additional-info {
    font-size: 12px;
    line-height: 1.4;
    color: #6f6355;
    margin: 2px 0 0;
}

/* ==========================================================
   Ganze Kachel klickbar + zweiter Button im Bildbereich
   ========================================================== */

/* Trick: Der Link bekommt eine unsichtbare Fläche (::after),
   die sich über die komplette Kachel legt. */
.wk-kachel {
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.wk-kachel-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.wk-kachel:hover {
    border-color: #4a5a32;
    transform: translateY(-2px);
}

/* Umriss-Button ("Laden & Öffnungszeiten") */
.wk-hero .is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #4a5a32 !important;
    border: 2px solid #4a5a32 !important;
}

.wk-hero .is-style-outline .wp-block-button__link:hover {
    background: #4a5a32 !important;
    color: #ffffff !important;
}

/* Sanftes Scrollen beim Klick auf "Laden & Öffnungszeiten" */
html {
    scroll-behavior: smooth;
}

/* Buttons im Bildbereich nebeneinander statt untereinander */
.wk-hero .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wk-hero .wp-block-button {
    margin: 0 !important;
}

/* ==========================================================
   Startseite v3: Startbereich mit Wunschmotiv-Zettel
   ========================================================== */
.wk-start {
    background: #efe6d6;
    border-radius: 6px;
    padding: 48px 44px !important;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.wk-start h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 40px;
    line-height: 1.15;
    margin: 8px 0 12px;
}

.wk-start-spalten {
    gap: 40px !important;
    margin-bottom: 0 !important;
}

/* Buttons nebeneinander */
.wk-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wk-buttons .wp-block-button {
    margin: 0 !important;
}

.wk-start .is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #4a5a32 !important;
    border: 2px solid #4a5a32 !important;
}

.wk-start .is-style-outline .wp-block-button__link:hover {
    background: #4a5a32 !important;
    color: #ffffff !important;
}

/* Notizzettel mit Pinnadel */
.wk-notiz {
    position: relative;
    background-color: #fffdf8;
    background-image: repeating-linear-gradient(transparent 0 31px, #efe6d6 31px 32px);
    padding: 30px 30px 28px;
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(58, 49, 40, 0.16);
    transform: rotate(1.5deg);
    max-width: 460px;
    margin: 0 auto;
}

.wk-notiz::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #d9826a, #8c5a3c);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.wk-notiz-titel {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    color: #3a3128;
    margin-bottom: 6px;
}

/* Nummerierte Schritte mit grünen Kreisen */
.wk-schritte {
    list-style: none;
    counter-reset: schritt;
    margin: 14px 0 20px !important;
    padding: 0 !important;
}

.wk-schritte li {
    counter-increment: schritt;
    position: relative;
    padding-left: 48px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.wk-schritte li::before {
    content: counter(schritt);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #4a5a32;
    color: #ffffff;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-schritte strong {
    color: #3a3128;
    font-size: 15px;
}

/* Vertrauensleiste mit Symbolen */
.wk-vertrauen p {
    position: relative;
    padding-left: 54px;
}

.wk-vertrauen p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e8d8 center / 20px no-repeat;
}

.wk-vertrauen .wp-block-column:nth-child(1) p::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a32' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.5-7 10-7 10z'/%3E%3C/svg%3E");
}

.wk-vertrauen .wp-block-column:nth-child(2) p::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a32' stroke-width='1.8'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.wk-vertrauen .wp-block-column:nth-child(3) p::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a32' stroke-width='1.8'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}

.wk-vertrauen .wp-block-column:nth-child(4) p::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a32' stroke-width='1.8'%3E%3Cpath d='M4 5h16v11H8l-4 4z'/%3E%3C/svg%3E");
}

/* Kategorie-Kacheln mit Bild (aus dem Shortcode) */
.wk-kacheln-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}

.wk-kachel2 {
    display: flex;
    flex-direction: column;
    background: #fbf8f2;
    border: 2px dashed #d9cdb9;
    border-radius: 6px;
    padding: 12px 12px 18px;
    text-decoration: none !important;
    color: #4b4136 !important;
    transition: border-color 0.2s, transform 0.2s;
}

.wk-kachel2:hover {
    border-color: #4a5a32;
    transform: translateY(-3px);
}

.wk-kachel-bild {
    aspect-ratio: 16 / 10;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}

.wk-kachel-bild-leer {
    background: #e8dfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6f6355;
}

.wk-kachel-titel {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: #3a3128;
    margin: 0 6px 6px;
}

.wk-kachel-text {
    margin: 0 6px 8px;
    font-size: 15px;
}

.wk-kachel-mehr {
    margin: auto 6px 0;
    font-weight: 700;
    color: #4a5a32;
}

/* Laden-Block: drei Spalten + Instagram-Link */
.wk-ueber-mich h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
}

.wk-insta a {
    display: inline-block;
    border: 2px solid #ffffff;
    border-radius: 4px;
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
}

.wk-insta a:hover {
    background: #ffffff;
    color: #4a5a32 !important;
}

/* Logo in der Kopfzeile */
.custom-logo {
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Anfrage-Formular */
.wk-formular {
    max-width: 620px;
}

.wk-formular label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #3a3128;
}

.wk-formular input[type="text"],
.wk-formular input[type="email"],
.wk-formular input[type="tel"],
.wk-formular textarea {
    width: 100%;
    border: 2px solid #d9cdb9;
    border-radius: 4px;
    background: #fffdf8;
    padding: 10px 12px;
}

.wk-formular input:focus,
.wk-formular textarea:focus {
    border-color: #4a5a32;
    outline: none;
}

.wk-formular-check label {
    font-weight: 400;
    font-size: 14px;
}

.wk-formular-hinweis {
    font-size: 14px;
    color: #6f6355;
}

.wk-falle {
    position: absolute;
    left: -9999px;
}

.wk-formular-fehler {
    background: #f6e3dc;
    border-left: 4px solid #8c5a3c;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.wk-formular-fehler p {
    margin: 0;
}

.wk-formular-ok {
    background: #e4e8d8;
    border-left: 4px solid #4a5a32;
    padding: 16px 20px;
    font-weight: 700;
}

/* Handy */
@media (max-width: 781px) {
    .wk-start {
        padding: 28px 20px !important;
    }

    .wk-start h1 {
        font-size: 30px;
    }

    .wk-notiz {
        transform: none;
        margin-top: 12px;
    }
}

/* ==========================================================
   Korrekturen Startseite
   ========================================================== */

/* Startseite nicht endlos breit ziehen: max. 1240 px, mittig */
.home .entry-content {
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* Kacheln: ganze Fläche ausfüllen, ganze Kachel klickbar */
.wk-kacheln-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wk-kacheln-grid > p,
.wk-kachel2 > p {
    display: contents; /* Sicherheitsnetz, falls WordPress doch <p> einfügt */
}

.wk-kacheln-grid br {
    display: none;
}

.wk-kachel2 {
    position: relative;
    width: 100%;
}

.wk-kachel-link {
    color: #4a5a32 !important;
    text-decoration: none !important;
}

.wk-kachel-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

@media (max-width: 781px) {
    .wk-kacheln-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Aquarell-Band oben (Variante A3)
   ----------------------------------------------------------
   Das Band liegt hinter der Kopfzeile. Kopfzeile wird dafür
   durchsichtig. Pastellfarben, Schrift dunkel. Auf der Startseite ist das Band
   höher, damit der Startbereich hineinragt.
   ========================================================== */
body {
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: url("bilder/aquarell-band-pastell.webp") center top / 100% 100% no-repeat; /* ganzes Bild inkl. weichem Rand zeigen */
    pointer-events: none;
    z-index: 0;
}

body.home::before {
    height: 340px;
}

/* Kopfzeile und Inhalt liegen über dem Band */
.site-header,
.site-content,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Kopfzeile durchsichtig */
#masthead,
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Schrift in der Kopfzeile dunkel – auf Pastell gut lesbar */
.site-header .site-title a,
.site-header .main-header-menu > .menu-item > .menu-link,
.site-header .main-header-menu > .menu-item > .ast-menu-toggle,
.site-header .ast-header-woo-cart,
.site-header .ast-site-header-cart a {
    color: #3a3128 !important;
    text-shadow: none;
}

.site-header .main-header-menu > .menu-item > .menu-link:hover {
    color: #4a5a32 !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Ausklappmenü unter "Shop" bleibt hell und gut lesbar */
.site-header .main-header-menu .sub-menu {
    background: #fbf8f2 !important;
    border: 1px solid #d9cdb9 !important;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(58, 49, 40, 0.12);
}

.site-header .main-header-menu .sub-menu .menu-link {
    color: #3a3128 !important;
    text-shadow: none;
}

.site-header .main-header-menu .sub-menu .menu-link:hover {
    background: #f3ede3;
}

/* Handy: Menü-Symbol dunkel, aufgeklapptes Menü hell */
.ast-mobile-menu-trigger-minimal,
.menu-toggle .ast-mobile-svg {
    color: #3a3128 !important;
    fill: #3a3128 !important;
}

.ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
    background: #fbf8f2 !important;
}

.ast-mobile-header-content .menu-link,
.ast-mobile-popup-drawer .menu-link {
    color: #3a3128 !important;
    text-shadow: none !important;
}

/* Startbereich hebt sich mit Schatten vom Band ab */
.home .wk-start {
    margin-top: 40px;
    box-shadow: 0 12px 32px rgba(58, 49, 40, 0.14);
}


/* Footer-Menü mittig statt rechts */
.site-footer .footer-widget-area,
.site-footer .ast-builder-footer-grid-columns {
    justify-content: center !important;
    text-align: center;
}

.site-footer .menu {
    justify-content: center !important;
}

/* ==========================================================
   Laden-Block: nur noch zwei Spalten, gleich breit
   ========================================================== */
.wk-ueber-mich {
    margin-bottom: 56px !important;
}

.wk-ueber-mich .wp-block-column {
    flex: 1 1 0 !important;
}

/* ==========================================================
   Footer: einheitlich cremefarben, alles mittig
   ========================================================== */
.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.site-above-footer-wrap {
    background: #f3ede3 !important;
    border-top: 0 !important;
}

.site-primary-footer-wrap .ast-builder-grid-row {
    display: flex !important;
    justify-content: center !important;
}

.site-footer .site-footer-section:empty {
    display: none !important;
}

.site-footer .site-footer-section {
    justify-content: center !important;
    text-align: center;
}

.site-footer .menu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 4px 22px;
}

.site-below-footer-wrap {
    border-top: 1px solid #d9cdb9 !important;
    font-size: 14px;
}

/* Instagram-Leiste über dem Footer */
.wk-footer-insta {
    background: #f3ede3;
    border-top: 1px solid #d9cdb9;
    text-align: center;
    padding: 26px 20px 6px;
    position: relative;
    z-index: 1;
}

.wk-footer-insta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4a5a32;
    text-decoration: none;
    font-size: 16px;
}

.wk-footer-insta a:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================
   Seite "Über mich"
   ========================================================== */
.wk-um-intro {
    gap: 48px !important;
    margin-bottom: 48px !important;
}

.wk-foto-platzhalter {
    aspect-ratio: 4 / 5;
    background: #e8dfcf;
    border: 10px solid #ffffff;
    box-shadow: 0 12px 28px rgba(58, 49, 40, 0.15);
    transform: rotate(-2deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6f6355;
    font-size: 14px;
    padding: 20px;
}

.wk-foto-platzhalter p {
    margin: 0;
}

.wk-werte {
    gap: 20px !important;
    margin-bottom: 48px !important;
}

.wk-werte .wp-block-column {
    background: #fbf8f2;
    border: 2px dashed #d9cdb9;
    border-radius: 6px;
    padding: 22px;
}

.wk-werte h3 {
    font-family: 'Caveat', cursive;
    font-size: 30px;
    margin-bottom: 6px;
}

.wk-um-ende {
    background: #efe6d6;
    border-radius: 6px;
    padding: 40px !important;
    text-align: center;
}

.wk-um-ende .wp-block-buttons {
    justify-content: center;
}

/* Notizzettel: Überschrift und erster Satz enger zusammen */
.wk-notiz > * {
    margin-block-start: 0 !important;
}

.wk-notiz-titel {
    margin-bottom: 4px !important;
}

.wk-notiz-titel + p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

/* ==========================================================
   Variante A: kompakter Startbereich, Produkte sofort sichtbar
   ========================================================== */
.home .wk-start {
    padding: 28px 36px !important;
    margin-top: 24px;
}

.home .wk-start h1 {
    font-size: 32px;
    margin: 6px 0 10px;
}

.home .wk-start p {
    margin-bottom: 14px;
}

.wk-notiz {
    padding: 22px 26px 20px;
}

.wk-notiz-titel {
    font-size: 32px;
}

.wk-schritte {
    margin: 10px 0 14px !important;
}

.wk-schritte li {
    margin-bottom: 8px;
    padding-left: 42px;
    font-size: 13px;
    line-height: 1.35;
}

.wk-schritte li::before {
    width: 30px;
    height: 30px;
    font-size: 19px;
}

.wk-schritte strong {
    font-size: 14px;
}

/* Produkte direkt unter dem Startbereich, Abstände enger */
.home .entry-content > h2 {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

.home .wk-vertrauen {
    margin-top: 32px !important;
}

/* Grüner Block mit gezeichnetem Laden */
.wk-laden-bild {
    background: #fbf8f2;
    border-radius: 6px;
    padding: 16px;
    margin: 0 !important;
}

.wk-laden-bild img {
    width: 100%;
    height: auto;
    display: block;
}

.wk-ueber-mich .wp-block-column {
    flex: initial !important;
}

.wk-zitat {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    line-height: 1.2;
    color: #f3ede3;
    margin: 0 0 14px !important;
}

.wk-ueber-mich p {
    margin-bottom: 12px;
}

/* Grüner Block: Zitat im Mittelpunkt mit Zweigen links und rechts */
.wk-zitat-block {
    position: relative;
    text-align: center;
    padding: 44px 160px !important;
}

.wk-zitat-block::before,
.wk-zitat-block::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 110px;
    height: 110px;
    margin-top: -55px;
    background: url("bilder/zweig.svg") center / contain no-repeat;
    opacity: 0.9;
}

.wk-zitat-block::before {
    left: 40px;
}

.wk-zitat-block::after {
    right: 40px;
    transform: scaleX(-1); /* gespiegelt */
}

.wk-zitat-block > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.wk-klein {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px !important;
}

.wk-zitat-block .wk-zitat {
    font-size: 42px;
    line-height: 1.15;
    max-width: 680px;
    margin-bottom: 16px !important;
}

.wk-zeile {
    font-size: 15px;
    margin-bottom: 10px !important;
}

@media (max-width: 781px) {
    .wk-zitat-block {
        padding: 32px 22px !important;
    }

    .wk-zitat-block::before,
    .wk-zitat-block::after {
        display: none;
    }

    .wk-zitat-block .wk-zitat {
        font-size: 32px;
    }
}

/* Grüner Block schlanker */
.wk-zitat-block {
    padding: 26px 130px !important;
}

.wk-zitat-block::before,
.wk-zitat-block::after {
    width: 70px;
    height: 70px;
    margin-top: -35px;
}

.wk-zitat-block .wk-zitat {
    font-size: 30px;
    max-width: none;
    margin-bottom: 8px !important;
}

.wk-klein {
    font-size: 12px;
    margin-bottom: 2px !important;
}

.wk-zeile,
.wk-zitat-block p:last-child {
    font-size: 14px;
    margin-bottom: 4px !important;
}

.wk-zitat-block p:last-child {
    margin-bottom: 0 !important;
}

/* Datei-Upload im Anfrage-Formular */
.wk-formular input[type="file"] {
    display: block;
    width: 100%;
    border: 2px dashed #d9cdb9;
    border-radius: 4px;
    background: #fffdf8;
    padding: 14px;
    margin-bottom: 6px;
    cursor: pointer;
}

.wk-formular input[type="file"]::file-selector-button {
    background: #4a5a32;
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 8px 14px;
    margin-right: 12px;
    font-weight: 700;
    cursor: pointer;
}

.wk-formular .wk-formular-hinweis {
    display: block;
    font-size: 13px;
}

/* Bildvorschau im Anfrage-Formular */
.wk-vorschau {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 18px;
}

.wk-vorschau-bild {
    margin: 0;
    width: 120px;
    background: #ffffff;
    padding: 6px 6px 4px;
    box-shadow: 0 4px 12px rgba(58, 49, 40, 0.15);
    border-radius: 2px;
}

.wk-vorschau-bild img,
.wk-vorschau-leer {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
}

.wk-vorschau-leer {
    background: #e8dfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6f6355;
}

.wk-vorschau-bild figcaption {
    font-size: 11px;
    color: #6f6355;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-vorschau-warnung {
    width: 100%;
    font-size: 13px;
    color: #8c5a3c;
    margin: 0;
}

/* Absenden-Button in Moosgrün statt Grau */
.wk-formular button[type="submit"] {
    background: #4a5a32 !important;
    color: #ffffff !important;
    border: 0;
    border-radius: 4px;
    padding: 12px 26px;
    font-weight: 700;
}

.wk-formular button[type="submit"]:hover {
    background: #36431f !important;
}

/* Häkchen und Text auf einer Linie */
.wk-formular-check label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.wk-formular-check input {
    margin-top: 4px;
    flex: none;
}

/* ==========================================================
   Automatische Anpassung an die Bildschirmgröße
   ----------------------------------------------------------
   clamp(MIN, BEVORZUGT, MAX): Die Größe wächst mit der
   Bildschirmbreite (vw), bleibt aber zwischen MIN und MAX.
   Dieser Block steht bewusst GANZ AM ENDE, damit er alle
   früheren festen Werte überschreibt.
   ========================================================== */

/* Grüner Zitat-Block: Abstände und Schrift passen sich an */
.wk-zitat-block {
    padding: clamp(24px, 4vw, 30px) clamp(20px, 10vw, 130px) !important;
}

.wk-zitat-block .wk-zitat {
    font-size: clamp(24px, 3.2vw, 30px);
}

.wk-zeile {
    font-size: clamp(13px, 1.4vw, 14px);
}

/* Überschriften und Startbereich */
.home .wk-start h1 {
    font-size: clamp(26px, 4vw, 32px);
}

.wk-notiz-titel {
    font-size: clamp(28px, 4vw, 32px);
}

.entry-content > h2,
.home .entry-content > h2 {
    font-size: clamp(30px, 4.5vw, 40px);
}

/* ---------- Tablet & Handy (bis 781 px) ---------- */
@media (max-width: 781px) {
    /* Zweige ausblenden, Zeile mit Zeiten untereinander */
    .wk-zitat-block::before,
    .wk-zitat-block::after {
        display: none;
    }

    .wk-zitat-block {
        padding: 26px 20px !important;
    }

    /* Startbereich: Zettel unter den Text, nicht gedreht */
    .home .wk-start {
        padding: 22px 18px !important;
    }

    .wk-notiz {
        transform: none;
        max-width: none;
        padding: 20px 18px;
    }

    .wk-buttons .wp-block-button,
    .wk-buttons .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    /* Vertrauensleiste 2 × 2 statt 4 untereinander */
    .wk-vertrauen {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 14px !important;
    }

    .wk-vertrauen .wp-block-column {
        flex-basis: auto !important;
    }

    .wk-vertrauen p {
        font-size: 13px;
        padding-left: 46px;
    }

    .wk-vertrauen p::before {
        width: 34px;
        height: 34px;
        background-size: 17px;
    }

    /* Produkte 2 nebeneinander */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 8px !important;
    }

    .woocommerce ul.products li.product .button {
        width: 100%;
        text-align: center;
        padding: 10px 6px;
        font-size: 13px;
    }

    /* Footer-Menü sauber mittig */
    .site-footer .site-footer-section,
    .site-footer .ast-builder-layout-element,
    .site-footer .footer-widget-area {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .site-footer .menu {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .wk-footer-insta a {
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Footer: Astra teilt den Footer in mehrere Spalten – das Menü steckte
   in einer schmalen rechten Spalte. Wir machen daraus EINE Spalte. */
.site-footer .ast-builder-grid-row,
.site-footer .ast-builder-footer-grid-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
}

.site-footer .site-footer-section {
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
    text-align: center !important;
}

.site-footer .site-footer-section:not(:has(*)) {
    display: none !important;
}

/* Menü als umbrechende Zeile statt untereinander */
.site-footer .menu {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 18px !important;
}

.site-footer .menu .menu-link {
    white-space: nowrap;
}

/* Platz für den "Nach oben"-Pfeil, damit er das Copyright nicht verdeckt */
@media (max-width: 781px) {
    .site-below-footer-wrap {
        padding-bottom: 70px !important;
        font-size: 13px;
    }
}

/* Seite "Bestellstatus" */
.woocommerce-form-track-order {
    max-width: 520px;
    background: #fbf8f2;
    border: 2px dashed #d9cdb9;
    border-radius: 6px;
    padding: 24px !important;
    margin: 20px 0 32px !important;
}

.woocommerce-form-track-order > p:first-child {
    display: none; /* englischer Standard-Hinweistext – steht bei uns schon oben */
}

.woocommerce-form-track-order .form-row {
    width: 100% !important;
    float: none !important;
}

.woocommerce-form-track-order input.input-text {
    border: 2px solid #d9cdb9;
    border-radius: 4px;
    background: #fffdf8;
    padding: 10px 12px;
}

.wk-status-liste li {
    margin-bottom: 6px;
}

/* Kopfzeile (mit Ausklappmenü) immer über dem Inhalt */
.site-header {
    z-index: 100 !important;
}

.site-header .main-header-menu .sub-menu {
    z-index: 101 !important;
}

/* ==========================================================
   Bestellstatus: nur Produkt, Preis und Status zeigen
   ========================================================== */

/* Ausblenden: Adressen, Sendungen, "Erneut bestellen" */
.wk-bestellstatus .woocommerce-customer-details,
.wk-bestellstatus .woocommerce-order-details ~ section,
.wk-bestellstatus .woocommerce-order-details ~ h2,
.wk-bestellstatus .woocommerce-order-details ~ table,
.wk-bestellstatus .woocommerce-order-details ~ div,
.wk-bestellstatus .order-again {
    display: none !important;
}

/* In der Tabelle nur noch die Gesamtsumme statt
   Zwischensumme / Versand / Zahlungsart */
.wk-bestellstatus .woocommerce-table--order-details tfoot tr:not(:nth-child(3)) {
    display: none;
}

.wk-bestellstatus .woocommerce-order-details__title {
    display: none; /* Überschrift "Bestelldetails" überflüssig */
}

/* Status als farbiges Etikett hervorheben */
.wk-bestellstatus mark.order-status {
    display: inline-block;
    background: #e4e8d8;
    color: #4a5a32;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 999px;
}

.wk-bestellstatus mark.order-number,
.wk-bestellstatus mark.order-date {
    background: none;
    font-weight: 700;
    color: inherit;
}

.wk-bestellstatus .woocommerce-table--order-details {
    max-width: 520px;
}
