/* =========================================================
   Zauberhaftes – Dekoration für Haus und Garten
   style.css
   ========================================================= */

/* ----- Reset & Grundlagen ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #F2E8D0;
    --bg-light:    #EDE0C0;
    --bg-white:    #FAF7EE;
    --accent:      #6E7A4A;
    --accent-dark: #556038;
    --btn:         #A87878;
    --btn-dark:    #8B6262;
    --text:        #3A3530;
    --text-muted:  #7A7060;
    --border:      #D4C4A4;
    --nav-bg:      #877860;
    --footer-bg:   #3A3530;
    --footer-text: #F2E8D0;
    --shadow:      0 2px 12px rgba(58,42,26,0.12);
    --radius:      8px;
    --max-w:       1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-dark);
}

h1, h2, h3, h4 {
    font-family: 'Oooh Baby', cursive;
    line-height: 1.3;
    color: var(--accent);
}

/* ----- Layout Helfer ----- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section--light {
    background-color: var(--bg-light);
}

.section--white {
    background-color: var(--bg-white);
}

/* ----- Navigation ----- */
.site-header {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(58,42,26,0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo__name {
    font-family: 'Oooh Baby', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.site-logo__tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    background-color: rgba(255,255,255,0.18);
    color: #fff;
}

.site-nav a.active {
    color: #fff;
}

/* Burger-Menü */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero / Startseite ----- */
.hero {
    background-color: var(--bg-white);
    padding: 80px 0 64px;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    font-family: 'Oooh Baby', cursive;
    font-style: italic;
    margin-bottom: 16px;
}

.hero__tagline {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

/* ----- Info-Karten (Startseite) ----- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.info-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.info-card__title {
    font-family: 'Oooh Baby', cursive;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent-dark);
}

.info-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----- Jahreszeiten-Vorschau ----- */
.seasons-section {
    text-align: center;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 40px;
    color: var(--text);
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.season-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.season-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(58,42,26,0.18);
    color: inherit;
}

.season-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg);
}

.season-card__img--placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.season-card__body {
    padding: 20px;
}

.season-card__title {
    font-family: 'Oooh Baby', cursive;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 6px;
}

.season-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----- Homepage Slideshow ----- */
.slideshow-wrap {
    position: relative;
    overflow: hidden;
    background-color: var(--text);
    border-radius: var(--radius);
    margin-top: 40px;
}

.slideshow {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-btn:hover {
    background-color: rgba(255,255,255,1);
}

.slideshow-btn--prev { left: 16px; }
.slideshow-btn--next { right: 16px; }

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background-color: var(--bg-white);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background-color: var(--accent);
}

/* ----- Galerie-Seiten ----- */
.gallery-header {
    background-color: var(--bg-white);
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.gallery-header__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 40px 0;
}

.gallery-grid__item {
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--bg-light);
    aspect-ratio: 4/3;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid__item img:hover {
    transform: scale(1.04);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.gallery-empty p {
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ----- Kontaktformular ----- */
.contact-section {
    max-width: 640px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--btn);
    box-shadow: 0 0 0 3px rgba(168,120,120,0.18);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.hp-field {
    display: none;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--btn);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:hover {
    background-color: var(--btn-dark);
    transform: translateY(-1px);
    color: #fff;
}

.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 8px;
}

/* Formular Feedback */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert--success {
    background-color: #d4edda;
    border: 1px solid #b8dfc4;
    color: #2d6a3f;
}

.alert--error {
    background-color: #fce8e8;
    border: 1px solid #f0c0c0;
    color: #8b2020;
}

/* ----- Footer ----- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col__title {
    font-family: 'Oooh Baby', cursive;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 8px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: rgba(244,237,224,0.8);
    line-height: 1.8;
}

.footer-col a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: rgba(244,237,224,0.8);
    transition: background-color 0.2s, color 0.2s;
}

.footer-social__link:hover {
    background-color: rgba(255,255,255,0.25);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(244,237,224,0.5);
}

/* ----- Cookie Banner ----- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.visible {
    transform: translateY(0);
}

#cookie-banner p {
    font-size: 0.85rem;
    color: rgba(244,237,224,0.85);
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn--outline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--footer-text);
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn--outline:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ----- Seiteninhalt-Fallback ohne Bilder ----- */
.no-images-hint {
    background-color: var(--bg-light);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.no-images-hint code {
    font-size: 0.85rem;
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .site-header .container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--nav-bg);
        border-bottom: 1px solid var(--border);
        padding: 8px 0 16px;
        box-shadow: 0 4px 12px rgba(58,42,26,0.1);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 10px 24px;
        border-radius: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .slide img {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

/* ----- Produktgrid ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 0 60px;
}

.product-card {
    border-radius: var(--radius);
    background: var(--bg-light);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}

.product-card__img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f0eb;
}

.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    cursor: pointer;
    display: block;
}

.product-card__img-wrap img:hover {
    transform: scale(1.04);
}

.product-card__info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,.07);
    gap: 8px;
    flex-wrap: wrap;
}

.product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card__unavailable {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.btn--cart {
    background-color: var(--btn);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 7px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}

.btn--cart:hover {
    background-color: var(--btn-dark);
    transform: translateY(-1px);
}

/* ----- Warenkorb-Icon im Header ----- */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
    margin-left: 12px;
    padding: 6px 8px;
    border-radius: var(--radius);
    transition: color .2s, background .2s;
    flex-shrink: 0;
}

.cart-icon:hover {
    color: #fff;
    background: rgba(255,255,255,0.18);
}

.cart-icon svg {
    display: block;
}

#cart-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background-color: var(--btn);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ----- Toast Notification ----- */
#cart-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    max-width: 320px;
}

#cart-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Warenkorb-Seite ----- */
.cart-page-wrap {
    padding: 40px 0 60px;
}

.cart-table-wrap {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cart-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-row__product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-row__img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-row__qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--bg);
}

.cart-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color .2s;
}

.cart-remove:hover {
    color: #c0392b;
}

.cart-summary {
    max-width: 380px;
    margin: 32px 0 0 auto;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.cart-summary__row--total {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 12px;
    border-bottom: none;
    border-top: 2px solid var(--border);
    margin-top: 4px;
}

.btn--full {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 14px;
}

/* ----- Checkout-Seite ----- */
.checkout-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: start;
}

.checkout-form-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.checkout-order-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.checkout-order-box h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    gap: 12px;
}

.checkout-order-item span:first-child {
    flex: 1;
}

.checkout-order-porto {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.checkout-order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    font-weight: 700;
    font-size: 1.05rem;
    border-top: 2px solid var(--border);
    margin-top: 4px;
}

.twint-box {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff8f0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.twint-box strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.97rem;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Responsive Produktgrid */
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-wrap { grid-template-columns: 1fr; }
    .checkout-order-box { position: static; }
}

@media (max-width: 540px) {
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
}
