/* Gemeinsame Bausteine. Jede Option setzt in style.css ihre Farben, Schriften und ihren eigenen Aufbau. */
@view-transition { navigation: auto; }
::view-transition-old(root){ animation: pw-out .28s ease both; }
::view-transition-new(root){ animation: pw-in .38s ease both; }
@keyframes pw-out { to { opacity: 0; } }
@keyframes pw-in { from { opacity: 0; } }

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{ margin: 0; background: var(--bg); color: var(--fg); font-family: var(--fb); font-size: 1.0625rem; line-height: 1.65; }
img,video{ max-width: 100%; display: block; }
a{ color: var(--accent); text-underline-offset: 4px; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
h1,h2,h3,h4{ font-family: var(--fh); font-weight: var(--hw, 500); line-height: 1.08; margin: 0; text-wrap: balance; }
p{ margin: 0 0 1em; }
figure{ margin: 0; }
.muted{ color: var(--muted); }
.lead{ color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; }
.kicker{ color: var(--accent); font-size: .9375rem; letter-spacing: .03em; margin-bottom: 16px; }
.cta{ display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }

.optbar{ display: flex; justify-content: space-between; gap: 16px; padding: 6px max(16px, env(safe-area-inset-left, 0px)); background: var(--fg); color: var(--bg); font-family: system-ui, sans-serif; font-size: .8125rem; position: relative; z-index: 30; }
.optbar a{ color: var(--bg); }

.lang{ display: inline-flex; gap: 8px; font-size: .8125rem; }
.lang b{ font-weight: 600; color: var(--fg); }
.lang a{ color: var(--muted); text-decoration: none; }
.brand{ color: var(--fg); text-decoration: none; }
.iglink{ display: inline; white-space: nowrap; text-decoration: none; margin-left: .1em; }
.iglink span{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.ico{ display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin-right: .2em; }

/* Bildboxen */
.ph34,.ph45,.ph43,.ph23,.ph916{ overflow: hidden; background: var(--surface); }
.ph34{ aspect-ratio: 3/4; } .ph23{ aspect-ratio: 2/3; } .ph45{ aspect-ratio: 4/5; } .ph43{ aspect-ratio: 4/3; } .ph916{ aspect-ratio: 9/16; }
.ph34 img,.ph45 img,.ph23 img,.ph43 img,.ph916 img,.ph916 video{ width: 100%; height: 100%; object-fit: cover; }
.vbox{ max-width: 380px; width: 100%; }
.ph{ display: flex; align-items: flex-end; padding: 14px; color: var(--muted); font-size: .875rem; background: var(--surface); }

.quote{ font-family: var(--fh); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; margin: 0; max-width: 30ch; }
.quote cite{ display: block; margin-top: 16px; font-family: var(--fb); font-style: normal; font-size: .9375rem; color: var(--muted); }
.big{ font-family: var(--fh); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 34ch; }

/* Video-Karte */
.vcard{ display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); background: var(--surface); text-decoration: none; color: var(--fg); overflow: hidden; }
.vimg{ position: relative; aspect-ratio: 16/9; display: block; }
.vimg img{ width: 100%; height: 100%; object-fit: cover; }
.play{ position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.play::after{ content: ""; border-left: 20px solid #1d1a17; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.vtxt{ padding: clamp(22px, 4vw, 40px); display: grid; gap: 8px; align-content: center; }
.vtxt small{ color: var(--muted); }
.vtxt strong{ font-family: var(--fh); font-weight: var(--hw, 500); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; }
.vtxt span{ color: var(--muted); }
.vtxt em{ font-style: normal; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Kontakt */
.mail{ font-family: var(--fh); font-size: clamp(1.5rem, 3.4vw, 2.4rem); text-decoration: none; overflow-wrap: anywhere; }
.clist{ display: grid; gap: 16px; margin: 28px 0 0; }
.clist dt{ font-size: .8125rem; font-weight: 600; color: var(--muted); }
.clist dd{ margin: 0; }

/* Schritte, Hölzer, Werte (Grundform) */
.steps,.timeline,.srow{ list-style: none; margin: 0; padding: 0; }
.steps li{ display: grid; grid-template-columns: 44px minmax(0,1fr); border-top: 1px solid var(--line); padding-block: 16px; }
.steps .n,.timeline .n,.srow .n{ color: var(--accent); font-family: var(--fh); font-size: 1.2rem; }
.steps b,.timeline b,.srow b{ display: block; font-family: var(--fh); font-weight: var(--hw, 500); font-size: 1.2rem; margin-bottom: 2px; }
.steps span:not(.n),.timeline span:not(.n),.srow span:not(.n){ color: var(--muted); }
.woods{ display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.woods li{ border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }
.vals{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 56px; }
.val{ border-top: 1px solid var(--line); padding-block: 20px 24px; }
.val h3{ font-size: 1.3rem; margin-bottom: 8px; }
.val p{ color: var(--muted); margin: 0; }
.art{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
figcaption{ margin-top: 8px; font-size: .9375rem; }
figcaption small{ display: block; color: var(--muted); font-size: .8125rem; }

/* Anfrage-Band und Fuß */
.band{ background: var(--surface); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px 64px; align-items: end; }
.band h2{ font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.band p{ color: var(--muted); max-width: 44ch; margin: 0; }
.foot{ border-top: 1px solid var(--line); font-size: .9375rem; }
.fwrap{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.foot h4{ font-size: 1.05rem; margin-bottom: 8px; }
.foot p{ color: var(--muted); margin: 0; }
.foot a{ color: var(--muted); }
.foot .iglink{ margin-left: 0; }
.foot .copy{ flex: 0 0 100%; font-size: .8125rem; }

.legal h2{ font-size: 1.1rem; margin: 28px 0 6px; color: var(--accent); }
.legal p{ max-width: 64ch; }

/* Lightbox */
.lb{ position: fixed; inset: 0; z-index: 50; background: rgba(20,18,16,.92); display: grid; place-items: center; padding: 56px 16px 16px; }
.lb[hidden]{ display: none; }
.lb img{ max-height: 86vh; width: auto; }
.lbx{ position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: 16px; font: inherit; color: #fff; background: none; border: 1px solid rgba(255,255,255,.5); padding: 8px 14px; cursor: pointer; }
.zoom{ display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

@media (max-width: 860px){
  .vcard,.band{ grid-template-columns: minmax(0,1fr); }
  .vals{ grid-template-columns: minmax(0,1fr); }
  .art{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fwrap{ flex-direction: column; }
}
@media (prefers-reduced-motion: reduce){ ::view-transition-old(root),::view-transition-new(root){ animation: none; } }

/* Holz-Auswahl auf der MÜ-Seite */
.holz-items > [hidden],.tree[hidden],[data-end][hidden]{ display: none !important; }
.hint2{ color: var(--muted); max-width: 62ch; }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.chip{ display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: .9375rem; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.chip span{ font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover{ border-color: var(--fg); }
.chip.nofoto{ border-style: dashed; color: var(--muted); }
.chip[aria-pressed="true"]{ background: var(--fg); border-color: var(--fg); border-style: solid; color: var(--bg); }
.chip[aria-pressed="true"] span{ color: inherit; opacity: .7; }
.hcount{ color: var(--muted); font-size: .875rem; margin: 6px 0 22px; }
.tree{ display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: clamp(20px,4vw,48px); align-items: center; padding: 26px 0 34px; margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tree-ph{ align-items: flex-end; }
.lat{ font-style: italic; color: var(--muted); font-size: .9375rem; margin: 0 0 4px; }
.tree h3{ font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.tree-t > p:not(.lat){ max-width: 52ch; }
.tnote{ color: var(--muted); font-size: .9375rem; margin: 0; }

/* Märkte */
.next-in{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 14px 20px; border: 1px solid var(--line); }
.next{ margin-top: 28px; }
.next p{ margin: 0; }
.next p span{ color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }
.mkt{ list-style: none; margin: 18px 0 20px; padding: 0; border-top: 1px solid var(--line); }
.mkt li{ display: grid; grid-template-columns: minmax(0,240px) minmax(0,1fr); gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.md{ margin: 0; } .md b{ display: block; font-weight: 500; font-size: 1.1rem; } .md span{ color: var(--muted); font-size: .9375rem; }
.mkt h3{ font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 4px; }
.mkt div p{ color: var(--muted); margin: 0; }
.small{ font-size: .875rem; }
.mcards{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.mcard{ background: var(--surface); padding: 24px; }
.mcard h3{ font-size: 1.4rem; margin-bottom: 10px; }
.mcard p{ color: var(--muted); }
.mcard p:last-child{ margin-bottom: 0; }
@media (max-width: 760px){
  .tree,.mkt li,.mcards{ grid-template-columns: minmax(0,1fr); }
  .tree-ph{ aspect-ratio: 16/9; }
}
@media (max-width: 560px){ .chips{ gap: 6px; } .chip{ min-height: 36px; padding: 4px 12px; font-size: .875rem; } }

/* Größen + Mahlwerk */
.mz-g{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px clamp(32px,6vw,80px); align-items: start; }
.mz h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.sizes{ width: 100%; border-collapse: collapse; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.sizes th,.sizes td{ text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.sizes thead th{ font-size: .8125rem; font-weight: 500; color: var(--muted); }
.sizes tbody th{ font-weight: 500; }
.g25{ display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.g25 b{ font-family: var(--fh); font-weight: var(--hw); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--accent); white-space: nowrap; }
.g25 span{ color: var(--muted); }
.next p[hidden],.next[hidden]{ display: none; }
@media (max-width: 760px){ .mz-g{ grid-template-columns: minmax(0,1fr); } }

/* Holzkarte ohne Stammbild */
.tree{ grid-template-columns: minmax(0,1fr); }
.tree-t > p:not(.lat){ max-width: 62ch; }

/* Alle Hölzer */
.woods-all h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.wa-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 32px; margin-top: 22px; border-top: 1px solid var(--line); }
.wa{ padding: 18px 0; border-bottom: 1px solid var(--line); }
.wa h3{ font-size: 1.3rem; margin-bottom: 2px; }
.wa .lat{ margin-bottom: 8px; }
.wa p{ font-size: .9375rem; margin-bottom: 6px; }
.wa p:last-child{ margin-bottom: 0; }
.wa-go{ font-size: .875rem; }
@media (max-width: 960px){ .wa-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px){ .wa-grid{ grid-template-columns: minmax(0,1fr); } }

/* Dein Baum */
.baum-in{ max-width: 720px; padding: clamp(28px,4vw,44px); border: 1px solid var(--line); }
.baum h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.baum .lead{ margin-bottom: 14px; }

/* Märkte als Kalenderblatt */
.mkt{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; border-top: 0; margin-top: 20px; }
.mkt li{ display: grid; grid-template-columns: 5.6em minmax(0,1fr); gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 4px; }
.tile{ margin: 0; text-align: center; border-right: 1px solid var(--line); padding-right: 14px; line-height: 1.1; }
.tile b{ display: block; font-family: var(--fb); font-size: 1.35rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile span{ display: block; margin-top: 4px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.mkt h3{ font-family: var(--fb); font-size: 1.125rem; font-weight: 700; margin-bottom: 0; }
.mkt .town{ margin: 0 0 8px; color: var(--fg); font-size: .9375rem; }
.mzeit{ margin: 0; font-size: .9375rem; }
.mzeit div{ display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 14px; }
.mzeit dt,.mzeit dd{ margin: 0; white-space: nowrap; }
.mzeit dd{ color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px){ .mkt{ grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px){ .mkt li{ grid-template-columns: 4.6em minmax(0,1fr); gap: 12px; padding: 14px; } .tile{ padding-right: 10px; } .tile b{ font-size: 1.02rem; } .mzeit{ font-size: .875rem; } }
.baum a{ white-space: nowrap; }

/* Marktfoto */
.mkt-foto{ width: min(720px, calc(100% - 40px)); margin: 0 auto 40px; aspect-ratio: 3/2; overflow: hidden; background: var(--surface); }
.mkt-foto img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.vimg img{ object-position: 50% 12%; }

/* Holz-Auswahl: weitere Hölzer als eine Zeile */
.more-woods{ color: var(--muted); font-size: .875rem; margin-top: 10px; max-width: 62ch; }
/* Dein Baum: Hinweis auf MÜ- und Anfrage-Seite, eigene Seite */
.baum-t .baum-in{ max-width: 560px; }
.baum-t h2{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.baum .go{ display: inline-block; margin-top: 6px; }
.baum-cta{ display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.baum-cta .mail{ font-family: inherit; font-size: inherit; line-height: inherit; white-space: normal; }
.art-lead{ max-width: 60ch; margin: 0 0 28px; }
.contact-only{ max-width: 720px; }

/* ---- Vorschlag: MÜ-Zeichen und Zeichnungen in allen Optionen ---- */
.logo-i{ display: block; width: 46px; height: auto; color: var(--fg); flex: none; }
.brand-l{ display: flex !important; align-items: center; gap: 14px; }
.brand-l span{ display: grid; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 14px; }
.side .brand .logo-i{ width: 58px; margin-bottom: 12px; }
.head-c .brand{ display: grid; justify-items: center; gap: 10px; }
.head-c .logo-i{ width: 54px; }
.t3 .head-c .logo-i{ width: 44px; }
.drw{ display: block; height: auto; color: var(--fg); }
.drw-mahl{ width: 120px; margin-bottom: 18px; opacity: .9; }
.contact-d{ align-items: center; }
.drw-box{ display: grid; place-items: center; }
.drw-muehle{ width: auto; max-height: 460px; max-width: 100%; opacity: .9; }
@media (max-width: 860px){ .drw-muehle{ max-height: 260px; } .drw-box{ order: 2; } }
.art-g + .art-g{ margin-top: 36px; }
.art-g h3{ margin: 0 0 14px; }
/* Kunst-Fotos sind kleine Scans: nie breiter als 260 px zeigen */
.art-g .art{ grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 540px; }
@media (min-width: 861px){ .art-g .art{ grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 1100px; } }
.hmore{ margin: 28px 0 0; text-align: center; }
.hmore[hidden]{ display: none; }

.art-g .art .art-wide{ grid-column: 1 / -1; }
@media (min-width: 861px){ .art-g .art .art-wide{ grid-column: span 2; } }
.art-wide img{ display: block; width: 100%; height: auto; }
.holz-band figure{ margin: 0; }
.holz-band img{ display: block; width: 100%; height: auto; }
