/*
Theme Name: 3D Partner Child Theme
Theme URI: https://3dpartner.de/
Author: 3D Partner
Author URI: https://3dpartner.de/
Description: Leichtgewichtiges und sauberes Child-Theme für das "3D Partner Theme".
Template: 3d-partner-theme
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 3d-partner-child
*/

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Fix 1: Back-to-top Label auf Mobile ausblenden (statt inline <style>)
   ========================================================================== */
@media (max-width: 768px) {
    .back-to-top-label {
        display: none !important;
    }
}

/* ==========================================================================
   Fix 3: Horizontaler Scroll auf Mobile (100vw inkl. Scrollbar)
   ========================================================================== */
html {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .alignfull {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Fix 4: Breadcrumb Mindestgröße auf Mobile (war 11.2px bei size-small)
   ========================================================================== */
@media (max-width: 768px) {
    #atomion-breadcrumbs.breadcrumb-size-small {
        font-size: max(0.85rem, 80%);
    }
}

/* ==========================================================================
   Fix 5: Tap-Targets mindestens 48px auf Mobile (Google-Minimum)
   ========================================================================== */
@media (max-width: 768px) {
    #atomion-breadcrumbs a {
        padding: 10px 0;
    }

    #main-footer a,
    #footer-bottom a {
        display: inline-block;
        min-height: 48px;
        line-height: 48px;
    }

    .nav-links a,
    .page-numbers {
        min-width: 48px;
        min-height: 48px;
        line-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Fix 6: Footer-Links visuell als Links erkennbar machen
   ========================================================================== */
#main-footer a,
#main-footer ul li a {
    text-decoration: underline;
}

#main-footer a:hover,
#main-footer a:focus,
#main-footer ul li a:hover,
#main-footer ul li a:focus {
    text-decoration: none;
}

/* ==========================================================================
   Fix 7: Cookie-Banner überlagert Mobile-Viewport nicht mehr
   ========================================================================== */
@media (max-width: 768px) {
    .borlabs-cookie .cookie-box {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* ==========================================================================
   Trust-Kennzahlen Block ("Zahlen, die für uns sprechen")
   Hintergrund: #12367d (dunkles Blau) — Text muss hell sein
   ========================================================================== */
.trust-kpi-card {
    text-align: center;
}

.trust-kpi-inner {
    padding: 1rem 0.5rem;
}

.trust-kpi-number {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.trust-kpi-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.trust-kpi-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .trust-kpi-number {
        font-size: 2rem;
    }
    .trust-kpi-icon {
        font-size: 1.5rem;
    }
    .trust-kpi-label {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Wartungs-Pakete Cards (/3d-drucker-wartung/)
   ========================================================================== */
.wartung-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.wartung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Beliebteste Wahl — hervorgehoben */
.wartung-standard {
    border: 2px solid #0085d1;
    box-shadow: 0 4px 20px rgba(0, 133, 209, 0.15);
}

.wartung-badge {
    display: block;
    background: #0085d1;
    color: #ffffff;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.wartung-card-header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.wartung-card-header h3 {
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

.wartung-icon {
    font-size: 2rem;
    display: block;
}

.wartung-preis {
    text-align: center;
    padding: 0.5rem 1rem 1rem;
}

.preis-ab {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preis-zahl {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0085d1;
    line-height: 1.2;
}

.preis-einheit {
    display: block;
    font-size: 0.8rem;
    color: #a0aec0;
}

.wartung-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 1.5rem;
}

.wartung-features {
    list-style: none;
    padding: 1rem 1.5rem;
    margin: 0;
}

.wartung-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.wartung-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0085d1;
    font-weight: 700;
}

.wartung-features li strong {
    color: #1a202c;
}

.wartung-cta {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.wartung-cta a {
    display: inline-block;
    background: #0085d1;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.wartung-cta a:hover {
    background: #006ba8;
}

/* Premium Card Akzent */
.wartung-premium .wartung-cta a {
    background: #1a202c;
}

.wartung-premium .wartung-cta a:hover {
    background: #2d3748;
}

@media (max-width: 768px) {
    .preis-zahl {
        font-size: 1.8rem;
    }
    .wartung-features li {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Fix: Mini-Cart Widget auf Nicht-WooCommerce-Seiten verstecken
   (woocommerce.css wird dort nicht geladen)
   ========================================================================== */
#masthead .cart-item .atomion-mini-cart-widget {
    display: none;
    z-index: -1;
    position: absolute;
}