/* ============================================================
   Chalet Wasserkuppe – statische Website
   Nachbau des GeneratePress-Layouts, ohne WordPress.
   Alle Schriften sind Systemschriften, keine externen Requests.
   ============================================================ */

:root {
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #5d8425;
  --accent-hover: #6d9e2a;
  --page-bg: #f7f7f1;
  --container: 1500px;
  --pad: 40px;
  --gold: #f7b603;
  --muted: #70757a;
  --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--contrast);
  background-color: var(--page-bg);
  overflow-wrap: break-word;
}

img { border: 0; height: auto; max-width: 100%; vertical-align: middle; }

a { color: var(--accent); text-decoration: underline; }
a:hover,
a:focus,
a:active { color: var(--contrast); }

p { margin: 0 0 1.5em; }

h1, h2, h3 { margin: 0 0 20px; font-weight: 400; line-height: 1.2; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

ul, ol { margin: 0 0 1.5em 3em; padding: 0; }

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--contrast);
}
.skip-link:focus { left: 0; }

/* ---------- Kopfbereich ---------- */

.site-header { background-color: var(--page-bg); position: relative; }

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px var(--pad);
}

.site-title {
  margin: 0;
  font-size: 54px;
  font-weight: 100;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--contrast);
}
.site-title a { color: inherit; text-decoration: none; }

.site-tagline {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  color: var(--contrast-2);
}

/* ---------- Hero-Slider ---------- */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 442.4;
  overflow: hidden;
  background: var(--page-bg);
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide picture { display: block; width: 100%; height: 100%; }

/* Kreuzblende: das ausgehende Bild bleibt bis zum Ende voll deckend unter dem
   eingehenden liegen (.is-under). Dadurch blitzt zwischendurch nie der
   Seitenhintergrund durch – es entsteht eine echte weiche Überblendung. */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--hero-fade, 1200ms) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
}
.hero-slide.is-under {
  opacity: 1;
  z-index: 1;
  transition: none;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  max-width: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 18;
  line-height: 0;
  transition: opacity 0.4s;
  opacity: 1;
}
.hero-arrow:hover { opacity: 0.7; }
.hero-arrow--prev { left: 15px; }
.hero-arrow--next { right: 15px; }
.hero-arrow--next svg { transform: scaleX(-1); }
.hero-arrow svg { display: block; width: 32px; height: 32px; }
.hero-arrow svg path { fill: #ffffff; fill-opacity: 0.8; }

@media (max-width: 700px) {
  .hero { aspect-ratio: 1600 / 371; }
  .hero-arrow { display: none; }
}

/* Der Slider blendet bewusst immer weich über – auch wenn das Betriebssystem
   „reduzierte Bewegung“ meldet. Betroffen ist nur das weiche Scrollen. */

/* ---------- Beitragsbild (Unterseiten) ---------- */

.page-image {
  margin-top: 20px;
}
.page-image picture { display: block; }
.page-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Inhalt ---------- */

.site-main { background-color: var(--page-bg); }

.site-main .container { padding: 50px var(--pad) 60px; }

.entry-title { margin: 0 0 34px; }

.intro-columns {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 34px;
  row-gap: 34px;
  margin-bottom: 1.75em;
}
.intro-columns > .column { flex: 1 1 0; min-width: 0; }

.spacer { display: block; }

/* ---------- Buttons ---------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  clear: both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1em;
  padding: 25px 40px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: var(--accent);
  transition: background-color 0.2s linear;
}
.button:hover,
.button:focus,
.button:active { background-color: var(--accent-hover); color: #ffffff; }

.button .icon { line-height: 0; padding-right: 0.5em; }
.button .icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Galerie (Masonry) ---------- */

.gallery {
  display: block;
  column-count: 3;
  column-gap: 1em;
  margin: 0;
}
.gallery figure {
  margin: 0;
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1em;
}
.gallery a { display: block; text-decoration: none; }
.gallery picture { display: block; }
/* Abstand wie im WordPress-Original: verlinkte Bilder haben etwas mehr Luft */
.gallery figure.is-linked { padding-bottom: 7.72px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.lightbox__btn {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 12px 18px;
  opacity: 0.8;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn--prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { right: 8px; top: 4px; font-size: 34px; }
.lightbox__counter {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  opacity: 0.7;
}

/* ---------- Fußbereich ---------- */

.site-footer { background-color: var(--base-3); }

.site-footer .container { padding: var(--pad); }

.footer-widgets {
  display: flex;
  margin-left: calc(var(--pad) * -1);
}
.footer-widgets > div { flex: 1 1 0; min-width: 0; }

.widget { margin-bottom: 30px; padding-left: var(--pad); }
.widget:last-child { margin-bottom: 0; }

.footer-map {
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.footer-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.footer-map__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 5px;
  font-size: 11px;
  line-height: 1.5;
  color: #333;
  background: rgba(255, 255, 255, 0.75);
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
}
.footer-logos figure { margin: 0; width: calc(50% - 0.25em); }
.footer-logos img { display: block; width: 100%; height: auto; }

/* Share-Buttons (statisch, keine Tracking-Requests) */
.share {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.share li {
  position: relative;
  width: 105px;
  height: 25px;
  margin: 5px;
  overflow: hidden;
}
.share a {
  display: flex;
  align-items: center;
  width: 105px;
  height: 25px;
  background-color: #b0b0b0;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s linear;
}
.share a:hover { background-color: #8f8f8f; color: #fff; }
.share .share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex: 0 0 24px;
}
.share .share__icon svg { width: 12px; height: 12px; fill: #fff; }
.share .share__text {
  padding: 0 5px 0 1px;
  font-size: 11px;
  line-height: 25px;
  color: #fff;
}

.site-info {
  padding-bottom: 60px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  background-color: transparent;
}
.site-info .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px var(--pad);
}
.copyright-bar { margin: 0; }

/* ---------- Zurück nach oben ---------- */

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 3px;
  padding: 0;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1000px);
  transition: opacity 300ms ease-in-out, background-color 0.2s linear;
}
.back-to-top.is-shown { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background-color: rgba(0, 0, 0, 0.6); }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; vertical-align: middle; }

/* ---------- Rechtstexte ---------- */

.legal h2 { font-size: 28px; }
.legal h3 { font-size: 22px; }
.legal h4 { margin: 0 0 20px; font-size: 19px; font-weight: 600; line-height: 1.2; }
.legal > *:last-child { margin-bottom: 0; }
.legal ul { list-style: disc; }

/* ---------- Mobil ---------- */

@media (max-width: 768px) {
  :root { --pad: 30px; }

  .site-main .container { padding: 60px var(--pad) 50px; }

  .intro-columns { flex-wrap: wrap; }
  .intro-columns > .column { flex-basis: 100%; }

  .footer-widgets {
    flex-direction: column;
    margin-left: 0;
  }
  .footer-widgets > div { margin-bottom: 40px; }
  .footer-widgets > div:last-child { margin-bottom: 0; }
  .widget { padding-left: 0; }
}
