/* =========================================================================
   Alte Hafnerei Schladming — style.css
   Mobile-first. Breakpoints: Tablet >=768px, Desktop >=1024px.
   ========================================================================= */

/* ---------- Fonts (self-hosted, kein Google-CDN zur Laufzeit) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --primary: #4C7A34;
  --primary-dark: #325523;
  --background: #FFFFFF;
  --surface: #F7F5EF;
  --text: #333333;
  --text-soft: #5a5a54;
  --accent: #D8E6CF;
  --border: #e4e0d6;
  --shadow: 0 2px 8px rgba(50, 60, 40, .08);
  --shadow-lg: 0 12px 40px rgba(40, 50, 30, .18);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 10px;
  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: #2c2c28; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p { margin: 0 0 1rem; }

/* Skip link (A11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--primary-dark); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Visible focus everywhere */
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; border-radius: 3px; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.bg-surface { background: var(--surface); }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--primary-dark); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: #2c2c28; white-space: nowrap; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; letter-spacing: .05em; color: var(--text-soft); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border);
  background: #fff; border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  flex-direction: column;
}
.nav-menu.open { display: flex; }
.nav-menu li { border-top: 1px solid var(--surface); }
.nav-menu a {
  display: block; padding: .9rem 1rem; text-decoration: none; color: var(--text); font-weight: 500;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--primary-dark); background: var(--surface); }
.nav-cta { margin: .6rem 1rem 1rem; }
.nav-cta .btn { width: 100%; }

.lang-switch { display: inline-flex; gap: .15rem; align-items: center; font-size: .9rem; }
.lang-switch a {
  padding: .3rem .5rem; border-radius: 6px; text-decoration: none; color: var(--text-soft); font-weight: 600;
}
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--primary-dark); }
.nav-right { display: flex; align-items: center; gap: .6rem; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex; position: static; flex-direction: row; align-items: center;
    background: transparent; border: 0; box-shadow: none; gap: .2rem;
  }
  .nav-menu li { border: 0; }
  .nav-menu a { padding: .5rem .7rem; border-radius: 6px; font-size: .96rem; }
  .nav-cta { margin: 0 0 0 .4rem; }
  .nav-cta .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,38,22,.35) 0%, rgba(30,38,22,.55) 55%, rgba(30,38,22,.72) 100%);
}
.hero-inner { padding-block: clamp(4rem, 16vw, 8.5rem); max-width: 42rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #f4f2ea; margin-bottom: 1.8rem; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Feature tiles (Warum) ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; gap: .9rem; align-items: flex-start;
}
.tile .icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--accent); border-radius: 50%; color: var(--primary-dark);
}
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { margin: .1rem 0 .2rem; font-size: 1.08rem; }
.tile p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* ---------- Timeline (Geschichte) ---------- */
.history-grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
@media (min-width: 900px) { .history-grid { grid-template-columns: 1.1fr .9fr; } }
.history-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.history-figure img { width: 100%; }
.history-figure figcaption { font-size: .85rem; color: var(--text-soft); padding: .6rem .8rem; background: var(--surface); }

.timeline { list-style: none; margin: 1.4rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: .4rem; bottom: .4rem; width: 2px; background: var(--accent); }
.timeline li { position: relative; padding: 0 0 1.15rem 2.1rem; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: .35rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--accent);
}
.timeline .year { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); }

/* ---------- Gastgeber ---------- */
.host { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
@media (min-width: 760px) { .host { grid-template-columns: .8fr 1.2fr; } }
.host-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 360px; }
.host .callout {
  margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--accent); border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.host .callout p { margin: 0; }

/* ---------- Apartment facts + gallery ---------- */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 1.6rem; }
.facts li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem 1rem; font-size: .92rem; font-weight: 500; display: inline-flex; gap: .45rem; align-items: center;
}
.facts svg { width: 18px; height: 18px; color: var(--primary); }

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button {
  padding: 0; border: 0; background: var(--surface); cursor: pointer; border-radius: 8px; overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.06); }

/* ---------- Info bar (Praktische Infos) ---------- */
.info-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-item {
  display: flex; gap: .8rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.info-item svg { flex: 0 0 auto; width: 24px; height: 24px; color: var(--primary); margin-top: .1rem; }
.info-item strong { display: block; font-size: .98rem; }
.info-item span { color: var(--text-soft); font-size: .92rem; }

/* ---------- Season cards (Sommer / Winter) ---------- */
.season-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .season-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .season-cards { grid-template-columns: repeat(5, 1fr); } }
.season-card {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.season-card .media { aspect-ratio: 4 / 3; background: var(--accent); overflow: hidden; }
.season-card .media img { width: 100%; height: 100%; object-fit: cover; }
.season-card .body { padding: .85rem 1rem 1.1rem; }
.season-card h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.season-card p { margin: 0; font-size: .9rem; color: var(--text-soft); }

/* ---------- Lage / Map consent ---------- */
.map-consent {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); min-height: 340px; display: grid; place-items: center; text-align: center; padding: 2rem;
}
.map-consent .placeholder { max-width: 34rem; }
.map-consent svg.pin { width: 42px; height: 42px; color: var(--primary); margin-bottom: .6rem; }
.map-consent .hint { font-size: .85rem; color: var(--text-soft); margin-top: .8rem; }
.map-consent iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-consent.loaded { padding: 0; min-height: 0; background: #fff; }
.address-line { margin-bottom: 1rem; font-weight: 500; }

.poi { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 0; }
.poi li { font-size: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .85rem; }

/* ---------- Buchung CTA ---------- */
.booking {
  text-align: center; background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: var(--radius);
  padding: clamp(2.2rem, 6vw, 3.6rem) clamp(1.2rem, 5vw, 3rem);
}
.booking h2 { color: #fff; }
.booking p { color: #eaf1e3; max-width: 40rem; margin-inline: auto; }
.booking-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.6rem; }
.booking .btn-ghost { background: #fff; color: var(--primary-dark); border-color: #fff; }
.booking .btn-ghost:hover { background: var(--accent); color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #2b2f26; color: #d9d7cd; padding-block: 2.5rem; font-size: .93rem; }
.site-footer a { color: #e7e4d8; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #45493d; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; color: #b3b1a6; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(20, 24, 16, .92); align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) 1rem env(safe-area-inset-bottom);
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(1100px, 96vw); max-height: 88vh; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 80vh; margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: #e8e6dc; font-size: .9rem; margin-top: .7rem; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #d9d7cd; font-size: .85rem; }
@media (max-width: 560px) {
  .lb-prev { left: .3rem; } .lb-next { right: .3rem; }
  .lb-btn { width: 46px; height: 46px; }
}

/* ---------- Legal / text pages ---------- */
.page-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-header .wrap { padding-block: clamp(2rem, 6vw, 3.2rem); }
.legal { max-width: 52rem; }
.legal h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal h3 { margin-top: 1.4rem; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--text-soft); font-size: .9rem; font-style: italic; margin-top: 2.2rem; }
.legal .note {
  background: var(--accent); border-left: 4px solid var(--primary); padding: .9rem 1.1rem;
  border-radius: var(--radius); margin: 1.4rem 0; font-size: .95rem;
}
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 14vw, 8rem); }
.notfound .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem, 18vw, 8rem); color: var(--accent); line-height: 1; }
.notfound-logo { margin: 0 auto 1rem; border-radius: 50%; }
.divider { max-width: 220px; margin: 2.5rem auto; border: 0; border-top: 1px solid var(--border); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.m-0 { margin: 0 !important; }
.eyebrow-light { color: #dbe8cf; }
.section-head--spaced { margin-top: clamp(2rem, 6vw, 3.5rem); }
.footer-bottom--bare { border: 0; margin: 0; padding: 0; }
.placeholder-note {
  display: inline-block; margin-top: .4rem; font-size: .75rem; letter-spacing: .04em;
  text-transform: uppercase; color: #a15c2b; background: #fbeee2; padding: .15rem .5rem; border-radius: 4px;
}
