/*
 * Unified Styles for Medienkindersicher Shortcodes
 */

/* =========================================
   1. SHARED & GENERAL STYLES
   ========================================= */

body.has-assistant-control-bar {
    padding-bottom: 100px !important;
}

@media (max-width: 767px) {
    body.has-assistant-control-bar {
        padding-bottom: 120px !important;
    }
}

/* Message Boxes (Success/Info) */
.assistant-msg {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.assistant-msg.msg-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.assistant-msg .close-msg {
    margin-left: auto;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
}

/* Base Button Styles (Extending Elementor where used, or standalone) */
.acb-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

/* =========================================
   2. ASSISTANT NAVIGATION BUTTONS
   ========================================= */

.acb-btn-next {
    background-color: #35bdbd;
    color: #fff !important;
}

.acb-btn-next:hover {
    background-color: #2da8a8;
}

.acb-btn-prev {
    background-color: #6c757d;
    color: #fff !important;
}

.acb-btn-prev:hover {
    background-color: #5a6268;
}

.acb-btn-finish {
    background-color: #28a745;
    color: #fff !important;
}

.acb-btn-finish:hover {
    background-color: #218838;
}

.acb-btn-exit {
    background-color: #ffc107;
}

.acb-btn-exit:hover {
    background-color: #e0a800;
}

/* =========================================
   3. INSTRUCTION MENU (Accordions) - NAVY THEME
   ========================================= */

/* --- MAIN CONTAINER --- */
.assistant-menu-wrapper{
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    font-family: sans-serif;
}

/* --- CATEGORY ITEM (Wrapper) --- */
.am-category-item {
    border: none;
    margin-bottom: 5px;
    position: relative; /* CRITICAL for the teal pill to position correctly */
}

/* --- CATEGORY HEADER --- */
.am-cat-header {
    padding: 12px 30px;
    display: flex; /* CRITICAL for placing icon next to text */
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s ease;
    position: relative; /* Anchor for the teal pill */
}

.am-cat-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- THE WHITE SQUARE ICON (+ / -) --- */
.am-cat-icon {
    order: 1;
    margin-right: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background: #ffffff;
    color: #193f6f;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    font-family: monospace;
    line-height: 1;
}

/* --- CATEGORY TITLE --- */
.am-cat-title {
    order: 2;
    font-weight: 400;
    font-size: 0.9375rem;
    color: #ffffff;
}

/* --- THE TEAL "PILL" MARKER (Active & Hover)
.am-category-item:has(.am-cat-content[style*="display: block"]) .am-cat-header::before,
.am-cat-header:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 35px;
    width: 8px;
    background-color: #35bbbc;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s ease;
}
 --- */

/* --- SUBMENU CONTENT & LINKS --- */
.am-cat-content {
    background: transparent;
    display: none;
}

.am-instr-list {
    list-style: none;
    margin: 0;
    padding: 5px 0 20px 67px;
}

.am-instr-list li {
    margin: 0;
    padding: 5px 0;
}

.am-instr-link {
    display: block;
    padding: 5px 25px 5px 0;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    border: none;
    transition: opacity 0.2s;
}

.am-instr-link:hover {
    background: transparent;
    color: #ffffff !important;
    opacity: 0.7;
}

/* --- ACTIVE SUBMENU LINK --- */
.am-instr-link.current-menu-item {
    background: transparent;
    color: #ffffff !important;
    font-weight: 700;
}

.am-instr-link:hover::before,
.am-instr-link.current-menu-item::before {
    content: '';
    position: absolute;
    left: 0px;
    height: 30px;
    width: 8px;
    background-color: #35bbbc;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s ease;
}

/* =========================================
   WORDPRESS MENU (.sidebar-nav) STYLING
   ========================================= */

/* 1. Container (Matches the Navy block) */
.sidebar-nav {
    border-radius: 8px;
    padding: 20px 0; /* Match top/bottom spacing */
    font-family: sans-serif;
}

/* 2. Reset list styles to remove Elementor's default spacing */
.sidebar-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.sidebar-nav li {
    position: relative; /* Anchor for the teal pill */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 3. The Links (Styled like the Category Headers) */
.sidebar-nav a {
    display: block !important;
    padding: 12px 30px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background 0.2s ease !important;
}

/* Hover background highlight */
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* 4. The Teal "Pill" Marker */
.sidebar-nav li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 35px;
    width: 8px;
    background-color: #35bbbc;
    border-radius: 0 4px 4px 0;
    opacity: 0; /* Hidden by default */
    transition: all 0.2s ease;
    z-index: 1;
    pointer-events: none; /* Allows clicking through the marker */
}

/* Show the Teal Pill on Hover OR if it's the Active page */
.sidebar-nav li:hover::before,
.sidebar-nav li.current-menu-item::before,
.sidebar-nav li.current_page_item::before {
    opacity: 1;
}

/* =========================================
   KILL ELEMENTOR/THEME ORANGE BORDERS
   ========================================= */

/* Remove standard borders and box-shadows on all link states */
.sidebar-nav a,
.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav li.current-menu-item > a,
.sidebar-nav li.current_page_item > a {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Hide Elementor's animated pointer lines (often uses ::after or ::before) */
.sidebar-nav a::after,
.sidebar-nav a::before {
    display: none !important;
    content: none !important;
}

/* =========================================
   4. CHILD LIST / DASHBOARD
   ========================================= */

.assistant-dashboard-container {
    margin: 0 auto;
    padding-bottom: 50px;
}

.child-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: border 0.3s ease-in-out;
    border-top: 4px solid transparent;
}

.child-card:hover {
    border-top: 4px solid rgba(52, 186, 187, 0.2);
}

.child-card.active {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 4px solid rgba(52, 186, 187, 0.2);
}

.child-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #333;
}

.icon-user {
    margin-right: 12px;
    font-size: 1.2rem;
    color: #444;
}

.child-name {
    font-weight: 800;
    color: #2c3e50;
}

.child-divider {
    margin: 0 12px;
    color: #ddd;
    font-weight: 300;
    font-size: 1.3em;
    line-height: 1;
}

.child-age {
    color: #666;
    font-weight: 400;
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.progress-text {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #666;
    text-align: left;
}

.progress-text strong {
    font-size: 1rem;
    color: #333;
}

.toggle-icon {
    font-size: 24px;
    color: #444;
    width: 20px;
    text-align: center;
    margin-left: 10px;
}

.child-card .minus { display: none; }
.child-card.active .plus { display: none; }
.child-card.active .minus { display: block; }

.child-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #fcfcfc;
}

.child-card.active .child-body {
    max-height: 5000px;
    border-top: 1px solid #f0f0f0;
}

.body-content-grid {
    display: flex;
    padding: 30px;
    gap: 40px;
}

.data-list-section {
    flex: 1;
}

.action-section {
    flex: 1.2;
}

.notification-status {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
}

.child-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: normal;
}

.child-actions .btn-start {
    background-color: #35bdbd !important;
    border-color: #35bdbd !important;
    color: #fff !important;
    background-image: none !important;
}

.child-actions .btn-start:hover {
    background-color: #2da8a8 !important;
    border-color: #2da8a8 !important;
}

.child-actions .btn-edit {
    background-color: transparent !important;
    border: 1px solid var(--e-global-color-accent) !important;
    color: var(--e-global-color-accent) !important;
    background-image: none !important;
}

.child-actions .btn-edit:hover {
    background-color: var(--e-global-color-accent) !important;
    color: #fff !important;
}

.child-actions .btn-remove {
    background-color: transparent !important;
    border: 1px solid var(--e-global-color-accent) !important;
    color: var(--e-global-color-accent) !important;
    background-image: none !important;
}

.child-actions .btn-remove:hover {
    background-color: var(--e-global-color-accent) !important;
    color: #fff !important;
}

.add-child-trigger-area {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/*
.add-child-trigger-area #btn-toggle-form {
    background-image: none !important;
    box-shadow: none !important;
    background-color: #35bdbd !important;
    border-color: #35bdbd !important;
    color: #fff !important;
}
*/

.add-child-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.add-child-wrapper .form-card-inner {
    width: 100%;
    max-width: none;
}

/* Form & Tabs inside Child Card / Add Form */
.vertical-tabs-container {
    display: flex;
    background: transparent;
    border: none;
    min-height: 300px;
}

.child-form-two-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.child-form-left-col {
    flex: 1;
}

.child-form-right-col {
    flex: 1.2;
}

/* Edit form */
.form-actions {
    margin-top: 30px;
    text-align: right;
}

.btn-cancel-edit {
    background:transparent;
    border:none;
    margin-left: 15px;
    cursor: pointer;
}


.child-meta-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.child-meta-box input[type="text"],
.child-meta-box input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fbfbfb;
    font-size: 16px;
}

.notification-group {
    margin-top: 10px;
}

.tabs-sidebar {
    width: 40%;
    background: transparent;
    border-right: none;
}

.tab-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    margin-bottom: 2px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tab-item.active {
    background: #fff;
    border-left: 4px solid #ff4d4d;
    font-weight: bold;
    color: #333;
}

.tabs-content {
    width: 60%;
    padding: 10px 0 10px 25px;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 10px 0 20px rgba(0,0,0,0.05);
}

.meki-submit-btn {
    background-color: #1a365d !important;
    background-image: none !important;
    color: #fff !important;
    font-weight: bold !important;
    border: none !important;
}

@media (max-width: 768px) {
    .child-form-two-columns {
        flex-direction: column;
    }
}


.selected-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 992px) {
    .selected-items-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }
}

.selected-items-list li {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.3;
}

.selected-items-list li a {
    text-decoration: none;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    width: 100%;
    transition: all 0.2s ease;
}

.selected-items-list li a:hover {
    color: var(--e-global-color-accent);
}

.selected-items-list li .status-icon {
    font-weight: bold;
    flex-shrink: 0;
}

.selected-items-list li .status-icon.completed {
    color: #28a745;
}

.selected-items-list li .status-icon.pending {
    color: #dc3545;
}

.remove-x {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border: 1px solid #444;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
}

.child-edit-mode {
    padding: 20px;
    display: none;
}

.child-edit-mode h4 {
    margin-top: 0;
}

/* =========================================
   5. LEICHTE SPRACHE TOGGLE
   ========================================= */

.ls-switcher-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: sans-serif;
    height: 100%;
    align-self: center;
}

/* The Label Text */
.ls-label {
    font-size: 15px;
    color: #000;
    font-weight: 400;
    line-height: 3;
    margin: 0;
    padding: 0;
}

/* The Toggle Switch Body */
.ls-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

/* The Knob (The circle) */
.ls-toggle-switch .ls-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* ACTIVE STATE (When ON) */
.ls-toggle-switch.active {
    background-color: #4cd964;
}

.ls-toggle-switch.active .ls-knob {
    transform: translateX(20px);
}

@media (max-width: 767px) {
    .ls-switcher-wrapper {
        flex-direction: column-reverse;
        gap: 4px;
    }
    .ls-label {
        font-size: 15px;
        color: #000;
        font-weight: 400;
        line-height: 1;
        margin: 0;
        padding: 0;
    }

    .ls-toggle-switch {
        width: 26px;
        height: 15px;
    }

    .ls-toggle-switch .ls-knob {
        width: 13px;
        height: 13px;
        top: 1px;
        left: 1px;
    }
    .ls-toggle-switch.active .ls-knob {
        transform: translateX(10px);
    }
}


.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane-mobile {
    display: none;
}

/* =========================================
   6. ASSISTANT CONTROL BAR (Shortcode)
   ========================================= */

.assistant-control-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    margin: 0 !important;
    border: none !important;
    display: none; /* Shown via JS */
    flex-direction: column;
}

.acb-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    background: #1e3a5f !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.acb-left-section {
    display: flex;
    align-items: center;
    padding-left: 30px;
    height: 100%;
    flex: 0 0 250px;
    background: #f8f9fa;
    position: relative;
    z-index: 3;
}

.acb-left-section .desktop-only { display: block; }
.acb-left-section .mobile-only { display: none; }

.acb-left-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100%;
    background: #f8f9fa;
    transform: skewX(-25deg);
    z-index: -1;
}

.acb-right-section {
    display: flex;
    align-items: center;
    padding-right: 30px;
    height: 100%;
    justify-content: flex-end;
    flex: 1;
    background: #1e3a5f;
    padding-left: 60px;
    gap: 30px;
}

.acb-logo {
    display: flex;
    align-items: center;
}

.acb-logo-img {
    height: auto;
    width: 200px;
    max-height: 80px;
    display: block;
}

.acb-total-progress-wrapper {
    flex-grow: 1;
    max-width: 600px;
    min-width: 100px;
}

.acb-total-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #ffffff;
}

.acb-total-progress-fill {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.acb-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Floating circular progress FAB */
.acb-fab-wrapper {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.acb-fab-wrapper.no-bar {
    bottom: 16px;
}

.acb-fab {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f2f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@property --progress {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

.acb-fab-pie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#39b6b8 var(--progress, 0%), #f0f2f5 var(--progress, 0%));
    transition: --progress 0.5s ease;
}

.acb-fab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: transparent;
}

.acb-fab-label {
    font-weight: 800;
    color: #333;
    font-size: 18px;
    line-height: 1;
}

.acb-fab-subtext {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
}

/* MODAL STYLES */
.acb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.acb-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.acb-modal-box h3 { margin-top: 0; color: #333; }
.acb-modal-box p { color: #666; font-size: 1.1em; line-height: 1.5; }

.acb-modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.acb-btn-cancel {
    background: transparent !important;
    border: 1px solid #6c757d;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #6c757d !important;
}

.acb-btn-confirm {
    background: #4A90E2;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
}

.acb-btn-confirm:hover { background: #357abd; }

@media (max-width: 767px) {
    .assistant-control-bar {
        padding: 0 !important;
        height: auto;
        flex-direction: column;
    }

    .acb-main-content {
        flex-direction: column;
        height: auto;
        background: #1e3a5f !important;
        overflow: visible;
    }

    .acb-left-section {
        padding: 10px 15px;
        width: 100%;
        justify-content: space-between;
        height: 60px;
        background: #f8f9fa;
        flex: none;
        gap: 15px;
    }

    .acb-left-section::after {
        display: none;
    }

    .acb-right-section {
        padding: 10px 15px;
        width: 100%;
        background: #1e3a5f;
        flex-direction: row;
        height: auto;
        gap: 10px;
        justify-content: center;
    }

    .acb-left-section .desktop-only { display: none; }
    .acb-left-section .mobile-only { display: block; flex-grow: 1; }

    .acb-logo-img {
        width: 120px;
        max-height: 40px;
    }

    .acb-total-progress-bar {
        height: 12px;
        border-color: #1e3a5f;
    }

    .acb-total-progress-fill {
        background: #1e3a5f;
    }

    .acb-actions {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .acb-actions .acb-btn {
        width: 50%;
        min-width: 0;
        height: 40px;
        font-size: 0.9rem;
        padding: 0 10px;
        white-space: pre-line;
        text-align: center;
        justify-content: center;
    }

    .acb-fab-wrapper { bottom: 115px; left: 16px; }
    .acb-fab-wrapper.no-bar { bottom: 15px !important;}
    .acb-fab { width: 56px; height: 56px; }
    .acb-fab-label { font-size: 13px; }

    .acb-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    .acb-modal-actions button {
        width: 100%;
    }
}




/* =========================================
   7. MOBILE OPTIMIZATIONS
   ========================================= */

@media (max-width: 767px) {
    .tab-pane-mobile.active {
        display: block !important;
    }
    .tab-pane {
        display: none !important;;
    }
    tab-pane.active {
        display: none !important;
    }
    .tabs-content {
        display: none !important;
    }
    .child-header {
        padding: 15px;
        gap: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-left {
        flex: 1;
        flex-wrap: wrap;
        font-size: 0.95rem;
    }
    .header-right {
        width: auto;
        justify-content: flex-end;
        border-top: none;
        padding-top: 0;
        gap: 8px;
    }
    .header-right .progress-text {
        display: block;
        font-size: 0.75rem;
    }
    .header-right .progress-wrapper {
        width: 32px;
        height: 32px;
    }

    .body-content-grid {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 30px;
    }
    .data-list-section {
        border-right: none;
        padding-bottom: 0;
        width: 100%;
    }
    .action-section {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    .child-actions {
        width: 100%;
    }
    .child-actions .elementor-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .child-divider {
        display: none;
    }
    .child-name, .child-age, .child-notification-option {
        margin-right: 10px;
    }
    .child-age::before {
        content: "(";
    }
    .child-age::after {
        content: ")";
    }

    .vertical-tabs-container {
        flex-direction: column;
    }
    .tabs-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .tabs-content {
        width: 100%;
        display: none;
    }
    .accordion-icon {
        display: inline-block !important;
    }
    .tab-pane-mobile {
        background: #fff;
        padding: 15px;
        border-bottom: 1px solid #eee;
        margin-bottom: 2px;
    }

    /* Form actions spacing on small screens */
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .form-actions button,
    .form-actions .meki-submit-btn {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    .btn-cancel-edit {
        order: 2; /* Put cancel button below submit on mobile */
        padding: 10px; /* Add some padding since it might be just text */
    }
}

.kapitel-container {
    padding: 0px;
}

.step-content-container {
    padding-left: 0px;
}


@media (min-width: 768px) {
    .step-content-container {
        margin-top: -56px !important;
        padding-left: 43px !important;;
    }
}

.meki-alertbox strong {
    color: white;
}

.meki-carousel {
    background: white !important;
}

@media print {

    /* =============================================
       PAGE SETUP
    ============================================= */
    @page {
        size: A4 portrait;
        margin: 20mm 18mm 22mm 18mm;
    }

    @page {
        @bottom-center {
            content: "Seite " counter(page) " von " counter(pages);
            font-size: 8pt;
            color: #666;
        }
        @bottom-right {
            content: "medien-kindersicher.de";
            font-size: 7pt;
            color: #888;
        }
    }

    html, body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
        line-height: 1.55;
        color: #111;
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* =============================================
       GLOBAL LAYOUT RESET
    ============================================= */
    .site-content, .entry-content, main, article,
    .elementor-section,
    .elementor-container,
    .elementor-column,
    .elementor-widget-wrap,
    .elementor-row,
    .elementor-widget-container,
    .e-con,
    .e-con-boxed,
    .e-con-inner,
    .e-child,
    .e-flex {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-left: none !important;
        border-right: none !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        transform: none !important;
        flex: none !important;
        align-self: auto !important;
        contain: none !important;
    }

    /* =============================================
       HEADINGS
    ============================================= */
    h1, h2, h3, h4, h5, h6 {
        margin: 0 !important;
        padding: 0 !important;
        font-weight: bold !important;
    }

    h1 {
    //font-size: 17pt !important;
        margin-bottom: 10pt !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    h2 {
    //font-size: 13pt !important;
        padding-bottom: 3pt !important;
        margin-bottom: 5pt !important;
        border-bottom: 1.5pt solid #333 !important;
        page-break-before: always;
        break-before: always;
        page-break-after: avoid;
        break-after: avoid;
    }

    h3 {
    //font-size: 11.5pt !important;
        margin-bottom: 3pt !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    h4, h5, h6 {
    //font-size: 11pt !important;
        margin-bottom: 3pt !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    /* =============================================
       PARAGRAPHS & TEXT
    ============================================= */
    p {
        margin: 0 0 6pt !important;
        padding: 0 !important;
        orphans: 3;
        widows: 3;
    }

    /* =============================================
       LISTS — preserve site's own styling
    ============================================= */
    ol, ul {
        margin: 0 0 8pt 0 !important;
        padding-left: 18pt !important;
    }

    ol li, ul li {
        margin: 0 0 4pt 0 !important;
    //padding: 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* =============================================
       IMAGES
    ============================================= */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 0 !important;
        padding: 0 !important;
    }

    img[src^="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA"] {
        display: none !important;
    }

    /* =============================================
       LINKS
    ============================================= */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555;
        word-break: break-all;
    }

    a[href^="#"]::after,
    a[href^="/"]::after,
    a:has(img)::after {
        content: "" !important;
    }

    /* =============================================
       SWIPER / CAROUSEL
    ============================================= */
    .swiper-wrapper {
        display: block !important;
        transform: none !important;
        transition: none !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .swiper-slide-duplicate {
        display: none !important;
    }

    .swiper-slide {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 16pt 0 !important;
        padding: 10pt 0 !important;
        border-bottom: 1pt solid #ddd !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* No ::before label — injected via JS instead */
    .swiper-slide:not(.swiper-slide-duplicate)::before {
        display: none !important;
        content: none !important;
    }

    /* JS-injected slide label */
    .print-slide-label {
        display: block !important;
        font-weight: bold !important;
        font-size: 11pt !important;
        margin: 0 0 6pt 0 !important;
        padding: 0 !important;
        color: #333 !important;
        list-style: none !important;
        counter-increment: none !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .print-slide-label + div,
    .print-slide-label + ol,
    .print-slide-label + p {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    /* Stack everything inside slides as plain blocks */
    .swiper-slide .e-con-full,
    .swiper-slide .e-con-inner,
    .swiper-slide .e-con,
    .swiper-slide .e-flex,
    .swiper-slide .elementor-widget,
    .swiper-slide .elementor-widget-container,
    .swiper-slide .elementor-widget-text-editor,
    .swiper-slide .elementor-widget-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
        float: none !important;
        position: static !important;
    }

    .swiper-slide ol {
        display: block !important;
        list-style: decimal !important;
        padding-left: 18pt !important;
        margin: 0 0 8pt 0 !important;
        height: auto !important;
        position: static !important;
    }

    .swiper-slide ol li {
        display: list-item !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        margin: 0 0 4pt 0 !important;
        padding: 0 !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        float: none !important;
        flex: none !important;
    }

    .swiper-slide .elementor-widget-image img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: 200pt !important;
        height: auto !important;
        margin: 8pt 0 0 0 !important;
        padding: 0 !important;
    }

    /* Kill the site's custom circle-number counter inside swiper entirely */
    .swiper-slide ol {
        counter-reset: none !important;
    }

    .swiper-slide ol li::before {
        display: none !important;
        content: none !important;
        counter-increment: none !important;
    }

    /* Use browser-native decimal list style instead */
    .swiper-slide ol li {
        list-style-type: decimal !important;
        list-style-position: outside !important;
    }

    /* =============================================
       ACCORDION WRAPPER
    ============================================= */
    .elementor-widget-n-accordion,
    .elementor-widget-n-accordion > .elementor-widget-container,
    .e-n-accordion {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
        contain: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .e-con-inner:has(.elementor-widget-n-accordion),
    .e-con:has(.elementor-widget-n-accordion),
    .e-flex:has(.elementor-widget-n-accordion) {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* =============================================
       ACCORDION ITEM
    ============================================= */
    details.e-n-accordion-item,
    details.e-n-accordion-item[open] {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        position: static !important;
        contain: none !important;
        margin: 0 0 12pt 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* =============================================
       ACCORDION SUMMARY / TITLE
    ============================================= */
    summary.e-n-accordion-item-title {
        display: block !important;
        font-weight: bold !important;
        font-size: 11pt !important;
        padding: 6pt 0 !important;
        margin: 0 0 6pt 0 !important;
        border-bottom: 1pt solid #ccc !important;
        background: none !important;
        list-style: none !important;
        position: static !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    summary.e-n-accordion-item-title::-webkit-details-marker {
        display: none !important;
    }

    summary.e-n-accordion-item-title::marker {
        display: none !important;
        content: "" !important;
    }

    .e-n-accordion-item-title-header,
    .e-n-accordion-item-title-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* =============================================
       ACCORDION CONTENT REGION
    ============================================= */
    details.e-n-accordion-item > *,
    details.e-n-accordion-item > * > *,
    details.e-n-accordion-item > * > * > *,
    details.e-n-accordion-item > * > * > * > * {
        display: block !important;
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        contain: none !important;
        content-visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
        align-self: auto !important;
    }

    details.e-n-accordion-item ol,
    details.e-n-accordion-item ul {
        padding-left: 18pt !important;
        margin-bottom: 8pt !important;
    }

    details.e-n-accordion-item li {
        display: list-item !important;
        margin-bottom: 4pt !important;
        width: auto !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    details.e-n-accordion-item p {
        margin-bottom: 6pt !important;
    }

    /* =============================================
       HIDE NON-CONTENT ELEMENTS
    ============================================= */
    header, nav, footer,
    .site-header, .site-footer,
    .main-navigation,
    .elementor-nav-menu,
    .elementor-widget-nav-menu,
    .wp-youtube-lyte, .lyte-wrapper,
    iframe, video, object, embed,
    .search-form,
    a[href="#content"],
    .elementor-share-btn,
    [class*="whatsapp"], [class*="instagram"],
    .elementor-posts-container,
    [class*="weitermachen"],
    [class*="related-posts"],
    [class*="cookie"], [class*="gdpr"],
    .elementor-swiper-button,
    .swiper-pagination,
    .swiper-notification,
    .swiper-slide-duplicate,
    .e-n-accordion-item-title-icon,
    .e-opened,
    .e-closed,
    .assistant-step-sticky-clone,
    .meki-youtubebox,
    summary > span.e-n-accordion-item-title-icon > span.e-opened > svg,
    summary > span.e-n-accordion-item-title-icon > span.e-closed > svg,
    .red-search-box,
    .elementor-widget-ucaddon_assistant_control_bar,
    .step-checkbox-row {
        display: none !important;
    }

}