/* Dorfladen Oberornau – Content Page Styles */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --c-pri:var(--dl-green,#2d5016);--c-pri-h:var(--dl-green-h,#1b5e20);--c-pri-l:var(--dl-green-light,#e8f5e9);
  --c-acc:#ef6c00;--c-surf:#fff;--c-bg:#fafafa;--c-text:#212121;--c-sec:#616161;--c-brd:#e0e0e0;
  --sh-s:0 1px 3px rgba(0,0,0,.06);--sh-m:0 4px 12px rgba(0,0,0,.08);
  --r:8px;--max:1340px;--nh:54px;
  --f:'Segoe UI',system-ui,-apple-system,'Helvetica Neue',sans-serif;
}
html{font-size:15px;scroll-behavior:smooth}
body{font-family:var(--f);color:var(--c-text);background:var(--c-bg);line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--c-pri);text-decoration:none}
a:hover{color:var(--c-pri-h)}
img{max-width:100%;display:block}

/* TOPBAR */
.tb{background:var(--c-pri);font-size:.78rem;color:rgba(255,255,255,.85)}
.tb-in{max-width:var(--max);margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:4px 20px;gap:12px}
.tb a{color:rgba(255,255,255,.9)}.tb a:hover{color:#fff}
.tb-legal{display:flex;gap:14px}
@media(max-width:640px){.tb{display:none}}

/* NAV */
.nv{background:var(--c-surf);border-bottom:1px solid var(--c-brd);position:sticky;top:0;z-index:900;box-shadow:var(--sh-s)}
.nv-in{max-width:var(--max);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:var(--nh)}
.nv-logo{font-size:1.2rem;font-weight:700;color:var(--c-pri);display:flex;align-items:center;gap:8px;white-space:nowrap}
.nv-links{display:flex;gap:0;list-style:none;align-items:stretch;height:var(--nh)}
.nv-links>li{position:relative;display:flex;align-items:stretch}
.nv-links>li>a{display:flex;align-items:center;padding:0 14px;font-size:.88rem;font-weight:500;color:var(--c-text);transition:color .15s,box-shadow .15s;height:100%}
.nv-links>li>a:hover,.nv-links>li.act>a{color:var(--c-pri);box-shadow:inset 0 -3px 0 var(--c-pri)}
.nv-dd{display:none;position:absolute;top:100%;left:0;background:var(--c-surf);box-shadow:var(--sh-m);border-radius:0 0 var(--r) var(--r);min-width:210px;z-index:910;list-style:none;padding:4px 0}
.nv-links>li:hover .nv-dd{display:block}
.nv-dd a{display:block;padding:9px 18px;font-size:.85rem;color:var(--c-text);border-left:3px solid transparent;transition:all .12s}
.nv-dd a:hover{background:var(--c-pri-l);color:var(--c-pri);border-left-color:var(--c-pri)}
.nv-burger{display:none;background:none;border:none;font-size:1.4rem;color:var(--c-text);cursor:pointer;padding:6px}
@media(max-width:900px){
  .nv-burger{display:flex}
  .nv-links{display:none;position:absolute;top:var(--nh);left:0;right:0;background:var(--c-surf);flex-direction:column;box-shadow:var(--sh-m);border-top:1px solid var(--c-brd);height:auto;max-height:80vh;overflow-y:auto}
  .nv-links.open{display:flex}
  .nv-links>li{height:auto}
  .nv-links>li>a{padding:12px 20px;height:auto;border-bottom:1px solid #f5f5f5}
  .nv-links>li>a:hover{box-shadow:none;background:var(--c-pri-l)}
  .nv-dd{position:static;box-shadow:none;border-radius:0;padding-left:16px}
  .nv-links>li:hover .nv-dd{display:block}
}

/* BREADCRUMB */
.bc{max-width:var(--max);margin:0 auto;padding:12px 20px;font-size:.8rem;color:var(--c-sec)}
.bc a{color:var(--c-pri);font-weight:500}
.bc a:hover{text-decoration:underline}

/* CONTENT LAYOUT */
.ct-wrap{max-width:var(--max);margin:0 auto;padding:0 20px 40px;display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start}
@media(max-width:900px){.ct-wrap{grid-template-columns:1fr}}
.ct-full{max-width:var(--max);margin:0 auto;padding:0 20px 40px}

/* CONTENT CARD */
.ct{background:var(--c-surf);border-radius:var(--r);box-shadow:var(--sh-s);border:1px solid var(--c-brd);padding:28px 32px}
.ct h1{font-size:1.5rem;color:var(--c-pri);margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid var(--c-pri-l);letter-spacing:-.3px}
.ct h2{font-size:1.15rem;color:var(--c-pri);margin:20px 0 10px}
.ct h3{font-size:1rem;color:#5d4037;margin:16px 0 8px}
.ct p{margin-bottom:12px;line-height:1.65;color:#424242}
.ct ul,.ct ol{margin:10px 0 10px 22px}
.ct li{margin-bottom:5px;line-height:1.55}
.ct img{border-radius:var(--r);margin:16px 0;box-shadow:var(--sh-s)}
.ct a{font-weight:500}
.ct table{width:100%;border-collapse:collapse;margin:14px 0;font-size:.9rem}
.ct td,.ct th{padding:8px 10px;border-bottom:1px solid var(--c-brd);text-align:left}
.ct th{background:var(--c-pri-l);color:var(--c-pri);font-weight:600}
.ct blockquote{border-left:3px solid var(--c-pri);padding:12px 16px;background:var(--c-pri-l);border-radius:0 var(--r) var(--r) 0;margin:16px 0;font-style:italic;color:#555}
.ct strong{color:var(--c-text)}
@media(max-width:640px){.ct{padding:20px}}

/* SIDEBAR */
.sb{display:flex;flex-direction:column;gap:16px}
@media(max-width:900px){.sb{display:grid;grid-template-columns:1fr 1fr;gap:12px}}
@media(max-width:640px){.sb{grid-template-columns:1fr}}

.cd{background:var(--c-surf);border-radius:var(--r);box-shadow:var(--sh-s);overflow:hidden;border:1px solid var(--c-brd)}
.cd-h{padding:10px 14px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--c-pri);border-bottom:1px solid var(--c-brd);display:flex;align-items:center;gap:6px;background:#fafffe}
.cd-h svg{width:14px;height:14px;fill:var(--c-pri);flex-shrink:0}
.cd-b{padding:12px 14px;font-size:.85rem;line-height:1.65}

/* HOURS TABLE (sidebar) */
.hrs{width:100%;border-collapse:collapse;font-size:.83rem}
.hrs caption{text-align:left;font-weight:600;font-size:.85rem;padding:0 0 6px;color:var(--c-pri)}
.hrs td{padding:3px 0;border-bottom:1px solid #f5f5f5}
.hrs td:first-child{font-weight:500;width:80px}
.hrs-closed{color:#bbb;font-style:italic}
.hrs-g{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:480px){.hrs-g{grid-template-columns:1fr}}

/* DYNAMIC HOURS ON OEFFNUNGSZEITEN PAGE */
.dyn-hrs h3{color:var(--c-pri);font-size:1.05rem;margin:20px 0 8px}
.dyn-hrs table{width:100%;border-collapse:collapse;font-size:.92rem}
.dyn-hrs td{padding:6px 0;border-bottom:1px solid #f0f0f0}
.dyn-hrs td:first-child{font-weight:500;width:120px}

/* GALLERY */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:16px 0}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r);cursor:pointer;transition:transform .15s}
.gallery img:hover{transform:scale(1.02)}

/* FOOTER */
.ft{background:#263238;color:#b0bec5;padding:32px 20px 0;font-size:.82rem;margin-top:32px}
.ft-in{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px}
.ft h4{color:#fff;font-size:.85rem;margin-bottom:10px;text-transform:uppercase;letter-spacing:.4px}
.ft a{color:#90a4ae;transition:color .12s}.ft a:hover{color:#fff}
.ft ul{list-style:none}.ft li{margin-bottom:5px}
.ft-addr p{line-height:1.7}
.ft-bottom{max-width:var(--max);margin:20px auto 0;padding:14px 0;border-top:1px solid #37474f;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;font-size:.75rem;color:#78909c}
.ft-bottom a{color:#90a4ae}
@media(max-width:768px){.ft-in{grid-template-columns:1fr 1fr;gap:20px}.ft-bottom{flex-direction:column;text-align:center}}
@media(max-width:480px){.ft-in{grid-template-columns:1fr}}

/* COOKIE */
.cookie-bar{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:rgba(38,50,56,.97);color:#cfd8dc;padding:14px 20px;transform:translateY(100%);transition:transform .3s;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none}
.cookie-bar.show{transform:translateY(0);pointer-events:auto}
.cookie-inner{max-width:var(--max);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cookie-inner p{flex:1;min-width:260px;line-height:1.5;font-size:.82rem}
.cookie-inner a{color:var(--c-acc);text-decoration:underline}
.cookie-btns{display:flex;gap:8px;flex-shrink:0}
.cookie-btns button{padding:8px 18px;border:none;border-radius:var(--r);font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s}
.ck-accept{background:var(--c-pri);color:#fff}.ck-accept:hover{background:var(--c-pri-h)}
.ck-decline{background:transparent;color:#b0bec5;border:1px solid #546e7a}.ck-decline:hover{background:rgba(255,255,255,.08)}

.skip{position:absolute;left:-9999px;top:0;background:var(--c-pri);color:#fff;padding:8px 16px;z-index:10000;font-size:.85rem}
.skip:focus{left:0}

/* ============================================================
   DARK MODE / COLOR THEME SUPPORT (Content-/Info-Seiten)
   Aktiviert via data-theme="dark" auf <html> (siehe /js/theme.js)
   ============================================================ */
:root{color-scheme:light}
html[data-theme="dark"]{
  color-scheme:dark;
  --c-pri:#5cb85f; --c-pri-h:#74c777; --c-pri-l:#1e2a20;
  --c-acc:#ff9d4d; --c-surf:#1b2228; --c-bg:#12171a; --c-text:#e6eae8; --c-sec:#9aa6a0; --c-brd:rgba(255,255,255,0.10);
  --sh-s:0 1px 3px rgba(0,0,0,.4); --sh-m:0 4px 12px rgba(0,0,0,.5);
}
html[data-theme="dark"] .nv{box-shadow:0 1px 0 rgba(255,255,255,.03)}
/* Aktions-Links (Nav + Footer) tragen inline color:#2d5016 – im Dark Mode unlesbar.
   .dl-nav-action wird von /js/theme.js gesetzt. */
html[data-theme="dark"] a[style*="color:#2d5016"],
html[data-theme="dark"] .dl-nav-action{color:var(--c-pri-h)!important}
html[data-theme="dark"] #mob-push-toggle{background:var(--c-pri-l)!important}
@media(max-width:900px){
  html[data-theme="dark"] .nv-links{background:var(--c-surf)}
  html[data-theme="dark"] .nv-links>li>a{border-bottom-color:rgba(255,255,255,.06)}
}
html[data-theme="dark"] .ct h1{border-bottom-color:var(--c-brd)}
html[data-theme="dark"] .gallery img{border:1px solid var(--c-brd)}

/* Hartkodierte Textfarben in Content-Karten (waren dunkel-auf-dunkel) */
html[data-theme="dark"] .ct p,
html[data-theme="dark"] .ct li{color:#d5dbd7}
html[data-theme="dark"] .ct h3{color:#cbb08f}
html[data-theme="dark"] .ct blockquote{color:#c3ccc7}
html[data-theme="dark"] .ct td,
html[data-theme="dark"] .ct th{border-bottom-color:var(--c-brd)}
html[data-theme="dark"] .cd-h{background:#232c33}
html[data-theme="dark"] .hrs td{border-bottom-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .hrs td:first-child{color:var(--c-text)}
html[data-theme="dark"] .hrs-closed{color:#8b958f}
html[data-theme="dark"] .dyn-hrs td{border-bottom-color:rgba(255,255,255,.06)}

/* ============================================================
   Seiten-spezifische helle Komponenten im Dark Mode
   (aktuelles .news-*, bilder .gallery-filter-btn,
    sortiment .so-*, oeffnungszeiten inline-Tabelle)
   ============================================================ */
/* aktuelles: News-Karten */
html[data-theme="dark"] .news-card{background:var(--c-surf);border-color:var(--c-brd);box-shadow:0 2px 8px rgba(0,0,0,.4)}
html[data-theme="dark"] .news-page-header h2,
html[data-theme="dark"] .news-title{color:var(--c-text)}
html[data-theme="dark"] .news-page-header p,
html[data-theme="dark"] .news-excerpt,
html[data-theme="dark"] .news-full{color:#c3ccc7}
html[data-theme="dark"] .news-full{border-top-color:var(--c-brd)}
html[data-theme="dark"] .news-date-badge{background:#17301f;color:#8fd6ad;border-color:#2f5d42}
html[data-theme="dark"] .news-date-badge svg{fill:#8fd6ad}
html[data-theme="dark"] .news-more{color:#6fd39a}
html[data-theme="dark"] .news-more:hover{color:#8fd6ad}
html[data-theme="dark"] .news-share-btn{background:var(--c-surf);border-color:var(--c-brd);color:#9aa6a0}
html[data-theme="dark"] .news-share-btn:hover{background:#17301f;border-color:#2f5d42;color:#8fd6ad}

/* bilder: Filter-Pills */
html[data-theme="dark"] .gallery-filter-btn{background:#1b2228;border-color:var(--c-brd);color:var(--c-text)}
html[data-theme="dark"] .gallery-filter-btn:hover{background:#232c33}

/* sortiment: Preislisten-Browser */
html[data-theme="dark"] .so-header h2,
html[data-theme="dark"] .so-wg-name{color:var(--c-text)}
html[data-theme="dark"] .so-subtitle,
html[data-theme="dark"] .so-wg-meta,
html[data-theme="dark"] .so-td-bc{color:#9aa6a0}
html[data-theme="dark"] .so-filter-btn{background:#1b2228;border-color:var(--c-brd);color:#c3ccc7}
html[data-theme="dark"] .so-filter-btn:hover{background:#232c33;border-color:#3a444b}
html[data-theme="dark"] .so-filter-active{background:#17301f !important;border-color:#2f5d42 !important;color:#8fd6ad !important}
html[data-theme="dark"] .so-search input{background:#12171a;border-color:var(--c-brd);color:var(--c-text)}
html[data-theme="dark"] .so-group{border-color:var(--c-brd)}
html[data-theme="dark"] .so-toggle{background:#1b2228;color:var(--c-text)}
html[data-theme="dark"] .so-toggle:hover{background:#17301f}
html[data-theme="dark"] .so-table thead{background:#161c20}
html[data-theme="dark"] .so-table th{color:#9aa6a0;border-bottom-color:var(--c-brd)}
html[data-theme="dark"] .so-table td{border-top-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .so-table tr:hover{background:#17301f}
html[data-theme="dark"] .so-td-name{color:#d5dbd7}
html[data-theme="dark"] .so-td-price{color:#6fd39a}
html[data-theme="dark"] .so-statt{color:#9aa6a0}
html[data-theme="dark"] .so-row-rp:hover{background:#2c1b1b !important}
html[data-theme="dark"] .so-row-ang:hover{background:#2a2318 !important}
html[data-theme="dark"] .so-bc-notfound{background:#2a2410;border-color:#7c5e1a;color:#f5d98a}
html[data-theme="dark"] .so-bc-found{background:#12251c;border-color:#2f5d42;color:#8fd6ad}
html[data-theme="dark"] .so-bc-found .so-table{background:var(--c-surf)}

/* sortiment: Intro-Karte + Öko-Hinweis (klassen-/inline-hell) */
html[data-theme="dark"] .sort-orig{color:#c3ccc7}
html[data-theme="dark"] .sort-orig strong{color:#e6eae8}
html[data-theme="dark"] .sort-highlights{background:#1b2228;border-color:var(--c-brd)}
html[data-theme="dark"] .sort-eco{background:#1f2b23 !important;border-color:#2f5d42}
html[data-theme="dark"] .sort-divider{border-top-color:var(--c-brd)}
/* dunkelgrüne Inline-Farbe/Icons (#1e463a) auf Dunkel unlesbar -> helleres Grün */
html[data-theme="dark"] [style*="color:#1e463a"]{color:#8fd6ad !important}
html[data-theme="dark"] [stroke="#1e463a"]{stroke:#8fd6ad !important}

/* roter-punkt: Preislisten-Tabelle (klassen-hell, auch Desktop) */
html[data-theme="dark"] .rp-group{border-color:var(--c-brd)}
html[data-theme="dark"] .rp-toggle{background:#1b2228;color:var(--c-text)}
html[data-theme="dark"] .rp-toggle:hover{background:#232c33}
html[data-theme="dark"] .rp-wg-name{color:var(--c-text)}
html[data-theme="dark"] .rp-arrow{color:#9aa6a0}
html[data-theme="dark"] .rp-table thead{background:#161c20}
html[data-theme="dark"] .rp-table th{color:#9aa6a0;border-bottom-color:var(--c-brd)}
html[data-theme="dark"] .rp-table td{border-top-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .rp-table tr:hover{background:#2c1b1b}
html[data-theme="dark"] .rp-name{color:#d5dbd7}
html[data-theme="dark"] .rp-vk{color:#6fd39a}
html[data-theme="dark"] .rp-uvp,
html[data-theme="dark"] .rp-saving{color:#9aa6a0}


/* oeffnungszeiten: inline-gestylte Tabelle (helle Zebra-Zeilen/Ränder) */
html[data-theme="dark"] [style*="background:#f9f9f9"]{background:#161c20 !important}
html[data-theme="dark"] [style*="solid #e0e0e0"]{border-bottom-color:rgba(255,255,255,.06) !important}
/* roter-punkt Banner + andere helle Rot-Tints (inline) */
html[data-theme="dark"] [style*="background:#fef2f2"],
html[data-theme="dark"] [style*="background:#fff5f5"],
html[data-theme="dark"] [style*="background:#fdf2f2"]{background:#2c1b1b !important}
html[data-theme="dark"] [style*="color:#1f2521"]{color:#e6eae8 !important}
/* generische inline-helle Flächen auf Info-Seiten -> dunkel */
html[data-theme="dark"] [style*="background:#fff;"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background:#fafafa"],
html[data-theme="dark"] [style*="background:#f5f5f5"]{background:#1b2228 !important}


/* Theme-Umschalt-Button */
#dl-theme-toggle{position:fixed;left:16px;bottom:16px;z-index:9998;width:44px;height:44px;border-radius:50%;border:1px solid var(--c-brd);background:var(--c-surf);color:var(--c-text);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:transform .15s,background .2s;padding:0}
#dl-theme-toggle:hover{transform:scale(1.08)}
#dl-theme-toggle:active{transform:scale(.95)}
@media(max-width:600px){#dl-theme-toggle{width:40px;height:40px}}
