/* ===== BASE ===== */
html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(160deg, #FFF5CE 0%, #F3CC68 100%);
    background-attachment: fixed;
    color: #333;
}

h2 {
    font-family: 'Arial Black', Arial, sans-serif;
    color: #5EB91E;
    margin-top: 1.8rem;
}

h3 {
    font-family: 'Arial Black', Arial, sans-serif;
}

address {
    font-style: normal;
}

a {
    color: #5EB91E;
}

/* ===== HEADER ===== */
header {
    background: url('images/basket-apples-big.webp') center/cover;
    height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.header-person {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20vw;
    object-fit: cover;
    object-position: top center;
}

.header-logo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 14px;
    padding: 10px 24px;
}

.header-logo img {
    width: 30vw;
    display: block;
}

.header-short {
    height: 30vh;
}

.header-short h1 {
    font-size: 2rem;
    padding: 15px 25px;
}

header h1 {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px 30px;
    border-radius: 12px;
}

/* ===== NAV ===== */
nav {
    background: #5EB91E;
    padding: 0 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 4px 0;
}

nav a {
    color: white;
    margin: 0 12px;
    text-decoration: none;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

nav a:link,
nav a:visited {
    color: white;
}

nav a:hover {
    opacity: 0.8;
}

.nav-logo {
    flex-shrink: 0;
    background: white;
    border-radius: 6px;
    padding: 2px 7px;
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.nav-logo img {
    height: 34px;
    display: block;
}

/* ===== SECTION ===== */
section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.legal-content p {
    text-align: justify;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px;
}

.footer-links {
    margin: 10px 0;
}

.footer-link {
    color: white;
    margin: 0 15px;
    text-decoration: underline;
}

/* ===== ABOUT ===== */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

.about-text {
    flex: 2;
    min-width: 280px;
}

.about-image {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ===== PROCESS ===== */
.process-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.process-image img {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline {
    flex: 3;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-image {
    flex: 2;
}

.timeline div {
    background: #fff;
    padding: 15px;
    border-left: 5px solid #C62828;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}


/* ===== MOSTTERMINE ===== */
.mosttermine-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mosttermine-left {
    flex: 2;
    min-width: 280px;
}

.mosttermine-image {
    flex: 3;
    min-width: 260px;
}

.mosttermine-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.termine-grid {
    display: initial;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.termin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    margin: 0 10px 10px 0;
}

.termin-date {
    background: #5EB91E;
    color: white;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1rem;
    padding: 20px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    text-align: center;
    line-height: 1.3;
}

.termin-info {
    padding: 16px 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.termin-card[data-start] {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.termin-card[data-start]:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.termin-cal {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #5EB91E;
    opacity: 0.8;
}

.termin-cta {
    margin-top: 24px;
}

/* ===== MITTEILUNGEN ===== */
.mitteilung-date {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 6px;
}

.mitteilung-title {
    font-family: 'Arial Black', Arial, sans-serif;
    color: #5EB91E;
    margin: 0 0 10px;
    font-size: 1rem;
}

/* ===== NETWORK ===== */
.network-hero {
    margin-top: 30px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.network-hero > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center center;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.network-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-card {
    position: absolute;
    pointer-events: all;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    width: 121px;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: #333;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.82rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1.3;
    transition: box-shadow 0.2s, color 0.2s, transform 0.2s;
}

.network-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #5EB91E;
    transform: translate(-50%, -50%) scale(1.07);
}

/* ===== PRODUCTS ===== */
.products-container {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-top: 24px;
    min-height: 380px;
}

.products-col {
    min-width: 0;
}

.products-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
}

.box-sizes {
    display: flex;
    align-items: flex-end;
}

.box-sizes img {
    height: auto;
    object-fit: contain;
}

.glass-apple-juice {
    display: none;
}

.box-sizes {
    flex: 4;
}

.products-price {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 230px;
    flex: 1;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    color: #7B2D00;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.95rem;
}

.price-table td {
    padding: 7px 0;
    border-bottom: 1px solid #f0ddd5;
}

.price-table td:first-child {
    text-decoration: underline;
}

.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
    padding-left: 12px;
}

.price-discount {
    color: #7B2D00;
    font-size: 0.88rem;
    line-height: 1.8;
}

.products-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 30px;
}

.products-banner img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center center;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5EB91E;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.95rem;
    align-self: flex-start;
    margin-top: auto;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #4da018;
    color: white;
}

/* ===== CONTACT ===== */
.contact-intro {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-intro-img {
    flex: 2;
    min-width: 240px;
}

.contact-intro-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: block;
}

.contact-intro-text {
    flex: 3;
    min-width: 280px;
}

.contact-intro-text h2 {
    margin-top: 0;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
    align-items: flex-start;
}

.contact-form-img {
    flex: 1;
    min-width: 240px;
}

.contact-form-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);

    label {
        margin-bottom: -10px;
        margin-left: 5px;
    }
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5EB91E;
}

.contact-form button {
    background: #5EB91E;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Arial Black', Arial, sans-serif;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #4da018;
}

.contact-info {
    flex: 1;
    min-width: 260px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
}

.contact-info h3 {
    margin-top: 0;
    color: #5EB91E;
}

.contact-info-cols {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 12px;
    flex-wrap: wrap;
}

.contact-info-left {
    flex: 1;
    min-width: 160px;
}

.contact-qr {
    margin-top: 20px;
    text-align: center;
}

.contact-qr img {
    width: 130px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.contact-qr p {
    font-size: 0.8rem;
    color: #666;
    margin: 6px 0 0;
}

.socials {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.socials a {
    text-decoration: none;
    color: #5EB91E;
    font-weight: 700;
    transition: color 0.3s;
}

.socials a:hover {
    color: #4da018;
}

.form-privacy {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ===== UTILITIES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */

/* --- Tablet (≤ 949px) --- */
@media (max-width: 949px) {
    /* Network cards: vertical on right */
    .network-cards {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 15px;
        padding: 12px;
    }

    .network-card {
        position: relative;
        transform: none;
    }

    .network-card:hover {
        transform: scale(1.07);
    }

    /* Products: stack vertically */
    .products-container {
        flex-direction: column;
        min-height: auto;
    }

    .box-sizes img {
        max-height: 340px;
    }

    /* Header */
    header h1 {
        font-size: 2rem;
        padding: 14px 20px;
    }

    .header-logo img {
        width: 44vw;
    }
}

/* --- Mobile (≤ 640px) --- */
@media (max-width: 640px) {
    /* Nav */
    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px;
    }

    .nav-links {
        justify-content: center;
        padding: 8px 0;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.85rem;
    }

    .nav-logo {
        display: none;
    }

    /* Header */
    header {
        height: 32vh;
    }

    header h1 {
        font-size: 1.5rem;
        padding: 10px 16px;
    }

    .header-person {
        display: none;
    }

    .header-logo img {
        width: 64vw;
    }

    .header-short {
        height: 22vh;
    }

    .header-short h1 {
        font-size: 1.5rem;
    }

    /* Sections */
    section {
        padding: 24px 16px;
    }

    /* Network image */
    .network-hero > img {
        height: 260px;
    }

    /* Products banner */
    .products-banner img {
        height: 35vh;
    }

    /* Contact: hide decorative image next to form */
    .contact-form-img {
        display: none;
    }

    /* Process image: hide on mobile */
    .process-image {
        display: none;
    }

    /* Contact intro image: hide on mobile */
    .contact-intro-img {
        display: none;
    }
}
