/*
Theme Name: Zirbitzblick v3 Blocks
Theme URI: https://www.zirbitzblick.at/
Author: OpenAI
Description: Gutenberg-optimiertes WordPress-Theme fuer Zirbitzblick. Die Startseite wird als normale Gutenberg-Seite angelegt und laesst sich flexibel mit Bloecken bearbeiten.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: zirbitzblick-v3
*/

:root {
  --zb-bg: #f8f5ef;
  --zb-surface: #fffdf9;
  --zb-text: #2b2b2b;
  --zb-muted: #6a6a6a;
  --zb-green: #5e7d4c;
  --zb-green-dark: #435b35;
  --zb-sand: #e6d8be;
  --zb-accent: #c68642;
  --zb-line: #e8dfd2;
  --zb-radius: 22px;
  --zb-shadow: 0 18px 45px rgba(43, 43, 43, 0.08);
  --wp--style--global--content-size: 820px;
  --wp--style--global--wide-size: 1180px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--zb-text);
  background: var(--zb-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248,245,239,.86);
  border-bottom: 1px solid rgba(232,223,210,.8);
}

.site-header__inner,
.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--zb-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}

.site-brand__badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--zb-green), #84a36b);
  color: #fff;
  box-shadow: var(--zb-shadow);
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--zb-muted);
  text-decoration: none;
  font-size: 15px;
}

.site-booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--zb-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.site-main {
  padding-bottom: 40px;
}

.site-footer {
  padding: 42px 0 54px;
  color: var(--zb-muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--zb-line);
}

.entry-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.entry-content {
  display: grid;
  gap: 34px;
}

.zb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  background: rgba(94,125,76,.1);
  color: var(--zb-green-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.zb-card,
.zb-panel,
.zb-faq,
.zb-cta,
.zb-amenity,
.zb-check,
.zb-stat,
.zb-gallery-card,
.zb-hero-copy,
.zb-hero-side {
  background: var(--zb-surface);
  border: 1px solid var(--zb-line);
  border-radius: var(--zb-radius);
  box-shadow: var(--zb-shadow);
}

.zb-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
}

.zb-hero-copy {
  padding: 44px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.zb-hero-copy.has-bg {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.zb-hero-copy.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,253,249,.96));
}

.zb-hero-copy > * {
  position: relative;
  z-index: 1;
}

.zb-hero-side {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1.2fr auto;
}

.zb-hero-side .wp-block-image,
.zb-gallery-card .wp-block-image,
.zb-garden-visual .wp-block-image {
  margin: 0;
  height: 100%;
}

.zb-hero-side img,
.zb-gallery-card img,
.zb-garden-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zb-hero-side-media {
  min-height: 360px;
  position: relative;
}

.zb-hero-side-placeholder,
.zb-garden-placeholder,
.zb-gallery-placeholder {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--zb-muted);
  background: linear-gradient(135deg, #f3ebdd, #fffdf9);
}

.zb-section { display: grid; gap: 22px; }
.zb-section-head { max-width: 72ch; display: grid; gap: 14px; }
.zb-trust-row,
.zb-stats,
.zb-checklist,
.zb-amenities,
.zb-faq-grid,
.zb-gallery-grid,
.zb-two-col,
.zb-family-grid,
.zb-garden-grid { display: grid; gap: 18px; }

.zb-trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zb-trust-pill {
  padding: 14px;
  border-radius: 18px;
  background: rgba(230,216,190,.36);
  font-weight: 700;
  font-size: 14px;
}
.zb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zb-stat { padding: 16px; border-radius: 18px; background: #faf6ef; }
.zb-check { padding: 14px 16px; border-radius: 18px; background: #faf6ef; }
.zb-amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zb-amenity { padding: 24px; }
.zb-garden-grid,
.zb-family-grid,
.zb-two-col { grid-template-columns: 1fr 1fr; }
.zb-garden-visual {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--zb-radius);
  position: relative;
}
.zb-garden-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  z-index: 1;
}
.zb-garden-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.34));
  pointer-events: none;
}
.zb-quote {
  font-size: 1.18rem;
  color: #3d3d3d;
  padding: 22px;
  border-left: 5px solid var(--zb-accent);
  background: #fff8ed;
  border-radius: 18px;
}
.zb-gallery-grid { grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 280px 280px; }
.zb-gallery-card.is-large { grid-row: 1 / span 2; }
.zb-gallery-card { position: relative; overflow: hidden; min-height: 220px; }
.zb-gallery-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: 14px;
}
.zb-booking-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
}
.zb-cta {
  padding: 34px;
  text-align: center;
  background: linear-gradient(135deg, #f7efe1, #fffdf9);
}
.zb-small { color: var(--zb-muted); font-size: 14px; }

.wp-block-button.is-style-zb-primary .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-zb-primary {
  background: var(--zb-green);
  color: #fff;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
}

.wp-block-button.is-style-zb-secondary .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-zb-secondary {
  background: #fff;
  color: var(--zb-text);
  border: 1px solid var(--zb-line);
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .zb-hero-grid,
  .zb-garden-grid,
  .zb-family-grid,
  .zb-two-col,
  .zb-booking-card,
  .zb-amenities,
  .zb-gallery-grid { grid-template-columns: 1fr; }
  .zb-gallery-grid { grid-template-rows: repeat(5, 240px); }
  .zb-gallery-card.is-large { grid-row: auto; }
  .zb-trust-row,
  .zb-stats { grid-template-columns: 1fr 1fr; }
  .zb-hero-copy { min-height: auto; }
}

@media (max-width: 720px) {
  .site-header__inner { align-items: flex-start; }
  .site-nav { display: none; }
  .zb-hero-copy,
  .zb-panel,
  .zb-cta,
  .zb-booking-card,
  .zb-amenity { padding: 22px; }
  .zb-trust-row,
  .zb-stats { grid-template-columns: 1fr; }
}
