/*
Theme Name: Gästehaus Modern
Theme URI: https://example.com
Author: Matthias
Description: Modernes, minimalistisches Theme für ein Gästehaus mit getrennten Bereichen für Feriengäste (Buchungskalender + SumUp-Zahlung) und Firmen (Buchungsanfrage).
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gaestehaus-modern
*/

/* ==========================================================================
   Design-Token
   ========================================================================== */
:root {
  --paper: #FAFAF8;
  --ink: #1A1D1A;
  --ink-soft: #5A605C;
  --pine: #2F5D50;
  --pine-deep: #234A3F;
  --pine-tint: #E7EFEB;
  --line: #E3E3DE;
  --danger: #B3402E;
  --radius: 10px;
  --max: 1120px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

/* ==========================================================================
   Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pine);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-brand:hover { text-decoration: none; }
.site-brand .brand-dot { color: var(--pine); }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--pine); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 14px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   Haus-Hero (Foto des Hauses ganz oben)
   ========================================================================== */
.house-hero {
  position: relative;
  width: 100%;
  height: clamp(320px, 55vw, 620px);
  overflow: hidden;
  background: var(--pine-tint);
}
.house-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.house-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(to top, rgba(26, 29, 26, 0.62), rgba(26, 29, 26, 0.05) 55%);
}
.house-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.house-hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 8px 0 0;
  max-width: 640px;
}
@media (max-width: 640px) {
  .house-hero-overlay { padding: 24px; }
}

/* Weiche kompakter, wenn ein Haus-Hero darüber liegt */
.hero-split.has-house-hero { min-height: min(48vh, 460px); }
.hero-split.has-house-hero .hero-pane { padding-top: 44px; }

/* ==========================================================================
   Hero-Weiche (Signatur-Element)
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 720px);
  border-bottom: 1px solid var(--line);
}
.hero-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 48px;
  color: inherit;
  overflow: hidden;
  transition: flex-grow 0.3s ease;
}
.hero-pane:hover { text-decoration: none; }
.hero-pane .pane-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.pane-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  opacity: 0.9;
}
.pane-ferien .pane-icon { color: rgba(255, 255, 255, 0.9); }
.pane-firmen .pane-icon { color: var(--pine); }
@media (max-width: 640px) {
  .pane-icon { width: 42px; height: 42px; margin-bottom: 12px; }
}
.hero-pane h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  margin-bottom: 10px;
}
.hero-pane p { max-width: 420px; margin: 0 0 22px; }
.hero-pane .pane-cta {
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-pane .pane-cta::after { content: "→"; transition: transform 0.15s ease; }
.hero-pane:hover .pane-cta::after { transform: translateX(5px); }
.pane-ferien { background: var(--pine); color: #fff; }
.pane-ferien .pane-label { color: rgba(255,255,255,0.7); }
.pane-ferien p { color: rgba(255,255,255,0.85); }
.pane-firmen { background: var(--paper); color: var(--ink); border-left: 1px solid var(--line); }
.pane-firmen .pane-label { color: var(--pine); }
.pane-firmen p { color: var(--ink-soft); }
.hero-house-name {
  position: absolute;
  top: 40px;
  left: 48px;
  right: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-pane { padding: 44px 24px; min-height: 320px; }
  .pane-firmen { border-left: 0; border-top: 1px solid var(--line); }
  .hero-house-name { left: 24px; }
}

/* ==========================================================================
   Gut zu wissen / Ausstattung
   ========================================================================== */
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  max-width: 860px;
}
.feature-strip-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pine);
  white-space: nowrap;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pine);
  font-weight: 700;
}

/* ==========================================================================
   Startseiten-Banner (vollflächig, Bild oder Video)
   ========================================================================== */
.home-banner {
  position: relative;
  width: 100%;
  height: clamp(260px, 45vw, 520px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--pine-tint); /* Fallback, solange Bild/Video lädt – kein Schwarz */
}
.home-banner video,
.home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--pine-tint);
}
.home-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 40px 48px;
  background: linear-gradient(to top, rgba(26, 29, 26, 0.55), transparent 55%);
  pointer-events: none;
}
.home-banner-text span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 700px;
}
@media (max-width: 640px) {
  .home-banner-text { padding: 24px; }
}

/* ==========================================================================
   Zimmertyp-Badge
   ========================================================================== */
.room-type {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pine);
  background: var(--pine-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   Zimmer-Karten
   ========================================================================== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.room-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.room-card:hover {
  text-decoration: none;
  border-color: var(--pine);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 29, 26, 0.08);
}
.room-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pine);
  margin-top: 8px;
}
a.room-card:hover .room-cta { text-decoration: underline; }
.room-card .room-thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--pine-tint); }
.room-card .room-thumb-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--pine-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 600;
}
.room-card .room-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-card h3 { margin: 0; }
.room-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.9rem; color: var(--ink-soft); }
.room-price { font-family: var(--font-display); font-weight: 600; color: var(--pine); margin-top: auto; padding-top: 10px; }
.room-price small { font-weight: 400; color: var(--ink-soft); }

/* ==========================================================================
   Formulare
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; }
.gh-hp { position: absolute !important; left: -9999px !important; }

.notice { padding: 16px 18px; border-radius: var(--radius); margin: 18px 0; font-size: 0.95rem; }
.notice-success { background: var(--pine-tint); color: var(--pine-deep); border: 1px solid var(--pine); }
.notice-error { background: #F8E9E5; color: var(--danger); border: 1px solid var(--danger); }

/* ==========================================================================
   Buchungskalender
   ========================================================================== */
.booking-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }

.gh-calendar { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.gh-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gh-cal-head .cal-title { font-family: var(--font-display); font-weight: 600; }
.gh-cal-nav { display: flex; gap: 8px; }
.gh-cal-nav button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
}
.gh-cal-nav button:hover:not([disabled]) { border-color: var(--pine); color: var(--pine); }
.gh-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gh-cal-grid .dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 6px 0;
}
.gh-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  position: relative;
}
.gh-day .cnt {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font-style: normal;
  font-size: 0.58rem;
  line-height: 1;
  color: var(--pine);
  font-weight: 600;
}
.gh-day.booked .cnt, .gh-day.none-free .cnt { color: #C2C6C2; }
.gh-day:hover:not(.disabled):not(.booked) { border-color: var(--pine); }
.gh-day.other { visibility: hidden; }
.gh-day.disabled, .gh-day.booked { color: #C2C6C2; cursor: not-allowed; text-decoration: line-through; }
.gh-day.booked { background: #F1F1EE; text-decoration: line-through; }
.gh-day.in-range { background: var(--pine-tint); border-radius: 0; }
.gh-day.range-start, .gh-day.range-end { background: var(--pine); color: #fff; border-radius: 8px; }
.gh-cal-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); flex-wrap: wrap; }
.gh-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gh-cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-free i { border: 1px solid var(--line); background: #fff; }
.legend-booked i { background: #F1F1EE; }
.legend-selected i { background: var(--pine); }
.legend-count { font-style: italic; }

.gh-alts-box {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pine-tint);
}
.gh-alts-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pine-deep);
  margin-bottom: 10px;
}
.gh-alt-chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 14px;
  border: 1px solid var(--pine);
  border-radius: 999px;
  background: #fff;
  color: var(--pine-deep);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.gh-alt-chip:hover { background: var(--pine); color: #fff; }

.booking-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
  position: sticky;
  top: 90px;
}
.booking-summary h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row .sum-total { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--pine); }
.sumup-hint { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 72px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a { color: var(--ink-soft); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Inhalt / Artikel
   ========================================================================== */
.entry-content { max-width: 760px; }
.entry-content img { border-radius: var(--radius); }
.page-hero { padding: 64px 0 8px; }
.page-image {
  margin: 28px 0 4px;
  max-width: 860px;
}
.page-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .page-image img { max-height: 240px; }
}
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 36px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; }
.info-card h3 { font-size: 1.05rem; }
.info-card p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
