/* ============================================================
   LAYER-REPARATUR (GANZ OBEN EINFÜGEN)
   ============================================================ */

/* 1. Backdrop nach hinten */
.modal-backdrop {
    z-index: 5000 !important;
}

/* 2. Alle Popups nach vorne und unter den Header */
.modal, 
#blockcart-modal, 
#product-modal, 
.modal.quickview, 
.wishlist-modal, 
.modal.wishlist-add-to,
.product-images-modal {
    z-index: 5005 !important; 
    padding-top: 120px !important; 
    display: none;
}

/* 3. Sichtbarkeit erzwingen, wenn offen */
.modal.show, 
.modal[style*="display: block"],
.modal.quickview[style*="display: block"] {
    display: block !important;
}

/* 4. Schließen-Button (X) sichtbar machen */
.modal .btn-close, 
.modal .close, 
#product-modal .btn-close,
.modal.product-images-modal .btn-close {
    z-index: 5010 !important;
    opacity: 1 !important;
    position: relative !important;
}

/* 5. Header nach hinten schieben, wenn ein Modal offen ist */
body.modal-open #header {
    z-index: 1000 !important;
}

/* 6. Mobile Anpassung */
@media (max-width: 767px) {
    .modal, #blockcart-modal, .modal.quickview {
        padding-top: 100px !important;
    }
}
/* ============================================================ */



/**
 * Fairway-Shop Design Update
 * Hauptfarbe: Waldgrün (#3d5816)
 * Theme: Hummingbird (PrestaShop 9)
 * Update: Sticky Footer & Header-Abstand Korrektur + Lightbox-Fix
 */

/* --- 0. BASIS-SETUP & STICKY FOOTER --- */
html * {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: #1d1d1d;
  font-size: 14px;
  font-style: normal;
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Der Main-Container füllt den leeren Platz aus und drückt den Footer nach unten */
main {
  flex: 1 0 auto;
}

/* Verhindert, dass der Footer gestaucht wird */
footer {
  flex-shrink: 0;
}

:root {
  --primary: #3d5816;
  --primary-hover: #2a3d0f;
  --text-white: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.25);
}

/* --- 1. GLOBALE FARBEN & LINKS --- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.text-primary, .material-icons.primary {
  color: var(--primary) !important;
}

/* Kompaktere Überschriften für das Hummingbird-Theme */
h1, .h1 { 
    font-size: 1.5rem !important; /* ca. 24px */
}

h2, .h2 { 
    font-size: 1.25rem !important; /* ca. 20px */
}

h3, .h3 { 
    font-size: 1.1rem !important; /* ca. 18px - etwas kleiner als H1 */
}



/* --- 2. BUTTONS (Vollflächig & Outline) --- */
.btn-primary, 
.add-to-cart,
.homeslider-description .btn-primary,
.pagination .current a,
.page-item.active .page-link {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--text-white) !important;
}

.btn-primary:hover, 
.add-to-cart:hover,
.btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn-outline-primary,
.btn-secondary {
  background-color: transparent !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-secondary:hover {
  background-color: var(--primary) !important;
  color: var(--text-white) !important;
}

/* --- 3. UI ELEMENTE --- */
.cart-products-count,
.badge-primary,
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.quickview .material-icons, 
.quickview:hover {
  color: var(--primary) !important;
}

/* --- 4. KATEGORIE HERO HEADER (Schmälere Version) --- */

/* Verringert den Abstand zum Rest der Seite */
.block-category.mb-4 { 
    margin-bottom: 1.5rem !important; 
}

.category-hero-container {
    position: relative;
    height: 180px; /* Reduzierte Höhe (vorher 250px) */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; 
    overflow: hidden;
    border-radius: 0;
}

/* Das Hintergrundbild wird hier perfekt eingemittet */
.category-hero-img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    filter: blur(8px) brightness(0.85); /* Etwas dunkler für besseren Kontrast */
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

/* Overlay für bessere Lesbarkeit */
.category-hero-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.category-overlay-layer { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    width: 90%; 
    padding: 1rem; 
}

/* Titel kompakter machen */
.category-overlay-layer h1.display-4 { 
    color: #ffffff !important; 
    font-size: 2rem !important; /* Kleiner als vorher */
    font-weight: 700; 
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); 
    margin-bottom: 5px; 
}

/* Beschreibungstext verkleinern */
.category-hero-desc, 
.category-hero-desc p { 
    color: #ffffff !important; 
    font-size: 0.95rem !important; 
    line-height: 1.2;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6); 
    max-width: 800px; 
    margin: 0 auto; 
}

/* Mobile Anpassung: Noch schmäler auf dem Handy */
@media (max-width: 767px) {
    .category-hero-container {
        height: 130px;
    }
    .category-overlay-layer h1.display-4 {
        font-size: 1.5rem !important;
    }
    .category-hero-desc {
        display: none; /* Auf kleinen Bildschirmen Text ausblenden für mehr Platz */
    }
}


/* --- SIDEBAR STICKY EFFEKT (Optimiert für Fixen Header) --- */
@media (min-width: 992px) {
    #left-column {
        position: -webkit-sticky;
        position: sticky;
        /* Header ist ca. 110px hoch + 20px Puffer für die Optik */
        top: 130px; 
        height: fit-content;
        align-self: flex-start;
        z-index: 1000; /* Unter dem Header (1040), aber über dem Content */
    }
}


/* --- OPTIK DER LINKS (LEFT COLUMN) - KONSOLIDIERT & DEZENT --- */

/* 1. Der Titel der Hauptkategorie (z.B. PUTTING & CHIPPING) */
.ps_categorytree .left-block__title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.ps_categorytree .left-block__title__link {
    font-size: 1.05rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000 !important;
    text-decoration: none;
    display: block;
}

/* 2. Die Unterkategorien (Links) */
.ps_categorytree .category-tree__item__link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f1f1f1;
    transition: color 0.2s ease-in-out;
    text-decoration: none;
    font-weight: 400;
}

/* BLAUER HOVER-EFFEKT (Standard Bootstrap Blau) */
.ps_categorytree .category-tree__item__link:hover {
    color: #0d6efd !important; /* Klassisches Bootstrap Blau */
    background-color: transparent !important;
    text-decoration: none;
}

/* AKTIVE Kategorie (Direkt gewählt) */
.ps_categorytree .category-tree__item__link.is-active {
    color: #000;
    font-weight: 600;
    padding-left: 0;
    background-color: transparent !important;
}

/* Hover-Anpassung für aktive Links korrigieren */
.ps_categorytree .category-tree__item__link.is-active:hover {
    padding-left: 0;             /* Bleibt bündig beim Hover */
    color: #0d6efd !important;    /* Blau beim Hover */
}

/* AKTIVER PFAD (Elternkategorie fett, wenn ein Kind aktiv ist) */
.ps_categorytree .category-tree__item.is-current > .category-tree__item__header {
    background-color: transparent !important;
}

.ps_categorytree .category-tree__item.is-current > .category-tree__item__header .category-tree__item__link {
    font-weight: 600;
    color: #000;
}

/* Pfeil (Caret) bei aktiven Eltern schwarz färben */
.ps_categorytree .category-tree__item.is-current > .category-tree__item__header .accordion-button::after {
    border-top-color: #000;
}


/* --- KATEGORIEBAUM LINKS: PFEILE (CARETS) WIE IM HEADER --- */

.ps_categorytree .accordion-button::after {
    background-image: none !important;
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transition: transform 0.2s ease-in-out;
}

.ps_categorytree .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.ps_categorytree .accordion-button {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 10px;
    width: auto;
}

.ps_categorytree .accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent;
}


/* --- Hauptnavigation oben: Generell Fett & Grau --- */

/* 1. Hauptpunkte GENERELL fett und grau (wie links) */
#top-menu .js-menu-item-lvl-0 > a {
    font-weight: 700 !important;
    color: #555 !important; /* Das gleiche Grau wie in der linken Spalte */
}

/* 2. Globaler Hover-Effekt: Text und Pfeil werden blau */
#top-menu .js-menu-item-lvl-0:hover > a,
#top-menu .main-menu__tree__link:hover {
    color: #0d6efd !important; /* Bootstrap Blau */
    text-decoration: none !important;
}

/* 3. Pfeil (Caret) Styling & Farbe */
#top-menu .js-menu-item-lvl-0 > a::after {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 0 !important;
    margin-left: 5px;
    border-top-color: #555 !important; /* Pfeil passend zum grauen Text */
    transition: border-top-color 0.2s ease;
}

/* Pfeil wird blau beim Hover */
#top-menu .js-menu-item-lvl-0:hover > a::after {
    border-top-color: #0d6efd !important;
}

/* 4. Aktiv-Zustand: Schwarz markieren, wenn aktiv (Eltern oder Kind) */
#top-menu .js-menu-item-lvl-0.current > a,
#top-menu .js-menu-item-lvl-0:has(.current) > a {
    color: #000 !important; /* Schwarz nur im aktiven Zustand */
}

/* Pfeil bei aktiven Punkten ebenfalls schwarz */
#top-menu .js-menu-item-lvl-0.current > a::after,
#top-menu .js-menu-item-lvl-0:has(.current) > a::after {
    border-top-color: #000 !important;
}

/* 5. Unterkategorien im Dropdown: Standardgewicht & grau */
#top-menu .js-sub-menu .main-menu__tree__link {
    font-weight: 400 !important;
    color: #555 !important;
}

/* 6. Aktive Unterkategorie im Dropdown hervorheben (fett & schwarz) */
#top-menu .js-sub-menu .category.current > a {
    font-weight: 700 !important;
    color: #000 !important;
}



/* --- 5. HEADER FARBEN --- */
.header-top { background-color: #3d5816 !important; }
.header-top, .header-top a, .header-top i, .header-top span,
.header-top .user-info a, .header-top .user-info i,
.header-top #_desktop_cart a, .header-top #_desktop_cart i,
.header-top .header-text, .header-top .icon {
    color: #FFFFFF !important;
    text-decoration: none !important;
}
.header-top a:hover, .header-top a:hover i, .header-top a:hover span,
.header-top .user-info a:hover, .header-top .user-info a:hover i,
#_desktop_cart a:hover, #_desktop_cart a:hover i,
#_desktop_cart a:hover span {
    color: #FFFFFF !important;
}
.header-top .header-block__badge,
.header-top .cart-products-count {
    color: #000000 !important; 
    background-color: #FFFFFF !important; 
}

/* --- FIX FÜR WARENKORB-ZAHL BEIM HOVER --- */
#_desktop_cart a:hover .cart-products-count,
#_desktop_cart a:hover .header-block__badge,
.header-top .cart-products-count,
.header-top .header-block__badge {
    color: #000000 !important;
    background-color: #FFFFFF !important;
}

/* --- 6. FIXIERTER HEADER & FIREFOX-GAP-FIX --- */
#header {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    /* Senkung auf 1040: Genug für Content, aber unter Popups/Scroll-Buttons */
    z-index: 1040 !important; 
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Die "Fang-Brücke" für Firefox & Chrome */
/* Zieht das Menü 20px nach oben, ohne die Optik zu verändern */
.top-menu .sub-menu, 
.dropdown-menu,
.header-top .dropdown-menu {
    margin-top: -20px !important;    
    padding-top: 20px !important;   
    border-top: 20px solid transparent !important; 
    background-clip: padding-box; 
    top: 100% !important;
}




/* --- DEINE BESTEHENDEN UNTERMENÜS (Zur Orientierung) --- */
.main-menu__tree > li .menu-container a[data-depth="1"] {
    color: #343a40;
    font-weight: 500;
}


/* FIX FÜR MYPRESTA SCROLLUP PFEIL */
.mypresta_scrollup {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

/* Modul darf opacity selbst steuern */
.mypresta_scrollup[style*="opacity"] {
    opacity: inherit !important;
}



/* Deine bestehenden Abstände (unverändert) */
body { padding-top: 110px !important; }
@media (max-width: 767px) { body { padding-top: 90px !important; } }

/* --- 7. KONTO DROP-DOWN DESIGN (WALDGRÜN) --- */
.header-top .dropdown-menu {
    background-color: var(--primary) !important;
    border: 1px solid var(--primary-hover) !important;
}

.header-top .dropdown-menu a, 
.header-top .dropdown-menu span,
.header-top .dropdown-item {
    color: #FFFFFF !important;
}

.header-top .dropdown-item:hover {
    background-color: var(--primary-hover) !important;
    color: #FFFFFF !important;
}

@media (min-width: 992px) {
    .header-top .user-info .dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0; 
    }
}

.header-top .dropdown-menu {
    margin-top: 0 !important;
}

.wishlist-container-header h1 {
    display: none !important;
}

/* --- FIX WARENKORB-POPUP (MODAL) --- */
.modal-backdrop {
    z-index: 5001 !important;
}

#blockcart-modal {
    z-index: 5002 !important;
    top: 120px !important;
}

@media (max-width: 767px) {
    #blockcart-modal {
        top: 100px !important;
    }
    #blockcart-modal .modal-dialog {
        margin-top: 0;
    }
}

/* --- INTELLIGENTER ICON-FIX FÜR ALLE BUTTON-TYPEN --- */
.btn-primary i, 
.btn-primary .material-icons,
.add-to-cart i,
.btn-primary svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.btn-outline-primary i, 
.btn-outline-primary .material-icons,
.btn-secondary i,
.btn-secondary .material-icons,
.btn-outline-primary svg {
    color: var(--primary) !important;
    fill: var(--primary) !important;
}

.btn-outline-primary:hover i, 
.btn-outline-primary:hover .material-icons,
.btn-secondary:hover i,
.btn-secondary:hover .material-icons,
.btn-outline-primary:hover svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.all-product-link i, 
.all-product-link .material-icons {
    color: var(--primary) !important;
}

/* --- 8. HOME SLIDER OPTIMIERUNG (Fairway-Shop) --- */
#home-slider .carousel-caption h2.display-1 {
    color: #0d6efd !important;
    font-size: 20px !important; 
    font-weight: 500 !important;
    text-transform: capitalize !important;	
}

#home-slider .caption-description h3 {
    color: #ffffff !important;
    font-size: 30px !important; 
    font-weight: 200 !important;
    margin-top: 15px !important;
    letter-spacing: 0 !important;
    margin-bottom: 0 !important;
    text-transform: uppercase !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1) !important;
}

#home-slider .caption-description p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1) !important;
    font-style: italic;
    margin-top: 5px;
}

#home-slider .caption-description .btn-primary {
    text-shadow: none !important;
    color: #ffffff !important;
    margin-top: 15px;
}

/* --- 9. SLIDER VOLLBREITE & ZENTRIERUNG --- */
#home-slider .carousel-caption {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 10% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#home-slider .caption,
#home-slider .caption-description {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

#home-slider .carousel-caption h2.display-1,
#home-slider .caption-description h3,
#home-slider .caption-description p {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- 10. SLIDE-IN-UP ANIMATION --- */
@keyframes slideInUpCustom {
    from {
        transform: translate3d(0, 40px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.carousel-item.active .caption-description h3 {
    animation: slideInUpCustom 1.2s ease-out both;
    animation-delay: 0.4s;
}

.carousel-item.active .caption-description p {
    animation: slideInUpCustom 1.2s ease-out both;
    animation-delay: 0.7s;
}

/* --- 11. KUNDENVORTEILE (REASSURANCE) ZEILE - PS9 FIX --- */
#block-reassurance {
    background-color: #f8f9fa !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    width: 100% !important;
}

#block-reassurance ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 5% !important;
    gap: 30px !important;
}

#block-reassurance li {
    flex: 1 1 200px !important;
    max-width: 300px !important;
}

.block-reassurance-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

#block-reassurance img {
    width: 35px !important;
    height: auto !important;
    margin-bottom: 10px !important;
    filter: sepia(100%) saturate(500%) hue-rotate(45deg) !important; 
}

#block-reassurance span.h6 {
    color: #3d5816 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    #block-reassurance ul { gap: 15px !important; }
    #block-reassurance li { flex: 1 1 40% !important; }
}

/* --- 11. KUNDENVORTEILE OPTIK (Fairway-Shop) --- */
#custom-reassurance {
    background-color: #f8f9fa !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    width: 100% !important;
}

.reassurance-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 5% !important;
    gap: 30px !important;
}

.re-item {
    display: flex !important;
    flex: 1 1 200px !important;
    max-width: 300px !important;
}

.re-link, .re-link-static {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: inherit !important;
    width: 100% !important;
}

.re-item img {
    width: 35px !important;
    height: auto !important;
    filter: sepia(100%) saturate(500%) hue-rotate(45deg) !important;
}

.re-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.re-title {
    color: #3d5816 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

.re-desc {
    color: #555555 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    margin-top: 2px !important;
}

@media (max-width: 991px) {
    .reassurance-list { gap: 20px !important; }
    .re-item { flex: 1 1 40% !important; justify-content: center !important; }
}

@media (max-width: 575px) {
    .re-item { flex: 1 1 100% !important; justify-content: flex-start !important; padding-left: 10% !important; }
    .re-title { font-size: 12px !important; }
}

/* --- FINALE KORREKTUR QUICKVIEW --- */
.modal.quickview {
    z-index: 5002 !important;
    display: block !important;
    padding-top: 120px !important;
    overflow-y: auto !important;
}

.modal.quickview .modal-dialog {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    max-height: none !important;
}

body.modal-open {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .modal.quickview {
        padding-top: 100px !important;
    }
}

/* --- FIX MERKLISTE POPUP (WISHLIST) --- */
.wishlist-modal, 
.modal.wishlist-add-to {
    z-index: 5002 !important; 
    display: block !important;
    padding-top: 120px !important;
    overflow-y: auto !important;
}

.wishlist-modal .modal-dialog,
.modal.wishlist-add-to .modal-dialog {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
}

@media (max-width: 767px) {
    .wishlist-modal,
    .modal.wishlist-add-to {
        padding-top: 100px !important;
    }
}


/* Warenkorb-Zusammenfassung Layout */
.cart-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.cart-summary__line__value {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.aeuc_hook_display_checkout_subtotal_details {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
}

.step .address.selected {
  border: none !important;
}

/* Den Adress-Alias (Überschrift) dezent gestalten */
.address__alias.h4.card-title {
    font-size: 0.85rem !important; /* Deutlich kleiner als normaler Text */
    font-weight: 400 !important;    /* Nicht mehr fett */
    color: #999999 !important;      /* Ein helles Grau */
    margin-bottom: 0.2rem !important; /* Weniger Abstand nach unten */
    text-transform: none !important; /* Verhindert Großbuchstaben-Zwang */
}

/* Optional: Das Wort "Alias" im Eingabeformular ebenfalls verkleinern */
#address-form .form-group:first-child label {
    font-size: 0.8rem;
    color: #bbbbbb;
}

/* Zusammenfassung links optisch an die rechte Sidebar (h4) angleichen */
.checkout-step.-final #order-items .h4 {
    font-size: 1rem !important;
    color: #666 !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* ============================================================
   1. GLOBALE FARBEN & VARIABLEN (WALDGRÜN)
   ============================================================ */
:root {
  --bs-success: #3d5816 !important;
  --bs-success-rgb: 61, 88, 22 !important;
  --primary: #3d5816;
}

/* ============================================================
   2. CHECKOUT DESKTOP: PANZERSICHERE RECHTSBÜNDIGKEIT
   ============================================================ */

/* Äußerer Rahmen: Erlaubt den inneren Elementen, sich zu bewegen */
.payment__actions.d-flex {
    display: flex !important;
    justify-content: flex-end !important; /* Haupt-Ausrichtung Rechts */
    width: 100% !important;
}

/* Der Block, der den Button UND das PayPal-Div enthält */
#payment-confirmation {
    margin-left: auto !important; /* Schiebt den gesamten Block nach rechts */
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 300px !important;  /* Begrenzt die Breite auf PayPal-Maß */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; /* Zwingt JEDES Kind-Element nach rechts */
}

/* Der Standard-Button selbst */
#payment-confirmation .ps-shown-by-js {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

#payment-confirmation button[type="submit"] {
    width: auto !important;
    min-width: 220px !important;
    margin-left: auto !important;
}

/* Das injizierte PayPal-Div (wichtig!) */
#paypal-buttons {
    margin-left: auto !important;
    margin-right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
}


/* ============================================================
   3. CHECKOUT ÜBERSCHRIFTEN VEREINHEITLICHEN
   ============================================================ */
h1.step__title-left.h3, 
.checkout-step p.h5,
h5.aeuc_scart,
h5.aeuc_scart a {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    margin-bottom: 1rem !important;
    text-decoration: none !important;
}

.step-edit {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    margin-left: 10px;
    color: #6c757d !important;
}

.step-edit .material-icons {
    font-size: 1rem !important;
    vertical-align: middle;
}

/* ============================================================
   4. MOBILE OPTIMIERUNG (SMARTPHONE < 768px)
   ============================================================ */
@media (max-width: 767px) {
    
    /* LOGO & HEADER: Icons (Konto/Warenkorb) in einer Zeile halten */
    .header .header__logo img {
        max-height: 45px !important; /* Verkleinert Logo für mehr Platz */
        width: auto !important;
    }

    .header .header__top > .container > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* CHECKOUT BUTTONS: Sauber untereinander stapeln & bündig */
    .payment__actions.d-flex,
    .payment__actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .payment__actions .js-back {
        width: 100% !important;
        margin-bottom: 15px !important;
        margin-right: 0 !important;
    }

    #payment-confirmation {
        width: 100% !important;
        min-width: 0 !important; /* Hebt 250px Desktop-Zwang auf */
        max-width: 100% !important;
        margin-left: 0 !important;
        display: block !important;
    }

    #payment-confirmation button[type="submit"] {
        width: 100% !important;
        margin-left: 0 !important;
    }
}



ul.row > li.brand .brand__img img.brand-img-original {
  max-width: none;
  max-height: none;
  width: 200px;
  height: 200px;
  object-fit: none;
  display: inline-block;
}



/* Nur für Desktop-Geräte (ab 992px) */
@media (min-width: 992px) {
    /* Zeige das Menü bei Hover an */
    .header-block:hover .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 0; /* Verhindert das Verspringen beim Einblenden */
    }
}

/* WICHTIG: KEIN 'pointer-events: none' verwenden, 
   da du ja möchtest, dass man auf den Namen/das Icon klicken kann! */

/* tools4golf – One Page Checkout – eingebundene Anpassungen */

/*
 * tools4golf – One Page Checkout
 * Erste visuelle Harmonisierung
 * Ausschließlich für die Checkout-Seite.
 */

/* Grundfarben des Checkout-Bereichs */
.checkout-grid {
  --t4g-opc-accent: #3d5816;
  --t4g-opc-accent-hover: #2a3d0f;
  --t4g-opc-border: #dee2e6;
  --t4g-opc-text: #1d1d1d;
}

/* Grundtypografie */
.checkout-grid .one-page-checkout__section {
  color: var(--t4g-opc-text);
  font-size: 14px;
}

/* Abschnittsüberschriften */
.checkout-grid .one-page-checkout__title {
  margin: 0 0 0.9rem;
  color: var(--t4g-opc-text);
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.3;
}

/* Abstand zwischen Kontaktinformationen und Formular */
.checkout-grid .one-page-checkout__links {
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
}

.checkout-grid .one-page-checkout__link {
  color: var(--t4g-opc-accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.checkout-grid .one-page-checkout__link:hover {
  color: var(--t4g-opc-accent-hover);
  text-decoration: underline;
}

/* Formularabstände */
.checkout-grid .one-page-checkout__field {
  margin-bottom: 0.9rem;
}

/* Formularbeschriftungen */
.checkout-grid .one-page-checkout__section .form-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #343a40;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Eingabefelder und Auswahlfelder */
.checkout-grid .one-page-checkout__section .form-control,
.checkout-grid .one-page-checkout__section .form-select {
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: var(--t4g-opc-text);
  font-size: 14px;
}

/* Fokuszustand in der Shop-Hauptfarbe */
.checkout-grid .one-page-checkout__section .form-control:focus,
.checkout-grid .one-page-checkout__section .form-select:focus {
  border-color: var(--t4g-opc-accent);
  box-shadow: 0 0 0 0.2rem rgba(61, 88, 22, 0.13);
}

/* Checkboxen und Optionsfelder */
.checkout-grid .one-page-checkout__section .form-check-input:checked {
  background-color: var(--t4g-opc-accent);
  border-color: var(--t4g-opc-accent);
}

.checkout-grid .one-page-checkout__section .form-check-input:focus {
  border-color: var(--t4g-opc-accent);
  box-shadow: 0 0 0 0.2rem rgba(61, 88, 22, 0.13);
}

/* Beschriftungen bei Checkboxen und Optionsfeldern */
.checkout-grid .one-page-checkout__section .form-check-label {
  color: var(--t4g-opc-text);
  font-size: 0.875rem;
}


/* tools4golf – Layout-Harmonisierung 23.11.2026 */

/* Abstand zwischen Breadcrumb und beiden Checkout-Spalten */
.checkout-grid {
  margin-top: 2rem;
}

/* Bestellübersicht: Überschrift wie die normale Warenkorb-H2 */
.checkout__summary-accordion-header {
  margin: 0 0 0.75rem;
  padding: 0;
}

.checkout__summary-accordion-header .accordion-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: #1d1d1d;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

/* Auch im geöffneten Zustand keine Bootstrap-Hinterlegung */
.checkout__summary-accordion-header .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #1d1d1d;
  box-shadow: none;
}

/* Keine zusätzliche Umrandung beim Fokussieren */
.checkout__summary-accordion-header .accordion-button:focus {
  box-shadow: none;
}

/* tools4golf – Vertikale Ausrichtung der Bestellübersicht */
@media (min-width: 992px) {
  .checkout-grid__aside-wrapper {
    margin-top: -1px;
  }
}

/* tools4golf – Abstand zum Footer im One-Page-Checkout */
.checkout-grid {
  padding-bottom: 4rem;
}

/* tools4golf – Mobile Checkout-Reihenfolge */
@media (max-width: 991.98px) {
  .checkout-grid > .checkout-grid__content {
    order: 1 !important;
  }

  .checkout-grid > .checkout-grid__aside {
    order: 2 !important;
  }
}

/* tools4golf – Blauer Fokus für das Versand-Kommentarfeld */
#delivery_message.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
}
