/* Mati's Homestay – Gestaltung
   Farben aus den Fotos (siehe docs/designrichtung.md), Schriften lokal in /fonts.
   Mobil zuerst: Alles unter "@media (min-width: 900px)" gilt nur für große Bildschirme. */

@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-500-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../fonts/kalam-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
/* Hindi-Überschriften. Wird nur geladen, wenn auf der Seite Devanagari steht.
   Hindi-Fließtext nutzt die Systemschrift des Handys (spart Ladezeit). */
@font-face { font-family: "Tiro Devanagari Hindi"; src: url("../fonts/tiro-devanagari-hindi-devanagari.woff2") format("woff2");
  font-weight: 400 500; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
/* ₹ (U+20B9) ist absichtlich nicht dabei: Sonst würden auch die englischen Seiten diese 64-KB-Schrift laden. */

:root {
  /* Palette */
  --kalk: #F1ECE2;    /* gekalkte Wand: Hintergrund */
  --lehm: #E4DCCB;    /* Flächen, Zitate */
  --rauch: #2A2521;   /* Text */
  --tuer: #2F4E73;    /* geschnitzte Tür: Überschriften, Links */
  --glut: #B0461C;    /* Feuer, rote Traufe: Akzente */
  --erde: #6A5943;    /* Terrassen: Bildunterschriften */
  --holz: #A8875F;    /* Holztreppe: nur Linien */
  --schnee: #D9E0E7;  /* Gipfel: Kästen mit praktischen Infos */
  --wa: #25D366;      /* WhatsApp-Grün, nur mit dunkler Schrift */

  --serif: "Alegreya", "Tiro Devanagari Hindi", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 76rem;
  color-scheme: light;
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--rauch);
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; max-width: 34em; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--tuer);
  line-height: 1.08;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 10vw, 5.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
a { color: var(--tuer); text-decoration-color: var(--holz); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--glut); outline-offset: 3px; }
time, .hand { font-family: var(--hand); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--kalk); padding: 0.5rem 1rem; z-index: 10; }

/* Noch offene Angaben: gut sichtbar, damit nichts Erfundenes online geht */
.todo {
  font-size: 0.85em;
  color: var(--glut);
  border: 1px dashed var(--glut);
  padding: 0 0.35em;
  border-radius: 3px;
}

/* Kopf */
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem var(--gutter) 0.9rem;
}
.brand { order: 1; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--tuer); text-decoration: none; }
.brand small { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--erde); }

/* Sprachknopf: zwei Hälften, die aktive Sprache ist blau gefüllt */
.lang { order: 2; display: flex; border: 1px solid var(--tuer); border-radius: 2rem; overflow: hidden; font-size: 0.95rem; }
.lang a { display: block; padding: 0.6rem 0.85rem; line-height: 1.1; text-decoration: none; }
.lang a[aria-current="page"] { background: var(--tuer); color: var(--kalk); }
.lang a:not([aria-current]):hover { background: var(--lehm); }

.main-nav { order: 3; flex-basis: 100%; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: inline-block; padding: 0.3rem 0; text-decoration: none; font-size: 1.02rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--glut); text-decoration-thickness: 2px; }

/* Zettel, wie an einer Hüttentür */
.note {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--glut);
  background: var(--kalk);
  border: 1px solid var(--holz);
  padding: 0.3rem 0.8rem;
  transform: rotate(-2deg);
  text-decoration: none;
}
a.note:hover { border-color: var(--glut); }

.caption, figcaption { font-size: 0.92rem; line-height: 1.4; color: var(--erde); }
.caption time, figcaption time { color: var(--glut); font-size: 1.1em; }

/* Panorama oben */
.hero { position: relative; margin-bottom: clamp(3rem, 9vw, 6rem); }
.hero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.hero-card {
  position: relative;
  max-width: 40rem;
  margin: -3.25rem var(--gutter) 0 0;
  padding: 1.1rem var(--gutter) 0.4rem;
  background: var(--kalk);
}
.hero-card h1 { font-size: clamp(2.7rem, 9vw, 4.2rem); }
.hero-card .lede { font-size: 1.12em; }
.hero .caption { margin: 0.9rem var(--gutter) 0; }

/* Mati */
.mati { margin: 0 0 clamp(4rem, 12vw, 8rem); }
.mati figure { margin-right: 14vw; }
.mati-text {
  position: relative;
  margin: -3rem var(--gutter) 0 10vw;
  padding: 1.2rem 0 0.2rem 1.2rem;
  background: var(--kalk);
  border-left: 3px solid var(--glut);
}
.sign { font-family: var(--hand); font-size: 1.35rem; color: var(--erde); }

/* Ein Tag bei Mati */
.day > header { padding: 0 var(--gutter); margin-bottom: 2.5rem; }
.day > header p { color: var(--erde); }
.timeline { list-style: none; margin: 0; padding: 0; }
.t { margin: 0 0 clamp(3rem, 9vw, 5.5rem); }
.t figure { margin-right: 12vw; }
.t--right figure { margin: 0 0 0 12vw; }
.t--wide figure, .t--pano figure { margin: 0; }
.t--small figure { margin: 0 30vw 0 var(--gutter); }
.t-text { padding: 0.9rem var(--gutter) 0; }
.t--right .t-text { padding-left: calc(12vw + var(--gutter)); }
.t time {
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--glut);
  transform: rotate(-3deg);
  margin-bottom: 0.4rem;
}
.t p { max-width: 26em; }

/* Wege zu Zimmer, Essen, Anreise */
.ways { padding: 0 0 clamp(3rem, 8vw, 5rem); }
.ways > h2 { padding: 0 var(--gutter); margin-bottom: 1.5rem; }
.way { margin-bottom: 3.5rem; }
.way img { width: 100%; object-fit: cover; }
.way-text { padding: 1rem var(--gutter) 0; }
.way h3 a { text-decoration: none; }
.way h3 a::after { content: " →"; color: var(--glut); }
.way--room figure { margin-right: 22vw; }
.way--room img { aspect-ratio: 4 / 5; }
.way--food figure { margin-left: 30vw; }
.way--food img { aspect-ratio: 4 / 3; }
.way--road img { aspect-ratio: 16 / 9; }
.way--road .way-text { background: var(--schnee); margin: -2rem var(--gutter) 0 0; padding: 1.2rem var(--gutter); position: relative; }

/* Gäste */
.voices { padding: 0 var(--gutter) clamp(3rem, 8vw, 5rem); }
.voices blockquote {
  margin: 0 0 1.8rem;
  padding: 1.3rem 1.4rem 1rem;
  background: var(--lehm);
  max-width: 34rem;
}
.voices blockquote:nth-of-type(2) { margin-left: auto; transform: rotate(0.6deg); }
.voices blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.3em; line-height: 1.35; }
.voices cite { font-style: normal; color: var(--erde); }

/* Kontakt */
.contact {
  margin: 0 var(--gutter) clamp(3rem, 8vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--holz);
}
.buttons { display: flex; flex-direction: column; gap: 0.8rem; margin: 1.5rem 0 1rem; max-width: 26rem; }
.buttons .btn { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.btn svg { flex: none; width: 1.5rem; height: 1.5rem; }
.btn--wa { background: var(--wa); color: var(--rauch); }
.btn--wa:hover { background: #1fbd5b; }
.btn--tel { border: 2px solid var(--tuer); color: var(--tuer); }
.btn--tel:hover { background: var(--lehm); }
.contact .small { font-size: 0.95rem; color: var(--erde); }
.contact .price { padding: 0.9rem 1.1rem; background: var(--lehm); max-width: 30em; }
.contact .price strong { font-family: var(--serif); font-weight: 500; font-size: 1.3em; color: var(--tuer); }

/* Hindi: Devanagari braucht mehr Zeilenabstand */
:lang(hi) body, body:lang(hi) { line-height: 1.75; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.3; }

/* Unterseiten */
.page-intro { padding: 1.5rem var(--gutter) 2.5rem; max-width: var(--wide); margin: 0 auto; }
.page-intro h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
.lede { font-size: 1.15em; max-width: 30em; }
.section { padding: 0 var(--gutter); max-width: var(--wide); margin: 0 auto clamp(3rem, 8vw, 5rem); }

.split { margin: 0 0 clamp(3rem, 8vw, 5rem); }
.split figure { margin-right: 12vw; }
.split--rev figure { margin: 0 0 0 12vw; }
.split-text { padding: 1rem var(--gutter) 0; }
/* Kleine Fotos (z. B. Essen) nicht über ihre echte Größe hinaus aufblasen */
.split--small figure img { max-width: 20rem; }
.split--small.split--rev figure img { max-width: 15rem; margin-left: auto; }
.way--food figure { max-width: 20rem; }

.facts {
  margin: 0 var(--gutter) clamp(3rem, 8vw, 5rem);
  padding: 1.2rem 1.4rem 0.4rem;
  background: var(--lehm);
  border-left: 3px solid var(--glut);
  max-width: 40rem;
}
.facts strong { font-family: var(--serif); font-weight: 500; font-size: 1.25em; color: var(--tuer); }

.box-info { background: var(--schnee); padding: 1.3rem 1.4rem 0.5rem; max-width: 40rem; }

.video { margin: 0 var(--gutter) clamp(3rem, 8vw, 5rem); max-width: 22rem; }
.video--wide { max-width: 48rem; }
.video video { display: block; width: 100%; height: auto; background: var(--rauch); }
.video figcaption { margin-top: 0.5rem; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 0.8rem;
  padding: 0 var(--gutter);
  max-width: var(--wide);
  margin: 0 auto clamp(3rem, 8vw, 5rem);
  align-items: start;
}
.video-grid figure { margin: 0; }
.video-grid .wide { grid-column: 1 / -1; }
.video-grid video { display: block; width: 100%; height: auto; background: var(--rauch); }
.video-grid figcaption { margin-top: 0.4rem; }
.q-switch {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--tuer);
  background: none;
  border: 1px solid var(--holz);
  border-radius: 2rem;
  cursor: pointer;
}
.q-switch:hover { border-color: var(--tuer); }
.q-switch[hidden] { display: none; }

.map { position: relative; max-width: 25rem; margin: 0 0 0.6rem; }
.map img { width: 100%; border: 1px solid var(--holz); }
.pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--glut); border: 3px solid var(--kalk); }
.pin-label {
  position: absolute;
  margin: -0.85rem 0 0 0.9rem;
  padding: 0 0.4rem;
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--glut);
  background: var(--kalk);
  white-space: nowrap;
}

.gallery { columns: 2 9rem; column-gap: 0.8rem; padding: 0 var(--gutter); max-width: var(--wide); margin: 0 auto 3rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.gallery a { display: block; }
.gallery figcaption { margin-top: 0.3rem; }

.faq { padding: 0 var(--gutter); max-width: 46rem; margin: 0 auto clamp(3rem, 8vw, 5rem); }
.faq details { border-top: 1px solid var(--holz); padding: 0.4rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--holz); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--tuer);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--glut); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-left: 0; }

/* Fuß: dunkel wie die Nacht am Feuer */
.site-foot { background: var(--rauch); color: var(--lehm); padding: 2.5rem var(--gutter) 3rem; font-size: 0.98rem; }
.site-foot a { color: var(--schnee); text-decoration-color: var(--erde); }
.site-foot h2 { color: var(--kalk); font-size: 1.6rem; }
.site-foot address { font-style: normal; margin-bottom: 1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.site-foot .made { font-family: var(--hand); font-size: 1.1rem; color: var(--holz); max-width: 30em; }

/* Große Bildschirme */
@media (min-width: 900px) {
  .site-head { flex-wrap: nowrap; padding-top: 1.4rem; }
  .main-nav { order: 2; flex-basis: auto; margin-left: auto; margin-right: 1.5rem; }
  .lang { order: 3; }

  .hero img { aspect-ratio: 16 / 9; max-height: 86vh; }
  .hero-card { margin: -9rem 0 0 6vw; padding: 2rem 2.5rem 0.6rem; max-width: 48rem; }
  .hero-card h1 { font-size: clamp(3.6rem, 6vw, 5.4rem); }
  .buttons { flex-direction: row; max-width: none; }
  .hero .caption { margin-left: calc(6vw + 2.5rem); }

  .mati { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; max-width: var(--wide); margin-inline: auto; }
  .mati figure { grid-column: 1 / 7; grid-row: 1; margin: 0; }
  .mati-text { grid-column: 6 / 12; grid-row: 1; margin: 6rem 0 0; padding: 2rem 2rem 1rem 2.2rem; }

  .day > header, .ways > h2 { max-width: var(--wide); margin-inline: auto; }
  .t { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; max-width: var(--wide); margin-inline: auto; }
  .t figure { grid-column: 1 / 8; grid-row: 1; margin: 0; }
  .t-text { grid-column: 8 / 12; grid-row: 1; padding: 0 0 1rem 2.5rem; }
  .t--right figure { grid-column: 6 / 13; margin: 0; }
  .t--right .t-text { grid-column: 2 / 6; padding: 0 2.5rem 1rem 0; text-align: right; }
  .t--right .t-text p { margin-left: auto; }
  .t--wide figure { grid-column: 1 / 11; }
  .t--wide .t-text { grid-column: 9 / 13; grid-row: 2; margin-top: -4rem; background: var(--kalk); padding: 1.5rem 2rem 0.5rem; }
  .t--pano { max-width: none; }
  .t--pano figure { grid-column: 1 / 13; }
  .t--pano .t-text { grid-column: 2 / 6; grid-row: 2; margin-top: -3rem; background: var(--kalk); padding: 1.3rem 1.8rem 0.4rem; }
  .t--small figure { grid-column: 3 / 7; margin: 0; }
  .t--small .t-text { grid-column: 7 / 11; }
  .t--tall figure { grid-column: 2 / 6; }
  .t--tall .t-text { grid-column: 6 / 10; align-self: center; }
  .t--right.t--tall figure { grid-column: 8 / 12; }
  .t--right.t--tall .t-text { grid-column: 3 / 8; }

  .ways { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
  .ways > h2 { grid-column: 1 / 13; padding: 0; }
  .way { margin: 0; }
  .way-text { padding: 1rem 0 0; }
  .way--room { grid-column: 1 / 6; }
  .way--room figure { margin: 0; }
  .way--food { grid-column: 7 / 11; margin-top: 7rem; }
  .way--food figure { margin: 0; }
  .way--road { grid-column: 2 / 12; margin-top: 4rem; }
  .way--road .way-text { margin: -5rem 0 0 auto; max-width: 30rem; padding: 1.5rem 2rem; }

  .voices { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: var(--wide); margin-inline: auto; align-items: start; }
  .voices h2 { grid-column: 1 / 3; }
  .voices blockquote:nth-of-type(2) { margin-top: 3rem; }

  .contact { max-width: var(--wide); margin-inline: auto; padding-inline: 0; }

  .split { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; max-width: var(--wide); margin-inline: auto; }
  .split figure { grid-column: 1 / 7; grid-row: 1; margin: 0; }
  .split-text { grid-column: 8 / 12; grid-row: 1; padding: 0; }
  .split--rev figure { grid-column: 7 / 13; }
  .split--rev .split-text { grid-column: 2 / 6; }
  .facts, .video { margin-left: calc((100vw - min(100vw, var(--wide))) / 2 + var(--gutter)); }
  .gallery { columns: 3 14rem; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid .wide { grid-column: span 2; }
  .route { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .site-foot > div { max-width: var(--wide); margin-inline: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; }
}

@media (min-width: 1400px) {
  .contact { margin-inline: auto; }
}
