/* /public/assets/frontend.css - ZUSAMMENGEFÜHRT (Landingpage-Stile + Dashboard-Stile) */

/* --- Variable Definitions and Global Styles (From Landing Page Styles) --- */
:root {
    /* Variables are set inline in landing.php, but added here for general use */
    --primary-color: #DC143C; /* Example default */
    --secondary-color: #1A1A1A; /* Example default */
    --accent-color: #B71C1C; /* Example default */
    --text-color: #333;
    --text-light: #666;
    --background: #f4f4f4;
    --card-background: white;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

/* --- Buttons (From Landing Page Styles) --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* --- Header & Navigation (From Landing Page Styles) --- */
.header {
    background: var(--secondary-color);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.logo i {
    color: var(--primary-color);
    margin-right: 10px;
}

.logo img {
    height: 40px;
}

.logo .domain {
    font-size: 1.2rem;
    font-weight: 300;
    margin-left: 5px;
}

.btn-login {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-login:hover {
    background: var(--accent-color);
}

/* --- Hero Section (From Landing Page Styles) --- */
.hero {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-cta a {
    margin: 0 10px;
    font-size: 1.1rem;
}

/* --- Section Titles (From Landing Page Styles) --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* --- Stats Section (From Landing Page Styles) --- */
.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stat-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* --- Features Section (From Landing Page Styles) --- */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- How It Works Section (From Landing Page Styles) --- */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Step Connector Line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    z-index: 1;
    margin: 0 40px;
}

.step-card {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2; /* Ensure card content is above the line */
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
    border: 5px solid white; /* Hides the connector line */
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- CTA Section (From Landing Page Styles) --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 50px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: #f0f0f0;
}

/* --- Footer (From Landing Page Styles) --- */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* --- Dashboard Styles (Original Content from frontend.css) --- */
/* ---------------------------------------------------------------------- */

.dashboard-content {
    padding: 40px 0;
    background: var(--background);
    min-height: 100vh;
}

.welcome-section {
    background: linear-gradient(135deg, var(--secondary-color), #333);
    color: white;
    padding: 60px 0;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 0 15px 0 100px;
    opacity: 0.1;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.welcome-section .highlight {
    color: var(--primary-color);
}

.welcome-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.referral-id {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.referral-id h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.referral-id code {
    font-size: 1.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
    margin: 10px 0;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
}

.referral-id code:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.stats-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.stats-label {
    color: var(--text-light);
    font-size: 1rem;
}

.action-section {
    background: white;
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.action-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-color);
}

.action-section h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.share-card {
    background: var(--background);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.share-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.share-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-card h3 i {
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rewards-section {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.rewards-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-color);
}

.rewards-section h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reward-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.reward-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

.reward-card.available {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8, #e8f8e8);
}

.reward-card.available::before {
    content: 'VERFÜGBAR';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
}

.reward-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.reward-card.available .reward-icon {
    color: #28a745;
}

.reward-points {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.reward-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.reward-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.redeem-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.redeem-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.redeem-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-logout {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #5a6268;
}

/* Card & Form Components */
.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.alert-ok {
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.row label {
    font-weight: 600;
    color: var(--text-color);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Responsive Design (From Landing Page Styles) --- */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .steps-grid::before {
        content: none; /* Hide horizontal line */
    }

    .step-card {
        border-left: 4px solid var(--primary-color);
        text-align: left;
        padding-left: 20px;
    }

    .step-number {
        position: absolute;
        left: -30px;
        top: 0;
    }
}

/* --- Responsive Design (Combined/Overlapped) --- */
@media (max-width: 768px) {
    /* Landing Page Specific */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .stat-box {
        margin-bottom: 20px;
    }

    /* Dashboard Specific (From original frontend.css) */
    .action-section,
    .rewards-section {
        padding: 30px 20px;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .referral-id code {
        font-size: 1.4rem;
        padding: 10px 15px;
    }
}