:root {
    --bg-light: #f9fafb;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --accent: #4c6ef5;
    --text-dark: #111;
    --text-muted: #666;
    --radius: 24px;
    --radius-button: 14px;
    --shadow: 0 4px 10px rgba(0,0,0,0.05);
}

html, body {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--bg-header);
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

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

.btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: #5c7cff;
}

main {
    flex: 1;
    padding: 40px 60px;
}

/* Offer Cards */
.offer {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: auto;
    background-color: #cfd4e1;
}

.offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.home-block {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:60px;
}

.home-block .picture-left {
        order: 1;
}
    
.home-block .text-right {
        order: 2;
}

/* Home sections */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.section:nth-child(even) {
    flex-direction: row-reverse;
}

.section img {
    width: 45%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-text {
    flex: 1;
}

.section-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

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

/* Footer */
footer {
    background: var(--bg-header);
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    margin-top: auto;
}


/* ====== PAYOUT / EARNING TICKER ====== */
.payout-ticker {
  position: relative;
  width: 100%;
  height: 50px;
  overflow: clip;
  background: #f1f5f9;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.ticker-wrapper {
  position: relative;
  width: 200%;
  display: flex;
  will-change: transform;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  min-width: 100%;
}

.ticker-item {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #111;
  min-width: max-content;
}

.ticker-item .user {
  color: var(--accent);
  font-weight: 600;
}

.ticker-item .amount {
  color: #16a34a;
}

.ticker-item .method {
  color: #555;
  font-style: italic;
}





/* --- Mobile Anpassungen --- */
/* --- Mobile Anpassungen --- */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
    }

    /* Drei-Schritt-Anleitung & Blöcke */
    section, .block {
        flex-direction: column !important;
        text-align: center !important;
    }

    section > div, .block > div {
        max-width: 100% !important;
        order: 0 !important;
        margin: 10px 0 !important;
    }
    
    .home-block .picture-left {
        order: 2;
    }
    
    .home-block .text-right {
        order: 1;
    }

    /* Überschriften etwas kleiner */
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }

    /* Buttons mobiler-friendly */
    a.button, button {
        padding: 12px 20px !important;
        font-size: 1rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Icons etwas kleiner */
    i.fa {
        font-size: 28px;
    }

    svg {
        width: 48px !important;
        height: 48px !important;
    }
}


@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav a {
        padding: 12px 20px;
        font-size: 1rem;
    }
}


/* Desktop Navigation bleibt unverändert */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger nur auf Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 1.4rem; /* kleineres Icon */
    color: #333; /* gleiche Farbe wie Schrift */
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    padding: 20px;
    width: calc(100% - 40px);
    height: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10000;
}

.mobile-overlay-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
}

.close-overlay {
    cursor: pointer;
    font-size: 1.2rem !important;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu a {
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
    text-align: center;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
        margin-left: auto;
    }
}


