/* ========================================
   CARDINALS VORTEILE KACHELN - EXTERNES CSS
   ======================================== */

/* CSS Variables für einfache Anpassungen */
:root {
    --cardinals-red: #672e4a;
    --cardinals-red-dark: #672e4a;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-small: 8px;
    --transition: all 0.3s ease;
}

/* Container für Vorteile-Kacheln */
.vorteile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px);
}

/* Basis Kachel */
.vorteil-kategorie {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: clamp(20px, 4vw, 30px);
    /* box-shadow: var(--shadow-light); */
    transition: var(--transition);
    border-top: 4px solid var(--cardinals-red);
    margin-bottom: clamp(20px, 3vw, 30px);
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Verhindert overflow */
    position: relative;
    overflow: hidden;
}


/* Header der Kachel */
.kategorie-header {
    display: flex;
    align-items: center;
    margin-bottom: clamp(15px, 3vw, 20px);
    padding-bottom: clamp(10px, 2vw, 15px);
    border-bottom: 2px solid var(--background-light);
    flex-wrap: nowrap;
}

.kategorie-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-right: clamp(10px, 2vw, 15px);
    flex-shrink: 0;
    line-height: 1;
}

.kategorie-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* Angebot Container */
.angebot {
    margin: clamp(10px, 2vw, 15px) 0;
    padding: clamp(12px, 2.5vw, 15px);
    background: var(--white);
    border-radius: var(--border-radius-small);
 /*   border-left: 4px solid var(--cardinals-red); */
    transition: var(--transition);
}
/*
.angebot:hover {
    background: #f1f3f4;
    transform: translateX(2px);
}
*/

.angebot-title {
    font-weight: 600;
    color: var(--cardinals-red);
    margin-bottom: clamp(4px, 1vw, 5px);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.3;
}

.angebot-details {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: var(--text-secondary);
    margin: clamp(3px, 1vw, 5px) 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.angebot-link {
    display: inline-block;
    margin-top: clamp(6px, 1.5vw, 8px);
    color: #007bff;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    transition: var(--transition);
    word-break: break-all;
}

.angebot-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.angebot-logo img {
    max-width: 205px; /* Maximale Breite für alle Partner-Logos */
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}
/* Touch-optimierte Buttons für Mobile */
@media (hover: none) and (pointer: coarse) {
    .vorteil-kategorie:hover {
        transform: none;
    }
    
    .angebot:hover {
        transform: none;
    }
    
    .angebot-link {
        padding: 8px 4px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Responsive Breakpoints */
@media screen and (max-width: 1200px) {
    .vorteile-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: clamp(15px, 3vw, 30px);
    }
}

@media screen and (max-width: 768px) {
    .vorteile-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .vorteil-kategorie {
        margin-bottom: 20px;
    }
    
    .kategorie-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .kategorie-icon {
        margin-right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .vorteile-container {
        padding: 15px 10px;
        gap: 15px;
    }
    
    .vorteil-kategorie {
        padding: 15px;
        border-radius: 10px;
    }
    
    .angebot {
        padding: 10px;
        margin: 8px 0;
    }
}

@media screen and (max-width: 320px) {
    .kategorie-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .kategorie-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .angebot-details {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .vorteil-kategorie {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .vorteil-kategorie:hover {
        transform: none;
    }
    
    .angebot-link {
        color: #000;
        text-decoration: underline;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .vorteil-kategorie {
        border: 2px solid var(--text-primary);
    }
    
    .angebot {
        border-left: 6px solid var(--cardinals-red);
        border: 1px solid var(--text-secondary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .vorteil-kategorie,
    .angebot,
    .angebot-link {
        transition: none;
    }
    
    .vorteil-kategorie:hover {
        transform: none;
    }
    
    .angebot:hover {
        transform: none;
    }
}

/* ========================================
   PDF DOWNLOAD & LOGO ERGÄNZUNG
   ======================================== */

/* Custom Colors */
:root {
    --link-color: #672e4a;
    --link-color-hover: #4a1f32;
    --download-bg: #672e4a;
    --download-bg-hover: #4a1f32;
}

/* Angebot Logo Styling */
.angebot-logo {
    margin-bottom: clamp(8px, 1.5vw, 12px);
    text-align: center;
    padding: clamp(8px, 1.5vw, 10px);
    background: var(--white);
    border-radius: var(--border-radius-small);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.angebot-logo:hover {
    border-color: var(--cardinals-red);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.angebot-logo img {
    max-width: 180px; /* Maximale Breite für alle Partner-Logos */
    max-height: 60px; /* Maximale Höhe für einheitliches Erscheinungsbild */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(0%);
}

.angebot-logo img:hover {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.02);
}

/* Link Color Override */
.angebot-link {
    color: var(--link-color) !important;
}

.angebot-link:hover {
    color: var(--link-color-hover) !important;
    text-decoration: underline;
}

/* PDF Download Box */
.pdf-download {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: var(--border-radius-small);
    padding: clamp(12px, 2.5vw, 15px);
    margin: clamp(10px, 2vw, 15px) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: var(--transition);
}

.pdf-download:hover {
    background: #d1ecf1;
    border-color: #7abaff;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 10px);
    flex: 1;
    min-width: 0;
}

.pdf-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--link-color);
    flex-shrink: 0;
}

.pdf-text {
    font-weight: 600;
    color: var(--link-color);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.download-btn {
    background: var(--download-bg);
    color: var(--white) !important;
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2.5vw, 16px);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.download-btn:hover {
    background: var(--download-bg-hover);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(103, 46, 74, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

/* Mobile Optimierung für PDF-Download und Logos */
@media screen and (max-width: 480px) {
    .pdf-download {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .pdf-info {
        justify-content: center;
    }
    
    .download-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .angebot-logo img {
        max-width: 150px;
        max-height: 50px;
    }
}

@media screen and (max-width: 320px) {
    .angebot-logo img {
        max-width: 120px;
        max-height: 40px;
    }
}

/* Touch-optimiert für Mobile */
@media (hover: none) and (pointer: coarse) {
    .download-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .pdf-download {
        border: 2px solid var(--link-color);
        background: var(--white);
    }
    
    .download-btn {
        border: 2px solid var(--white);
        background: var(--download-bg);
        color: var(--white) !important;
    }
    
    .angebot-link {
        color: var(--link-color) !important;
        font-weight: 600;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pdf-download,
    .download-btn {
        transition: none;
    }
    
    .download-btn:hover {
        transform: none;
    }
}
/* ========================================
   MITGLIEDSCHAFT SEKTION - CSS ERGÄNZUNG
   ======================================== */

/* Mitgliedschaft Benefits Sektion */
 .mitgliedschaft-benefits-section {
    background: #672e4a;
    color: var(--white) !important;
    padding: clamp(40px, 8vw, 60px) clamp(20px, 4vw, 40px);
    margin: clamp(40px, 6vw, 60px) 0;
    border-radius: clamp(15px, 3vw, 20px);
    position: relative;
    overflow: hidden;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;

}

/* Benefits Header */
.benefits-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 40px);
}

.benefits-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white) !important;
    margin: 0;
    text-align: center !important;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: clamp(30px, 5vw, 40px) 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(20px, 4vw, 30px);
    border-radius: clamp(10px, 2vw, 15px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.benefit-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    display: block;
}

.benefit-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin: 0 0 clamp(8px, 1.5vw, 10px) 0;
    color: var(--white) !important;
}

.benefit-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
color: var(--white) !important;
}

/* CTA Section */
.cta-section {
    margin-top: clamp(30px, 5vw, 40px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
}

.cta-button-red,.cta-button-white{
    display: inline-block;
    padding: clamp(12px, 2.5vw, 15px) clamp(20px, 4vw, 30px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-red {
    background: var(--cardinals-red);
    color: var(--white);
}

.cta-button-red:hover {
    background: var(--cardinals-red-dark);
}

.cta-button-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button-white:hover {
    background: var(--white);
    color: var(--cardinals-red);
}

/* Payment Sektion */
.membership-payment-section {
    background: var(--white);
    padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 40px);
    margin: clamp(20px, 4vw, 40px) 0;
    border-radius: clamp(10px, 2vw, 15px);
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
}

.payment-container {
    max-width: 1000px;
    margin: 0 auto;
}

.payment-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    color: var(--text-primary);
    margin: 0 0 clamp(30px, 5vw, 40px) 0;
    font-weight: 700;
}

.payment-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-primary);
    margin: 0 0 clamp(15px, 3vw, 20px) 0;
    font-weight: 600;
}

/* Payment Grid */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 40px);
    align-items: start;
}

/* QR Code Sektion */
.qr-payment-section {
    text-align: center;
}

.qr-code-container {
    margin: clamp(15px, 3vw, 20px) 0;
}

.qr-placeholder {
    width: clamp(180px, 30vw, 220px);
    height: clamp(180px, 30vw, 220px);
    background: var(--background-light);
    border: 2px dashed var(--cardinals-red);
    border-radius: clamp(10px, 2vw, 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(15px, 3vw, 20px);
    transition: var(--transition);
}

.qr-placeholder:hover {
    border-color: var(--cardinals-red-dark);
    background: #f1f3f4;
}

.qr-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--cardinals-red);
    margin-bottom: clamp(8px, 1.5vw, 10px);
}

.qr-text {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.qr-description {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    color: var(--text-secondary);
    margin: 0;
}

/* Bank Details */
.bank-details-section {
    text-align: left;
}

.iban-container {
    margin: clamp(15px, 3vw, 20px) 0 clamp(25px, 4vw, 30px) 0;
}

.iban-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(8px, 1.5vw, 10px);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.iban-box {
    background: var(--background-light);
    padding: clamp(12px, 2.5vw, 15px);
    border-radius: var(--border-radius-small);
    font-family: 'Courier New', monospace;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    border-left: 4px solid var(--cardinals-red);
    margin: clamp(8px, 1.5vw, 10px) 0;
    letter-spacing: 1px;
    word-break: break-all;
}

.bank-name {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    color: var(--text-secondary);
    margin: clamp(5px, 1vw, 8px) 0 0 0;
    font-style: italic;
}

/* Membership Fees */
.membership-fees {
    margin: clamp(20px, 4vw, 25px) 0;
}

.fees-title {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--text-primary);
    margin: 0 0 clamp(15px, 3vw, 20px) 0;
    font-weight: 600;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(10px, 2vw, 12px) 0;
    border-bottom: 1px solid #e9ecef;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item.special {
    background: var(--background-light);
    padding: clamp(10px, 2vw, 12px);
    border-radius: var(--border-radius-small);
    border-bottom: none;
    margin-top: clamp(8px, 1.5vw, 10px);
}

.fee-type {
    font-weight: 500;
    color: var(--text-primary);
}

.fee-amount {
    font-weight: 700;
    color: var(--cardinals-red);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Payment Info */
.payment-info {
    margin-top: clamp(25px, 4vw, 30px);
    padding-top: clamp(20px, 3vw, 25px);
    border-top: 2px solid var(--background-light);
}

.info-text {
    font-size: clamp(0.85rem, 1.7vw, 0.95rem);
    color: var(--text-secondary);
    margin: clamp(8px, 1.5vw, 10px) 0;
    line-height: 1.5;
}

.contact-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--link-color-hover);
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .qr-payment-section {
        order: 2;
    }
    
    .bank-details-section {
        order: 1;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .benefits-header {
        text-align: center;
    }
    
    .qr-placeholder {
        width: 160px;
        height: 160px;
    }
}

/* Print Styles */
@media print {
    .mitgliedschaft-benefits-section {
        background: var(--white) !important;
        color: var(--text-primary) !important;
        box-shadow: none;
        border: 2px solid var(--text-primary);
    }
    
    .benefit-card {
        background: var(--background-light) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--text-secondary);
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .benefit-card {
        border: 2px solid var(--white);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .qr-placeholder {
        border: 3px solid var(--cardinals-red);
    }
    
    .fee-item {
        border-bottom: 2px solid var(--text-secondary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cta-button-primary:hover,
    .cta-button-secondary:hover {
        transform: none;
    }
}