/* ════════════════════════════════════════════════════════
   HAUPTSEITE CSS – front-page.css
   Eigene Klassen (fp-*) → kein Konflikt mit main.css
   Vollständig responsive, ohne @media-Fehler
════════════════════════════════════════════════════════ */

/* ── SECTION GRUNDSTRUKTUR ──────────────────────────── */
.fp-section   { width: 100%; }
.fp-white     { background: #ffffff; }
.fp-off       { background: #f4f5f8; }
.fp-red       { background: #e21627; }
.fp-inner     { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }
.fp-narrow    { max-width: 820px; }
.fp-center    { text-align: center; }
.fp-btn-row   { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ── 1. HERO ────────────────────────────────────────── */
#fp-hero { width: 100%; }

#fp-hero-img-wrap {
    position: relative;   /* MUSS relative sein damit Overlay + Text absolut darin liegen */
    width: 100%;
    overflow: hidden;
    display: block;
    line-height: 0;
}

#fp-hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -150px;   /* 150px oben abschneiden */
}

#fp-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(14,16,32,.20) 0%,
        rgba(14,16,32,.28) 55%,
        rgba(14,16,32,.72) 100%
    );
    pointer-events: none;
    z-index: 1;
}

#fp-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 0 32px 44px;
}

#fp-hero-h1 {
    font-size: clamp(26px, 4.5vw, 52px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

#fp-hero-p {
    font-size: clamp(14px, 1.8vw, 18px);
    color: rgba(255,255,255,.88);
    line-height: 1.55;
    margin: 0 0 24px;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

#fp-hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── 2. KATEGORIE-KACHELN ───────────────────────────── */
.fp-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.fp-cat-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform .22s, box-shadow .22s;
}

/* ── Kategorie-Bild: volle Breite, natürliche Höhe, NIE abgeschnitten ── */
.fp-cat-img {
    display: block;
    width: 100%;
    height: auto;          /* natürliche Höhe = 344×279px → 81% der Breite */
    border-radius: 14px 14px 0 0;
    object-fit: fill;      /* kein crop, alles sichtbar */
}

.fp-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 44px rgba(0,0,0,.14);
}





.fp-cat-body    { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.fp-cat-title   { font-size: 17px; font-weight: 800; color: var(--text,#1a1a1a); margin-bottom: 10px; }
.fp-cat-text    { font-size: 14px; color: var(--muted,#5a6a90); line-height: 1.65; flex: 1; margin-bottom: 14px; font-weight: 500; }
.fp-cat-link    { font-size: 13px; font-weight: 800; color: #e21627; text-decoration: none; }

/* ── 3. SPENDEN-KACHELN ─────────────────────────────── */
.fp-scard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 32px;
}

.fp-scard {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
}

.fp-scard-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #f4f5f8;
    flex-shrink: 0;
}
.fp-scard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
    padding: 14px;
    box-sizing: border-box;
}

.fp-scard-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg,#fef2f2,#fff5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}

.fp-scard-body  { padding: 20px 20px 0; flex: 1; }
.fp-scard-icon  { font-size: 28px; margin-bottom: 6px; }
.fp-scard-price { font-size: 28px; font-weight: 900; color: #e21627; margin-bottom: 4px; }
.fp-scard-title { font-size: 15px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.fp-scard-text  { font-size: 13px; color: #5a6a90; line-height: 1.6; font-weight: 500; }

.fp-scard-btns  { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.fp-scard-btn {
    display: block;
    width: 100%;
    background: #e21627;
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s, transform .2s;
    font-family: inherit;
}
.fp-scard-btn:hover { background: #c41020; transform: translateY(-2px); color: #fff; }

.fp-scard-qr    { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.fp-scard-qr img { width: 72px; height: 72px; border-radius: 8px; border: 1.5px solid #e0e2ea; flex-shrink: 0; }
.fp-scard-qr span { font-size: 11px; color: #888; line-height: 1.5; font-weight: 600; }

/* ── PayPal ──────────────────────────────────────────── */
.fp-paypal        { margin-top: 44px; text-align: center; }
.fp-paypal-label  { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.fp-paypal-box    { display: inline-flex; align-items: center; gap: 20px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 18px; padding: 20px 28px; flex-wrap: wrap; justify-content: center; }
.fp-paypal-box img { width: 120px; height: 120px; border-radius: 10px; border: 2px solid rgba(255,255,255,.3); }

/* ── 4. MITGLIED ZWEI-SPALTEN ───────────────────────── */
.fp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}
.fp-two-col-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.12);
}
.fp-two-col-img img { width: 100%; height: auto; display: block; }
.fp-two-col-text    { min-width: 0; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */

/* Tablet ≤900px */
@media(max-width: 900px) {
    .fp-inner          { padding: 48px 24px; }
    .fp-cat-grid       { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .fp-scard-grid     { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .fp-two-col        { grid-template-columns: 1fr; gap: 28px; }
    .fp-two-col-img    { max-width: 500px; margin: 0 auto; }
}

/* Mobil ≤680px */
@media(max-width: 680px) {
    .fp-inner          { padding: 32px 16px; }
    .fp-narrow         { padding: 28px 14px; }

    /* Hero: Text + Buttons verstecken */
    #fp-hero-img       { margin-top: -40px !important; }
    #fp-hero-h1        { display: none !important; }
    #fp-hero-p         { display: none !important; }
    #fp-hero-btns      { display: none !important; }

    /* Kacheln 2-spaltig */
    .fp-cat-grid       { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    
    .fp-scard-grid     { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .fp-scard-img-wrap { height: 130px !important; }
    .fp-scard-placeholder { height: 130px !important; }

    /* PayPal */
    .fp-paypal-box     { flex-direction: column; padding: 16px; }
    .fp-paypal-box img { width: 130px; height: 130px; }

    /* Buttons */
    .fp-btn-row        { flex-direction: column; align-items: stretch; }
    .fp-btn-row .btn   { width: 100%; justify-content: center; }

    /* Zwei-Spalten */
    .fp-two-col        { grid-template-columns: 1fr !important; gap: 20px !important; }
    .fp-two-col-img    { max-width: 100% !important; }
}


/* XS ≤400px */
@media(max-width: 400px) {
    .fp-inner          { padding: 22px 12px; }
    
    .fp-scard-img-wrap { height: 150px; }
}

/* ── FP: Texte auf rotem Hintergrund ────────────────── */
.fp-red .sec-h2,
.fp-red h2 { color: #ffffff !important; }

.fp-red .sec-lead,
.fp-red p  { color: rgba(255,255,255,.88) !important; }




/* ── FP: Kategorie-Bilder – volle Höhe, Cover, abgerundete Ecken ── */
/* Überschreibe eventuell konkurrierende main.css Regeln */
.fp-cat-card 
.fp-cat-card






/* Zentrierte Sections */

/* Paypal-Label auf rotem Hintergrund */
.fp-paypal-label {
    color: rgba(255,255,255,.7) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* ── fp-eyebrow: komplett eigenständig ──────────────── */
.fp-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #fef2f2 !important;
    color: #e21627 !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 50px !important;
    padding: 5px 16px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 0 !important;
    font-family: 'Nunito', system-ui, sans-serif !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
.fp-eyebrow-red {
    background: rgba(255,255,255,.15) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.4) !important;
}
.fp-rule {
    display: block !important;
    margin: 12px auto 20px !important;
    width: 48px !important;
    height: 3px !important;
    background: #e21627 !important;
    border: none !important;
    border-radius: 2px !important;
    margin: 12px 0 20px !important;
}
.fp-rule-red {
    background: rgba(255,255,255,.5) !important;
}
.fp-center .fp-rule {
    margin-left: auto !important;
    margin-right: auto !important;
}
