/* =========================================
   1. BASIS & RESET
   ========================================= */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #fff;
    --primary-color: #e94560;
    /* Das markante Pink/Rot */
    --secondary-color: #2a2a2a;
    /* Dunkles Grau für Kontraste */
    --border-color: #e0e0e0;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--secondary-color);
    line-height: 1.2;
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   2. LAYOUT-CONTAINER
   ========================================= */
.main-container {
    max-width: 800px;
    margin: 0 auto;
}

.center {
    text-align: left;
}

/* =========================================
   3. CARD-DESIGN (Die Kacheln)
   ========================================= */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Mobil: Untereinander */
    border: 1px solid var(--border-color);
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-txt {
    padding: 20px;
}

/* Desktop-Ansicht (ab 600px) */
@media (min-width: 600px) {
    .card {
        flex-direction: row;
        /* Nebeneinander */
        align-items: flex-start;
        /* WICHTIG: Bild klebt OBEN, nicht Mitte */
    }

    .card-img {
        width: 40%;
        max-width: 300px;
        align-self: stretch;
        /* Bild zieht sich auf volle Höhe, wenn nötig */
        min-height: 100%;
    }

    /* Quadratische Bilder bleiben quadratisch */
    .card-img-square {
        width: 300px;
        height: 300px;
        align-self: flex-start;
        /* Quadrat klebt oben links */
        flex-shrink: 0;
        /* Verhindert Stauchen */
    }

    .card-txt {
        width: 60%;
        padding: 30px 40px;
    }
}

/* =========================================
   4. SOCIAL MEDIA BUTTONS (Bunte Icons)
   ========================================= */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff !important;
    /* Textzwang auf Weiß */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    fill: currentColor;
}

.social-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
}

/* Farben */
.btn-home {
    background-color: #444;
}

.btn-instagram {
    background-color: #E1306C;
}

.btn-youtube {
    background-color: #FF0000;
}

.btn-tiktok {
    background-color: #000;
}

.btn-whatsapp {
    background-color: #25D366;
}

/* =========================================
   5. CTA ACTION BAR (Newsletter & Orakel)
   ========================================= */
.cta-action-bar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0;
}

.cta-inner-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* Mobil umbrechen */
}

/* Basis-Button-Style für die CTA-Bar */
.cta-action-bar .cta-button {
    flex: 1;
    /* Beide Buttons gleich breit */
    min-width: 220px;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cta-action-bar .cta-button svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: currentColor;
}

.cta-action-bar .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Primär: Newsletter (Pink) */
.primary-action {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 2px solid var(--primary-color);
}

/* Sekundär: Orakel (Weiß mit Pinkem Rand) */
.secondary-action {
    background-color: #fff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.secondary-action:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* =========================================
   7. IN-CONTENT BUTTONS
   ========================================= */
.cta-mail,
.cta-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.cta-mail {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 2px solid var(--primary-color);
}

.cta-mail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.cta-link {
    background-color: #fff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.cta-link:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

.card-txt {
    padding: 20px;
}

/* Desktop-Ansicht (ab 600px) */
@media (min-width: 600px) {
    .card {
        flex-direction: row;
        /* Nebeneinander */
        align-items: flex-start;
        /* WICHTIG: Bild klebt OBEN, nicht Mitte */
    }

    .card-img {
        width: 40%;
        max-width: 300px;
        align-self: stretch;
        /* Bild zieht sich auf volle Höhe, wenn nötig */
        min-height: 100%;
    }

    /* Quadratische Bilder bleiben quadratisch */
    .card-img-square {
        width: 300px;
        height: 300px;
        align-self: flex-start;
        /* Quadrat klebt oben links */
        flex-shrink: 0;
        /* Verhindert Stauchen */
    }

    .card-txt {
        width: 60%;
        padding: 30px 40px;
    }
}

/* =========================================
   4. SOCIAL MEDIA BUTTONS (Bunte Icons)
   ========================================= */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff !important;
    /* Textzwang auf Weiß */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    fill: currentColor;
}

.social-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
}

/* Farben */
.btn-home {
    background-color: #444;
}

.btn-instagram {
    background-color: #E1306C;
}

.btn-youtube {
    background-color: #FF0000;
}

.btn-tiktok {
    background-color: #000;
}

.btn-whatsapp {
    background-color: #25D366;
}

/* =========================================
   5. CTA ACTION BAR (Newsletter & Orakel)
   ========================================= */
.cta-action-bar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0;
}

.cta-inner-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* Mobil umbrechen */
}

/* Basis-Button-Style für die CTA-Bar */
.cta-action-bar .cta-button {
    flex: 1;
    /* Beide Buttons gleich breit */
    min-width: 220px;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cta-action-bar .cta-button svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: currentColor;
}

.cta-action-bar .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Primär: Newsletter (Pink) */
.primary-action {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 2px solid var(--primary-color);
}

/* Sekundär: Orakel (Weiß mit Pinkem Rand) */
.secondary-action {
    background-color: #fff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.secondary-action:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* =========================================
   7. IN-CONTENT BUTTONS
   ========================================= */
.cta-mail,
.cta-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.cta-mail {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 2px solid var(--primary-color);
}

.cta-mail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.cta-link {
    background-color: #fff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.cta-link:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =========================================
   6. FOOTER & SPECIALS
   ========================================= */
/* Footer zwingend zentriert und untereinander */
#main-footer {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    gap: 15px;
}

.footer-links {
    margin-bottom: 5px;
}

#main-footer a {
    margin: 0 8px;
    color: #666;
    font-size: 0.9rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.footer-disclaimer {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #888;
    max-width: 600px;
    opacity: 0.8;
}

/* QR Code & Zahlungsdetails (für kasse.html) */
#payment-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #eee;
}

#qrcode img {
    display: block;
    margin: 10px auto;
}

/* =========================================
   7. INLINE-EXPAND (Das Orakel-Formular)
   ========================================= */
/* Der Container, der standardmäßig versteckt ist */
#orakel-expand-area {
    display: none;
    /* Versteckt */
    background-color: #fcfcfc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    margin: 0 auto 20px auto;
    /* Abstand nach unten zur nächsten Card */
    max-width: 800px;
    /* Gleiche Breite wie Cards */
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Schatten nach innen wirkt eingedrückt */
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header im Expand-Bereich */
.expand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.expand-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.close-expand {
    cursor: pointer;
    font-size: 1.5rem;
    color: #888;
    line-height: 1;
}

.close-expand:hover {
    color: var(--primary-color);
}

/* Inhalt */
.expand-body {
    font-size: 0.95rem;
}

.expand-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    display: block;
    /* Bild zentrieren */
    margin-left: auto;
    margin-right: auto;
}

/* Die Schritte-Box */
.expand-steps {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 15px 0;
}

.expand-steps p {
    margin: 8px 0;
}

/* Der finale Button */
.expand-action-btn {
    display: block;
    width: 80%;
    background-color: var(--primary-color);
    color: white !important;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
    margin-top: 15px;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}

.expand-action-btn:hover {
    transform: scale(1.01);
}