/* =============================================
   Eckis Kinderprogramme – Stylesheet
   ============================================= */

:root {
    --primary: #e8621a;
    --primary-dark: #c9511a;
    --dark: #1a2332;
    --gray: #555;
    --light: #f4f6f8;
    --border: #e8ecf0;
    --shadow: 0 2px 12px rgba(0,0,0,.10);
    --radius: 10px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: #333; background: #fff; line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- Top-Bar ---- */
.topbar { background: var(--dark); color: #aab; font-size: .82rem; padding: 7px 0; }
.topbar .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-phone { color: #fff; font-weight: 700; }
.topbar-slogan { flex: 1; }
.topbar-links { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-links a { color: #aab; transition: color .2s; display: flex; align-items: center; gap: 4px; }
.topbar-links a:hover { color: #fff; }

/* ---- Header ---- */
.site-header { background: #fff; border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }

.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 60px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.35rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.logo-sub  { font-size: .72rem; color: var(--gray); font-weight: 400; }

/* ---- Nav ---- */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-link { padding: 8px 14px; border-radius: 6px; font-size: .88rem; font-weight: 600; color: var(--dark); transition: all .15s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { cursor: pointer; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 240px; box-shadow: var(--shadow); z-index: 200; }
.dropdown-menu a { display: block; padding: 8px 14px; border-radius: 6px; font-size: .88rem; color: var(--dark); transition: all .15s; }
.dropdown-menu a:hover { background: var(--light); color: var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.hero-small { min-height: 220px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg-default { background: linear-gradient(135deg, var(--dark) 0%, #2d4a6e 50%, var(--primary) 100%); }
.hero-bg-verleih { background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 60%, var(--primary) 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero-content { position: relative; z-index: 1; padding-bottom: 40px; padding-top: 40px; color: #fff; }
.hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.4); margin-bottom: 12px; }
.hero-content p { font-size: 1.15rem; opacity: .9; }
.breadcrumb { font-size: .82rem; margin-bottom: 10px; opacity: .8; }
.breadcrumb a { color: #fff; }

/* ---- Seiten ---- */
.page-main { padding: 40px 0 60px; }
.section-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; text-align: center; }
.section-lead { text-align: center; color: var(--gray); margin-bottom: 30px; }

/* ---- Kategorien-Grid ---- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.category-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.category-card-img { height: 160px; background: var(--light) center/cover no-repeat; }
.category-card-noimg { display: flex; align-items: center; justify-content: center; }
.category-icon { font-size: 3.5rem; }
.category-card-body { padding: 16px; background: #fff; flex: 1; }
.category-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.item-count { font-size: .8rem; color: var(--gray); }

/* ---- Artikel-Grid ---- */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.item-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s; }
.item-card:hover { transform: translateY(-3px); }
.item-card-img { height: 160px; background: var(--light) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.item-no-img { background: #f0f0f0; }
.item-card-body { padding: 14px; background: #fff; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.item-card-body h4 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.item-desc { font-size: .82rem; color: var(--gray); }
.item-price { font-size: .85rem; font-weight: 700; color: var(--primary); margin-top: auto; }

/* ---- Item Detail ---- */
.item-gallery { margin-bottom: 28px; }
.gallery-main-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.item-description h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.item-price-box { font-size: 1.1rem; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.item-desc-text { color: var(--gray); line-height: 1.7; margin-bottom: 20px; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--radius); }

/* ---- Zwei-Spalten-Layout ---- */
.two-col-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.sidebar { }
.sidebar h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; color: var(--gray); margin-bottom: 10px; }
.sidebar-nav { list-style: none; }
.sidebar-nav a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; color: var(--dark); transition: all .15s; border-left: 3px solid transparent; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--light); color: var(--primary); border-left-color: var(--primary); }
.sidebar-cta-box { margin-top: 20px; background: var(--primary); color: #fff; border-radius: var(--radius); padding: 20px; }
.sidebar-cta-box h4 { color: #fff; font-size: .9rem; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.sidebar-cta-box p { font-size: .83rem; opacity: .9; margin-bottom: 14px; }

/* ---- Sections ---- */
.section-welcome { padding: 50px 0; }
.welcome-text { max-width: 750px; margin: 0 auto; text-align: center; font-size: 1.05rem; }
.section-categories { padding: 40px 0; }
.section-highlights { padding: 50px 0; }
.section-highlights.bg-light { background: var(--light); }
.highlight-text { max-width: 800px; margin: 0 auto 30px; text-align: center; }

.section-uses { margin-bottom: 40px; }
.section-uses h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.section-uses h3 { font-size: 1rem; color: var(--gray); margin-bottom: 12px; }
.uses-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.use-tag { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cat-nav-link { padding: 7px 14px; border: 2px solid var(--primary); border-radius: 6px; font-size: .85rem; font-weight: 600; color: var(--primary); transition: all .15s; }
.cat-nav-link:hover { background: var(--primary); color: #fff; }

/* ---- CTA Banner ---- */
.section-cta { padding: 50px 0; background: var(--dark); }
.cta-banner { text-align: center; color: #fff; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { opacity: .85; max-width: 600px; margin: 0 auto 24px; }

/* Sidebar CTA (sticky) */
.sidebar-cta { display: none; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 8px; font-size: .92rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---- Formulare ---- */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px;
    font-size: .95rem; font-family: inherit; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--primary); }
.form-hint { font-size: .8rem; color: #999; margin-top: 4px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; padding: 6px; border-radius: 6px; transition: background .15s; }
.checkbox-label:hover { background: var(--light); }
.checkbox-label input { width: auto; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* ---- Prose ---- */
.prose h2, .prose h3 { color: var(--dark); margin: 24px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 12px 0 14px 20px; }
.prose li { margin-bottom: 6px; }

/* ---- Kontakt ---- */
.contact-card { font-style: normal; line-height: 1.8; font-size: .95rem; }
.contact-card a { color: var(--primary); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #889; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; }
.footer-col h4 { color: #fff; font-size: .88rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #889; font-size: .88rem; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-col address { font-style: normal; font-size: .88rem; line-height: 1.7; }
.footer-col p { font-size: .88rem; line-height: 1.8; }
.footer-col p a { color: #889; }
.footer-col p a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid #2d3d52; margin-top: 40px; padding: 18px 0; }
.footer-bottom .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a { color: #889; transition: color .15s; }
.footer-bottom a:hover { color: var(--primary); }
.footer-copy { margin-left: auto; color: #566; }
.back-to-top { padding: 4px 10px; border: 1px solid #566; border-radius: 4px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--gray); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .two-col-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}

@media (max-width: 768px) {
    .topbar-slogan { display: none; }
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 3px solid var(--primary); padding: 12px; box-shadow: var(--shadow); z-index: 200; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
    .site-header { position: relative; }
    .header-inner { position: relative; }
    .hero { min-height: 280px; }
    .hero-small { min-height: 160px; }
    .hero-content h1 { font-size: 1.5rem; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .items-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .categories-grid, .items-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
