/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ============================================================
   STURMFEST – CHECKOUT-STYLING (CI-konform)
   Scope: nur Checkout-Seite (.woocommerce-checkout)
   Reine Optik – keine Funktionsänderung an Feldern/Checkboxen.
   ============================================================ */

:root {
    --sf-primary:      #2E4A62; /* Schieferblau */
    --sf-primary-dark: #1F3344;
    --sf-secondary:    #3D5C3A; /* Waldgrün */
    --sf-bg:           #F2EDE3; /* Creme */
    --sf-accent:       #C8860A; /* Bernstein */
    --sf-border:       #E2DCCD;
    --sf-text:         #33373B;
}

/* Checkout nutzt Standard-WooCommerce/Astra-Layout (Custom-Styling am 2026-06-24 entfernt) */


/* ============================================================
   STURMFEST – TYPO-ANGLEICH (Footer + Block-Schriftgrößen)
   1) Footer-Rechtliches-Menü exakt auf Copyright-Größe
   2) Block-Preset "S" etwas größer & responsiv (lesbarer)
   ============================================================ */

:root {
    /* eine Stellschraube für die gesamte untere Footer-Zeile */
    --sf-footer-fs: 12px;
}

/* 1) Untere Footer-Zeile: Menü-Links UND Copyright auf dieselbe Größe.
   Dadurch ist das Rechtliches-Menü so klein wie der Copyright-Text. */
.ast-below-footer-wrap .footer-primary-navigation .menu-link,
.ast-below-footer-wrap .footer-primary-navigation .menu-item a,
.site-below-footer-wrap .footer-primary-navigation a,
.ast-below-footer-wrap .ast-footer-copyright,
.ast-below-footer-wrap .ast-footer-copyright p {
    font-size: var(--sf-footer-fs) !important;
    line-height: 1.6;
}

/* 2) Block-Schriftgröße "S" (.has-small-font-size) – global etwas größer
   und auf allen Geräten flüssig skalierend, dadurch besser lesbar.
   Wirkt überall, wo du im Block-Editor "S" gewählt hast. */
.has-small-font-size {
    font-size: clamp(15px, 0.95rem + 0.15vw, 17px) !important;
    line-height: 1.65;
}

/* ============================================================
   STURMFEST – Lektions-Kommentare + Footer-Menü (breiter gefasst)
   ============================================================ */

/* Footer-Menü-Links sicher treffen, egal in welcher Footer-Zeile */
footer.site-footer .footer-primary-navigation a,
footer.site-footer .footer-primary-navigation .menu-link {
    font-size: var(--sf-footer-fs) !important;
}

/* Kommentar-Bereich */
.sturmfest-lesson-comments { margin-top:40px; padding-top:24px; border-top:1px solid var(--sf-border); text-align:left; }
.sturmfest-lesson-comments h3 { margin-bottom:4px; color:var(--sf-primary); }
.sf-comments-note { margin:0 0 16px; color:#777; font-size:.85em; }
.sf-comments-empty { color:#777; }
.sf-comment-list { list-style:none; padding:0; margin:24px 0 0; }
.sf-comment { padding:16px 0; border-top:1px solid #ececec; }
.sf-comment-head { margin-bottom:6px; }
.sf-comment-author { font-weight:600; color:var(--sf-primary); }
.sf-comment-date { color:#999; font-size:.82em; margin-left:8px; }
.sf-comment-body { color:var(--sf-text); line-height:1.6; }
.sf-comment-body p { margin:0 0 8px; }
.sf-comment-replies { list-style:none; margin:12px 0 0 24px; padding:0 0 0 16px; border-left:2px solid var(--sf-border); }
.sf-comment-reply { padding:12px 0; border-top:none; }
.sf-reply-toggle { margin-top:8px; }
.sf-reply-toggle summary { cursor:pointer; color:var(--sf-primary); font-size:.88em; display:inline-block; list-style:none; }
.sf-reply-toggle summary::-webkit-details-marker { display:none; }
.sf-reply-toggle summary:hover { text-decoration:underline; }
.sf-comment-form { margin-top:12px; }
.sf-comment-form textarea { width:100%; padding:12px; border:1px solid #ccc; border-radius:6px; box-sizing:border-box; font-family:inherit; font-size:1em; }
.sf-comment-form button { margin-top:12px; display:inline-block; padding:11px 22px; background:var(--sf-primary); color:#fff; border:none; border-radius:6px; font-weight:600; cursor:pointer; }
.sf-comment-form button:hover { background:var(--sf-primary-dark); }
.sf-comment-pagination { display:flex; align-items:center; gap:16px; margin-top:24px; font-size:.9em; }
.sf-comment-pagination a { color:var(--sf-primary); text-decoration:none; font-weight:600; }
.sf-comment-pagination span { color:#999; }

/* STURMFEST: Logo in Fokus-Ansicht nicht stauchen */
.ld-brand-logo {
    flex-shrink: 0;
}
.ld-brand-logo img {
    width: auto;
    max-height: 40px;
    object-fit: contain;
}

/* STURMFEST: Eignungs-Hinweis (kontra_infos) als Info-Box, nicht als Eingabefeld */
.sturmfest-kontra-infos textarea {
    background: #F2EDE3;
    border: 1px solid var(--sf-border, #E2DCCD);
    color: var(--sf-text, #33373B);
    line-height: 1.5;
    cursor: default;
    overflow: hidden;
    resize: none;
}
.sturmfest-kontra-infos textarea:focus {
    box-shadow: none;
    outline: none;
}

/* ============================================================
   STURMFEST – Abstände aller Inhalts-Überschriften
   Scope: .entry-content → nur Überschriften IM Text,
   NICHT Seiten-/Beitragstitel (die liegen außerhalb).
   Einheit rem: skaliert mit der Basis-Schriftgröße,
   die Astra auf Mobilgeräten reduziert → Abstand passt sich an.
   Referenz Desktop (16px Basis): oben 10px, unten 4px.
   ============================================================ */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 0.625rem  !important; /* 10px @16px Basis */
    margin-bottom: 0.25rem !important; /*  4px @16px Basis */
}

/* Konsistenter Abstand ÜBER Inhalts-Überschriften – unabhängig vom Vorgänger.
   Problem: margin-collapsing → der größere Nachbar-Abstand gewinnt, daher
   wirkt der Abstand nach Bild/Text/Liste unterschiedlich.
   Lösung: unteren Abstand des direkt vorausgehenden Elements neutralisieren,
   sodass die 10px ausschließlich von der Überschrift kommen. */
.entry-content :is(p, figure, ul, ol, blockquote, table, .wp-block-image, .wp-block-embed, img):has(+ :is(h1, h2, h3, h4, h5, h6)) {
    margin-bottom: 0 !important;
}

/* ── Fokusmodus-Header: Name direkt neben Avatar, kein "Hallo" ───────── */
.ld-masthead .ld-user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.ld-masthead .ld-user-welcome-text {
    flex: 0 0 auto;   /* nicht strecken */
    order: 2;          /* nach dem Avatar */
}
.ld-masthead .ld-profile-avatar {
    order: 1;
}
