/* =========================================================
   HOLZWOI – Neben-Seiten (Impressum, Datenschutz, AGB,
   Danke-Seiten, 404).
   In sich geschlossenes Stylesheet: bringt Tokens + Fonts selbst mit,
   damit die Templates unabhängig von der grossen LP-styles.css rendern.
   Naturton-Welt, Fraunces/Inter, --accent #9C4E2F (WCAG-AA auf Weiss).
   ========================================================= */

/* -----------------------------
   Self-hosted Fonts (DSGVO: kein Google-CDN)
   ----------------------------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/newsreader-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/newsreader-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* -----------------------------
   Tokens (Auszug aus styles.css)
   ----------------------------- */
:root {
  --hw-bg:         #FBF7EE;
  --hw-elev:       #FFFFFF;
  --hw-surface:    #F4ECDB;
  --hw-ink:        #1E1A14;
  --hw-ink-soft:   #423A2F;
  --hw-ink-mute:   #756A5B;
  --hw-ink-faint:  #A39786;
  --hw-line:       #E6DCC6;
  --hw-accent:     #9C4E2F;
  --hw-accent-hover: #843E25;
  --hw-moss:       #6B7F5A;
  --hw-font-serif: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --hw-font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --hw-r-md: 16px;
  --hw-r-lg: 22px;
  --hw-shadow-md: 0 12px 28px -12px rgba(30, 26, 20, 0.12);
  --hw-shadow-lg: 0 26px 56px -24px rgba(30, 26, 20, 0.18);
}

/* -----------------------------
   Reset / Base (nur auf den hw-page-Body-Klassen)
   ----------------------------- */
.hw-page,
.hw-page *,
.hw-page *::before,
.hw-page *::after { box-sizing: border-box; }

.hw-page {
  margin: 0;
  font-family: var(--hw-font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--hw-ink);
  background: var(--hw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hw-page img,
.hw-page svg { display: block; max-width: 100%; height: auto; }

.hw-page a {
  color: var(--hw-accent);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hw-page a:hover { color: var(--hw-accent-hover); }

.hw-page ::selection { background: var(--hw-accent); color: #fff; }

.hw-page h1,
.hw-page h2,
.hw-page h3 {
  font-family: var(--hw-font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hw-ink);
  margin: 0;
}

/* -----------------------------
   Header
   ----------------------------- */
.hw-page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--hw-line);
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hw-page-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hw-page-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.hw-page-header__logo img { height: 38px; width: auto; }
.hw-page-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hw-ink-mute);
}
.hw-page-header__link:hover { color: var(--hw-ink); }
.hw-page-header__link svg { flex: 0 0 auto; }
@media (max-width: 480px) {
  .hw-page-header__phone-text { display: none; }
}

/* -----------------------------
   Content-Wrapper
   ----------------------------- */
.hw-page-main {
  background: var(--hw-bg);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hw-page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hw-page-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hw-accent);
  margin: 0;
}
.hw-page-title {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hw-page-stand {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--hw-ink-mute);
}

/* -----------------------------
   Impressum-Sektionen
   ----------------------------- */
.hw-legal {
  margin-top: 2.75rem;
  display: grid;
  gap: 2.25rem;
}
.hw-legal section h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.hw-legal p { margin: 0; color: var(--hw-ink-soft); }
.hw-legal p + p { margin-top: 0.8rem; }
.hw-legal strong { font-weight: 600; color: var(--hw-ink); }
.hw-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* -----------------------------
   Editor-Inhalt (Datenschutz / AGB via the_content)
   ----------------------------- */
.hw-legal-content {
  margin-top: 2.75rem;
  color: var(--hw-ink-soft);
}
.hw-legal-content > * + * { margin-top: 1.1rem; }
.hw-legal-content h2 {
  font-family: var(--hw-font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hw-ink);
  margin-top: 2.25rem;
}
.hw-legal-content h3 {
  font-family: var(--hw-font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--hw-ink);
  margin-top: 1.75rem;
}
.hw-legal-content a { color: var(--hw-accent); text-decoration: underline; text-underline-offset: 3px; }
.hw-legal-content strong { font-weight: 600; color: var(--hw-ink); }
.hw-legal-content ul { list-style: disc; padding-left: 1.3rem; }
.hw-legal-content ol { list-style: decimal; padding-left: 1.3rem; }
.hw-legal-content li { margin-top: 0.4rem; }

/* Gestrichelter Hinweis-Kasten (leerer Editor-Inhalt) */
.hw-legal-notice {
  margin-top: 2.75rem;
  border: 2px dashed var(--hw-line);
  border-radius: var(--hw-r-lg);
  background: var(--hw-surface);
  padding: 1.75rem 1.9rem;
  color: var(--hw-ink-soft);
}
.hw-legal-notice strong { color: var(--hw-ink); }
.hw-legal-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(70, 50, 25, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

/* -----------------------------
   Danke-Seiten (Booking + Feedback)
   ----------------------------- */
.hw-ty {
  margin: 0 auto;
  max-width: 780px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}
.hw-ty--mini {
  max-width: 560px;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hw-ty__check {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--hw-moss);
  display: grid;
  place-items: center;
  margin: 0 auto 1.3rem;
  box-shadow: 0 10px 26px -8px rgba(107, 127, 90, 0.55);
}
.hw-ty__check svg { width: 34px; height: 34px; stroke: #fff; }
.hw-ty h1 {
  font-family: var(--hw-font-serif);
  font-weight: 600;
  font-size: clamp(1.95rem, 5.2vw, 2.8rem);
  line-height: 1.08;
  text-align: center;
  margin: 0.1rem 0 0.65rem;
  letter-spacing: -0.01em;
  color: var(--hw-ink);
}
.hw-ty__lead {
  text-align: center;
  font-size: 1.12rem;
  color: var(--hw-ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.2rem;
}
.hw-ty__card {
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin: 1.1rem 0;
  box-shadow: var(--hw-shadow-md);
}
.hw-ty__card h2 {
  font-family: var(--hw-font-serif);
  font-weight: 600;
  font-size: 1.22rem;
  margin: 0 0 1rem;
  color: var(--hw-ink);
}
.hw-ty__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.hw-ty__list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--hw-ink-soft); }
.hw-ty__num {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: var(--hw-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.hw-ty__dot {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--hw-surface);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.hw-ty__dot svg { width: 13px; height: 13px; stroke: var(--hw-accent); }
.hw-ty__list strong { color: var(--hw-ink); font-weight: 600; }
.hw-ty__loc {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  color: var(--hw-ink-soft);
  font-size: 1rem;
  margin: 0;
}
.hw-ty__loc svg { width: 18px; height: 18px; stroke: var(--hw-accent); flex: 0 0 auto; }
.hw-ty a { color: var(--hw-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hw-ty__sub { text-align: center; color: var(--hw-ink-mute); font-size: 0.95rem; margin: 0.9rem 0 0; }
.hw-ty__mark {
  text-align: center;
  color: var(--hw-ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2.5rem;
}

/* Kalender-Hinzufügen-Karte (aus sessionStorage befüllt) */
.hw-cal {
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin: 1.6rem 0 0.6rem;
  box-shadow: var(--hw-shadow-md);
}
.hw-cal__head { display: flex; align-items: center; gap: 0.75rem; }
.hw-cal__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(156, 78, 47, 0.12);
  color: var(--hw-accent);
  display: grid;
  place-items: center;
}
.hw-cal__icon svg { width: 20px; height: 20px; stroke: var(--hw-accent); }
.hw-cal__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hw-accent);
  margin: 0;
}
.hw-cal__when { font-size: 1.05rem; font-weight: 600; color: var(--hw-ink); margin: 0.1rem 0 0; line-height: 1.25; }
.hw-cal__hint { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--hw-ink-mute); }
.hw-cal__btns {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 560px) {
  .hw-cal__btns { grid-template-columns: repeat(3, 1fr); }
}
.hw-cal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--hw-ink);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter 0.2s ease;
}
.hw-cal__btn:hover { filter: brightness(1.12); color: #fff; }
.hw-cal__btn svg { width: 16px; height: 16px; }

/* -----------------------------
   404
   ----------------------------- */
.hw-404 {
  background: var(--hw-bg);
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.hw-404__inner { max-width: 560px; margin: 0 auto; padding: 0 1.25rem; text-align: center; width: 100%; }
.hw-404__code {
  font-family: var(--hw-font-serif);
  font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 7rem);
  line-height: 1;
  color: var(--hw-accent);
  margin: 0;
}
.hw-404__title {
  margin: 1.2rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hw-404__lead { margin: 1.1rem auto 0; max-width: 30rem; color: var(--hw-ink-mute); }
.hw-404__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hw-404__phone { margin-top: 2.5rem; font-size: 0.9rem; color: var(--hw-ink-mute); }
.hw-404__phone a { font-weight: 600; color: var(--hw-ink); text-decoration: underline; text-underline-offset: 2px; }

/* -----------------------------
   Buttons (Danke/404)
   ----------------------------- */
.hw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hw-btn--primary {
  background: var(--hw-accent);
  color: #fff !important;
  box-shadow: 0 10px 30px -12px rgba(156, 78, 47, 0.6);
}
.hw-btn--primary:hover { filter: brightness(1.06); color: #fff; }
.hw-btn--ghost {
  background: #fff;
  border: 1px solid var(--hw-line);
  color: var(--hw-ink) !important;
}
.hw-btn--ghost:hover { background: var(--hw-accent); border-color: var(--hw-accent); color: #fff !important; }
.hw-btn svg { flex: 0 0 auto; }

/* -----------------------------
   Footer
   ----------------------------- */
.hw-page-footer { background: var(--hw-ink); color: #fff; }
.hw-page-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) {
  .hw-page-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.hw-page-footer__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}
.hw-page-footer__tagline { margin: 0.9rem 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); max-width: 22rem; }
.hw-page-footer__label {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hw-accent);
}
.hw-page-footer__contact-lines { margin: 0 0 0.7rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); line-height: 1.6; }
.hw-page-footer__contact-lines a { color: rgba(255, 255, 255, 0.9); }
.hw-page-footer__contact-lines a:hover { color: var(--hw-accent); }
.hw-page-footer__legal ul { list-style: none; margin: 0; padding: 0; }
.hw-page-footer__legal li { margin: 0 0 0.5rem; }
.hw-page-footer__legal a { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }
.hw-page-footer__legal a:hover { color: var(--hw-accent); }
.hw-page-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hw-page-footer__bottom p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hw-page *, .hw-page *::before, .hw-page *::after { transition: none !important; }
}
