/* Haus Krinner – Design-System
   Schriften lokal gehostet (SIL OFL): Young Serif, Instrument Sans */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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 {
  --tanne: #1f3a2e;       /* Tannengrün: Flächen, Footer, Hero */
  --tanne-hell: #2d4d3d;
  --kalk: #f2f4ef;        /* Papier */
  --nebel: #dde3da;       /* Linien, Flächen */
  --tinte: #17211c;       /* Text */
  --tinte-weich: #475249;
  --enzian: #2f5597;      /* Aktionen */
  --enzian-dunkel: #234377;
  --heu: #c8a04a;         /* Akzent, sparsam */

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --lesen: 38rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--kalk);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--enzian); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--enzian-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--heu); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; max-width: var(--lesen); text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--kalk); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- Kopfbereich ---------- */
.site-header { background: var(--kalk); border-bottom: 1px solid var(--nebel); position: relative; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tanne); }
.brand:hover { color: var(--tanne); }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .8rem; color: var(--tinte-weich); margin-top: .25rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: .4rem 0; color: var(--tinte); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--heu); color: var(--tinte); }
.nav a[aria-current="page"] { border-bottom-color: var(--tanne); }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; background: var(--tanne); color: #fff; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, #2d4d3d 0%, #1f3a2e 55%, #16291f 100%); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 30, 22, .88) 0%, rgba(15, 30, 22, .7) 45%, rgba(15, 30, 22, .25) 100%); }
.hero-inner { padding-block: clamp(4rem, 14vw, 9rem) clamp(11rem, 26vw, 16rem); }
.hero h1 { margin-bottom: .35em; max-width: 12ch; }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 30rem; margin-bottom: 1.75rem; color: #eef2ec; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.ridge { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.ridge svg { width: 100%; height: auto; display: block; }
.ridge .back { fill: rgba(242, 244, 239, .32); }
.ridge .front { fill: var(--kalk); }
.peak-label { position: absolute; left: 72%; bottom: 87%; transform: translateX(-50%); text-align: center; color: #fff; font-size: clamp(.78rem, 1.5vw, .95rem); line-height: 1.2; white-space: nowrap; }
.peak-label strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15em; color: var(--heu); }
.peak-label::after { content: ""; display: block; width: 1px; height: clamp(.5rem, 1.5vw, 1.1rem); background: rgba(255, 255, 255, .7); margin: .3rem auto 0; }

/* ---------- Kopf Unterseiten ---------- */
.page-head { background: var(--tanne); color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.5rem, 6vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin: 0 0 .3em; }
.page-head p { color: #dfe7dc; margin: 0; font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.4rem; background: var(--enzian); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--enzian); border-radius: var(--radius); cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--enzian-dunkel); border-color: var(--enzian-dunkel); color: #fff; }
.btn-hell { background: #fff; color: var(--tanne); border-color: #fff; }
.btn-hell:hover { background: var(--kalk); border-color: var(--kalk); color: var(--tanne); }
.btn-rand { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-rand:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split.rev > :first-child { order: 2; }
}
.split.oben { align-items: start; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--tinte); }

.photo { position: relative; background: linear-gradient(150deg, var(--nebel), #c9d3c5); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.broken::after { content: attr(data-hint); position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; font-size: .9rem; color: var(--tinte-weich); }

/* Frühstücksband */
.band { background: var(--tanne); color: #fff; }
.band .split { align-items: stretch; }
.band h2 { color: #fff; }
.band p { color: #e3eadf; }
.band .photo { border-radius: 0; aspect-ratio: auto; min-height: 18rem; background: linear-gradient(150deg, #2d4d3d, #16291f); }
.band .text { padding-block: clamp(2.5rem, 7vw, 5rem); align-self: center; }
@media (min-width: 52rem) {
  .band .wrap { width: 100%; max-width: none; }
  .band .split { gap: 0; }
  .band .text { padding-inline: clamp(2rem, 6vw, 6rem); max-width: 40rem; }
}

/* Lage: Wege ab Haus */
.wege { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--nebel); }
.wege li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--nebel); }
.wege span:first-child { font-family: var(--serif); font-size: 1.2rem; }
.wege span:last-child { color: var(--tinte-weich); text-align: right; }

/* CTA-Band */
.cta { background: var(--nebel); }
.cta .wrap { display: grid; gap: 1.5rem; align-items: center; }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; }
.cta .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 52rem) { .cta .wrap { grid-template-columns: 1fr auto; } }
.cta .btn-rand { color: var(--tanne); border-color: var(--tanne); }
.cta .btn-rand:hover { background: rgba(31, 58, 46, .08); color: var(--tanne); border-color: var(--tanne); }

/* ---------- Zimmer ---------- */
.zimmer-reihe { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--nebel); }
.zimmer-reihe:last-of-type { border-bottom: 0; }
@media (min-width: 52rem) {
  .zimmer-reihe { grid-template-columns: 1fr 1fr; }
  .zimmer-reihe.rev .zimmer-text { order: 2; }
}
.zimmer-text .preis { display: inline-block; margin-top: .25rem; padding: .35rem .8rem; background: #fff; border: 1px solid var(--nebel); border-radius: var(--radius); font-weight: 600; }
.galerie { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.galerie.zwei { grid-template-columns: repeat(2, 1fr); }
.galerie .photo { aspect-ratio: 1; padding: 0; border: 0; width: 100%; cursor: zoom-in; display: block; font: inherit; }
.galerie button.photo:hover img { filter: brightness(1.06); }
.galerie .gross { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 70rem); max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 20, 15, .88); }
.lightbox img { max-width: 100%; max-height: 90vh; margin: auto; border-radius: var(--radius); }
.lightbox form { position: absolute; top: .5rem; right: .5rem; margin: 0; }
.lightbox button { background: #fff; border: 0; border-radius: var(--radius); padding: .5rem .9rem; font: 600 .95rem var(--sans); cursor: pointer; color: var(--tinte); }

/* ---------- Preise ---------- */
.preistabelle { width: 100%; border-collapse: collapse; margin-bottom: 2.5rem; max-width: 46rem; }
.preistabelle caption { text-align: left; font-family: var(--serif); font-size: 1.5rem; padding-bottom: .75rem; }
.preistabelle th, .preistabelle td { text-align: left; padding: 1.1rem 0; border-bottom: 1px solid var(--nebel); vertical-align: baseline; }
.preistabelle thead th { font-size: .9rem; color: var(--tinte-weich); font-weight: 500; padding-block: .5rem; border-bottom: 2px solid var(--tanne); }
.preistabelle tbody th { font-weight: 500; }
.preistabelle small { display: block; color: var(--tinte-weich); font-weight: 400; }
.preistabelle td:last-child, .preistabelle th:last-child { text-align: right; }
.preistabelle .betrag { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.hinweise { margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.hinweise li { padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--nebel); position: relative; }
.hinweise li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: .6rem; height: .6rem; background: var(--heu); border-radius: 50%; }

/* ---------- Kontakt ---------- */
.adresse { font-style: normal; font-size: 1.15rem; line-height: 1.7; }
.kontaktliste { list-style: none; padding: 0; margin: 1.5rem 0; }
.kontaktliste li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--nebel); }
.kontaktliste span:first-child { min-width: 5.5rem; color: var(--tinte-weich); }
.hilfe { font-size: .9rem; color: var(--tinte-weich); max-width: none; margin-top: 1rem; }

/* ---------- Text-Seiten (Impressum, Datenschutz) ---------- */
.prose { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; margin-top: 1.6em; }
.prose p, .prose li { max-width: 44rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tanne); color: #dfe7dc; padding-block: 3rem 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--heu); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 .6rem; }
.site-footer p, .site-footer address { margin: 0 0 .4rem; font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: ein .7s ease-out both; }
  .hero-inner > :nth-child(2) { animation-delay: .1s; }
  .hero-inner > :nth-child(3) { animation-delay: .2s; }
  @keyframes ein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 30rem) {
  .brand-sub { display: none; }
  .wege li { flex-direction: column; gap: .1rem; }
  .wege span:last-child { text-align: left; }
}
@media print {
  .site-header .nav, .hero-img, .ridge, .cta { display: none; }
  body { background: #fff; }
}

/* ---------- Buchungswidget ---------- */
.buchung { background: #fff; border-top: 1px solid var(--nebel); }
.buchung-box { margin-top: 1.5rem; }
.buchung-consent { background: var(--kalk); border: 1px solid var(--nebel); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); max-width: 46rem; }
.buchung-consent p:last-child { margin-bottom: 0; }
.buchung-fallback { background: var(--kalk); border-left: 4px solid var(--heu); padding: 1rem 1.25rem; max-width: 46rem; }
.buchung-fallback[hidden], .buchung-consent[hidden] { display: none; }

/* ---------- Zimmerdaten und Fakten ---------- */
.daten { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0 0 1rem; padding: 0; }
.daten div { display: flex; gap: .45rem; }
.daten dt { color: var(--tinte-weich); }
.daten dt::after { content: ":"; }
.daten dd { margin: 0; font-weight: 500; }
.fakten-sektion { background: #fff; border-top: 1px solid var(--nebel); }
.fakten { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.fakten h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.fakten ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--nebel); }
.fakten li { padding: .6rem 0; border-bottom: 1px solid var(--nebel); }
.preistabelle td:nth-child(2) { color: var(--tinte-weich); white-space: nowrap; padding-inline: 1rem; }
@media (max-width: 30rem) { .preistabelle .betrag { font-size: 1.2rem; } .preistabelle td:nth-child(2) { padding-inline: .5rem; } }

p + h2, table + h2 { margin-top: 1.8em; }

.buchung-rahmen { display: block; width: 100%; min-height: 32rem; border: 0; background: #fff; }
.buchung-rahmen[hidden] { display: none; }
.anreise { background: #fff; border: 1px solid var(--nebel); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.anreise h2 { font-size: 1.6rem; }
.anreise p:last-child { margin-bottom: 0; }

/* Fehlt ein Foto, nimmt der Text die ganze Breite */
.split > :only-child, .zimmer-reihe > :only-child { grid-column: 1 / -1; }
.zimmer-reihe.rev > .zimmer-text:only-child { order: 0; }

.hero.mit-foto .peak-label { background: rgba(15, 30, 22, .72); padding: .35rem .7rem; border-radius: 6px; text-shadow: none; }
.hero.mit-foto .peak-label::after { background: rgba(255, 255, 255, .85); }
.hero.mit-foto h1, .hero.mit-foto .hero-lead { text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
