/* ============================================================
   kr3ativ4u – Stylesheet
   ============================================================ */

:root {
    --gruen:      #2d6a4f;
    --gruen-hell: #40916c;
    --gruen-bg:   #d8f3dc;
    --dunkel:     #1b1b1b;
    --grau:       #555;
    --grau-hell:  #f4f4f4;
    --weiss:      #ffffff;
    --rahmen:     #ddd;
    --etsy:       #f1641e;
    --font:       'Segoe UI', Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--dunkel);
    background: var(--weiss);
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--gruen-hell); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ---- HEADER ---- */
header {
    background: var(--dunkel);
    color: var(--weiss);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo a { color: var(--weiss); text-decoration: none; font-size: 1.5rem; font-weight: 700; }
.logo-kr3 { color: var(--gruen-hell); }
.logo-4u  { color: var(--weiss); }
.logo-claim { display: block; font-size: 0.75rem; color: #aaa; margin-top: -4px; }

nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
nav a {
    color: #ccc;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
nav a:hover { background: #333; color: var(--weiss); }
nav .nav-etsy { color: var(--etsy); border: 1px solid var(--etsy); }
nav .nav-etsy:hover { background: var(--etsy); color: var(--weiss); }
nav .nav-warenkorb { color: var(--gruen-hell); border: 1px solid var(--gruen-hell); position: relative; }
nav .nav-warenkorb:hover { background: var(--gruen-hell); color: var(--weiss); }

.badge {
    background: var(--etsy);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 1px 5px;
    margin-left: 4px;
    font-weight: bold;
}

/* ---- SEIFENRECHNER BANNER ---- */
.vkf-banner {
    background: var(--gruen-bg);
    border: 1px solid var(--gruen-hell);
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--gruen);
    margin-bottom: 20px;
}
.zahlung-banner {
    background: #f0f4ff;
    border-color: #93c5fd;
    color: #1e40af;
}
.zahlung-banner a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: underline;
}

.seifenrechner-banner {
    background: linear-gradient(135deg, #6a3fa0 0%, #9b59b6 100%);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 30px;
}
.seifenrechner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.seifenrechner-icon { font-size: 2rem; flex-shrink: 0; }
.seifenrechner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 200px;
    color: white;
    text-align: center;
}
.seifenrechner-text strong { font-size: 1.05rem; }
.seifenrechner-text span   { font-size: 0.85rem; opacity: 0.85; }
.btn-seifenrechner {
    background: white;
    color: #6a3fa0;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-seifenrechner:hover {
    background: #f0e0ff;
    text-decoration: none;
}

/* ---- FOOTER ---- */
footer {
    background: var(--dunkel);
    color: #aaa;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 16px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col { flex: 1; min-width: 160px; }
.footer-col strong { color: var(--weiss); }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--weiss); }

.footer-bottom {
    text-align: center;
    padding: 14px 16px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}
.footer-bottom a { color: #999; }

/* ---- DROPDOWN NAV ---- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a {
    color: #ccc;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: block;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-dropdown:hover > a,
.nav-dropdown > a:focus {
    background: #333;
    color: var(--weiss);
    text-decoration: none;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    border-radius: 6px;
    min-width: 210px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 200;
    padding: 6px 0;
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 9px 16px;
    color: #ccc;
    font-size: 0.88rem;
    border-radius: 0;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: #333;
    color: var(--weiss);
    text-decoration: none;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--grau);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--gruen-hell); }

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-kaufen  { background: var(--gruen); color: var(--weiss); font-size: 1.05rem; padding: 12px 28px; }
.btn-kaufen:hover { background: var(--gruen-hell); }

.btn-detail  { background: var(--grau-hell); color: var(--dunkel); border: 1px solid var(--rahmen); }
.btn-detail:hover { background: #e0e0e0; }

.btn-klein   { background: var(--gruen-bg); color: var(--gruen); font-size: 0.85rem; padding: 6px 14px; }
.btn-klein:hover { background: var(--gruen-hell); color: var(--weiss); }

.btn-etsy    { background: var(--etsy); color: var(--weiss); }
.btn-etsy:hover { background: #d4521a; }

/* ---- STARTSEITE ---- */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1b1b1b 0%, #2d6a4f 100%);
    border-radius: 12px;
    color: var(--weiss);
    margin-bottom: 40px;
}
.hero h1 { font-size: 2rem; margin-bottom: 12px; }
.hero p   { font-size: 1.1rem; color: #ccc; margin-bottom: 20px; }

.kategorien-uebersicht h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dunkel);
}

.kategorien-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}
@media (max-width: 1000px) {
    .kategorien-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .kategorien-grid { grid-template-columns: 1fr; }
}

.kat-karte {
    border: 1px solid var(--rahmen);
    border-radius: 10px;
    padding: 16px;
    background: var(--grau-hell);
}
.kat-icon { font-size: 2rem; margin-bottom: 10px; }
.kat-karte h3 { font-size: 1.2rem; margin-bottom: 8px; }
.kat-karte p  { color: var(--grau); font-size: 0.9rem; margin-bottom: 14px; }
.kat-links    { display: flex; gap: 8px; flex-wrap: wrap; }

.etsy-banner {
    background: #fff3ee;
    border: 2px solid var(--etsy);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.etsy-banner p { margin-bottom: 14px; }

/* ---- KATEGORIE-ÜBERSICHT ---- */
.kat-header {
    margin-bottom: 30px;
}
.kat-header h1 { font-size: 1.7rem; }
.kat-untertitel { color: var(--gruen-hell); font-weight: 600; margin: 4px 0; }
.kat-beschr     { color: var(--grau); }

.produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.produkt-karte {
    border: 1px solid var(--rahmen);
    border-radius: 10px;
    overflow: hidden;
    background: var(--weiss);
    transition: box-shadow 0.2s;
}
.produkt-karte:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.produkt-karte > a { display: block; color: inherit; text-decoration: none; }

.produkt-bild-wrap {
    position: relative;
    background: var(--grau-hell);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.produkt-bild-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.produkt-karte:hover .produkt-bild-wrap img { transform: scale(1.04); }

.kein-bild { background: #e8e8e8; }
.kein-bild-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85rem;
    font-style: italic;
    background: #f0f0f0;
}

.badge-neu {
    position: absolute; top: 8px; left: 8px;
    background: var(--etsy); color: white;
    font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: 700;
}
.badge-anfrage {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.6); color: white;
    font-size: 0.72rem; padding: 3px 8px; border-radius: 4px;
}

.produkt-info {
    padding: 12px 14px 6px;
}
.produkt-info h3   { font-size: 0.95rem; margin-bottom: 4px; }
.produkt-info .kurzbeschr { font-size: 0.82rem; color: var(--grau); margin-bottom: 8px; }
.produkt-info .preis { font-size: 1.1rem; font-weight: 700; color: var(--gruen); }

.produkt-karte-btn {
    padding: 10px 14px 14px;
    display: flex;
    justify-content: center;
}

.info-box {
    background: var(--gruen-bg);
    border-left: 4px solid var(--gruen-hell);
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 20px;
}
.info-box a { color: var(--gruen); font-weight: 600; }

/* ---- PRODUKT-DETAILSEITE ---- */
.produkt-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

@media (max-width: 700px) {
    .produkt-detail { grid-template-columns: 1fr; }
}

.galerie-haupt {
    border-radius: 10px;
    overflow: hidden;
    background: var(--grau-hell);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.galerie-haupt img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s;
}
.galerie-haupt img:hover { transform: scale(1.02); }

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.aktiv { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: fixed;
    top: 16px;
    right: 22px;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

.galerie-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.galerie-thumbs .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.galerie-thumbs .thumb:hover,
.galerie-thumbs .thumb.active { border-color: var(--gruen-hell); }

.galerie-thumbs .thumb-video {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--dunkel);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: border-color 0.2s;
}
.galerie-thumbs .thumb-video:hover,
.galerie-thumbs .thumb-video.active { border-color: var(--gruen-hell); }

.produkt-text h1 { font-size: 1.5rem; margin-bottom: 8px; }

.produkt-zusatz {
    background: var(--gruen-bg);
    border-left: 4px solid var(--gruen-hell);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gruen);
    margin-bottom: 12px;
}

.auf-anfrage-hinweis {
    background: #fffbe6;
    border: 1px solid #f0d060;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: inline-block;
}

.detail-preis {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gruen);
    margin: 8px 0 2px;
}
.preis-hinweis {
    font-size: 0.78rem;
    color: var(--grau);
    margin-bottom: 20px;
}

.warenkorb-form {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.menge-wrap label { font-weight: 600; }
.menge-wrap input[type=number] {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid var(--rahmen);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.produkt-beschr {
    background: var(--grau-hell);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.produkt-beschr p {
    margin: 0 0 10px 0;
}
.produkt-beschr p:last-child {
    margin-bottom: 0;
}
.produkt-material {
    font-size: 0.85rem;
    color: var(--grau);
    border-top: 1px solid var(--rahmen);
    padding-top: 12px;
}

.nicht-verfuegbar {
    color: #c00;
    font-weight: 600;
    margin-bottom: 20px;
}

.zurueck-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--rahmen);
}

.zurueck { margin-top: 20px; }
.zurueck a { color: var(--gruen-hell); font-weight: 600; }

.hinweis {
    background: var(--gruen-bg);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--gruen);
    font-weight: 600;
}

/* ---- WARENKORB ---- */
.warenkorb-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.warenkorb-tabelle th,
.warenkorb-tabelle td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--rahmen);
}
.warenkorb-tabelle th { background: var(--grau-hell); font-weight: 700; }

.warenkorb-gesamt {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gruen);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    nav { gap: 4px; }
    .hero h1 { font-size: 1.4rem; }
    .produkt-grid { grid-template-columns: repeat(2, 1fr); }
}