/* Dorfbeck – öffentliche Webseite. Frisches, warmes Bäckerei-Design. */
:root {
    --gold: #c9a24a;          /* kräftigeres Weizengold (Logo #D3BC8D aufgewertet) */
    --gold-soft: #d3bc8d;
    --espresso: #2a211a;      /* dunkles Braun (Header, Text) */
    --espresso-2: #3a2d21;
    --ink: #2b2219;           /* Fliesstext */
    --muted: #7a6b58;
    --cream: #faf6ee;         /* Seitengrund */
    --cream-2: #f3ebdd;       /* Sektions-Wechsel */
    --card: #ffffff;
    --line: #e8dec9;
    --shadow: 0 10px 30px rgba(42, 33, 26, .10);
    --shadow-sm: 0 4px 14px rgba(42, 33, 26, .08);
    --radius: 16px;
    --maxw: 1160px;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0; background: var(--cream); color: var(--ink);
    font-family: var(--sans); font-size: 17px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--espresso); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
    background: var(--gold); color: #2a211a; font-weight: 600; font-family: var(--sans);
    border: 0; border-radius: 999px; padding: .72em 1.5em; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,74,.4); background: #d7b057; }
.btn-ghost { background: transparent; color: var(--espresso); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: var(--gold); box-shadow: none; }
.btn-light { background: #fff; color: var(--espresso); }

/* ---------- Topbar ---------- */
.topbar { background: var(--espresso-2); color: #e9dcc4; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #f0e6d2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .5; margin: 0 .5em; }
.topbar-karte { font-weight: 600; color: var(--gold-soft) !important; }

/* ---------- Header / Nav ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--espresso); transition: box-shadow .2s, padding .2s; }
.site-head.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.head-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { height: 56px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > a {
    color: #efe6d4; text-decoration: none; font-weight: 500; font-size: .98rem;
    padding: .5em .85em; border-radius: 999px; transition: background .15s, color .15s; white-space: nowrap;
}
.mainnav > a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mainnav > a.active { color: var(--gold-soft); }
.btn-nav { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; width: 24px; background: #efe6d4; border-radius: 2px; transition: transform .2s, opacity .2s; margin: 0 auto; }
.nav-toggle.x span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.x span:nth-child(2) { opacity: 0; }
.nav-toggle.x span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--espresso); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,33,26,.4), rgba(42,33,26,.85)); }
.hero-in { position: relative; z-index: 2; padding: clamp(60px, 12vw, 140px) 0; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #f0e7d7; max-width: 600px; }
.hero .btn-row { margin-top: 1.6rem; display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; color: var(--gold); margin-bottom: .9rem; }
.hero .eyebrow { color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 92px) 0; }
.section.alt { background: var(--cream-2); }
.section.dark { background: var(--espresso); color: #f0e7d7; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.dark .section-head p { color: #d9ccb4; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--cream-2); }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); margin: 0; font-size: .98rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: #fbf3df; border: 1px solid var(--line); padding: .25em .7em; border-radius: 999px; margin-bottom: .7rem; }

/* feature list */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: #fbf3df; display: grid; place-items: center; font-size: 1.5rem; }
.feature h3 { margin: .1em 0 .3em; font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

/* split text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev .split-txt { order: 2; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-txt p { color: var(--muted); }

/* ---------- Standorte ---------- */
.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.std-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px; }
.std-card h3 { display: flex; align-items: center; gap: .5em; margin-bottom: .2em; }
.std-sub { color: var(--gold); font-weight: 600; font-size: .85rem; margin-bottom: .8rem; }
.std-adr { color: var(--muted); margin-bottom: 1rem; font-size: .96rem; }
.std-adr a { color: var(--espresso); text-decoration: none; font-weight: 500; }
.oez { width: 100%; border-collapse: collapse; font-size: .94rem; }
.oez td { padding: .28em 0; border-top: 1px solid var(--line); }
.oez td:first-child { color: var(--muted); white-space: nowrap; padding-right: 14px; }
.oez td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.oez tr:first-child td { border-top: 0; }
.std-hint { margin-top: 12px; font-size: .84rem; color: var(--muted); background: var(--cream-2); border-radius: 10px; padding: .6em .8em; }
.std-closed { color: #b0483a; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.team-ava { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: var(--gold-soft); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; }
.team-card .nm { font-weight: 600; color: var(--espresso); }
.team-card .fn { color: var(--muted); font-size: .9rem; }

/* chronik */
.chronik { max-width: 760px; margin: 0 auto; }
.chronik-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.chronik-item .jahr { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--espresso); }
.field label .req { color: #c0533f; }
.field input, .field textarea, .field select {
    font: inherit; padding: .72em .9em; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--cream); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.2); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.notice.ok { background: #e7f3e9; color: #27603a; border: 1px solid #bfe0c6; }
.notice.err { background: #fbe9e6; color: #9a3528; border: 1px solid #f2c7bf; }
.notice.err ul { margin: .4em 0 0; padding-left: 1.2em; }

/* contact info strip */
.kontakt-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 36px; }
.ki { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.ki .ic { font-size: 1.6rem; }
.ki a { color: var(--espresso); text-decoration: none; font-weight: 600; }

/* lead paragraph */
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.prose p { margin-bottom: 1rem; }
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; color: var(--muted); }

/* page hero (schlank) */
.page-hero { background: var(--espresso); color: #fff; padding: clamp(50px, 8vw, 90px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #efe6d4; max-width: 620px; margin: 0 auto; font-size: 1.15rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }

/* ---------- Footer ---------- */
.site-foot { background: var(--espresso); color: #d7cab2; padding: clamp(44px, 6vw, 70px) 0 0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.foot-logo { height: 54px; width: auto; margin-bottom: 14px; }
.foot-tag { color: #b5a58c; max-width: 260px; }
.foot-col h4 { color: #fff; font-family: var(--sans); font-size: .95rem; letter-spacing: .04em; margin-bottom: 14px; }
.foot-col p, .foot-col a { color: #cdbfa6; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-social { display: flex; gap: 14px; margin-top: 10px; font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.1); color: #9c8c73; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .mainnav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--espresso-2);
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 14px 18px;
        box-shadow: 0 16px 24px rgba(0,0,0,.3); display: none;
    }
    .mainnav.open { display: flex; }
    .mainnav > a { padding: .85em .6em; border-bottom: 1px solid rgba(255,255,255,.07); }
    .btn-nav { margin: 12px 0 0; justify-content: center; }
    .split { grid-template-columns: 1fr; }
    .split.rev .split-txt { order: 0; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .topbar-in span:first-child { display: none; }
    .chronik-item { grid-template-columns: 70px 1fr; gap: 12px; }
}

/* Karten-Links ohne Unterstreichung */
a.card, a.std-card { text-decoration: none; color: inherit; }
a.card h3 { color: var(--espresso); }
/* Medien-Galerie */
.medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.medien a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--espresso); }
.medien img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.medien span { display: block; padding: 10px 12px; font-size: .9rem; font-weight: 600; }

/* ---------- Saisonale Aktionen ---------- */
.aktion-band { background: var(--cream-2); padding: 34px 0 6px; }
.aktion-banner {
    display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 28px;
    background: linear-gradient(120deg, #fff 0%, #fbf3df 100%); border: 2px solid var(--gold);
    border-radius: 22px; padding: 18px 28px 18px 18px; margin-bottom: 26px; text-decoration: none; color: inherit;
    box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.aktion-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(42,33,26,.16); }
.aktion-banner img, .aktion-ph { width: 240px; height: 160px; object-fit: cover; border-radius: 14px; }
.aktion-ph { display: grid; place-items: center; font-size: 4rem; background: var(--cream-2); }
.aktion-txt h2 { margin: .1em 0 .25em; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.aktion-txt p { color: var(--muted); margin: 0; }
.aktion-txt .eyebrow { margin-bottom: .3rem; }
.aktion-mini { display: grid; gap: 12px; margin-bottom: 28px; }
.aktion-mini a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 20px; border: 2px solid var(--gold); border-radius: 14px; background: #fff; text-decoration: none; color: var(--espresso); }
.aktion-mini a span { color: var(--gold); font-weight: 600; white-space: nowrap; }
.aktion-hero { position: relative; overflow: hidden; }
.aktion-hero[style]::before { content: ""; position: absolute; inset: 0; background: var(--bg) center/cover; opacity: .3; }
.aktion-hero .wrap { position: relative; }
.aktion-zeitraum { margin-top: 1rem !important; display: inline-block; background: rgba(255,255,255,.1); padding: .35em 1em; border-radius: 999px; font-size: 1rem !important; }
.prod-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.prod-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); transition: border-color .15s, background .15s; }
.prod-item.gewaehlt { border-color: var(--gold); background: #fffaf0; }
.prod-name { font-weight: 600; color: var(--espresso); }
.prod-desc { font-size: .88rem; color: var(--muted); }
.prod-preis { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.prod-menge { display: flex; align-items: center; gap: 4px; }
.prod-menge input { width: 58px; text-align: center; font: inherit; padding: .45em .2em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; -moz-appearance: textfield; }
.prod-menge input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--gold-soft); color: var(--espresso); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty-btn:hover { background: var(--gold); }
.prod-total { text-align: right; font-weight: 700; font-size: 1.15rem; margin-top: 14px; color: var(--espresso); }
.prod-total span { font-family: var(--serif); font-size: 1.4rem; margin-left: .4em; }
@media (max-width: 760px) {
    .aktion-banner { grid-template-columns: 1fr; padding: 14px; gap: 14px; text-align: left; }
    .aktion-banner img, .aktion-ph { width: 100%; height: 170px; }
    .aktion-banner .btn { justify-self: start; }
    .prod-item { grid-template-columns: 1fr auto; }
    .prod-preis { grid-column: 1; grid-row: 2; }
    .prod-menge { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Standorte mit Bildern ---------- */
.std-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -8px auto 36px; max-width: 900px; }
.std-jump a { padding: .4em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--espresso); font-weight: 500; font-size: .92rem; transition: background .15s, border-color .15s; }
.std-jump a:hover { border-color: var(--gold); background: #fbf3df; }
.std-grid-img { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.std-card-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.std-card-img:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.std-card-img:target { outline: 3px solid var(--gold); outline-offset: 2px; }
.std-media { position: relative; }
.std-media button { border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.std-hero { position: relative; overflow: hidden; }
.std-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.std-hero:hover img { transform: scale(1.04); }
.std-count { position: absolute; right: 12px; bottom: 12px; background: rgba(42,33,26,.75); color: #fff; font-size: .8rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; backdrop-filter: blur(4px); }
.std-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 3px; }
.std-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .15s; }
.std-thumbs button:hover img { opacity: .8; }
.std-noimg { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--espresso), var(--espresso-2)); color: var(--gold-soft); font-family: var(--serif); font-size: 1.3rem; }
.std-noimg img { width: 140px; opacity: .9; }
.std-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.std-body h3 { margin-bottom: .1em; font-size: 1.45rem; }
.std-body .oez { margin-top: auto; }
.std-adr a { display: inline-block; margin-top: 4px; }
.std-map { margin-top: 16px; color: var(--gold); font-weight: 600; text-decoration: none; font-size: .92rem; align-self: flex-start; }
.std-map:hover { text-decoration: underline; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20,15,10,.94); display: flex; align-items: center; justify-content: center; padding: 50px 60px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-x { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb.single .lb-nav, .lb.single .lb-cnt { display: none; }
.lb-cnt { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cdbfa6; font-size: .9rem; }

/* Startseite: Filial-Kacheln mit Bild */
.std-teaser { padding: 0 !important; overflow: hidden; }
.std-teaser img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.std-teaser .std-teaser-body { padding: 16px 20px 20px; }
.std-teaser h3 { margin-bottom: .2em; }

@media (max-width: 560px) {
    .std-grid-img { grid-template-columns: 1fr; }
    .lb { padding: 50px 8px; }
    .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; background: rgba(0,0,0,.4); }
}

/* ---------- Offene Stellen ---------- */
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 20px 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.job-card h3 { margin: 0 0 .3em; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .93rem; }
.job-meta-hero { justify-content: center; color: #efe6d4; margin-top: 1rem; }
.job-meta-hero span { background: rgba(255,255,255,.1); padding: .3em .9em; border-radius: 999px; }
.job-go { color: var(--gold); font-weight: 600; white-space: nowrap; }
.job-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.job-h { font-size: 1.45rem; margin: 1.8rem 0 .6rem; }
.job-ul { list-style: none; padding: 0; margin: 0; }
.job-ul li { position: relative; padding: .45em 0 .45em 30px; border-bottom: 1px solid var(--line); }
.job-ul li::before { content: "✓"; position: absolute; left: 4px; top: .45em; color: var(--gold); font-weight: 700; }
.job-side { position: sticky; top: 100px; }
.job-side .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.job-file { padding: .55em !important; background: #fff !important; }
.job-kontakt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) {
    .job-layout { grid-template-columns: 1fr; }
    .job-side { position: static; }
    .job-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sortiment mit Produkten ---------- */
.sort-kat { scroll-margin-top: calc(var(--head-h, 76px) + 64px); padding: 18px 0 46px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.sort-kat:last-child { border-bottom: 0; }
.sort-head { max-width: 760px; margin-bottom: 26px; }
.sort-head h2 { margin-bottom: .15em; }
.sort-sub { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; margin-bottom: .6rem; }
.sort-desc { color: var(--muted); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0; cursor: zoom-in; text-align: left; font: inherit; color: var(--espresso); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #f6f2ea; }
.prod-card span { padding: 12px 14px 14px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-fig img { max-height: calc(100vh - 150px); }
.lb-cap { color: #fff; font-family: var(--serif); font-size: 1.3rem; margin-top: 14px; text-align: center; }
@media (max-width: 560px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .prod-card span { font-size: .85rem; padding: 9px 10px 11px; } }

/* ---------- Klebende Unter-Navigation (Sortiment, Über uns) ---------- */
.subnav { position: sticky; top: var(--head-h, 76px); z-index: 40; background: rgba(250,246,238,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 10px; }
.subnav a { padding: .4em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--espresso); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.subnav a:hover { border-color: var(--gold); background: #fbf3df; }
.subnav a.active { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.sub-target { scroll-margin-top: calc(var(--head-h, 76px) + 64px); }
@media (max-width: 760px) {
    .subnav .wrap { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 8px 16px; }
    .subnav .wrap::-webkit-scrollbar { display: none; }
}
