/* ============================================================
   884OAK  –  Stylesheet
   Warmes Eichenholz + Etsy-Wärme + Laser-Blau (#1BA2FC)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
    --oak-bg:     #f4ecdd;
    --oak-soft:   #efe5d2;
    --oak-grain:  #c9a877;
    --paper:      #fffdf9;
    --char:       #2a2218;
    --char-soft:  #6e6456;
    --laser:      #1ba2fc;
    --laser-deep: #0d7fcc;
    --ember:      #e8662e;   /* warmer Akzent (Etsy-Note), sparsam */
    --ember-soft: #fbe6da;
    --line:       #e7dcc6;
    --shadow:     0 12px 30px -16px rgba(42,34,24,.32);

    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body:    'Instrument Sans', system-ui, sans-serif;

    --r:  16px;
    --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    color: var(--char);
    background: var(--oak-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* ===== Kopfleiste ===== */
.eo-bar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 20px;
    height: 66px; padding: 0 24px;
    background: rgba(244,236,221,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.eo-logo { display: flex; align-items: center; flex: none; }
.eo-logo img { height: 44px; width: auto; display: block; }
.eo-spacer { flex: 1; }

.eo-menu { display: flex; align-items: center; gap: 22px; }
.eo-menu > a:not(.eo-etsy) {
    text-decoration: none; font-size: .95rem; font-weight: 500;
    color: var(--char-soft);
    padding: 6px 0; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s; white-space: nowrap;
}
.eo-menu > a:not(.eo-etsy):hover,
.eo-menu > a.active { color: var(--char); border-color: var(--laser); }

/* Etsy-Button: nicht schrumpfbar, klarer Innenabstand */
.eo-etsy {
    flex: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--laser); color: #fff;
    padding: 10px 20px; border-radius: 100px;
    font-weight: 600; font-size: .9rem; text-decoration: none;
    box-shadow: 0 6px 14px -6px rgba(27,162,252,.6);
    transition: background .2s, transform .15s, box-shadow .2s;
}
.eo-etsy:hover { background: var(--laser-deep); transform: translateY(-1px); }
.eo-etsy svg { width: 15px; height: 15px; flex: none; }

.eo-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.eo-burger span { display: block; width: 24px; height: 2px; background: var(--char); margin: 5px 0; }

/* ===== Hero ===== */
.hero { padding: 88px 0 60px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ember); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--ember); display: inline-block; }
.hero h1 {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    line-height: 1.02; letter-spacing: -.03em; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--laser); }
.hero p.lead { margin-top: 22px; font-size: 1.18rem; color: var(--char-soft); max-width: 54ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--body); font-weight: 600; font-size: 1rem;
    padding: 14px 26px; border-radius: 100px;
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--laser); color: #fff; box-shadow: 0 8px 18px -8px rgba(27,162,252,.6); }
.btn-primary:hover { background: var(--laser-deep); }
.btn-ghost { border-color: var(--char); color: var(--char); }
.btn-ghost:hover { border-color: var(--laser); color: var(--laser); }

.laserline { height: 2px; background: var(--laser); border: none; position: relative; overflow: visible; }
.laserline::after {
    content: ''; position: absolute; top: -2px; left: 0; width: 14px; height: 6px;
    border-radius: 50%; background: var(--laser);
    box-shadow: 0 0 10px 3px rgba(27,162,252,.7); animation: trace 6s linear infinite;
}
@keyframes trace { from { left: -14px; } to { left: 100%; } }

/* ===== Vertrauens-Leiste ===== */
.trust {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 11px; }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--laser); }
.trust-item b { display: block; font-size: .95rem; font-weight: 600; }
.trust-item span { font-size: .82rem; color: var(--char-soft); }

/* ===== Abschnitte ===== */
.section { padding: 76px 0; }
.section-head { margin-bottom: 38px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.section-head p { color: var(--char-soft); margin-top: 10px; max-width: 56ch; }

/* ===== Produktgitter ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 24px; }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--oak-grain); }
.card-img { aspect-ratio: 1/1; width: 100%; background: var(--oak-soft) center/cover no-repeat; }
.card-body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-size: .96rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.card-cta { font-size: .82rem; font-weight: 600; color: var(--laser); }

.grid-status { grid-column: 1/-1; text-align: center; padding: 48px 0; color: var(--char-soft); }
.skeleton .card-img { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .card-body span { display: block; height: 12px; background: var(--line); border-radius: 4px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ===== Die Idee / Story ===== */
.story { background: var(--oak-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 80px 0; }
.story-text h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 18px; }
.story-text p { color: var(--char-soft); font-size: 1.06rem; margin-bottom: 16px; }
.story-text p strong { color: var(--char); font-weight: 600; }
.story-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; box-shadow: var(--shadow); }
.story-card .badge {
    display: inline-block; background: var(--ember-soft); color: var(--ember);
    font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 100px; margin-bottom: 18px;
}
.story-card blockquote { font-family: var(--display); font-weight: 500; font-size: 1.32rem; line-height: 1.4; letter-spacing: -.01em; }
.story-card cite { display: block; margin-top: 18px; font-style: normal; font-size: .9rem; color: var(--char-soft); }

/* ===== So funktioniert's ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff; background: var(--laser); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--char-soft); font-size: .96rem; }

/* ===== Konfigurator-Boxen ===== */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.tool {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
    padding: 28px 26px; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tool:hover { transform: translateY(-5px); border-color: var(--laser); box-shadow: var(--shadow); }
.tool-num { font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--ember); letter-spacing: .05em; }
.tool h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.tool p { color: var(--char-soft); font-size: .96rem; }
.tool .arrow { margin-top: 6px; font-weight: 600; color: var(--laser); font-size: .9rem; }

/* ===== Schluss-Aufruf ===== */
.cta-band { text-align: center; padding: 72px 0; }
.cta-band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem,4vw,2.6rem); letter-spacing: -.02em; }
.cta-band p { color: var(--char-soft); margin: 12px auto 26px; max-width: 48ch; }

/* ===== Fußzeile ===== */
footer.site { border-top: 1px solid var(--line); padding: 44px 0; color: var(--char-soft); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner a { color: var(--char-soft); text-decoration: none; }
.footer-inner a:hover { color: var(--laser); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===== App-Shell (Konfigurator-Rahmenseiten) ===== */
body.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.app .eo-bar { position: relative; }
.tool-frame { flex: 1 1 auto; width: 100%; border: 0; display: block; background: var(--oak-bg); }
.eo-foot-min {
    flex: none; display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 9px 24px; font-size: .82rem;
    border-top: 1px solid var(--line); background: var(--paper); color: var(--char-soft);
}
.eo-foot-min a { color: var(--char-soft); text-decoration: none; }
.eo-foot-min a:hover { color: var(--laser); }

/* ===== Mobil ===== */
@media (max-width: 920px) {
    .story-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
    .trust { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .eo-burger { display: block; }
    .eo-spacer { display: none; }
    .eo-menu {
        position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--oak-bg); border-bottom: 1px solid var(--line);
        padding: 8px 24px 16px; display: none;
    }
    .eo-menu.open { display: flex; }
    .eo-menu > a:not(.eo-etsy) { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .eo-etsy { margin-top: 12px; justify-content: center; }
    .hero { padding: 54px 0 40px; }
}

:focus-visible { outline: 3px solid var(--laser); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }
