/* Hofladen Dörrheide – gemeinsames Stylesheet */

@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/public-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/public-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/public-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #1A1A1A;
  --muted: #5F5F5A;
  --line: #E4E4E0;
  --line-soft: #F0F0EC;
  --accent: #2F5D3A;
  --accent-dark: #1C3A24;
  --bg: #FFFFFF;
  --text-soft: #4F4F4A;
  --chip-line: #D9D9D3;
  --placeholder: #EEEEEA;
  --hover-bg: #F4F8F4;
  --band: #EDF3E9;
  --band-line: #DCE6D6;
  --wrap: 760px;
  color-scheme: light dark;
}

/* Dunkler Modus: folgt automatisch der Einstellung des Geräts */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ECECE7;
    --muted: #A9A9A1;
    --line: #2F332F;
    --line-soft: #262926;
    --accent: #8FCB9D;
    --accent-dark: #B7E0C1;
    --bg: #151715;
    --text-soft: #C4C4BC;
    --chip-line: #3B403B;
    --placeholder: #232623;
    --hover-bg: #1D241F;
    --band: #1C221D;
    --band-line: #2C352D;
  }
  .badge { border-radius: 6px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Kopfzeile */
.site-header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 16px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 10px 0; display: inline-block; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }

/* Abschnitte */
.section { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.section p { margin: 0 0 12px; }
.section p:last-child { margin-bottom: 0; }

.hero { padding-top: 8px; padding-bottom: 48px; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero h1 { margin: 28px 0 12px; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.lead { margin: 0; color: var(--muted); font-size: 20px; }
.hours-line { margin: 20px 0 0; font-weight: 600; }

/* Sortiment auf der Startseite */
.product-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.product-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.product-list strong { font-weight: 600; display: block; }
.product-list span { color: var(--muted); font-size: 16px; }
.more-link { display: inline-block; margin-top: 16px; font-weight: 600; padding: 6px 0; }

.badge { width: 100%; max-width: 400px; margin-top: 16px; }

/* Hellgrüne Bänder über die ganze Breite (Neuigkeiten, Betrieb) */
.band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); border-top-color: transparent; }
.band + .section { border-top-color: transparent; }
.band .news-item { border-bottom-color: var(--band-line); }

/* Neuigkeiten */
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.news-item:last-of-type { border-bottom: 0; }
.news-item time { display: block; color: var(--muted); font-size: 15px; }
.news-item p { margin: 0; }

/* Kontakt */
.contact-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 28px; background: var(--placeholder); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 48px; }
.label { color: var(--muted); font-size: 15px; display: block; }
.contact-grid a { overflow-wrap: anywhere; }

/* Fußzeile */
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer span { flex-grow: 1; }
.site-footer a { color: var(--muted); padding: 4px 0; }

/* Sortimentsseite */
.page-intro { padding-top: 16px; padding-bottom: 32px; }
.page-intro h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.page-intro p { margin: 0; color: var(--text-soft); font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.chips a { display: inline-block; border: 1px solid var(--chip-line); border-radius: 999px; padding: 8px 16px; font-size: 16px; color: var(--text); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.category { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 32px; scroll-margin-top: 16px; }
.category-text { flex: 1 1 360px; }
.category-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.category-head h2 { margin: 0; font-size: 26px; }
.origin { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.category-text p { color: var(--text-soft); }
.category ul { margin: 8px 0 0; padding-left: 20px; }
.category-photo { flex: 0 1 220px; width: 220px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--placeholder); }

.download { margin-top: 20px; display: inline-flex; align-items: center; gap: 14px; border: 1.5px solid var(--accent); border-radius: 10px; padding: 14px 18px; text-decoration: none; color: var(--text); }
.download:hover { background: var(--hover-bg); color: var(--text); }
.download svg { flex: none; }
.download strong { display: block; color: var(--accent); line-height: 1.3; }
.download small { display: block; color: var(--muted); font-size: 15px; line-height: 1.3; }

/* Rechtstexte */
.legal { padding-top: 16px; padding-bottom: 48px; }
.legal h1 { margin: 0 0 24px; font-size: clamp(30px, 5vw, 40px); line-height: 1.15; }
.legal h2 { margin: 32px 0 8px; font-size: 21px; }
.legal p, .legal ul { margin: 0 0 12px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand img { height: 48px; }
  .category-photo { width: 100%; flex-basis: 100%; }
  .site-footer span { flex-basis: 100%; }
}
