/*
*********************************************************************************************************
                         TANDEMFACTORY UG
Autor: Axel Frank 
Version: 2.0 - Modernisierte Gutschein-Kaufen Styles
(c) 2025

Änderungen v2.0:
- Moderne blaue Gradient-Titel mit Icons
- Plus/Minus Button-Styling für Mengen-Controls
- CSS-only Bestseller-Badge mit rotem Gradient
- Responsive Button-Design mit Hover-Effekten
- Optimierte Spacing und Typography
- Bootstrap-kompatible Form-Styles

*********************************************************************************************************
*/

/* Main Header Styling */
.main-header-wrapper {
    text-align: left;
    margin-bottom: 16px;
    padding: 0;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2f99;
    margin: 0;
    letter-spacing: 0.3px;
    display: inline;
}

.main-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #666;
    margin-left: 12px;
    letter-spacing: 0.3px;
}

/* Form Styling (original styles) */
.form-control {
	width: 100% !important;
}

.form-group {
	margin-bottom: 0rem !important;
}

.form-check-input {
	margin-top: .1rem !important;
	margin-left: -1.5rem !important;
}

/* Modern Order Button Styling */
.btn_tf1 {
    -ms-transform: skew(-10deg,0deg);
    -webkit-transform: skew(-10deg,0deg);
    transform: skew(-10deg,0deg);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #ffffff;
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    margin: 16px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn_tf1:hover {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 50%, #6f42c1 100%);
    transform: skew(-10deg,0deg) translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    color: #ffffff;
}

.btn_tf1 i {
    font-size: 16px;
}

.title_tf{
    -ms-transform: skew(-10deg,0deg);
    -webkit-transform: skew(-10deg,0deg);
    transform: skew(-10deg,0deg);
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #4268FF 0%, #2948CC 50%, #1a2f99 100%) !important;
    color: #ffffff !important;
    padding: 12px 24px; /* Höhe hier anpassen: erste Zahl = oben/unten */
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(66, 104, 255, 0.3);
    border-radius: 4px;
}

.title_tf i {
    margin-right: 20px;
    font-size: 20px;
    vertical-align: middle;
}

/* Reduziere Abstand nach Produktlisten */
.fa-ul {
    margin-bottom: 0.5rem;
}

.fa-ul li {
    margin-bottom: 0.1rem;
    line-height: 1.1;
}

/* Reduziere oberen Abstand bei Produktzeilen */
.form-group.align-self-center.mt-2 {
    margin-top: 0.5rem !important;
}

/* Quantity Control (clean flex alignment) */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Remove any auto-inserted p tags around buttons */
.quantity-control p {
    margin: 0;
    padding: 0;
    display: contents;
}

/* Buttons and display share consistent box metrics */
.quantity-btn,
.quantity-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
}

.quantity-btn {
    width: 40px;
    border: 2px solid #4268FF;
    background: #ffffff;
    color: #4268FF;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    line-height: 1;
    /* Ensure all buttons are identical regardless of DOM role */
    display: inline-flex !important;
    vertical-align: middle;
    font-family: inherit;
}

.quantity-btn:hover:not(:disabled) {
    background: #4268FF;
    color: #ffffff;
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-btn i {
    display: inline-block;
    line-height: 1;
    font-size: 16px;
}

.quantity-display {
    min-width: 50px;
    padding: 0 16px;
    font-size: 20px;
    font-weight: bold;
    color: #4268FF;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin: 0;
    line-height: 1;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Bestseller Badge (Ribbon) */
.voucher-card {
    position: relative;
}

.bestseller-badge {
    position: absolute;
    top: 12px;
    left: -12px;
    background: linear-gradient(135deg, #a1040c 0%, #e30613 60%, #f03a45 100%);
    color: #fff;
    padding: 8px 12px; /* etwas kompakter */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.28);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Stern näher an die Schrift */
}

/* Stern-Icon (FontAwesome) im Badge */
.bestseller-badge i {
    font-size: 12px;
    color: #ffcc33; /* goldener Stern */
}

/* Variante: Badge direkt neben Überschrift (ohne absolute Position) */
h5 .bestseller-badge,
.title_tf + .bestseller-badge,
.title_tf .bestseller-badge-inline {
    position: static;
    background: linear-gradient(135deg, #a1040c 0%, #e30613 60%, #f03a45 100%);
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    vertical-align: middle;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
}
/* Quantity Control Buttons – entfernt: harter Reset & DEBUG-Umrandungen */
/* Die sauberen Regeln oben (inline-flex, line-height:1 etc.) genügen für zentriertes Alignment. */
