@import url("../fonts/fonts.css");

/* =========================================================
   Hilberger's Beisl Kaprun – Design System
   An der Originalseite ausgerichtet: dunkler Header/Footer (#111),
   Gold-Akzent (#C7AD88), Poppins (Überschriften), Merriweather
   (Gold-Labels), Mr Dafoe (Skript-Titel), weiße Inhalte.
   Schriften lokal gehostet (DSGVO). Mobile-First, valides HTML5.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg:        #ffffff;   /* weiße Inhaltsflächen */
  --soft:      #f4f1ec;   /* dezent helle Sektion */
  --dark:      #111111;   /* Header, Footer, dunkle Bänder */
  --dark-2:    #1a1a1a;
  --ink:       #333333;   /* Fließtext */
  --ink-strong:#1d1d1d;
  --muted:     #777067;
  --gold:      #c7ad88;   /* Akzent (auf Dunkel) */
  --gold-text: #8a6a23;   /* kontraststarkes Gold für Text auf Weiß (WCAG AA ~5:1) */
  --gold-dark: #b8975f;
  --line:      #e3ddd3;
  --line-dark: rgba(255,255,255,.14);
  --shadow:    0 10px 30px rgba(17,17,17,.10);

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-label:"Merriweather", Georgia, "Times New Roman", serif;
  --font-script:"Mr Dafoe", "Segoe Script", cursive;

  --wrap: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 3px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-text); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--ink-strong); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.8vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem); }
p { margin: 0 0 1rem; }
strong { color: var(--ink-strong); }

/* ---------- Helpers ---------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-text);
  margin: 0 0 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-inline: auto; }
.script { font-family: var(--font-script); font-weight: 400; line-height: .95; }
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold); color: #111; padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .15s ease; font-family: var(--font-head); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  letter-spacing: .03em;
  padding: .8rem 1.7rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--gold); color: #1a1a1a; }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

/* ---------- Header / Navigation (zentrierte, gerahmte Box über dem Hero) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff;
  background: transparent; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px;
  padding: 0 1.5rem;
  background: rgba(17,17,17,.96); border: 1px solid rgba(255,255,255,.22);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand strong { display: none; } /* Logo-Lockup enthält den Schriftzug bereits */

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .2s; }

.menu { list-style: none; margin: 0; padding: 0; }
.menu > li > a, .menu > li > .submenu-label {
  text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  padding: .6rem .25rem; display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; cursor: pointer;
}
.menu > li > a:hover, .menu > li > .submenu-label:hover { color: var(--gold); }
.menu a[aria-current="page"] { color: var(--gold); }
.menu .submenu { list-style: none; margin: 0; padding: 0; }
.menu .submenu a {
  text-decoration: none; color: #eee; display: block; padding: .55rem .9rem; border-radius: var(--radius);
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .03em;
}
.menu .submenu a:hover { background: rgba(255,255,255,.07); color: var(--gold); }

.lang { display: inline-flex; gap: .5rem; align-items: center; }
.lang a { display: block; line-height: 0; opacity: .55; transition: opacity .15s ease; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { opacity: 1; }
.lang img { width: 24px; height: auto; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.lang a[aria-current="true"] img { box-shadow: 0 0 0 1px var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Mobile: Menü per Toggle */
@media (max-width: 980px) {
  .primary-nav {
    position: fixed; inset: 92px .75rem auto .75rem;
    background: var(--dark-2); border: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .primary-nav[data-open="true"] { max-height: 82vh; overflow-y: auto; }
  .menu { padding: .5rem 1rem 1.5rem; }
  .menu > li { border-bottom: 1px solid var(--line-dark); }
  .menu > li > a, .menu > li > .submenu-label { padding: .95rem .25rem; width: 100%; justify-content: space-between; }
  .menu .submenu { padding-left: .8rem; }
  .submenu[hidden] { display: none; }
}
@media (max-width: 540px) {
  .brand img { height: 40px; }
  .header-actions { gap: .55rem; }
  .header-actions .btn--primary { padding: .55rem 1rem; font-size: .8rem; }
}

/* Desktop: Dropdowns */
@media (min-width: 981px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block !important; }
  .menu { display: flex; align-items: center; gap: 1.5rem; }
  .menu > li { position: relative; }
  .menu > li > .submenu {
    position: absolute; top: 100%; left: -.5rem; min-width: 220px;
    background: var(--dark-2); border: 1px solid var(--line-dark);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: .15s ease;
  }
  .menu > li:hover > .submenu, .menu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .submenu[hidden] { display: block; }
}

/* ---------- Hero (Startseite): Vollbild-Slideshow wie Original (Slider Revolution) ----------
   Reihenfolge: 1) Gutschein (ohne Text) 2) Bar 3) Gaststube.
   Original-Settings aus der Altseite: sliderLayout "fullscreen", delay 5000 ms (Standzeit),
   Transition "slidingoverlaydown"/"slidingoverlayright" → der neue Slide SCHIEBT sich
   (von oben bzw. rechts) über den vorigen; Bild steht danach still (kein Ken-Burns).
   Pro Slide ≈ 1,5 s Einschieben + ~4,5 s Standzeit = 6 s → 18 s Zyklus.
   Einschieben mit ease-OUT (gleitet sanft aus, „schießt" nicht) – wie im Original (dort sichtbare
   Verzögerung am Ende). Läuft – wie das Original (JS-Slider) – unabhängig von prefers-reduced-motion. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #000; }
.hero__slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; opacity: 1; animation: slideDown 18s cubic-bezier(.215,.61,.355,1) infinite; }
.hero .slide:nth-child(1) { animation-name: slideDown;  animation-delay: 0s; }   /* Gutschein – overlaydown  */
.hero .slide:nth-child(2) { animation-name: slideRight; animation-delay: 6s; }   /* Bar – overlayright       */
.hero .slide:nth-child(3) { animation-name: slideDown;  animation-delay: 12s; }  /* Gaststube – overlaydown  */
/* z-index stuft die Slides: 3 = einfahrend/aktuell (oben), 2 = wird gerade zugedeckt, 1 = darunter.
   Einschieben 0→8,5 % (≈1,5 s), Standzeit bis 33,3 % (≈6 s), dann deckt der nächste zu (bis 41,8 %). */
@keyframes slideDown {
  0%{transform:translateY(-100%); z-index:3} 8.5%{transform:translateY(0); z-index:3}
  33.29%{transform:translateY(0); z-index:3} 33.3%{transform:translateY(0); z-index:2}
  41.8%{transform:translateY(0); z-index:1} 99.99%{transform:translateY(0); z-index:1}
  100%{transform:translateY(-100%); z-index:3}
}
@keyframes slideRight {
  0%{transform:translateX(100%); z-index:3} 8.5%{transform:translateX(0); z-index:3}
  33.29%{transform:translateX(0); z-index:3} 33.3%{transform:translateX(0); z-index:2}
  41.8%{transform:translateX(0); z-index:1} 99.99%{transform:translateX(0); z-index:1}
  100%{transform:translateX(100%); z-index:3}
}
.hero .slide__bg { position: absolute; inset: 0; }
.hero .slide__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Transitions-Dimmer (wie revslider „overlay"): bei JEDEM Wechsel verdunkelt sich kurz das
   GANZE Hero und hellt dann auf. Bewusst als Vollflächen-Overlay über allen Slides (nicht am
   einzelnen, wandernden Slide) – sonst entsteht beim Einschieben eine abgeschnittene Kante /
   ein heller Streifen. 3 Pulse je 18-s-Zyklus, synchron zu den Slide-Eintritten (0/33,3/66,6 %). */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; animation: heroDim 18s ease-out infinite; }
@keyframes heroDim {
  0%{opacity:.6} 8.5%{opacity:.46} 14%{opacity:0}
  32.3%{opacity:0} 33.3%{opacity:.6} 41.8%{opacity:.46} 47.3%{opacity:0}
  65.6%{opacity:0} 66.6%{opacity:.6} 75.1%{opacity:.46} 80.6%{opacity:0}
  99%{opacity:0} 100%{opacity:.6}
}
/* Konstante Abdunklung nur auf den Foto-Slides (Lesbarkeit) – Gutschein-Grafik bleibt hell */
.hero .slide--photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.55)); }
/* Caption skaliert + blendet ein (wie Original: transform_in sX:0.9;sY:0.9;opacity:0) */
.hero .slide__caption { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; text-align: center; color: #fff; padding: 2rem; animation: captionIn 18s ease-out infinite; }
.hero .slide:nth-child(2) .slide__caption { animation-delay: 6s; }
.hero .slide:nth-child(3) .slide__caption { animation-delay: 12s; }
.hero .slide__caption .eyebrow { color: #fff; margin: 0 0 .5rem; }
.hero .slide__caption .script { font-family: var(--font-script); font-weight: 400; color: #fff; line-height: .95; font-size: clamp(2.8rem, 1.6rem + 7vw, 6rem); text-shadow: 0 4px 26px rgba(0,0,0,.5); margin: 0; }
@keyframes captionIn {
  0%,9%{opacity:0; transform:scale(.92)} 16%{opacity:1; transform:scale(1)}
  33.3%{opacity:1; transform:scale(1)} 39%,100%{opacity:0; transform:scale(1)}
}

/* ---------- Intro / Willkommen ---------- */
.intro { background: var(--bg); }
.intro p { max-width: 62ch; margin-inline: auto; }
.intro .signoff { font-family: var(--font-label); font-style: italic; font-size: 1.1rem; color: var(--gold-text); margin-top: 1.6rem; }

/* ---------- Beliebte Gerichte (Schiefer-Textur + Bild/Text-Schachbrett) ---------- */
.dishes { position: relative; color: #fff;
  background: #15130f url("/assets/img/slate.jpg") center/cover; }
.dishes::before { content: ""; position: absolute; inset: 0; background: rgba(10,9,7,.45); pointer-events: none; }
.dishes > .wrap { position: relative; z-index: 1; }
.dishes h2 { color: #fff; }
.dishes .eyebrow { color: var(--gold); }
.menu-grid {
  display: grid; grid-template-columns: 1fr;
  max-width: 1060px; margin: 2.8rem auto 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
@media (min-width: 880px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
/* Ein Gericht = Paar aus Bild + Text. Der Hover-Rahmen umschließt das GANZE Paar
   (Bild + Name), nicht eine einzelne Kachel. */
.menu-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.menu-pair::after { content: ""; position: absolute; inset: 12px; z-index: 2; border: 1px solid transparent; transition: border-color .2s ease; pointer-events: none; }
.menu-pair:hover::after { border-color: var(--gold); }
.menu-cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.menu-cell picture { display: block; width: 100%; height: 100%; }   /* sonst füllt das Bild die Kachel nicht → Lücke unter dem Rahmen */
.menu-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-cell--text { display: grid; place-content: center; text-align: center; padding: 1.2rem; background: rgba(20,19,16,.66); }
.menu-cell--text h3 { color: var(--gold); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(.85rem,.7rem+.5vw,1rem); line-height: 1.3; margin: 0 0 .7rem; }
.menu-cell--text p { color: #cfc7ba; font-family: var(--font-label); font-style: italic; font-size: .82rem; line-height: 1.5; margin: 0; }

/* ---------- Reservierungs-Banner (echtes Foto + Skript + Umriss-Button) ---------- */
.cta { position: relative; color: #fff; text-align: center; padding-block: clamp(5rem,11vw,8.5rem);
  background-image: linear-gradient(rgba(22,16,11,.30), rgba(22,16,11,.48)), url("/assets/img/cta-interior.jpg");
  background-size: cover; background-position: center; }
.cta h2 { color: #fff; font-family: var(--font-script); font-weight: 400; font-size: clamp(3rem, 1.8rem + 7vw, 6rem); line-height: 1; text-shadow: 0 4px 22px rgba(0,0,0,.55); margin-bottom: 1.6rem; }
.cta .btn { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; padding: .95rem 2.1rem; }
.cta .btn:hover { background: #fff; color: #1a1a1a; border-color: #fff; }

.divider { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 1.4rem auto; }
.gold-word { color: var(--gold-text); }

/* ---------- Footer ---------- */
/* Footer wie Original: schmale, dunkle Zeile – Copyright/Impressum/Datenschutz links, Social rechts */
.site-footer { background: var(--dark); color: #b8b0a4; padding: 1.5rem 0; font-size: .9rem; }
.site-footer a { color: #e8dccb; }
.site-footer a:hover { color: var(--gold); }
.footer-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-copy { margin: 0; }
.footer-copy .sep { color: var(--gold); margin: 0 .35rem; }
.footer-social { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Consent ---------- */
.consent {
  position: fixed; inset: auto 1rem 1rem; z-index: 300; max-width: 540px; margin-inline: auto;
  background: var(--dark-2); color: #eee; border: 1px solid var(--line-dark);
  border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.4); padding: 1.2rem 1.3rem;
}
.consent[hidden] { display: none; }
.consent p { font-size: .9rem; margin: 0 0 1rem; }
.consent a { color: var(--gold); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent .btn { padding: .6rem 1.2rem; font-size: .85rem; }
.consent .btn--ghost { color: #eee; }

/* ---------- Inhaltsseiten ---------- */
.page-hero { position: relative; min-height: clamp(300px, 42vh, 420px); display: grid; place-items: center; overflow: hidden; background: #000; }
.page-hero > picture, .page-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero > picture img { object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.5)); }
.page-hero__content { position: relative; z-index: 2; color: #fff; text-align: center; padding: 1.5rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-family: var(--font-script); font-weight: 400; color: #fff; font-size: clamp(3rem, 2rem + 7vw, 6rem); line-height: .95; text-shadow: 0 4px 22px rgba(0,0,0,.45); }
/* Führendes Inhaltsbild (zentriert) – wie .image-holder im Original: FLACH dargestellt.
   Kein border-radius/box-shadow, da die Originalbilder weißen Hintergrund + eingebackenen
   Schatten haben – sonst entsteht ein sichtbarer weißer Rahmen. */
.content-img { margin: 0 auto 2.2rem; max-width: 760px; }
.content-img img { display: block; width: 100%; height: auto; }

.page-header { background: var(--dark); color: #fff; padding: clamp(7rem,11vw,9.5rem) 0 clamp(2.5rem,5vw,4rem); }
.page-header h1 { color: #fff; font-family: var(--font-script); font-weight: 400; font-size: clamp(3rem, 2rem + 6vw, 5.5rem); line-height: 1; }
.page-header .eyebrow { color: var(--gold); }

.prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; }
.prose em, .prose i { color: var(--gold-text); font-style: italic; }
.subhead { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem,1.1rem+1.4vw,2rem); color: var(--ink-strong); margin: 0 0 1rem; }
.signoff { font-family: var(--font-label); font-style: italic; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--gap); margin-top: 2.6rem; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Split */
.split { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } .split--rev .split__media { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Gastgarten: Lieblingsplätze – Text links, schräg gestelltes Holzschild rechts (wie Original) */
.favspots { display: grid; gap: var(--gap); align-items: center; text-align: left; margin-top: 3rem; }
@media (min-width: 800px) { .favspots { grid-template-columns: 1.5fr 1fr; } }
.favspots .eyebrow { color: var(--gold-text); }
.favspots .divider { margin-inline: auto; }
.favspots .signoff { font-family: var(--font-script); color: var(--gold-text); font-size: 1.6rem; margin-top: 1.4rem; }
.favspots__sign { margin: 0; text-align: center; }
/* Schild-Bild hat bereits weißen Hintergrund + eingebackenen Schatten – KEIN drop-shadow
   (sonst weißer Rahmen). Neigung steckt im Bild, daher auch keine CSS-Rotation. */
.favspots__sign img { width: 100%; max-width: 360px; height: auto; }

/* Specials: Rebsorten im dunklen Band (wie Original) */
.variety-band { background: var(--dark); color: #e8dccb; text-align: center; padding: 1.1rem 1.5rem; border-radius: var(--radius); margin-top: 2.6rem; font-weight: 600; line-height: 2; }
.variety-band .sep { color: var(--gold); margin: 0 .25rem; }

/* Partnerliste */
.partner-list { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 760px; text-align: left; }
.partner-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.partner-list strong { display: block; color: var(--ink-strong); }
.partner-list a { word-break: break-word; }

/* Kontakt */
.contact-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.9rem; }
.contact-card h2 { font-size: 1.3rem; margin-top: 0; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.notice { background: #f6efe3; border: 1px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; }

/* Karten-Platzhalter (Click-to-load) */
.map-embed { margin-top: 2rem; }
.map-consent { display: grid; place-items: center; text-align: center; gap: 1rem; min-height: 320px; background: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; }
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; }
