/*==================================================
  RESPONSIVE CSS FOR MYLINE TV THEME - MOBILE INTEGRATION
  Migrated from Tvmobile theme to make Mylinetv responsive
  ==================================================*/

/* ==================================================
   RESPONSIVE BREAKPOINTS STRATEGY
   ================================================== */

/* Mobile First Approach - Base styles for mobile */
/* Extra Small Mobile: 320px - 479px */
/* Small Mobile: 480px - 639px */
/* Large Mobile: 640px - 767px */
/* Tablet: 768px - 991px */
/* Small Desktop: 992px - 1199px */
/* Large Desktop: 1200px+ (existing desktop styles) */

/* ==================================================
   MOBILE TYPOGRAPHY SCALING
   ================================================== */

/* Mobile typography - properly sized for mobile readability */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.42857;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #f0813c;
        font-family: "AvenirLTStd Light";
    }

    h2 {
        font-size: 28px; /* Proper mobile size */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    h4 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ==================================================
   MYLINE ACCOUNT PAGE RESPONSIVE FIXES
   ================================================== */

/* Mobile responsive layout for /tv/account/myline/ page */
@media (max-width: 767px) {
    .maincontact-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px;
    }

    .leftbar.sidebar_left {
        width: 100% !important;
        float: none !important;
        order: 1;
        margin-bottom: 20px;
        padding: 15px;
        box-sizing: border-box;
    }

    .rightbar.sidebar_right {
        width: 100% !important;
        float: none !important;
        order: 2;
        padding: 15px;
        box-sizing: border-box;
    }

    .sidebar_right-wrapper {
        width: 100% !important;
    }

    /* Make tables responsive on mobile */
    .programdetail-wrapper table,
    .profilecontant-detail table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
    }

    .programdetail-wrapper table td,
    .programdetail-wrapper table th,
    .profilecontant-detail table td,
    .profilecontant-detail table th {
        padding: 8px 4px !important;
        min-width: 80px;
    }

    /* Profile section mobile optimization */
    .main_profile-section h2,
    .profile-contant_accound h2 {
        font-size: 18px !important;
        margin-bottom: 15px;
    }

    .weight-profilepart {
        text-align: center;
        margin-bottom: 15px;
    }

    .join_date {
        font-size: 14px !important;
        text-align: center;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .maincontact-page {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .leftbar.sidebar_left {
        width: 100% !important;
        order: 1;
        margin-bottom: 20px;
    }

    .rightbar.sidebar_right {
        width: 100% !important;
        order: 2;
    }
}

/* ==================================================
   RECIPE MODAL AND GENERATOR PAGE RESPONSIVE FIXES
   ================================================== */

/* Modal dialog responsive fixes for /rezepte page */
@media (max-width: 767px) {
    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
        padding: 0 !important;
    }

    #recipeDetailPopoup .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh !important;
    }

    #recipeDetailPopoup .modal-content {
        height: 100vh !important;
        border-radius: 0 !important;
        overflow-y: auto;
    }

    /* Fix image distortion in recipe popup */
    #recipeDetailPopoup .recipe-main-content .printable img {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }

    /* Remove padding from containers in popup */
    #recipeDetailPopoup .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #recipeDetailPopoup .recipe-main-content {
        padding: 15px !important;
        margin: 0 !important;
    }

    /* Generator view mobile fixes */
    .containerMain {
        padding: 0 !important;
        margin: 0 !important;
    }

    #recipeDetailPopoup .containerMain.view .productMain .productmainRight {
        width: unset !important;
        max-width: unset !important;
        min-width: unset !important;
    }

    /* Fix infoBlock font size and icons on mobile */
    .infoBlock {
        font-size: 12px !important;
    }

    .infoBlock img,
    .infoBlock i {
        width: 16px !important;
        height: 16px !important;
        font-size: 16px !important;
    }

    /* Make img-circle smaller on mobile */
    .img-circle {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    /* Make uls innerlisting responsive */
    .innerlisting {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }


    .innerlisting .innerlisting_servingdetail li {
        flex: 1 1 0 !important;
        display: inline-block !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        text-align: center;
        font-size: 12px !important;
    }

    /* Fix label personen for mobile - remove display block and font-size */
    #personen {
        display: inline !important;
        font-size: inherit !important;
    }

    .innerlisting .innerlisting_mediaicon li img {
        width: 30px !important;
        height: 30px !important;
    }

    /* innerlisting_righticon mobile side by side */
    .innerlisting_righticon {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }

    .innerlisting_righticon li {
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 60px !important;
        display: inline-flex !important;
        padding: 0 !important;
        margin: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .innerlisting_righticon li img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Recipe modal content mobile optimization */
    #recipeDetailPopoup .modal-header {
        padding: 10px 15px !important;
        border-bottom: 1px solid #eee;
    }

    #recipeDetailPopoup .modal-body {
        padding: 0 !important;
    }

    #recipeDetailPopoup .close {
        font-size: 24px !important;
        padding: 10px !important;
        margin: 0 !important;
    }
}

/* Tablet responsive adjustments for recipe modal */
@media (min-width: 768px) and (max-width: 991px) {
    .modal-dialog {
        width: 90% !important;
        max-width: 90% !important;
    }

    #recipeDetailPopoup .recipe-main-content .printable img {
        height: auto !important;
        max-width: 100% !important;
    }

    .img-circle {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ==================================================
   ERFOLGSJOURNAL RESPONSIVE FIXES
   ================================================== */

/* Mobile stacking for sidebar and main content */
@media (max-width: 767px) {
    /* Fix main journal container to use flexbox for proper stacking */
    .journal-block-erfolgsjournal {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Fix sidebar leftpart and journal-content rightpart stacking */
    .sidebar.leftpart {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
        order: 1;
    }

    .journal-content.rightpart {
        width: 100% !important;
        float: none !important;
        order: 2;
        margin-top: 20px;
        padding-left: 0 !important;
    }

    .journal-block .journal-weight .weight-leftpart,
    .journal-block .journal-weight .weight-rightpart {
        width: 100% !important;
        float: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 20px;
    }

    .journal-block .journal-weight .weight-rightpart {
        margin-top: 20px;
    }

    /* Fix journal heading positioning on mobile */
    .journal-heading-text {
        position: relative;
        z-index: 10;
        background: #fff;
        padding: 15px 0;
        text-align: center;
    }
}

/* Tablet heading positioning */
@media (min-width: 768px) and (max-width: 991px) {
    .journal-heading-text {
        position: relative;
        z-index: 10;
        background: #fff;
        padding: 20px 0;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Desktop heading positioning - above orange border */
@media (min-width: 992px) {
    .journal-block .box-heading {
        position: relative;
        margin-bottom: 30px;
    }

    .journal-heading-text {
        position: relative;
        z-index: 10;
        background: #fff;
        padding: 0 0 20px 0;
        margin-bottom: 0;
    }


    /* Weight edit instruction styling */
    .weight-edit-instruction {
        float: right;
        font-family: "AvenirLTStd Light", Arial, sans-serif;
        color: #f0813c;
        font-size: 14px;
        line-height: 1.3;
        margin: 0 0 20px 0;
        padding: 10px 0;
        text-align: right;
        clear: both;
    }
}

/* Mobile styling for weight edit instruction */
@media (max-width: 767px) {
    .weight-edit-instruction {
        float: none !important;
        text-align: center !important;
        margin: 15px 0 !important;
        padding: 10px !important;
        font-size: 13px !important;
    }

    /* Make tragated-weight-lose elements 100% width on mobile */
    .tragated-weight-lose,
    .tragated-weight-lose.second {
        width: 100% !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        display: block !important;
    }

    .tragated-weight-lose .progress,
    .tragated-weight-lose .progress1 {
        margin: 0 auto !important;
    }

    .tragated-weight-lose .progressbar-text,
    .tragated-weight-lose .progress-bar-text {
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    /* Make success-content responsive */
    .success-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 15px !important;
        gap: 20px !important;
    }

    .success-content .left-content,
    .success-content .middle-content,
    .success-content .right-content {
        width: 100% !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .success-content .left-content.before-use {
        border: none !important;
        border-right: none !important;
    }

    .success-content .lose-weight-detail {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .success-content .lose-weight-detail img {
        max-width: 120px !important;
        height: auto !important;
    }

    .success-content .tragated-weight,
    .success-content .tragated-weight-lose {
        width: 100% !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .success-content .progress2,
    .success-content .progress3 {
        margin: 0 auto !important;
    }

    /* Canvas optimization for weight_chart - handled via JavaScript now */
    /* Make lose-weight-detail stack under after-use-info on small screens */
    .success-content .middle-content.after-use {
        display: flex !important;
        flex-direction: column !important;
        border: none !important;
    }

    .success-content .after-use-info {
        order: 1;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .success-content .lose-weight-detail {
        order: 2;
        margin-top: 20px !important;
        width: 100% !important;
    }
}

/* ==================================================
   MOBILE NAVIGATION - OFF-CANVAS MENU
   ================================================== */

@media (max-width: 991px) {
    /* Hide desktop navigation */
    .navigation {
        display: none;
    }

    /* Mobile menu toggle button */
    .navbar-toggler {
        display: block !important;
        border: none;
        padding: 0;
        background: transparent;
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: auto;
        height: auto;
        font-size: 30px;
        color: #f0813c;
    }

    .navbar-light .navbar-toggler-icon {
        background-image: none !important;
        background: none !important;
        border: none !important;
    }

    /* Off-canvas menu structure */
    .offcanvas-menu {
        line-height: 1.42857;
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 99999;
        width: 81%;
        -webkit-box-shadow: 0px 0px 30px 0px rgba(0, 1, 0, 0.24);
        -moz-box-shadow: 0px 0px 30px 0px rgba(0, 1, 0, 0.24);
        box-shadow: 0px 0px 30px 0px rgba(0, 1, 0, 0.24);
        background-color: rgba(0, 0, 0, 0.7);
        transition: all 0.5s ease-in-out;
        -webkit-transition: all 0.5s ease-in-out;
    }

    .offcanvas-menu.open-offcanvas {
        left: 0;
        display: block;
    }

    .offcanvas__close {
        z-index: 1111;
        right: 15px !important;
        color: #F0813C;
        padding: 10px !important;
        cursor: pointer;
        position: absolute;
    }

    .open-offcanvas .offcanvas__close {
        font-size: 24px !important;
    }

    .offcanvas-content {
        background-color: #fff;
        height: 100%;
        position: relative;
        padding: 0 !important;
    }

    .offcanvas-content .menu-logo {
        padding: 20px 60px 20px 20px !important;
        text-align: left !important;
    }

    .offcanvas-content .menu-logo img {
        width: 200px !important;
        max-width: 200px !important;
        height: auto !important;
    }

    .offcanvas-menu .top_header__content {
        position: relative;
        padding: 20px 15px 15px 15px !important;
    }

    .offcanvas-tab-switch .navbar-nav .nav-link {
        color: #f0813c !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        display: block !important;
        padding: 15px 20px !important;
        line-height: 1.4 !important;
        border-bottom: 1px solid #eee !important;
    }

    .offcanvas-tab-switch .navbar-nav .dropdown-menu {
        border: none !important;
        padding: 10px 0px !important;
        font-size: 14px !important;
        background-color: #f9f9f9 !important;
        margin-left: 20px !important;
        border-radius: 5px !important;
    }

    .offcanvas-tab-switch .navbar-nav .dropdown-menu a,
    .offcanvas-tab-switch .navbar-nav .dropdown-item {
        font-size: 16px !important;
        color: #575756 !important;
        padding: 8px 15px !important;
        font-weight: 300 !important;
        display: block !important;
        text-decoration: none !important;
    }

    .offcanvas-tab-switch .navbar-nav .dropdown-menu a:hover,
    .offcanvas-tab-switch .navbar-nav .dropdown-item:hover {
        background-color: #f0813c !important;
        color: #fff !important;
    }

    .offcanvas-tab-switch li.nav-item {
        position: relative;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    /* Dropdown toggle visibility */
    .nav-link.dropdown-toggle {
        position: relative !important;
        padding-right: 40px !important;
    }

    .nav-link.dropdown-toggle.show {
        background-color: #f0813c !important;
        color: #fff !important;
    }

    .offcanvas-tab-switch {
        overflow: auto;
        height: 100%;
    }

    /* Hide view-icon on mobile since dropdown functionality doesn't work properly */
    .view-icon {
        display: none !important;
    }

    .view-icon:after {
        display: none !important;
    }

    /* When dropdown is open */
    h3.show .view-icon:after {
        display: none !important;
    }

    /* Add simple CSS arrow to dropdown toggles */
    .nav-link.dropdown-toggle:after {
        content: "▼" !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 12px !important;
        color: #f0813c !important;
        transition: transform 0.3s ease !important;
    }

    .nav-link.dropdown-toggle.show:after {
        transform: translateY(-50%) rotate(180deg) !important;
        color: #fff !important;
    }

    /* Ensure dropdown menu visibility is controlled by Bootstrap/JavaScript */
    .dropdown-menu {
        display: none !important;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    h3.show + .dropdown-menu {
        display: block;
    }

    h3.show .view-icon:after {
        transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg);
        top: 4px;
    }

    /* Body overlay when mobile menu is open */
    body.offcanvas-open {
        overflow: hidden;
    }

    body.offcanvas-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        pointer-events: none;
    }

    /* Ensure mobile menu hamburger icon is properly styled */
    .navbar-toggler-icon {
        display: inline-block;
        font-size: 24px;
        line-height: 1;
        color: #f0813c;
        background: none;
        border: none;
    }

    /* Hide desktop dropdown arrow in mobile menu */
    .offcanvas-tab-switch .dropdown-menu {
        display: none;
        position: static;
        float: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    .offcanvas-tab-switch .dropdown-menu.show {
        display: block;
    }

    /* Mobile menu icons styling */
    .offcanvas-tab-switch .nav-link img {
        vertical-align: middle;
        margin-right: 15px;
    }

    .offcanvas-tab-switch .dropdown-item img {
        vertical-align: middle;
        margin-right: 10px;
        opacity: 0.8;
    }

    .offcanvas-tab-switch .dropdown-item:hover img {
        opacity: 1;
    }

    /* Smooth dropdown animation */
    .offcanvas-tab-switch .dropdown-menu {
        transition: all 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
    }

    .offcanvas-tab-switch .dropdown-menu.show {
        max-height: 300px;
    }

    /* Touch-friendly mobile menu items */
    .offcanvas-tab-switch .nav-item {
        border-bottom: 1px solid rgba(240, 129, 60, 0.1);
    }

    .offcanvas-tab-switch .nav-item:last-child {
        border-bottom: none;
    }

    /* Accessibility improvements for mobile menu */
    .offcanvas-tab-switch .nav-link:focus,
    .offcanvas-tab-switch .dropdown-item:focus {
        outline: 2px solid #f0813c;
        outline-offset: 2px;
        background-color: rgba(240, 129, 60, 0.1);
    }
}

/* ==================================================
   MOBILE HEADER ADAPTATIONS
   ================================================== */

@media (max-width: 767px) {
    .header {
        padding: 10px 0px 10px 0px !important;
    }

    .right-part {
        width: auto !important;
        padding-top: 5px !important;
        margin: 0 !important;
    }

    .right-part div {
        display: inline-block !important;
        text-align: center !important;
        margin-right: 10px !important;
        margin-left: 0 !important;
        padding: 0 !important;
        position: static !important;
    }

    .right-part div.logout {
        margin-left: 10px !important;
        margin-right: 0 !important;
    }

    .right-part div a span {
        color: #f0813c !important;
        font-size: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
    }

    .right-part div span img {
        display: block !important;
        margin: 0px auto 4px auto !important;
        max-width: 24px !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* Fix header contact elements */
    .right-part div span,
    .right-part div label {
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        display: block !important;
        line-height: 1.2 !important;
    }
}

/* ==================================================
   MOBILE FORMS AND BUTTONS
   ================================================== */

@media (max-width: 767px) {
    .right-header select {
        background: #ffffff;
        outline: none;
        border: none;
    }

    /* Touch-optimized buttons */
    .btn,
    button,
    input[type="button"],
    input[type="submit"] {
        padding: 20px 30px;
        border-radius: 10px;
        min-width: 44px; /* Minimum touch target */
        min-height: 44px;
    }

    /* Form labels */
    label {
        font-size: 32.89px;
        color: #f0813c;
        margin-bottom: 15px;
        display: block;
    }

    /* Checkbox and radio button touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        width: 44px;
        height: 44px;
        margin-right: 15px;
    }
}

/* ==================================================
   MOBILE FOOTER
   ================================================== */

@media (max-width: 767px) {
    .footer .footer_contant {
        padding: 0 !important;
        text-align: center;
        margin: 20px 0 !important;
    }

    .footer .footer_contant img {
        display: block;
        margin: 0px auto 30px auto;
        max-width: 200px;
    }

    .footer .footer_contant span.copyright-text {
        color: #f0813c;
        font-size: 24px !important;
        width: 100%;
        font-family: "AvenirLTStd Heavy";
        display: inline-block;
        margin-bottom: 20px !important;
    }

    .footer .footer_contant label {
        color: #f0813c;
        font-size: 18px !important;
    }

    .footer .footer_contant label a {
        color: #f0813c;
        font-size: 18px !important;
        text-decoration: underline;
    }
}

/* ==================================================
   MOBILE MODALS AND POPUPS
   ================================================== */

@media (max-width: 767px) {
    .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
        margin: 5% auto;
    }

    .modal-content {
        border-radius: 20px;
    }

    .modal-header {
        padding: 30px;
        border-bottom: 2px solid #ddd;
    }

    .modal-body {
        padding: 30px;
        font-size: 18px;
    }

    .modal-footer {
        padding: 30px;
        border-top: 2px solid #ddd;
    }

    .close {
        font-size: 60px !important;
        color: #f0813c;
        opacity: 1;
        padding: 0;
        margin: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix modal images on /tv/view page */
    .side-modal-img,
    #newVideoNotificationPopup .modal-content .modal-body .side-modal-img {
        width: 100px !important;
        max-width: 100px !important;
        height: auto !important;
        position: static !important;
        display: inline-block !important;
        margin: 0 15px 15px 0 !important;
        float: left !important;
        border-radius: 8px !important;
    }

    /* Ensure modal body text flows around image */
    #newVideoNotificationPopup .modal-content .modal-body {
        overflow: hidden !important;
        line-height: 1.5 !important;
    }

    #newVideoNotificationPopup .modal-content .modal-body p,
    #newVideoNotificationPopup .modal-content .modal-body div {
        text-align: left !important;
        margin-bottom: 15px !important;
    }
}

/* ==================================================
   MOBILE ACCOUNT PAGES
   ================================================== */

@media (max-width: 991px) {
    .mid-content-column {
        display: block;
        width: 100%;
        margin-top: 30px;
    }

    aside[role="complementary_first"] {
        width: 100% !important;
        padding: 0 !important;
        float: none;
        margin-bottom: 30px;
    }

    .mid-content-column div[role="main"] {
        width: 100% !important;
        float: none;
    }

    .block-account {
        display: block;
        width: 100%;
        margin-bottom: 25px;
    }

    .block-account .block-heading {
        font-size: 32px;
        color: #ef7d00;
        font-weight: 300;
        margin-bottom: 18px;
        line-height: 1.2;
    }

    .block-account .block-content ul li {
        padding: 15px 0 15px 45px;
        font-size: 18px;
        line-height: 1.4;
    }

    .block-account .block-content ul li img {
        max-width: 30px;
        top: 15px;
    }
}

/* ==================================================
   MOBILE VIDEO INTERFACES
   ================================================== */

@media (max-width: 767px) {
    .coachingvideo .ytvideo {
        position: relative;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
        min-height: 250px;
    }

    .playbutton {
        background: url(../icons/play-btn.png) center center no-repeat;
        filter: drop-shadow(0px 10px 13px rgba(0, 0, 0, 0.9));
        -webkit-filter: drop-shadow(0px 10px 13px rgba(0, 0, 0, 0.9));
        -moz-filter: drop-shadow(0px 10px 13px rgba(0, 0, 0, 0.9));
        position: absolute;
        top: 50%;
        left: 50%;
        width: 34%;
        height: 34%;
        transform: translate(-50%, -50%);
        z-index: 10;
        opacity: 1;
        background-size: contain;
        min-width: 60px;
        min-height: 60px;
    }

    .coaching .video-detail {
        border-radius: 30px;
        padding: 20px;
    }

    .video-top-text .day-info {
        font-size: 32px;
        width: 171px;
        height: 46px;
        line-height: 46px;
        text-align: center;
    }

    .coachingvideo-content {
        background-color: #f9f6f4;
        padding: 30px 0px 60px 0px;
    }
}

/* ==================================================
   MOBILE RECIPE DETAILS
   ================================================== */

@media (max-width: 767px) {
    .recipe-modal .modal-dialog {
        width: 95%;
        max-width: 95%;
    }

    .recipe-modal .modal-content {
        border-radius: 20px;
    }

    .recipe-modal .close {
        font-size: 60px;
        color: #f0813c;
        right: 20px;
        top: 20px;
        width: 60px;
        height: 60px;
    }

    .recipe-image {
        object-fit: cover;
        width: 100%;
        border-radius: 15px;
    }

    .recipe-title {
        font-size: 36px;
        margin: 20px 0;
        color: #f0813c;
    }

    .recipe-ingredients,
    .recipe-instructions {
        font-size: 18px;
        line-height: 1.5;
        margin: 20px 0;
    }
}

/* ==================================================
   MOBILE PROGRESS INDICATORS
   ================================================== */

@media (max-width: 767px) {
    .progress-circle {
        width: 320px !important;
        height: 320px !important;
        margin: 0 auto;
    }

    .progress-text {
        font-size: 48px;
        font-weight: bold;
        color: #f0813c;
    }

    .progress-label {
        font-size: 24px;
        margin-top: 20px;
        text-align: center;
    }
}

/* ==================================================
   MOBILE TABLES - RESPONSIVE TABLES
   ================================================== */

@media (max-width: 767px) {
    .table-responsive {
        border: none;
    }

    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }

    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-responsive tr {
        border: 1px solid #ccc;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 10px;
    }

    .table-responsive td {
        border: none;
        padding: 10px 0;
        font-size: 18px;
        position: relative;
        padding-left: 50% !important;
    }

    .table-responsive td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #f0813c;
    }
}

/* ==================================================
   MOBILE UTILITIES
   ================================================== */

@media (max-width: 767px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-visible {
        display: block !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-margin-bottom {
        margin-bottom: 30px !important;
    }

    .mobile-padding {
        padding: 20px !important;
    }
}

/* ==================================================
   MOBILE CONTAINER FIXES
   ================================================== */

@media (max-width: 767px) {
    /* Force container to full width on mobile */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Ensure main content areas take full width */
    .main,
    .wrapper,
    .page-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Fix Bootstrap container classes */
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    /* Ensure rows take full width */
    .row {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix columns to prevent overflow */
    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* iPhone 11 specific container fixes */
@media (max-width: 375px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .row {
        margin: 0 !important;
    }

    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ==================================================
   TABLET SPECIFIC STYLES
   ================================================== */

@media (min-width: 768px) and (max-width: 991px) {
    body {
        font-size: 15px;
    }

    h2 {
        font-size: 32px;
    }

    .container {
        max-width: 750px;
    }

    .offcanvas-menu {
        width: 60%;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        height: 60px !important;
        font-size: 16px !important;
    }

    .btn,
    button {
        font-size: 16px !important;
    }

    /* Tablet Kochbuch optimizations */
    .myline_kochbuch {
        padding: 60px 0px 40px 0px !important;
    }

    .myline_kochbuch .kochbuch-heading h2 {
        font-size: 30px !important;
    }

    .myline_kochbuch .kochbuch-heading span {
        font-size: 19px !important;
    }

    .kochbuch-filter {
        padding: 40px 20px 30px 20px !important;
    }

    .filter-btn {
        font-size: 15px !important;
        min-height: 40px !important;
    }

    .filter-btn .checkmark {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ==================================================
   SMALL DESKTOP RESPONSIVE ADJUSTMENTS
   ================================================== */

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 970px;
    }

    .main {
        max-width: 100%;
    }

    /* Ensure desktop navigation is visible */
    .offcanvas-menu {
        display: none;
    }

    .navbar-toggler {
        display: none !important;
    }
}

/* ==================================================
   MOBILE LOGIN/REGISTRATION PAGES - COMPACT v5
   Ziel: Alles ohne Scrollen, Header minimal
   ================================================== */

@media (max-width: 767px) {
    /* Login page: Reorder form to show Code-hint first */
    .customer-account-login .step-login .Registration-left-content {
        display: none;
    }
    .customer-account-login .step-login .Registration-right-content {
        border: none !important;
    }
    .customer-account-login .step-login #login-form {
        display: flex !important;
        flex-direction: column;
    }
    .customer-account-login .step-login #login-form .mail-field {
        order: 1;
    }
    .customer-account-login .step-login #login-form .password-field {
        order: 2;
    }
    .customer-account-login .step-login #login-form .login__btn {
        order: 4;
    }
    .customer-account-login .step-login #login-form .loginform_links {
        order: 3;
    }

    /* Login page main container - KOMPAKT */
    .Registration-detail-text {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 95% !important;
        margin: 10px auto !important;
        padding: 12px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 12px !important;
    }

    /* Background adjustments */
    .Registration-steps-bg {
        height: 100% !important;
        min-height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: -1 !important;
    }

    /* Layout restructure for mobile - KOMPAKT */
    .Registration-left-content {
        width: 100% !important;
        float: none !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .Registration-right-content {
        width: 100% !important;
        float: none !important;
        padding: 8px !important;
        border-left: none !important;
        border-top: 1px solid #ebebeb !important;
        padding-top: 8px !important;
    }

    /* Progress bar mobile styling - SEHR KLEIN */
    .Registration-step-prgressbar {
        margin: 0 auto 5px auto !important;
    }

    .main-setup-steps .counter {
        width: 35px !important;
        height: 35px !important;
        font-size: 10px !important;
        margin: 0 auto !important;
    }

    .main-setup-steps canvas {
        width: 35px !important;
        height: 35px !important;
    }

    .main-setup-steps .percentage {
        font-size: 9px !important;
    }

    /* Left content steps - DOTS statt Pills */
    .leftcontant_text {
        margin-top: 5px !important;
    }

    .leftcontant_text ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .leftcontant_text ul li {
        font-size: 0 !important;
        padding: 0 !important;
        width: 8px !important;
        height: 8px !important;
        background: #ddd !important;
        border-radius: 50% !important;
        color: transparent !important;
        border: none !important;
        overflow: hidden !important;
    }

    .leftcontant_text ul li:before {
        display: none !important;
    }

    .leftcontant_text ul li.active {
        background: #f0813c !important;
    }

    .leftcontant_text ul li.process {
        background: #f0813c !important;
    }

    /* Typography for mobile - KOMPAKT */
    .Registration-right-content label {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        text-align: left !important;
    }

    .Registration-right-content span {
        font-size: 13px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        display: block !important;
        margin-bottom: 8px !important;
    }

    .Registration-right-content h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        margin-bottom: 10px !important;
        color: #f0813c !important;
    }

    /* Form styling for mobile - KOMPAKT */
    .Registration-code {
        margin-top: 8px !important;
        width: 100% !important;
    }

    .Registration-code input[type=text],
    .form-group input[type=text],
    .form-group input[type=email],
    .form-group input[type=password],
    .form-group input[type=number],
    .form-group select,
    #email,
    #pass {
        height: 40px !important;
        font-size: 16px !important;
        padding: 8px 12px !important;
        text-align: left !important;
        border-radius: 6px !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-group {
        margin-bottom: 8px !important;
        position: relative !important;
    }

    .form-group label {
        font-size: 13px !important;
        color: #f0813c !important;
        margin-bottom: 3px !important;
        text-align: left !important;
        display: block !important;
    }

    /* Button styling for mobile - KOMPAKT */
    .Registration-step-btn .button.start_btn,
    .account_info .next_btn,
    .login_info .button.login__btn,
    .button.mylinetv-btn,
    .button.skip__btn,
    .button.back__btn,
    #send2 {
        font-size: 15px !important;
        padding: 10px 16px !important;
        width: 100% !important;
        float: none !important;
        display: block !important;
        border-radius: 6px !important;
        margin: 6px auto !important;
        text-align: center !important;
        border: none !important;
        box-shadow: none !important;
        background-color: #f0823c !important;
        color: #fff !important;
        min-height: 40px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        clear: both !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    .button.back__btn,
    .button.skip__btn {
        background-color: #6c757d !important;
        color: #fff !important;
        padding: 8px 14px !important;
        min-height: 36px !important;
    }

    .Registration-step-btn,
    .forget-send {
        margin-top: 8px !important;
        padding: 0 !important;
    }

    /* Checkbox styling for mobile - TEXT MUSS LESBAR SEIN */
    .main-setup-steps .fild_checkbox {
        display: block !important;
        margin-bottom: 5px !important;
        padding: 6px 6px 6px 30px !important;
        text-align: left !important;
        background: #f5f5f5 !important;
        border-radius: 4px !important;
        position: relative !important;
    }

    .main-setup-steps .fild_checkbox input.input-check {
        position: absolute !important;
        width: 16px !important;
        height: 16px !important;
        top: 8px !important;
        left: 6px !important;
        opacity: 1 !important;
        accent-color: #f0813c !important;
    }

    .main-setup-steps label.checkmark {
        font-size: 11px !important;
        line-height: 1.3 !important;
        padding-left: 0 !important;
        display: block !important;
        color: #333 !important;
    }

    /* KRITISCH: Checkbox-Text sichtbar - NICHT display:none! */
    .main-setup-steps label.checkmark,
    .main-setup-steps label.checkmark * {
        visibility: visible !important;
        opacity: 1 !important;
        color: #333 !important;
    }

    .main-setup-steps .checkmark span {
        position: static !important;
        display: inline !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
        background: none !important;
        transform: none !important;
        font-size: 11px !important;
    }

    .main-setup-steps .checkmark span::before,
    .main-setup-steps .checkmark span::after {
        display: none !important;
        content: none !important;
    }

    /* ====== STEP 7 & 8: agree-weight / steps-weight Checkboxen ====== */
    /* KRITISCH: Desktop hat opacity:0 und position:absolute - überschreiben! */
    .main-setup-steps .form-group.agree-weight input,
    .main-setup-steps .form-group.steps-weight input,
    .step-weight .form-group.agree-weight input,
    .step-agree .form-group.steps-weight input {
        position: absolute !important;
        left: 6px !important;
        top: 6px !important;
        width: 16px !important;
        height: 16px !important;
        opacity: 1 !important;
        z-index: 10 !important;
        accent-color: #f0813c !important;
        bottom: auto !important;
        right: auto !important;
    }

    /* KRITISCH: Desktop hat float:right - entfernen! */
    .main-setup-steps .form-group.agree-weight label,
    .main-setup-steps .form-group.steps-weight label,
    .step-weight .form-group.agree-weight label,
    .step-agree .form-group.steps-weight label,
    .step-weight .form-group.agree-weight label.checkmark,
    .step-agree .form-group.steps-weight label.checkmark {
        display: block !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        color: #333 !important;
        padding-left: 0 !important;
        border: none !important;
        float: none !important;
        width: 100% !important;
        background: transparent !important;
        position: relative !important;
        z-index: 1 !important;
        height: auto !important;
    }

    .Step3_wrapper.step-weight .login_info form .form-group.agree-weight,
    .Step2_wrapper.step-agree .login_info form .form-group.steps-weight {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Custom checkbox span verstecken */
    .main-setup-steps .form-group.agree-weight .checkmark span,
    .main-setup-steps .form-group.steps-weight .checkmark span {
        position: absolute !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
    }

    /* Tooltip mobile adjustments - KOMPAKT */
    .Registration-tooltip {
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto 8px auto !important;
        width: 100% !important;
        max-width: none !important;
        text-align: left !important;
        border-radius: 8px !important;
        padding: 10px !important;
    }

    .Registration-tooltip:after {
        display: none !important;
    }

    .Registration-tooltip img {
        width: 24px !important;
        margin-bottom: 5px !important;
    }

    .Registration-tooltip p {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Two-column form fields for mobile */
    .form-group-parent {
        display: block !important;
    }

    .form-group-parent .form-group {
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* Weight input special styling */
    .weight-kg {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        font-size: 14px !important;
        color: #787878 !important;
        display: inline !important;
        margin-left: 8px !important;
    }

    /* Password view toggle */
    .pass-view {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 18px !important;
        color: #f0813c !important;
        cursor: pointer !important;
        padding: 5px !important;
    }

    /* Smiley Header - SEHR KOMPAKT */
    .smiley-icon > p:first-of-type,
    .Registration-detail-text .smiley-icon > p:first-child {
        padding: 8px 10px !important;
        margin: 0 0 8px 0 !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        border-radius: 8px !important;
    }

    .smiley-icon > p:first-of-type img {
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 3px !important;
    }

    /* Copyright minimal */
    .copyright-content {
        padding: 6px !important;
        font-size: 9px !important;
        margin-top: 8px !important;
    }

    /* Scroll behavior for focused fields */
    input:focus,
    select:focus {
        scroll-margin-top: 80px !important;
    }

    /* Login form links */
    .loginform_links {
        text-align: center !important;
        margin: 20px 0 !important;
    }

    .loginform_links a {
        color: #f0813c !important;
        font-size: 16px !important;
        text-decoration: underline !important;
        display: block !important;
        margin: 10px 0 !important;
    }

    .signin-step {
        justify-content: center !important;
        text-align: center !important;
        padding: 15px !important;
        border: 1px dashed #f0813c !important;
        border-radius: 10px !important;
        margin: 10px 0 !important;
    }

    .signin-step img {
        width: 40px !important;
        height: 40px !important;
        margin-right: 15px !important;
    }

    .signin-step span {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    /* Copyright section */
    .copyright-content {
        position: static !important;
        transform: none !important;
        left: auto !important;
        bottom: auto !important;
        margin: 30px 0 20px 0 !important;
        padding: 20px !important;
    }

    .copyright-content p {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .copyright-content span {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    /* Loading indicators */
    #loginLoader,
    #activationCodeLoader,
    #forgotpasswordLoader,
    #weightLoader,
    #weightAgreeLoader {
        text-align: center !important;
        margin: 20px 0 !important;
    }

    #loginLoader img,
    #activationCodeLoader img,
    #forgotpasswordLoader img,
    #weightLoader img,
    #weightAgreeLoader img {
        width: 40px !important;
        height: 40px !important;
    }

    /* Step notice messages */
    .step-notice {
        text-align: center !important;
        margin: 15px 0 !important;
        padding: 15px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    /* Registration section mobile layout */
    .Registration-steps_sec {
        min-height: 100vh !important;
        padding: 20px 0 !important;
        position: relative !important;
        overflow-x: hidden !important;
    }

    /* Ensure button containers are properly aligned */
    .Registration-step-btn,
    .login_info form {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .login_info {
        text-align: center !important;
    }

    /* Override specific desktop positioning for login button */
    .Step3_wrapper .login_info .button.login__btn,
    .Step3_wrapper .login_info #send2 {
        right: auto !important;
        left: auto !important;
        float: none !important;
        position: static !important;
        margin: 15px auto !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Style "Jetzt freischalten" button like login button */
    #unlock_form_free .button,
    #unlock_form_free button,
    form#unlock_form_free .button,
    form#unlock_form_free button {
        font-size: 16px !important;
        padding: 12px 20px !important;
        width: 100% !important;
        max-width: 300px !important;
        float: none !important;
        display: block !important;
        border-radius: 8px !important;
        margin: 15px auto !important;
        text-align: center !important;
        border: none !important;
        box-shadow: 0px 2px 8px rgba(240, 129, 60, 0.3) !important;
        background-color: #f0823c !important;
        color: #fff !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        clear: both !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }

    /* Ensure mobile header is visible on login pages */
    .main-setup-steps .header {
        position: relative !important;
        padding: 10px 0 !important;
        background-color: #fff !important;
        z-index: 100 !important;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
    }

    .main-setup-steps .header .container {
        padding: 0 15px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix login page logo */
    .main-setup-steps .header .logo img {
        max-height: 40px !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Recipe page mobile layout */
    .recipe-main-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .recipe-leftside {
        width: 100% !important;
        float: none !important;
        order: 1 !important;
        padding: 20px 0 !important;
        margin-bottom: 20px !important;
        background-color: #f8f9fa !important;
        border-radius: 8px !important;
    }

    .recipe-leftside-content {
        position: static !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

    .recipe-leftside ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .recipe-leftside ul li {
        flex: 1 1 auto !important;
        margin: 0 !important;
        min-width: fit-content !important;
    }

    .recipe-leftside ul li a {
        display: block !important;
        padding: 10px 15px !important;
        background-color: #fff !important;
        border: 2px solid #f0813c !important;
        border-radius: 25px !important;
        text-align: center !important;
        font-size: 14px !important;
        color: #f0813c !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
    }

    .recipe-leftside ul li a:hover,
    .recipe-leftside ul li a.active {
        background-color: #f0813c !important;
        color: #fff !important;
        border-bottom: 2px solid #f0813c !important;
    }

    .recipe-rightside {
        width: 100% !important;
        float: none !important;
        order: 2 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .recipe-rightside h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        color: #f0813c !important;
        padding: 0 15px !important;
    }

    .reciperight_contant {
        margin-bottom: 10px;
        padding-bottom: 40px;
    }

    .rezepte_contant .recipes .row,
    .myline_kochbuch .row {
        margin: 0 !important;
        padding: 0 10px !important;
    }

    .rezepte_contant .recipes .row .col-lg-4,
    .rezepte_contant .recipes .row .col-md-6,
    .rezepte_contant .recipes .row .col-sm-6,
    .myline_kochbuch .row .col-lg-4 {
        padding: 5px !important;
        margin-bottom: 15px !important;
    }

    /* Recipe cards responsive */
    .dishes {
        background-color: #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
        transition: transform 0.3s ease !important;
    }

    .dishes:hover {
        transform: translateY(-2px) !important;
    }

    .dish-img img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

    .dish-content {
        padding: 15px !important;
    }

    .dish-content h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        color: #f0813c !important;
        line-height: 1.3 !important;
    }

    .dish-content p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        color: #787878 !important;
        margin-bottom: 10px !important;
    }

    /* Kochbuch content responsive */
    .kochbuch-content,
    .kochbuch-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .kochbuch-content .row,
    .kochbuch-content .row {
        margin: 0 !important;
        padding: 0 10px !important;
    }

    /* Mobile Kochbuch optimizations */
    .myline_kochbuch {
        padding: 40px 0px 30px 0px !important;
    }

    .myline_kochbuch .kochbuch-heading h2 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }

    .myline_kochbuch .kochbuch-heading span {
        font-size: 18px !important;
        margin-bottom: 20px !important;
        line-height: 1.3 !important;
    }

    .myline_kochbuch .kochbuch-heading p {
        font-size: 16px !important;
        margin-bottom: 25px !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
    }

    /* Mobile Kochbuch Filter optimizations */
    .kochbuch-filter {
        padding: 30px 15px 25px 15px !important;
    }

    .kochbuch-filter ul li {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .kochbuch-filter ul li a {
        display: block !important;
        padding: 15px !important;
        background-color: #f8f9fa !important;
        border-radius: 8px !important;
        border: 2px solid #e9ecef !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }

    .kochbuch-filter ul li a:hover,
    .kochbuch-filter ul li a.active {
        background-color: #f0813c !important;
        border-color: #f0813c !important;
        color: #fff !important;
    }

    .kochbuch-filter ul li a:hover h4,
    .kochbuch-filter ul li a.active h4,
    .kochbuch-filter ul li a:hover label,
    .kochbuch-filter ul li a.active label,
    .kochbuch-filter ul li a:hover font,
    .kochbuch-filter ul li a.active font {
        color: #fff;
    }

    .kochbuch-filter ul li a .filter-btn1,
    .kochbuch-filter ul li a .filter-btn2 {
        font-size: 18px !important;
        font-weight: 500 !important;
        color: #f0813c !important;
    }

    .kochbuch-filter ul li a:hover .filter-btn1,
    .kochbuch-filter ul li a:hover .filter-btn2,
    .kochbuch-filter ul li a.active .filter-btn1,
    .kochbuch-filter ul li a.active .filter-btn2 {
        color: #fff !important;
    }

    .kochbuch-filter ul li a .filter-btn1 h4,
    .kochbuch-filter ul li a .filter-btn2 h4 {
        font-size: 16px !important;
        margin: 5px 0 0 0 !important;
        line-height: 1.3 !important;
    }

    .kochbuch-filter label.main {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        float: none !important;
        display: block !important;
        text-align: center !important;
        color: #f0813c !important;
        font-weight: 500 !important;
    }

    /* Mobile filter checkboxes */
    .filter-btn {
        padding-left: 40px !important;
        padding-right: 15px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }

    .filter-btn .checkmark {
        width: 24px !important;
        height: 24px !important;
        border: 2px solid #f0813c !important;
        border-radius: 4px !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .filter-btn .checkmark:after {
        top: 3px !important;
        left: 7px !important;
        width: 6px !important;
        height: 12px !important;
        border: solid #fff !important;
        border-width: 0 3px 3px 0 !important;
    }

    .filter-btn input:checked ~ .checkmark {
        background-color: #f0813c !important;
        border-color: #f0813c !important;
    }

    /* Mobile Kochbuch logo optimization */
    .reciperight_contant.myline_kochbuch .kochbuch-logo {
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }

    .reciperight_contant.myline_kochbuch .kochbuch-logo img {
        width: 70% !important;
        max-width: 200px !important;
    }

    /* Mobile wishlist buttons optimization */
    .recipes-icons {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        margin-top: 10px !important;
    }

    .btn-add-wishlist,
    .btn-remove,
    .like-icon {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
        color: #f0813c !important;
        transition: all 0.3s ease !important;
    }

    .like-icon.active {
        color: #e74c3c !important;
    }

    .btn-add-wishlist:hover,
    .btn-remove:hover {
        background-color: rgba(240, 129, 60, 0.1) !important;
        border-radius: 50% !important;
    }

    /* Load more button */
    #loadMore2 {
        display: block !important;
        margin: 20px auto !important;
        padding: 12px 25px !important;
        background-color: #f0813c !important;
        color: #fff !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 16px !important;
        cursor: pointer !important;
    }

    /* Recipe generator section */
    .recipe_generator {
        padding: 20px 0 !important;
    }

    .recipe_generator h2 {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    /* Kitchen section */
    .myline_kitchen_main {
        padding: 20px 0 !important;
    }

    /* Pagination responsive */
    .recipe-rightside .pager {
        float: none !important;
        text-align: center !important;
        margin: 20px 0 !important;
    }

    .recipe-rightside .new-ingredient-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .recipe-rightside .new-ingredient-btn {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    /* Ensure login page is scrollable on mobile */
    body.main-setup-steps {
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Fix for mobile viewport issues */
    .wrapper.main-setup-steps {
        min-height: 100vh !important;
        display: block !important;
        flex-direction: none !important;
        width: 100% !important;
    }

    .main-section {
        display: block !important;
        flex: none !important;
        align-items: normal !important;
        padding: 10px 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Mobile Modal dialog fixes */
    .modal-dialog {
        margin: 20px auto !important;
        width: 95% !important;
        max-width: 95% !important;
    }

    .modal-content {
        padding: 20px !important;
    }

    /* Fix activation code input on mobile */
    input[name="activationcode"] {
        font-size: 16px !important; /* Prevent zoom on iOS */
        letter-spacing: 2px !important;
        text-align: center !important;
    }

    /* Fix select dropdown on mobile */
    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0813c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 15px center !important;
        background-size: 20px !important;
        padding-right: 50px !important;
    }

    /* Fix form validation messages */
    .mage-error {
        font-size: 14px !important;
        color: #dc3545 !important;
        margin-top: 5px !important;
        display: block !important;
        text-align: center !important;
    }

    /* Prevent zoom on form inputs in iOS */
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
        -webkit-tap-highlight-color: rgba(240, 129, 60, 0.3) !important;
    }

    /* Complete step styling */
    .ladesymbol-step-content {
        padding: 40px 20px !important;
    }

    .ladesymbol-step-content-text {
        text-align: center !important;
    }

    .ladesymbol-step-icon img {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 25px !important;
    }

    #complete-name {
        font-size: 24px !important;
        color: #f0813c !important;
        display: block !important;
        margin-bottom: 15px !important;
    }

    .ladesymbol-step-content-text span {
        font-size: 18px !important;
        line-height: 1.4 !important;
        display: block !important;
        margin-bottom: 20px !important;
        color: #787878 !important;
    }
}

/* iPhone 11 specific adjustments (375px width) */
@media (max-width: 375px) {
    .Registration-detail-text {
        width: 90% !important;
        padding: 15px !important;
        margin: 10px auto !important;
    }

    .Registration-right-content {
        padding-top: 20px !important;
    }

    .Registration-right-content label {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .Registration-right-content span {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .form-group input[type=text],
    .form-group input[type=email],
    .form-group input[type=password],
    #email,
    #pass {
        font-size: 16px !important;
        padding: 0 12px !important;
        margin-bottom: 12px !important;
    }

    .form-group label {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .login_info .button.login__btn,
    #send2,
    .Step3_wrapper .login_info .button.login__btn,
    .Step3_wrapper .login_info #send2 {
        font-size: 16px !important;
        padding: 12px 15px !important;
        margin: 12px auto !important;
        line-height: 1.2 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
        right: auto !important;
        left: auto !important;
        position: static !important;
    }

    .loginform_links a {
        font-size: 14px !important;
        margin: 8px 0 !important;
    }

    .signin-step {
        padding: 12px !important;
        margin: 8px 0 !important;
    }

    .signin-step img {
        width: 35px !important;
        height: 35px !important;
        margin-right: 10px !important;
    }

    .signin-step span {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    /* iPhone 11 header fixes */
    .header {
        padding: 8px 0 !important;
    }

    .right-part {
        padding-top: 3px !important;
    }

    .right-part div {
        margin-right: 8px !important;
    }

    .right-part div a span {
        font-size: 14px !important;
    }

    .right-part div span img {
        max-width: 20px !important;
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 2px !important;
    }

    .main-setup-steps .header {
        padding: 8px 0 !important;
    }

    .main-setup-steps .header .logo img {
        max-height: 35px !important;
    }

    /* iPhone 11 specific styling for unlock button */
    #unlock_form_free .button,
    #unlock_form_free button,
    form#unlock_form_free .button,
    form#unlock_form_free button {
        font-size: 16px !important;
        padding: 12px 15px !important;
        margin: 12px auto !important;
        line-height: 1.2 !important;
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        float: none !important;
        right: auto !important;
        left: auto !important;
        position: static !important;
    }

    /* iPhone 11 specific modal image adjustments */
    .side-modal-img,
    #newVideoNotificationPopup .modal-content .modal-body .side-modal-img {
        width: 80px !important;
        max-width: 80px !important;
        margin: 0 10px 10px 0 !important;
    }

    #newVideoNotificationPopup .modal-content .modal-body {
        font-size: 14px !important;
        padding: 15px !important;
    }
}

/* Tablet specific adjustments for login */
@media (min-width: 768px) and (max-width: 991px) {
    .Registration-detail-text {
        width: 90% !important;
        padding: 30px !important;
    }

    .Registration-left-content {
        width: 30% !important;
    }

    .Registration-right-content {
        width: 70% !important;
        padding-left: 40px !important;
    }

    .Registration-code input[type=text],
    .form-group input {
        height: 60px !important;
        font-size: 16px !important;
    }

    .Registration-step-btn .button {
        font-size: 16px !important;
        padding: 15px 30px !important;
    }
}

/* ==================================================
   PRINT STYLES
   ================================================== */

@media print {
    .offcanvas-menu,
    .navbar-toggler,
    .header,
    .footer,
    .btn,
    button {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
}

/* ==================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================== */

/* Focus indicators for keyboard navigation */
@media (max-width: 767px) {
    *:focus {
        outline: 3px solid #f0813c;
        outline-offset: 2px;
    }

    .btn:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        box-shadow: 0 0 0 3px rgba(240, 129, 60, 0.5);
    }

    /* Skip link for accessibility */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #000;
        color: #fff;
        padding: 8px;
        text-decoration: none;
        z-index: 100000;
    }

    .skip-link:focus {
        top: 6px;
    }
}

/* ==================================================
   WISHLIST RESPONSIVE STYLES
   ================================================== */

/* Mobile Wishlist Layout */
@media (max-width: 767px) {
    .my-wishlist {
        padding: 15px;
    }

    .my-wishlist .page-title h3 {
        font-size: 22px !important;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Wishlist Table Mobile Layout */
    #wishlist-table {
        width: 100%;
        border-collapse: collapse;
    }

    #wishlist-table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #f9f9f9;
    }

    #wishlist-table tbody td {
        display: block;
        border: none;
        padding: 5px 0;
        text-align: left;
        width: 100% !important;
    }

    /* Recipe Image Mobile */
    .recipe-image {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .recipe-image img {
        max-width: 100%;
        border-radius: 8px;
    }

    /* Recipe Info Mobile */
    .recipe-name {
        margin-bottom: 8px;
    }

    .recipe-name h4 {
        font-size: 18px !important;
        line-height: 1.3;
        margin: 0;
        word-wrap: break-word;
        hyphens: auto;
    }

    .recipe-name a {
        color: #f0813c;
        text-decoration: none;
    }

    .description .inner {
        font-size: 13px !important;
        line-height: 1.4;
        color: #666;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Remove Button Mobile */
    .wishlist-item-remove {
        text-align: center;
        margin-top: 10px;
        display: inline-flex;
        align-items: center;
        background: #dc3545;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 12px;
    }

    .wishlist-item-remove img {
        filter: brightness(0) invert(1); /* Make icon white */
    }

    .remove-text.desktop-only {
        display: none;
    }

    /* Responsive Text Content */
    .mobile-text {
        display: block;
    }

    .desktop-text {
        display: none;
    }

    /* Back Link Mobile */
    .buttons-set .back-link {
        text-align: center;
        margin-top: 20px;
        padding: 0 15px;
    }

    .buttons-set .back-link a {
        font-size: 14px;
        color: #f0813c;
    }

}

/* Tablet Wishlist Layout */
@media (min-width: 768px) {
    .wishlist-item-remove img {
        width: 20px;
        filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .my-wishlist {
        padding: 20px;
    }

    .my-wishlist .page-title h3 {
        font-size: 26px !important;
    }

    #wishlist-table tbody tr {
        display: table-row;
    }

    #wishlist-table tbody td {
        display: table-cell;
        padding: 15px 10px;
        vertical-align: top;
        border-bottom: 1px solid #eee;
    }

    .recipe-image img {
        max-width: 150px;
        height: auto;
    }

    .recipe-name h4 {
        font-size: 20px !important;
    }

    .recipe-name a {
        color: #f0813c !important;
        text-decoration: none;
    }

    .recipe-name a:hover {
        color: #d66b2a !important;
        text-decoration: underline;
    }

    .description .inner {
        font-size: 14px !important;
        color: #666;
    }

    /* Tablet Remove Button */
    .wishlist-item-remove {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: transparent;
        color: #dc3545;
        padding: 6px 12px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
        border: 1px solid #dc3545;
        transition: all 0.3s ease;
    }

    .wishlist-item-remove:hover {
        background: #dc3545;
        color: white;
    }

    .wishlist-item-remove:hover img {
        filter: brightness(0) invert(1);
    }

    .remove-text.desktop-only {
        display: inline;
    }

    /* Tablet Text Content */
    .mobile-text {
        display: none;
    }

    .desktop-text {
        display: block;
    }
}

/* Desktop Wishlist Layout */
@media (min-width: 992px) {
    .my-wishlist {
        padding: 30px;
    }

    #wishlist-table tbody td {
        padding: 20px 15px;
        vertical-align: top;
        border-bottom: 1px solid #eee;
    }

    .recipe-image img {
        max-width: 216px;
        height: auto;
    }

    .recipe-name h4 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .recipe-name a {
        color: #f0813c !important;
        text-decoration: none;
    }

    .recipe-name a:hover {
        color: #d66b2a !important;
        text-decoration: underline;
    }

    .description .inner {
        font-size: 15px;
        line-height: 1.5;
        color: #666;
    }

    /* Desktop Remove Button */
    .wishlist-item-remove {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: transparent;
        color: #dc3545;
        padding: 5px 10px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        border: 1px solid #dc3545;
        transition: all 0.3s ease;
    }

    .wishlist-item-remove:hover {
        background: #dc3545;
        color: white;
    }

    .wishlist-item-remove:hover img {
        filter: brightness(0) invert(1);
    }

    .remove-text.desktop-only {
        display: inline;
    }

    /* Desktop Text Content */
    .mobile-text {
        display: none;
    }

    .desktop-text {
        display: block;
    }
}

/* Empty Wishlist Message */
@media (max-width: 767px) {
    .wishlist-empty {
        display: block !important;
        text-align: center;
        padding: 40px 20px;
        font-size: 16px;
        color: #666;
        background: #f9f9f9;
        border-radius: 8px;
        margin: 20px 0;
    }
}

/* ==================================================
   ERFOLGSJOURNAL RESPONSIVE STYLES
   ================================================== */

/* Mobile Erfolgsjournal Layout */
@media (max-width: 767px) {
    .journal-block {
        margin: 20px 0 !important;
        padding: 15px;
    }

    .journal-block .box-heading {
        text-align: center;
        margin-bottom: 20px;
    }

    .journal-block .box-heading h2 {
        font-size: 20px !important;
        margin-bottom: 10px;
    }

    .journal-block .box-heading p {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Journal Weight Section Mobile */
    .journal-block .journal-weight {
        flex-direction: column;
    }

    .journal-block .journal-weight .weight-leftpart {
        width: 100% !important;
        float: none;
        margin-bottom: 20px;
        padding-right: 0 !important;
    }

    .journal-block .journal-weight .weight-rightpart {
        width: 100% !important;
        float: none;
        margin-top: 0;
        padding-left: 0;
        text-align: center;
    }

    /* Start Weight Inputs Mobile */
    .journal-block .start-weight {
        width: 100% !important;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .journal-block .start-weight label {
        float: none;
        margin: 0 0 8px 0;
        text-align: center;
        font-size: 16px;
    }

    .journal-block .start-weight .input-text {
        float: none;
        max-width: 80px;
        margin: 0 8px 0 0;
        height: 40px !important;
        font-size: 16px;
    }

    .journal-block .start-weight span {
        float: none;
        line-height: 40px;
    }

    /* Chart Mobile */
    .journal-block .journal-weight .weight-leftpart .weight-chart {
        margin: 20px 0;
    }

    .journal-block .journal-weight .weight-leftpart .weight-chart canvas {
        max-width: 100%;
        height: auto !important;
    }

    /* Profile Image Mobile */
    .journal-block .journal-weight .weight-rightpart .weight-rimage {
        margin-bottom: 15px;
    }

    .journal-block .journal-weight .weight-rightpart .weight-rimage img {
        max-width: 200px;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .journal-block .journal-weight .weight-rightpart p {
        font-size: 16px;
        margin: 10px 0;
    }

    .journal-block .journal-weight .weight-rightpart a {
        font-size: 16px !important;
        padding: 12px 20px;
        border-radius: 6px;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
}

/* Weight Fields Mobile */
@media (max-width: 767px) {
    .weight-fieldblock {
        margin: 30px 0;
        padding: 15px;
    }

    .weight-fieldblock p {
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 20px;
    }

    .weight-fields {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .weight-fields .weight-fields-head {
        display: flex;
        flex-wrap: wrap;
        font-size: 12px !important;
        font-weight: bold;
        background: #f5f5f5;
        padding: 10px 5px;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .weight-fields .weight-fields-head .weight-week,
    .weight-fields .weight-fields-head .weight-number {
        width: 50% !important;
        text-align: center !important;
        margin-bottom: 5px;
        padding: 5px;
        color: #ef7d00;
    }

    .weight-fields .weight-fields-body {
        display: flex;
        flex-wrap: wrap;
        border-radius: 6px;
        margin-bottom: 10px;
        background: #fafafa;
    }

    .weight-fields .weight-fields-body .weight-week,
    .weight-fields .weight-fields-body .weight-number {
        width: 50% !important;
        margin-bottom: 8px;
        text-align: center;
    }

    .weight-fields .weight-fields-body .weight-week .input-text,
    .weight-fields .weight-fields-body .weight-number .input-text {
        width: 60px !important;
        height: 35px !important;
        font-size: 14px !important;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 5px;
    }

    .weight-fieldblock .savebtn {
        text-align: center;
        margin: 20px 0;
    }

    .weight-fieldblock .savebtn .button {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
        background: #ef7d00;
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .weight-fieldblock .savebtn .button:hover {
        background: #d66b2a;
    }
}

/* Tablet Erfolgsjournal Layout */
@media (min-width: 768px) and (max-width: 991px) {
    .journal-block {
        margin: 30px 0;
        padding: 20px;
    }

    .journal-block .box-heading h2 {
        font-size: 22px;
    }

    .journal-block .journal-weight .weight-leftpart {
        width: 65% !important;
        padding-right: 20px;
    }

    .journal-block .journal-weight .weight-rightpart {
        width: 35% !important;
    }

    .journal-block .start-weight {
        width: 100% !important;
        margin-bottom: 15px;
    }

    .journal-block .start-weight label {
        font-size: 16px;
    }

    .journal-block .start-weight .input-text {
        height: 35px !important;
        max-width: 70px;
    }

    .weight-fields .weight-fields-head {
        font-size: 13px;
    }

    .weight-fields .weight-fields-head .weight-week,
    .weight-fields .weight-fields-head .weight-number {
        padding: 8px 5px;
    }

    .weight-fields .weight-fields-body .weight-number .input-text {
        height: 30px;
        font-size: 14px;
    }
}

/* Desktop Erfolgsjournal Enhancements */
@media (min-width: 992px) {
    .journal-block {
        margin: 40px 0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 30px;
        background: #fff;
    }

    .journal-block .box-heading {
        border-bottom: 2px solid #ef7d00;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .journal-block .journal-weight .weight-leftpart {
        width: 70% !important;
    }

    .journal-block .journal-weight .weight-rightpart {
        width: 30% !important;
    }

    .weight-fields {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .weight-fields .weight-fields-head {
        background: linear-gradient(135deg, #ef7d00, #d66b2a);
        color: white;
        font-weight: bold;
    }

    .weight-fields .weight-fields-body:nth-child(even) {
        background: #f9f9f9;
    }

    .weight-fields .weight-fields-body:hover {
        background: #f0f0f0;
        transition: background-color 0.3s ease;
    }

    .weight-fieldblock .savebtn .button {
        background: linear-gradient(135deg, #ef7d00, #d66b2a);
        border-radius: 6px;
        box-shadow: 0 4px 15px rgba(239, 125, 0, 0.3);
        transition: all 0.3s ease;
    }

    .weight-fieldblock .savebtn .button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 125, 0, 0.4);
    }
}

/* Recipe filter mobile responsive styles */
@media (max-width: 767px) {
    .filter .bottom-fild .form-group.radio-btns .image-selector label {
        width: 40px !important;
        height: 40px !important;
        display: block !important;
        margin: 0 auto !important;
        border: 2px solid #e8e8e8 !important;
        border-radius: 6px !important;
        background-color: #fff !important;
    }

    .filter .bottom-fild .form-group.radio-btns .image-selector input {
        width: 40px !important;
        height: 40px !important;
    }

    .filter .image-selector_wrapper {
        width: 100% !important;
    }

    .filter .droupdown-fild .selection-wrapper .options-wrapper {
        width: 100% !important;
        position: relative !important;
        margin-top: 5px !important;
        z-index: 999 !important;
    }

    .filter .search-Zutaten .textfield {
        border: 2px solid #e8e8e8 !important;
        border-radius: 6px !important;
        padding: 8px !important;
        min-height: 40px !important;
    }

    .filter .droupdown-fild .button {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        margin-top: 10px !important;
    }
}

/* ==================================================
   RECIPE POPUP RESPONSIVE STYLES
   ================================================== */

/* Desktop styles */
.modal-body .productmainLeft {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-body .peopleBlock {
    flex: 1;
    min-width: 300px;
}

.modal-body .infoBlock {
    flex: 1;
    min-width: 300px;
}

.modal-body .productMain .productmainRight {
    width: 100% !important;
    clear: both;
}

.modal-body .productMain {
    clear: both;
    overflow: hidden;
}

.modal-body .innerlisting_righticon {
    position: relative;
    z-index: 1;
    clear: both;
}

@media (max-width: 768px) {
    .modal-body .productmainLeft {
        flex-direction: column;
        width: 100% !important;
    }

    .modal-body .peopleBlock,
    .modal-body .infoBlock {
        flex: none;
        width: 100%;
        min-width: auto;
    }

    .modal-body .productMain {
        width: 100% !important;
        clear: both;
        float: none;
    }

    .modal-body .innerlisting_righticon {
        position: static;
        float: none;
        clear: both;
        width: 100%;
    }

    .modal-body .nutritional-values_section-content {
        height: auto !important;
        min-height: auto !important;
    }

    .modal-body .nutritional-values_section-content > div {
        height: auto !important;
    }

    #wishlist-table .recipe-name {
        margin: auto 15px;
    }

    #wishlist-table .description.std {
        margin-left: 15px;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .filter .bottom-fild .form-group.radio-btns .image-selector input {
        width: 35px !important;
        height: 35px !important;
    }
}

.about-video .about-video-detail {
    display: flex;
    padding: 15px 0px;
    flex-direction: column;
    width: 100%;
}

.about-video-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: 0px;
}

.about-video-content {
    margin-top: 15px;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .about-video .about-video-detail {
        flex-direction: row;
    }
    .about-video-heading {
        padding-right: 15px;
        width: auto;
        border-right: 1px solid #cdccca;
    }
    .about-video-content {
        padding-left: 15px;
    }
}

/* Header */
.header {
    height: 80px
}
.top-header {
    padding: 10px 0 10px 0px;
}

.bonusvideo {
    display: flex;
    flex-direction: column;
}

.bonusvideo-text {
    margin: 15px 0px;
}

.bonusvideo-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0px;
    gap: 8px;
}

.footer-wrapper {
    padding-top: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-logo {
    width: 100%;
}

.footer-wrapper .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.footer-wrapper .footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links ul li {
    display: flex;
    justify-content: center;
}

@media (min-width: 767px) {
    .footer-links ul li {
        justify-content: start;
    }
}

.footer-content .footer-detail {
    margin: 15px 0px;
}

.footer-content .copyright-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mykitchen-sublink-mobile {
    display: block;
}

.recipe-leftside ul.mykitchen-sublink-desktop {
    display: none;
}

@media (min-width: 767px) {
    .footer-content .footer-links {
        flex-direction: row;
        width: 100%;
    }
    .footer-content .footer-links > div{
        display: flex;
        flex-direction: column;
        align-items: start;
        flex-grow: 1;
    }
    .footer-content .copyright-section {
        flex-direction: row;
    }
    .recipe-leftside ul.mykitchen-sublink-desktop {
        display: block;
        margin: 5px 0px 0px 12px;
    }
    .mykitchen-sublink-mobile {
        display: none;
    }
}

.recipe-main-content .recipe-leftside{ width: 30%; float: left; padding-top: 62px; }
.recipe-main-content .recipe-rightside{ width: 70%; float: right;}

.recipe_generator-content-detail {
    background: #f9f6f4;
    padding: 20px;
    margin-bottom: 20px;
}

.recipe_generator-content-detail .bottom-fild {
    display: flex;
    flex-direction: column;
}
@media (min-width: 767px) {
    .recipe_generator-content-detail .bottom-fild {
        flex-direction: row;
    }
}
.recipe_generator-content-detail .bottom-fild .search-btn {
    display: flex;
    gap: 8px;
    align-items: center;
}
.recipe_generator-content-detail .bottom-fild .search-btn:hover {
    background: transparent;
    border: 1px solid transparent;
}

.recipe_generator-content-detail .filter .textfield {
    padding: 15px;
}

.recipes .row {
    row-gap: 15px;
}

.navbar-brand img{ width: 100px; height: auto;}

@media (min-width: 480px) {
    .navbar-brand img{ width: 150px;}
}

.right-header{ margin-right: 10px; padding-top: 15px; float: right; }

@media (min-width: 480px) {
    .right-header{ padding-top: 25px;}
}

.footer-image img {
    width: 100%;
    max-height: 300px;
}

.copyright-section img {
    margin-bottom: 40px;
}
.desktop-copyright {
    display: none;
}
@media (min-width: 767px) {
    .copyright-section {
        width: 100%;
    }
    .copyright-section .copyright {
        display: none;
    }
    .footer-content .footer-detail {
        margin: 0;
    }
    .footer-links > div > label {
        margin-bottom: 30px;
        font-weight: 700;
    }
    .desktop-copyright {
        display: block;
    }
}

.weight-fields .weight-fields-body .weight-number {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weight-text-day-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.productMain { display:inline-block; width:100%; margin:20px 0 0 0;}
.productMain .peopleBlock { display:inline-block; width:100%; }
.productMain .productmainLeft { width:355px; margin:0 85px 0 0; float:left; font-size:14px; color:#797979; }
.productMain .peopleBlock ul { margin:5px 0 20px 0; display:inline-block; }
.productMain .peopleBlock ul li { display:inline-block; width:100%; list-style:none; margin:0; padding:0; border-bottom:1px dotted #797979; line-height:25px; float:left; position:relative; }
.productMain .peopleBlock ul li .first { float:left; }
.productMain .peopleBlock ul li .last { width:245px; float:right; }

/* ==================================================
   KOCHBUCH FILTER RECIPES RESPONSIVE DESIGN
   ================================================== */

/* Base styles for all recipe cards within kochbuch-filter-recipes */
.kochbuch-filter-recipes .col-lg-4,
.kochbuch-filter-recipes .col-md-6,
.kochbuch-filter-recipes .col-sm-6 {
    margin-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Mobile First: Base mobile styles (320px - 767px) */
@media (max-width: 767px) {
    .kochbuch-filter-recipes .col-lg-4,
    .kochbuch-filter-recipes .col-md-6,
    .kochbuch-filter-recipes .col-sm-6 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .kochbuch-filter-recipes .dishes {
        max-width: none;
        margin: 0 auto;
    }
}

/* Small tablets and large mobiles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .kochbuch-filter-recipes .col-lg-4,
    .kochbuch-filter-recipes .col-md-6,
    .kochbuch-filter-recipes .col-sm-6 {
        width: 50% !important;
        float: left !important;
        margin-bottom: 20px;
    }
}

/* Small desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .kochbuch-filter-recipes .col-lg-4 {
        width: 33.333333% !important;
        float: left !important;
    }
    
    .kochbuch-filter-recipes .col-md-6,
    .kochbuch-filter-recipes .col-sm-6 {
        width: 50% !important;
        float: left !important;
    }
}

/* Large desktops (1200px+) */
@media (min-width: 1200px) {
    .kochbuch-filter-recipes .col-lg-4 {
        width: 33.333333% !important;
        float: left !important;
    }
    
    .kochbuch-filter-recipes .col-md-6 {
        width: 50% !important;
        float: left !important;
    }
    
    .kochbuch-filter-recipes .col-sm-6 {
        width: 50% !important;
        float: left !important;
    }
}

/* Additional spacing adjustments for recipe cards */
.kochbuch-filter-recipes .dishes {
    margin-bottom: 0; /* Remove any existing bottom margin to prevent double spacing */
    transition: transform 0.2s ease-in-out;
}

/* Hover effects for better UX */
.kochbuch-filter-recipes .dishes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Clear floats after recipe rows */
.kochbuch-filter-recipes::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 767px) {
    .main-setup-steps .step-check-registration .fild_checkbox {
        display: flex !important;
        align-items: center !important;
        margin: 0 0 12px !important;
        padding-left: 0 !important;
    }

    .main-setup-steps .step-check-registration .fild_checkbox input.input-check {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    .main-setup-steps .step-check-registration label.checkmark {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: auto !important;
        height: auto !important;
        min-height: 24px !important;
        padding-left: 0 !important;
        border: none !important;
        background: transparent !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        z-index: auto !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .main-setup-steps .step-check-registration .checkmark span {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        border: 1px solid #787878 !important;
        border-radius: 2px !important;
        background: #fff !important;
        transform: none !important;
    }

    .step-agree .smiley-icon,
    .step-agree .Registration-detail-text .smiley-icon {
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .step-agree .Registration-right-content.login_info {
        padding-bottom: 16px !important;
    }

    .step-agree .form-content {
        display: block !important;
    }

    .step-agree .Registration-right-content button.login__btn {
        margin-bottom: 0 !important;
    }

    /* Fix für Geschlecht Radio-Buttons */
    .registration-gender .fild_checkbox {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        margin: 0 0 14px !important;
    }

    .registration-gender .fild_checkbox input.input-check {
        position: absolute !important;
        top: 50% !important;
        left: 10px !important;
        transform: translateY(-50%) !important;
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }

    .registration-gender .fild_checkbox label.checkmark {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        padding: 0px 15px 5px 44px !important;
        text-align: left !important;
        color: #787878 !important;
        background: #fff !important;
        border: 1px solid #f0813c !important;
        border-radius: 5px !important;
    }

    .registration-gender .fild_checkbox label.checkmark span {
        display: none !important;
    }

    /* Fix für agree-weight Checkbox */
    .step-weight .form-group.agree-weight {
        position: relative !important;
        margin-bottom: 18px !important;
    }

    .step-weight .form-group.agree-weight label.checkmark {
        display: block !important;
        width: 100% !important;
        padding-left: 44px !important;
        text-align: left !important;
        line-height: 1.45 !important;
        color: #787878 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .step-weight .form-group.agree-weight label.checkmark span {
        position: absolute !important;
        left: 0 !important;
        top: 2px !important;
    }

    /* Fix für Newsletter Checkboxen */
    .step-agree .form-group.steps-weight {
        position: relative !important;
        margin-bottom: 18px !important;
        z-index: 1 !important;
    }

    .step-agree .form-group.steps-weight label.checkmark {
        display: block !important;
        width: 100% !important;
        padding-left: 44px !important;
        text-align: left !important;
        line-height: 1.45 !important;
        color: #787878 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .step-agree .form-group.steps-weight label.checkmark span {
        position: absolute !important;
        left: 0 !important;
        top: 2px !important;
    }
}
