:root {
    --blue-background-color: #FAFAFA;       /* Main blue #FAFAFA, #F7F9FC*/
    --navbar-height: 100px;
    --primary-color: #3498db;       /* Main blue */
    --primary-dark: #2980b9;        /* Darker blue */
    --primary-light: #EAECFB;       /* Light blue background */
    --accent-color: #2ecc71;        /* Green for accents */
    --text-dark: #2c3e50;           /* Dark text */
    --text-light: #ecf0f1;          /* Light text */
    --background: #f8f9fa;          /* Page background */
    --card-bg: #ffffff;             /* Card background */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: var(--blue-background-color);
    margin: 0;
    padding-top: var(--content-offset);
    color: #212529;
}

.page-content {
    flex: 1;
}

.navbar {
    position: fixed; /* Fixiert oben */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blue-background-color);
    padding: 0rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Immer über anderen Elementen */
    transition: all 0.3s ease; /* Glatte Animation */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}


.navbar-logo {
    color: black;
    font-size: 3rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-logo img {
    height: var(--navbar-height);
    width: auto;
}


.navbar-menu {
    display: flex;
    list-style: none;
    font-size: 1.5rem;
    gap: 5rem;
    margin-right: 100px;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.navbar-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

/* Burger standardmäßig verstecken */
.nav-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.burger span {
    width: 28px;
    height: 3px;
    background: black;
    transition: 0.3s;
}

.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        padding: 0;

    }

    .navbar-container {
        display: flex;
        align-items: center;
        margin-right: 10px;
        margin-left: 10px;
        width: 100%;
    }

    .burger {
        display: flex;
        margin-left: auto;
    }


    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 40px;
        width: auto;
        padding-right:auto;
    }


    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: auto;
        background: var(--blue-background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        box-shadow: 0 6px 6px -4px rgba(0, 0, 0, 0.4);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        margin: 0;
        padding-bottom: 0.5rem;
    }

    /* Menü sichtbar wenn Checkbox aktiv */
    .nav-toggle:checked ~ .navbar-menu {
        transform: translateX(0);
    }

    .nav-toggle:checked + .burger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle:checked + .burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}


a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Homepage Styles */
.home-container {
    max-width: 1200px;
    margin: 0px auto 50px;
    padding: 0 20px;
}

.home-header {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

.home-header h1 {
    color: var(--text-dark);
    background: none;
    border: none;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}


.subtitle {
    font-size: 1.3em;
    color: #7f8c8d;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.home-card {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.home-card h2 {
    color: #2c3e50;
    margin-top: 0;
}

.home-card h2 a {
    color: inherit;
    text-decoration: none;
}

.home-card p {
    text-align: left;
    color: #555;
    margin-bottom: 25px;
}

.card-button-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.card-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.card-button:hover {
    background: #2980b9;
    text-decoration: none;
}

.description-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.description-box h3 {
    color: #2c3e50;
    margin-top: 0;
}

.description-box p {
    text-align: left;
    line-height: 1.6;
}

/* styling für Deals */
.deals-header {
    margin-top: var(--navbar-height);
    padding-top: 10px;
    padding-bottom: 30px;
    font-weight: 600;
    font-size: 60px;
    color: var(--text-dark);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.deals-error {
    grid-column: 1 / -1;   /* spannt über alle Grid-Spalten */
    padding: 100px;
    font-weight: 400;
    font-size: 40px;
    color: var(--text-dark);
    text-align: center;
}

/* Container: zentriert im Fenster */
.deals-container {
    max-width: 1320px;          /* Platz für 4 Karten + Gaps */
    margin: 0 auto;             /* exakt zentriert */
    padding: 30px 20px;

    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 24px;
    justify-content: center;
}

/* Deal-Karte */
.deal-card {
    min-width: 200px;           /* Mindestbreite */
    min-height: 420px;          /* Mindesthöhe */

    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.deal-timestamp {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.deal-timestamp-deal-page {
    font-size: 0.75rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #777;
}

/* Bild */
.deal-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

/* Titel */
.deal-title {
    font-size: 15px;
    font-weight: 600;
    margin: 14px 0;
    line-height: 1.3;
    height: 8em;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Preise */
.deal-prices {
    margin: 4px 0;
}

.old-price {
    color: #c0392b;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 14px;
}

.new-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.new-price-deal-page {
    color: #27ae60;
    font-weight: bold;
    font-size: 28px;
}

/* Button */
.deal-link {
    margin-top: auto;
    padding: 10px 14px;
    background: #2c7be5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.deal-link:hover {
    background: #1a68d1;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .deals-container {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .deals-container {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 600px) {
    .deals-container {
        grid-template-columns: 1fr;
    }
}

/* footer */

.footer {
    background: #f8f9fb;
    border-top: 1px solid #e0e0e0;
    margin-top: 80px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 50px 20px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.footer-brand p {
    color: #666;
    font-size: 14px;
}

.footer-links h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #e0e0e0;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
}

.page-button {
    padding: 12px 22px;
    border-radius: 8px;
    background: #2c7be5;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.page-button:hover {
    background: #1a68d1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* HERO SECTION */
.hero-section {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 20px 60px;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hero-button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* LATEST DEALS PREVIEW */
.latest-deals-preview {
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }
}

.deals-search {
    max-width: 320px;
    margin: 0 auto 40px;
    text-align: center;
}

.deals-search input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Poppins', sans-serif;
}

/* =====================
   Deal Detail Page
   ===================== */

.deal-detail-wrapper {
    max-width: 1200px;
    margin: 140px auto 60px;
    padding: 0 20px;
}

.deal-detail-card {
    display: flex;
    gap: 40px;
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    align-items: flex-start;
}

/* IMAGE CONTAINER */
.deal-detail-image {
    flex: 0 0 420px;
    max-width: 420px;

    display: flex;
    justify-content: center;
    align-items: center;

    /* wichtig: KEINE feste Höhe */
}

/* IMAGE */
.deal-detail-image img {
    width: auto;
    max-width: 100%;
    height: auto;

    max-height: 400px;     /* Desktop max */
    object-fit: contain;
}

/* INFO */
.deal-detail-info {
    flex: 1;
}

.deal-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.deal-detail-prices {
    margin-bottom: 20px;
}

.deal-detail-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    margin-left: 10px;
    padding: 10px 14px;
    border: 1px solid #3498db;
    border-radius: 6px;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    color: #36bfff;
    border: 1px solid #36bfff;
    text-decoration: none;
}

/* =====================
   Responsive (iPad & smaller)
   ===================== */

@media (max-width: 1024px) {
    .deal-detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .deal-detail-image {
        max-width: 100%;
    }

    .deal-detail-image img {
        max-height: 320px;  /* iPad max */
    }

    .deal-detail-info h1 {
        font-size: 1.6rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .deal-detail-image img {
        max-height: 240px;  /* Mobile max */
        max-width: 240px;
    }
}

/* Imprint Page */

.imprint-wrapper {
    max-width: 900px;
    margin: 140px auto 80px;
    padding: 0 20px;
}

.imprint-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-family: 'Poppins', sans-serif;
}

.imprint-card h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.imprint-card section {
    margin-bottom: 30px;
}

.imprint-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.imprint-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.imprint-card a {
    color: #3498db;
    text-decoration: none;
}

.imprint-card a:hover {
    text-decoration: underline;
}

/* Mobile */

@media (max-width: 600px) {
    .imprint-card {
        padding: 25px;
    }

    .imprint-card h1 {
        font-size: 1.9rem;
    }

    .imprint-card h2 {
        font-size: 1.15rem;
    }

    .imprint-card p {
        font-size: 0.95rem;
    }
}

/* =====================
   Affiliate Disclaimer
   ===================== */

.affiliate-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #777;
    max-width: 640px;
}

/* Nur aktive Sprache anzeigen */
.disclaimer-text {
    display: none;
}

/* Sichtbare Sprache */
.disclaimer-text.active {
    display: inline;
}

/* Mobile etwas kompakter */
@media (max-width: 1024px) {
    .hero-text p {
        font-size: 1.2rem;
        color: #555;
        margin-bottom: 30px;
        max-width: 520px;
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
    }

    .affiliate-disclaimer {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.7rem;
    }
}

.language-switch button {
    background: none;
    border: 1px solid #555;
    border-radius: 7px;
    font-size: 0.75rem;
    cursor: pointer;
    color: #555;
    margin-right: 8px;
    margin-top: 25px;
}

.language-switch button:hover {
    border: 1px solid #000;
    border-radius: 7px;
    color: #000;
}
