/* Pferdehof Waldeck — static site */

:root {
  --olive: #5f6f42;
  --body-text: #7d7d7d;
  --footer-bg: #ababab;
  --footer-text: #333333;
  --page-max: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--body-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }
a:hover { color: var(--olive); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2 {
  font-weight: 500;
  color: var(--olive);
  line-height: 1.15;
  margin: 0 0 0.5em;
  /* prevent long German compounds from overflowing narrow columns */
  overflow-wrap: break-word;
  hyphens: auto;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
}

.site-title {
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
  margin-bottom: 0.25em;
}

.site-email {
  color: var(--body-text);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
}

.site-email a { text-decoration: none; }
.site-email a:hover { text-decoration: underline; }

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

.hero { margin: 0; }

.hero img {
  width: 100%;
  /* keeps the panorama from becoming a thin strip on wide screens
     or a tall block on phones */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1200px) {
  .hero img { aspect-ratio: 21 / 9; }
}

/* ---------- Intro ---------- */

.intro {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.intro h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }

.intro p {
  max-width: 34ch;
  margin-inline: auto;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.6rem);
}

/* ---------- Alternating text / image sections ---------- */

.split { padding: clamp(2rem, 6vw, 4.5rem) 0; }

.split-grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  /* image first on the left, text on the right */
  .split-grid--reverse .split-text { order: 2; }
  .split-grid--reverse .split-media { order: 1; }
}

.split-text h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

.split-text h2 + p { margin-bottom: 2em; }
.split-text p:last-child { margin-bottom: 0; }

.split-media {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-col--address { font-style: italic; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* In the stacked (single-column) layout, keep images from dominating
   the page on tablets — phones are narrower than this cap anyway. */
@media (max-width: 799px) {
  .split-media { max-width: 560px; }
}
