/* Gasthof & Cafe Rehwinkl — demo build. Colours sampled from the source site's
   own wordmark (#CC3366) and its classic green/cream accents (#6E9346, #FCE896). */

@font-face {
  font-family: 'Jura';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('img/jura-600.woff2') format('woff2');
}

:root {
  --rose: #CC3366;
  --rose-dark: #A62A54;
  --rose-soft: #F6E3EA;
  --ink: #2E2A26;
  --muted: #6B645C;
  --paper: #FDF9F1;
  --cream: #FCE896;
  --cream-soft: #FFF7DC;
  --green: #6E9346;
  --green-dark: #4F6B33;
  --line: #E8DFCE;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(46, 42, 38, .10);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { font-family: 'Jura', 'Trebuchet MS', Verdana, sans-serif; font-weight: 600; line-height: 1.25; margin: 0 0 .6em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--rose-dark); text-underline-offset: 2px; }
a:hover { color: var(--rose); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
section { padding: clamp(28px, 5vw, 56px) 0; }
section.alt { background: var(--cream-soft); }
.zentriert, .pagehead { text-align: center; }
.pagehead { padding-top: clamp(28px, 5vw, 48px); padding-bottom: 0; }
.pagehead .lead { max-width: 760px; margin: 0 auto; }

/* skip link: never widen the layout */
.skip-link {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { clip-path: none; width: auto; height: auto; left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* ---------------- header / nav (mobile-first: nav hidden until 900px) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { flex: 0 1 auto; margin-right: auto; }
.brand img { width: clamp(200px, 28vw, 300px); height: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { display: block; padding: 10px 10px; text-decoration: none; color: var(--ink); font-size: .95rem; border-radius: 8px; }
.nav a:hover { background: var(--rose-soft); color: var(--rose-dark); }
.nav a.active { color: var(--rose-dark); font-weight: 600; background: var(--rose-soft); }
.nav-cta { display: none; }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100vh - 64px); overflow-y: auto; }
.drawer ul { list-style: none; margin: 0; padding: 8px 16px 4px; }
.drawer a { display: block; padding: 12px 8px; text-decoration: none; color: var(--ink); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.drawer a.active { color: var(--rose-dark); font-weight: 600; }
.drawer-cta, .drawer-cta--ghost { display: block; margin: 12px 16px; padding: 12px 16px; text-align: center; text-decoration: none; font-weight: 600; border-radius: 10px; background: var(--rose); color: var(--white); }
.drawer-cta--ghost { background: none; border: 1px solid var(--line); color: var(--ink); margin-top: 0; }

@media (min-width: 900px) {
  .burger, .drawer { display: none; }
  .nav { display: block; }
  .nav-cta { display: inline-block; padding: 10px 18px; background: var(--rose); color: var(--white); text-decoration: none; font-weight: 600; border-radius: 10px; white-space: nowrap; }
  .nav-cta:hover { background: var(--rose-dark); color: var(--white); }
}

/* ---------------- hero slider */
.hero { position: relative; overflow: hidden; background: #243120; min-height: clamp(280px, 46vw, 520px); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 34px 20px 12px; text-align: center; color: var(--white);
  font-size: .9rem; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.7);
  background: linear-gradient(to top, rgba(20,26,18,.55), transparent);
}
.hero-dots { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--white); }

/* ---------------- intro / cards */
.intro { text-align: center; }
.intro h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.08rem; color: var(--muted); }
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card h3 { color: var(--green-dark); }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- teaser */
.teaser-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.teaser { position: relative; border-radius: var(--radius); overflow: hidden; display: block; text-decoration: none; }
.teaser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.teaser:hover img { transform: scale(1.04); }
.teaser__label {
  position: absolute; left: 12px; bottom: 12px; padding: 8px 16px;
  background: rgba(255,255,255,.94); color: var(--ink); font-weight: 600;
  font-family: 'Jura', 'Trebuchet MS', sans-serif; border-radius: 10px;
}
@media (min-width: 720px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- band CTA */
.band { background: var(--green-dark); color: var(--white); text-align: center; }
.band h2 { color: var(--white); }
.band p { max-width: 820px; margin-left: auto; margin-right: auto; }
.band a { color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.btn-col { display: grid; gap: 10px; margin-top: 14px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; text-decoration: none;
  font-weight: 600; border: 1px solid var(--rose-dark); color: var(--rose-dark); background: var(--white);
}
.btn:hover { background: var(--rose-soft); color: var(--rose-dark); }
.btn--primary { background: var(--rose); border-color: var(--rose); color: var(--white); }
.btn--primary:hover { background: var(--rose-dark); color: var(--white); }
.band .btn { background: transparent; border-color: var(--cream); color: var(--cream); }
.band .btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.band .btn--primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.band .btn--primary:hover { background: #fff3c0; color: var(--ink); }

/* ---------------- prose pages */
.cols { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.prose h2, .prose h3 { color: var(--green-dark); }
.prose { min-width: 0; overflow-wrap: break-word; }
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { padding: 4px 0 4px 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.side-note { background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.side-note h3:first-of-type { margin-top: 0; }
address { font-style: normal; }
.tour-cols { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 880px) { .tour-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- galleries */
.galerie { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
.galerie__item { margin: 0; border-radius: 10px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.galerie__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.gallery-block h2 { text-align: center; }
.gallery-block h2 em { color: var(--rose-dark); font-style: normal; }

/* ---------------- facts (zimmer) */
.fact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 26px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.fact h3 { color: var(--green-dark); }
@media (min-width: 880px) { .fact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- price table */
.price-block { background: var(--cream-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.preise { border-collapse: collapse; width: 100%; min-width: 420px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .98rem; }
table.preise caption { caption-side: top; text-align: left; font-family: 'Jura', 'Trebuchet MS', sans-serif; font-weight: 600; padding: 0 4px 10px; color: var(--green-dark); }
table.preise th, table.preise td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.preise tr:last-child th, table.preise tr:last-child td { border-bottom: 0; }
table.preise td { white-space: nowrap; color: var(--rose-dark); font-weight: 600; }
table.preise th { font-weight: 600; min-width: 0; }
.price-note { margin-top: 16px; max-width: 760px; }
.price-block .btn-row { margin-top: 8px; }

/* ---------------- map + booking embeds */
.map-embed, .booking-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.map-embed iframe { display: block; width: 100%; height: clamp(280px, 42vw, 440px); border: 0; }
.booking-embed iframe { display: block; width: 100%; height: clamp(720px, 80vw, 1100px); border: 0; }
.map-credit { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.ds-note { font-size: .92rem; color: var(--muted); }

/* ---------------- form */
.form-page { padding-top: 10px; }
.kform { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.demo-hint { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.field { margin: 14px 0; min-width: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--paper); min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--rose); background: var(--rose-soft); }
.field-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field-err { color: #B3261E; font-size: .88rem; margin: 6px 0 0; }
.res-fs { border: 1px dashed var(--line); border-radius: 10px; margin: 18px 0 8px; padding: 8px 16px 12px; min-width: 0; }
.res-fs legend { font-weight: 600; padding: 0 8px; font-size: .95rem; }
.form-ok { color: var(--green-dark); font-weight: 600; }
.form-page .side-note h3 { margin-top: 1.2em; }
.form-page .side-note h3:first-child { margin-top: 0; }
.form-page .side-note { position: sticky; top: 84px; }
@media (max-width: 879px) { .form-page .side-note { position: static; } }

/* ---------------- ziele */
.ziel-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ziel-list { grid-template-columns: repeat(2, 1fr); } }
.ziel { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.ziel:hover { border-color: var(--rose); color: var(--rose-dark); }
.ziel__host { font-weight: 400; font-size: .82rem; color: var(--muted); word-break: break-all; text-align: right; }

/* ---------------- footer */
.site-footer { background: #243120; color: #E9EFE4; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 20px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-mark { width: clamp(220px, 60%, 300px); height: auto; margin-bottom: 12px; }
.site-footer h3 { color: var(--cream); font-size: 1.02rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; padding-bottom: 18px; font-size: .85rem; color: #BFCDB6; }

/* ---------------- reveal (only when JS is on; sweep in JS guarantees visibility) */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  html { scroll-behavior: auto; }
}
