/* =================================================================
   Hrnčírna Hofhanzl — warm & artisanal redesign
   Terracotta + cream palette · refined serif display · responsive
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Clay / terracotta */
  --clay:        #b65f43;
  --clay-dark:   #964a31;
  --clay-deep:   #7a3a26;
  --clay-soft:   #d89274;
  --clay-tint:   #f3e0d3;

  /* Heritage brown (carried over from the original) */
  --brown:       #5c3900;
  --brown-deep:  #3a2716;

  /* Warm neutrals */
  --cream:       #faf4ec;
  --cream-2:     #f4e9da;
  --card:        #fffaf3;
  --sand:        #e9dccb;
  --sand-line:   #ddccb6;

  /* Botanical accent */
  --olive:       #707b4e;

  /* Ink */
  --ink:         #36291d;
  --ink-soft:    #6f6052;
  --ink-faint:   #9a8b7b;

  /* Effects */
  --radius:      16px;
  --radius-sm:   11px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 8px -3px rgba(92, 57, 0, .22);
  --shadow:      0 14px 34px -18px rgba(92, 57, 0, .38);
  --shadow-lg:   0 30px 60px -28px rgba(58, 39, 22, .5);
  --ring:        0 0 0 3px rgba(182, 95, 67, .28);

  --container:   1140px;
  --nav-h:       62px;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, #fff8ef 0%, rgba(255, 248, 239, 0) 60%),
    linear-gradient(180deg, #fbf6ee 0%, #f6ecdd 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--clay-dark); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--clay); }

::selection { background: var(--clay-soft); color: #fff; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown-deep);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ---------- Header / banner ---------- */
.site-header {
  padding: clamp(16px, 3vw, 30px) 0 0;
}
.banner {
  display: block;
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .6);
  outline: 6px solid rgba(255, 255, 255, .45);
  outline-offset: -6px;
}
.banner img {
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.banner:hover img { transform: scale(1.02); }

/* ---------- Sticky navigation ---------- */
.nav-toggle { position: absolute; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: clamp(16px, 3vw, 26px);
  background: rgba(250, 244, 236, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .7);
  border-bottom: 1px solid var(--sand-line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-nav.is-stuck {
  box-shadow: 0 10px 30px -20px rgba(58, 39, 22, .55);
  background: rgba(250, 244, 236, .94);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  gap: 10px;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brown-deep);
  margin-right: auto;
  display: none;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav-list a:hover { background: var(--clay-tint); color: var(--clay-deep); }
.nav-list a.is-active {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Hamburger (mobile only) */
.nav-burger {
  display: none;
  width: 46px;
  height: 40px;
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--sand-line);
  background: var(--card);
}
.nav-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brown-deep);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-toggle:checked ~ .site-nav .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle:checked ~ .site-nav .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .site-nav .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Main layout ---------- */
main { display: block; }
.page {
  max-width: 900px;
  margin: clamp(26px, 5vw, 52px) auto;
}
.page--wide { max-width: var(--container); }

section { margin-bottom: clamp(34px, 5vw, 60px); }

/* Surface card */
.surface {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}

/* Eyebrow / section kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin: 0 0 .9em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--clay);
  border-radius: 2px;
}

.section-head { text-align: center; margin-bottom: clamp(22px, 4vw, 40px); }
.section-head .eyebrow { justify-content: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--clay-deep);
  border-color: var(--clay-soft);
}
.btn-ghost:hover { background: var(--clay-tint); color: var(--clay-deep); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Home: hero ---------- */
.hero {
  text-align: center;
  padding: clamp(8px, 2vw, 24px) 0 6px;
}
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: .35em;
  background: linear-gradient(120deg, var(--clay-deep), var(--clay) 55%, var(--clay-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 640px;
  margin: 0 auto 1.6em;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.hero .btn-row { justify-content: center; }

/* Decorative four-elements row */
.elements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 34px auto 0;
  color: var(--clay-dark);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}
.elements span { display: inline-flex; align-items: center; gap: 8px; }
.elements span::before { content: "•"; color: var(--clay-soft); }

/* ---------- Home: season / opening hours ---------- */
.season {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  background:
    radial-gradient(420px 240px at 90% 10%, rgba(216, 146, 116, .16), transparent 70%),
    var(--card);
}
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.season h2 { margin: .55em 0 .1em; }
.hours {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--sand-line);
  font-size: 1.05rem;
}
.hours li:last-child { border-bottom: none; }
.hours .day { font-weight: 600; color: var(--brown-deep); }
.hours .time { color: var(--clay-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.season .note {
  margin-top: 14px;
  font-size: .98rem;
  color: var(--ink-soft);
}
.season-aside {
  border-left: 4px solid var(--clay-soft);
  padding-left: 22px;
}
.season-aside p { margin: 0; }
.season-aside .small { font-size: .95rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Prose (text pages) ---------- */
.prose p { color: var(--ink); }
.prose p + p { margin-top: 1.1em; }
.prose .lead { color: var(--ink-soft); }
.prose .dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.5em;
  font-weight: 600;
  float: left;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--clay);
}

/* Pull quote / handmade callout */
.callout {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(216, 146, 116, .14), transparent 70%),
    var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
}
.callout .eyebrow { justify-content: center; }
.callout blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--brown-deep);
}

/* ---------- Aktuality timeline ---------- */
.timeline { position: relative; margin: 0; padding: 4px 0 4px 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--clay-soft), var(--sand-line));
}
.timeline li {
  position: relative;
  padding: 0 0 22px 36px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clay);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--clay-soft);
}
.timeline time {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--clay-dark);
  font-variant-numeric: tabular-nums;
}
.timeline p { margin: 2px 0 0; color: var(--ink); }

/* ---------- Galleries / catalog grids ---------- */
.cat-group { margin-bottom: clamp(30px, 5vw, 52px); }
.cat-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.cat-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--sand-line), transparent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.grid--gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.tile {
  position: relative;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--clay-soft);
}
.tile .frame {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-2);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: scale(1.07); }
.tile figcaption {
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brown-deep);
  text-align: center;
}
/* zoom hint for clickable tiles */
a.frame { position: relative; cursor: zoom-in; }
a.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(58, 39, 22, .28), transparent 45%);
  opacity: 0;
  transition: opacity .25s ease;
}
a.frame::before {
  content: "⤢";
  position: absolute;
  right: 10px; bottom: 8px;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 243, .92);
  color: var(--clay-deep);
  font-size: 1.05rem;
  transform: translateY(8px) scale(.85);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  box-shadow: var(--shadow-sm);
}
.tile:hover a.frame::after,
.tile:hover a.frame::before { opacity: 1; }
.tile:hover a.frame::before { transform: translateY(0) scale(1); }

/* ---------- Catalog pagination ---------- */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 5vw, 48px);
}
.pager .label { color: var(--ink-faint); font-size: .9rem; margin-right: 4px; }
.pager a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--sand-line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.pager a:hover { transform: translateY(-2px); border-color: var(--clay-soft); color: var(--clay-deep); }
.pager a.is-active {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand);
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.info-card {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--clay-tint);
  color: var(--clay-deep);
  margin-bottom: 14px;
}
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.info-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.info-card strong { color: var(--ink); }
.info-card a { font-weight: 600; }

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 3vw, 26px);
}
.map-card {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.map-card .frame { display: block; cursor: zoom-in; position: relative; }
.map-card .frame img { width: 100%; height: auto; }
.map-card .meta { padding: 16px 18px; text-align: center; }
.map-card .meta strong { display: block; color: var(--brown-deep); font-family: var(--serif); font-size: 1.1rem; }
.map-card .meta .gps { color: var(--ink-soft); font-size: .92rem; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(216, 146, 116, .14), transparent 60%),
    var(--brown-deep);
  color: #ecddc9;
  padding-top: clamp(40px, 6vw, 64px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
}
.site-footer h2 {
  color: #fff;
  font-style: italic;
  font-weight: 500;
  margin-bottom: .4em;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .04em;
  margin-bottom: .8em;
}
.footer-brand p { color: #d6c3aa; max-width: 38ch; }
.footer-col p { margin: 0 0 .55em; color: #d6c3aa; line-height: 1.6; }
.site-footer a { color: #f0c9b3; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0 26px;
  font-size: .88rem;
  color: #b7a589;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 22, 12, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform .25s ease;
  background: #fff;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox .lb-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .25); transform: rotate(90deg); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-inner { justify-content: space-between; flex-wrap: wrap; gap: 0; }
  .nav-logo { display: block; padding: 11px 0; }
  .nav-burger { display: block; }
  .nav-list {
    order: 3;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .25s ease;
    padding: 0;
  }
  .nav-toggle:checked ~ .site-nav .nav-list {
    max-height: 560px;
    opacity: 1;
    padding: 6px 0 14px;
  }
  .nav-list a { padding: 12px 16px; font-size: 1.02rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .season { grid-template-columns: 1fr; }
  .season-aside { border-left: none; border-top: 1px solid var(--sand-line); padding-left: 0; padding-top: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
