/* nextfiles.one — site-specific overrides on top of the mirrored Crafto theme */

:root {
    --nf-navy: #2d4566;
    --nf-blue: #0286dd;
    --nf-blue-bg: #e8f3ff;
    --nf-orange: #ec750b;
    --nf-light: #f8f9fa;
    --nf-text: #717580;
}

.bg-gradient-flamingo-amethyst-green {
    background: linear-gradient(90deg, #ef6f63 0%, #c2509a 50%, #6db98b 100%) !important;
}

/* Global 4px radius for all BUTTONS (per user request — buttons only) */
.btn,
.btn-round-edge,
.btn-very-small,
.btn-small,
.btn-large,
.btn-link-gradient,
.btn-dark-gray,
.btn-light-gray,
.btn-transparent-light-gray,
.btn-nf-navy,
.back-button,
.product-link-btn,
.subnav-link,
button.btn,
a.btn {
    border-radius: 4px !important;
}

/* Very-small variant keeps slightly tighter radius */
.btn-very-small { border-radius: 3px !important; }

.btn-transparent-light-gray {
    background-color: #eef0f4 !important;
    color: var(--nf-navy) !important;
    border: 1px solid #e4e7ec !important;
    padding: 7px 18px !important;
}

.btn-transparent-light-gray:hover {
    background-color: #e0e3e8 !important;
}

.btn-dark-gray, .btn-nf-navy {
    background-color: var(--nf-navy) !important;
    color: #fff !important;
    border-color: var(--nf-navy) !important;
    padding: 7px 18px !important;
}

.btn-dark-gray:hover, .btn-nf-navy:hover {
    background-color: #1d2f47 !important;
    color: #fff !important;
}

.btn-very-small {
    padding: 4px 12px !important;
    font-size: 12px !important;
}

.btn-small {
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.shop-product-image:empty,
.shop-product-image:has(a > img:not([src]):not([data-src])) {
    display: none;
}

.shop-product-image img[src=""],
.shop-product-image img:not([src]) {
    display: none;
}


body {
    font-family: 'Inter', sans-serif;
    color: var(--nf-text);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--nf-navy);
    font-family: 'Inter', sans-serif;
}

.bg-dark-blue {
    background-color: var(--nf-navy) !important;
}

.bg-light-blue {
    background-color: var(--nf-blue-bg) !important;
}

.nf-hero {
    background-color: var(--nf-blue-bg);
    padding: 60px 0 80px;
}

.nf-hero h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nf-navy);
}

@media (max-width: 768px) {
    .nf-hero h1 { font-size: 28px; }
}

.nf-page-title-band {
    background-color: var(--nf-navy);
    padding: 26px 0;
}

.nf-page-title-band h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
}

/* Old sticky-subnav rules removed — see Crafto-original below */

.nf-price-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 30px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #eef1f5;
}

.nf-price-card.highlight {
    border-color: var(--nf-blue);
    transform: translateY(-4px);
}

.nf-price-card .nf-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nf-orange);
    color: #fff;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 14px;
    letter-spacing: 0.5px;
}

.nf-price-card h3 {
    color: var(--nf-navy);
    font-size: 22px;
    margin-bottom: 4px;
}

.nf-price-card .nf-price {
    font-size: 38px;
    font-weight: 700;
    color: var(--nf-navy);
    margin: 12px 0 4px;
}

.nf-price-card .nf-price-period {
    color: var(--nf-text);
    font-size: 14px;
    margin-bottom: 16px;
}

.nf-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.nf-price-card li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--nf-text);
}

.nf-price-card li::before {
    content: "✓ ";
    color: var(--nf-blue);
    font-weight: 700;
    margin-right: 4px;
}

.nf-price-card .btn {
    margin-top: auto;
    background: var(--nf-navy);
    color: #fff;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.nf-price-card.highlight .btn {
    background: var(--nf-blue);
}

.nf-feature-grid .nf-feature-tile {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    text-align: center;
}

.nf-feature-grid .nf-feature-tile i {
    font-size: 32px;
    color: var(--nf-blue);
    margin-bottom: 12px;
    display: inline-block;
}

.nf-feature-grid .nf-feature-tile h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--nf-navy);
}

.nf-feature-grid .nf-feature-tile p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.accordion-button:not(.collapsed) {
    background-color: var(--nf-blue-bg);
    color: var(--nf-navy);
}

.shop-product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: box-shadow .2s, transform .2s;
}

.shop-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.shop-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.shop-product-body {
    padding: 18px 20px 24px;
}

.shop-product-body h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--nf-navy);
}

.shop-product-body p {
    font-size: 14px;
    margin: 0 0 14px;
    color: var(--nf-text);
}

.btn-nf-navy {
    background: var(--nf-navy);
    color: #fff;
    border-radius: 4px;
    padding: 8px 18px;
}

.btn-nf-navy:hover {
    background: #1c2d44;
    color: #fff;
}

.nf-language-switcher .dropdown-menu .active,
.nf-currency-switcher .dropdown-menu .active {
    background: var(--nf-blue-bg);
    color: var(--nf-navy);
}

.btn-transparent-light-gray {
    background: #f1f3f6;
    color: var(--nf-navy);
    border: 1px solid #e4e7ec;
}

.btn-transparent-light-gray:hover {
    background: #e9ecef;
    color: var(--nf-navy);
}

.nf-tag-filter .btn {
    margin-right: 8px;
    margin-bottom: 10px;
}

.nf-contact-form input,
.nf-contact-form textarea {
    border-radius: 4px;
    border: 1px solid #d8dce1;
    padding: 12px 14px;
    width: 100%;
    margin-bottom: 12px;
}

.nf-contact-form button {
    background: var(--nf-navy);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 500;
}

.nf-contact-form button:hover {
    background: var(--nf-blue);
}

.alt-font {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* === Sticky-Subnav (Original Crafto) === */
.sticky-subnav {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    z-index: 999;
    padding: 12px 0;
    position: relative;
}

.sticky-subnav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #2d4566;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(45, 69, 102, 0.3);
    z-index: 10;
}
.back-button:hover {
    background-color: #ffffff;
    color: #2d4566;
    border: 1px solid #2d4566;
}
.back-button i { font-size: 16px; }

.sticky-product-name {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #2d4566;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(50% - 80px);
    opacity: 0;
    transition: opacity 0.3s;
}
.sticky-subnav.is-sticky .sticky-product-name { opacity: 1; }

.subnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
}
.subnav-list li { margin: 0; }
.subnav-link {
    display: inline-block;
    padding: 8px 16px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: 0.3s;
    margin: 0 4px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.subnav-link:hover,
.subnav-link.active {
    color: #ffffff;
    background-color: #2d4566;
    border-color: #2d4566;
    text-decoration: none;
}
.subnav-link-outlined { border: 1px solid #2d4566 !important; }
.subnav-link-outlined:hover,
.subnav-link-outlined.active { border: 1px solid #ffffff !important; }

@media (max-width: 991px) {
    .back-button { display: none !important; }
    .sticky-subnav .container { padding: 0 10px; }
    .sticky-subnav .row { margin: 0; }
    .sticky-subnav .col-12 { padding: 0; }
}
@media (max-width: 1349px) {
    .sticky-product-name { display: none !important; }
}
@media (max-width: 768px) {
    .subnav-list { justify-content: flex-start; padding: 0 15px; gap: 8px; margin: 0 auto; width: 100%; }
    .subnav-link { font-size: 13px; padding: 6px 12px; margin: 0; }
}

/* === Wichtige Links Buttons (Original) === */
.product-links-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 20px;
}
.product-link-btn {
    display: inline-block;
    padding: 8px 16px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: 0.3s;
    border: 1px solid #2d4566;
    background-color: #ffffff;
    white-space: nowrap;
}
.product-link-btn:hover {
    color: #ffffff;
    background-color: #2d4566;
    border-color: #2d4566;
    text-decoration: none;
}
@media (max-width: 768px) {
    .product-link-btn { font-size: 13px; padding: 6px 12px; }
    .product-links-buttons { gap: 8px; padding: 0 10px; }
}

/* === Final 4px radius override for buttons only === */
.btn-round-edge,
.btn-link-gradient,
.btn-dark-gray,
.btn-light-gray,
.btn-transparent-light-gray,
.btn-nf-navy,
.btn-round-edge.btn-hover-animation-switch,
.product-link-btn,
.subnav-link,
.back-button,
button.btn,
a.btn,
.btn {
    border-radius: 4px !important;
}

.btn-very-small { border-radius: 3px !important; }

/* === Listen/Home-Auswählen-Buttons im Pricebox-Stil (User-Anforderung) === */
/* Nur der „Auswählen"-Action-Button (NICHT die Tag-Pills btn-very-small) */
.shop-product-card .mt-20px > a.btn,
.shop-product-content .mt-20px > a.btn,
.shop-product-card a.btn-dark-gray:not(.btn-very-small),
.shop-product-content a.btn-dark-gray:not(.btn-very-small) {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    border: 1px solid #ffffff !important;
    background-color: #2d4566 !important;
    color: #ffffff !important;
    text-transform: none !important;
}

.shop-product-card .mt-20px > a.btn:hover,
.shop-product-content .mt-20px > a.btn:hover,
.shop-product-card a.btn-dark-gray:not(.btn-very-small):hover,
.shop-product-content a.btn-dark-gray:not(.btn-very-small):hover {
    background-color: #ffffff !important;
    color: #2d4566 !important;
    border: 1px solid #2d4566 !important;
}

/* === Hover-Pfeil-Animation für Listen/Home-Buttons (wie Pricebox) === */
.shop-product-card a.order-button.btn-with-arrow,
.shop-product-content a.order-button.btn-with-arrow {
    position: relative;
    overflow: hidden;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    border: 1px solid #ffffff !important;
    background-color: #2d4566 !important;
    color: #ffffff !important;
}
.shop-product-card a.order-button.btn-with-arrow .btn-text,
.shop-product-content a.order-button.btn-with-arrow .btn-text {
    transition: 0.3s;
    display: inline-block;
}
.shop-product-card a.order-button.btn-with-arrow .arrow-right,
.shop-product-content a.order-button.btn-with-arrow .arrow-right {
    margin-left: 8px;
    transition: 0.3s;
    opacity: 1;
}
.shop-product-card a.order-button.btn-with-arrow .arrow-left,
.shop-product-content a.order-button.btn-with-arrow .arrow-left {
    margin-right: 8px;
    transition: 0.3s;
    opacity: 0;
    position: absolute;
    left: 16px;
    transform: translateY(3px);
}
.shop-product-card a.order-button.btn-with-arrow:hover,
.shop-product-content a.order-button.btn-with-arrow:hover {
    background-color: #ffffff !important;
    color: #2d4566 !important;
    border-color: #2d4566 !important;
}
.shop-product-card a.order-button.btn-with-arrow:hover .btn-text,
.shop-product-content a.order-button.btn-with-arrow:hover .btn-text {
    transform: translateX(16px);
}
.shop-product-card a.order-button.btn-with-arrow:hover .arrow-right,
.shop-product-content a.order-button.btn-with-arrow:hover .arrow-right {
    opacity: 0;
}
.shop-product-card a.order-button.btn-with-arrow:hover .arrow-left,
.shop-product-content a.order-button.btn-with-arrow:hover .arrow-left {
    opacity: 1;
}

/* === Produktkarten: gleiche Höhe unabhängig vom Inhalt === */
.shop-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.shop-product-card .shop-product-image {
    flex: 0 0 auto;
}
.shop-product-card .shop-product-content,
.shop-product-card .shop-product-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.shop-product-card .shop-product-content > .mt-20px,
.shop-product-card .shop-product-body > .mt-20px {
    margin-top: auto !important;
}
/* Image-Aspect-Ratio fest, damit obere Hälfte bei allen Karten gleich hoch ist */
.shop-product-card .shop-product-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f8f9fa;
}
.shop-product-card .shop-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.shop-product-card .shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Rows/Cols: gleiche Höhe via Flex */
.row .col-lg-4.mb-30px,
.row .col-md-6.mb-30px {
    display: flex;
}
