/* Mi Rancho – Übergangs-Website. Farben aus dem Pergamino-Entwurf der App. */
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --papier: #fbf5e9; --pergament: #f3e6cc; --tinte: #2b1d14; --leise: #6b5847; --wein: #7b2d26; --wein-dunkel: #5f211c;
  --gold: #8a6a2e; --rost: #a8432a; --linie: #e2d3b6;
  --titel: "Playfair Display", Georgia, "Times New Roman", serif; --text: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --papier: #1f1611; --pergament: #2c2019; --tinte: #f1e6d4; --leise: #c2ad93; --wein: #c9574b; --wein-dunkel: #a8433a; --gold: #d6b26e; --linie: #43332a; color-scheme: dark; }
  .kopf .logo.hell { display: none; } .kopf .logo.dunkel { display: block; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 17px/1.6 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--wein); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--papier); padding: 8px 12px; z-index: 10; }
.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); }
.kopf-innen { max-width: 1080px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 44px; width: auto; }
.logo.dunkel { display: none; }
.sprache { display: flex; gap: 2px; background: var(--pergament); border-radius: 999px; padding: 3px; font-size: 14px; font-weight: 600; }
.sprache > * { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--leise); }
.sprache [aria-current] { background: var(--papier); color: var(--tinte); }
.held { position: relative; max-width: 1080px; margin: 20px auto 0; border-radius: 18px; overflow: hidden; min-height: 460px; display: grid; align-items: end; margin-inline: max(16px, calc((100% - 1080px) / 2)); }
.held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,8,.05) 20%, rgba(20,12,8,.78) 100%); }
.held-text { position: relative; z-index: 1; padding: 32px 28px; display: grid; gap: 10px; color: #fbf5e9; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #e3c48d; }
h1, h2 { font-family: var(--titel); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 34px); color: var(--wein); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.knopf { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; background: rgba(251,245,233,.92); color: #2b1d14; }
.knopf.haupt { background: var(--rost); color: #fff; }
.knopf:hover { filter: brightness(1.08); }
.band { max-width: 760px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.band.breit { max-width: 1080px; }
.bio { font-size: 19px; color: var(--tinte); max-width: 62ch; margin: 0; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.galerie button { all: unset; cursor: zoom-in; display: block; border-radius: 10px; overflow: hidden; background: var(--pergament); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.galerie button:hover img { transform: scale(1.03); }
.galerie button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.kontakt { margin: 0; display: grid; gap: 14px; }
.kontakt > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.kontakt dt { font-weight: 600; color: var(--leise); }
.kontakt dd { margin: 0; }
.fuss { margin-top: 64px; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--linie); text-align: center; color: var(--leise); font-size: 14px; }
.fuss p { margin: 0 auto; max-width: 70ch; }
dialog { border: 0; padding: 0; background: rgba(15,10,7,.94); color: #f1e6d4; width: 100vw; height: 100vh; max-width: none; max-height: none; }
dialog[open] { display: grid; grid-template-rows: auto 1fr auto; }
dialog::backdrop { background: rgba(15,10,7,.9); }
.gross-leiste, .gross-blaettern { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.gross-blaettern { justify-content: center; }
dialog button { background: rgba(255,255,255,.12); color: #f1e6d4; border: 0; border-radius: 999px; padding: 8px 16px; font: 600 15px var(--text); cursor: pointer; }
#gross-bild { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
@media (max-width: 640px) {
  .held { min-height: 520px; }
  .held-text { padding: 24px 20px; }
  .kontakt > div { grid-template-columns: 1fr; gap: 2px; }
  .logo { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .galerie img { transition: none; } }
