/* Salzbau 2 – www.salzbau.at */

:root {
  --ink: #0e1a0b;
  --green-top: #aacd89;
  --green-mid: #9cbc73;
  --green-bottom: #799b51;
  --font: "kiro", "Trebuchet MS", "Segoe UI", sans-serif;
  /* Bild 1920 × 1728 – Gebäude + Vorplatz belegen die obersten ~39 % */
  --img-ratio: 0.9;           /* Höhe / Breite */
  --img-scale: 100;           /* Bildbreite in vw */
  --img-offset: 0vw;          /* horizontaler Versatz bei Zoom auf Mobile */
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  background: var(--green-bottom);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

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

.stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to bottom, var(--green-top) 30%, var(--green-mid) 55%, var(--green-bottom) 80%);
}

.stage__bg {
  position: absolute;
  inset: 0 auto auto var(--img-offset);
  width: calc(var(--img-scale) * 1vw);
  max-width: none;
  height: auto;
  z-index: -1;
  transform-origin: 50% 0;
  animation: bg-in 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

/* Nahtlose Fortsetzung der Wiese, falls der Viewport höher als das Bild ist:
   Kachel aus dem unteren Bildrand (gespiegelt), gleiche Skalierung wie das Bild */
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--img-scale) * var(--img-ratio) * 1vw - 1px);
  bottom: 0;
  background: var(--green-bottom) url("../img/gras-textur.jpg") repeat-y;
  background-size: calc(var(--img-scale) * 1vw) auto;
  background-position: var(--img-offset) 0;
  z-index: -2;
}

.content {
  position: relative;
  padding: calc(var(--img-scale) * var(--img-ratio) * 1vw * 0.42) 6vw 4vw 19vw;
}

.title {
  margin: 0 0 0.3em;
  font-size: clamp(3.2rem, min(8vw, 11vh), 9.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.info {
  margin-left: 18.5vw;
  font-size: clamp(1.15rem, min(2.65vw, 3.4vh), 3.1rem);
  line-height: 1.25;
}

.claim {
  margin: 0;
  font-size: clamp(1.7rem, min(4vw, 5.2vh), 4.7rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.claim span { display: block; }

.pillars {
  margin: 0 0 0;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.pillars span {
  display: inline-block;
}

.offer {
  margin: 1em 0 0;
  font-weight: 400;
}

.contact {
  margin: 0;
  font-size: 1.37em;
  line-height: 1.22;
}

.contact a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s ease;
}

.contact a:hover,
.contact a:focus-visible { background-size: 100% 2px; }

.contact .tel { white-space: nowrap; }

.holding {
  margin: 1.8em 0 0;
  font-size: 0.65em;
  letter-spacing: 0.01em;
}

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

.footer {
  --footer-x: 19vw;            /* gleicher Abstand links und rechts */
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem var(--footer-x) 1rem;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  font-weight: 400;
}

.footer p { margin: 0; }

.footer a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease;
}

.footer a:hover,
.footer a:focus-visible { border-bottom-color: currentColor; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Animationen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 1ms + 400ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@keyframes bg-in {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stage__bg { animation: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .content { padding-left: 10vw; padding-right: 6vw; }
  .info { margin-left: 14vw; }
  .footer { --footer-x: 10vw; }
}

/* Smartphone: Bild vergrößern, damit das Gebäude gut sichtbar bleibt */
@media (max-width: 700px) {
  :root {
    --img-scale: 145;
    --img-offset: -22.5vw;
  }

  .stage {
    display: flex;
    flex-direction: column;
  }

  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--img-scale) * var(--img-ratio) * 1vw * 0.39 + 1rem) 1.25rem 3rem;
  }

  .title { margin-bottom: 0.45em; font-size: clamp(3.2rem, 17vw, 5rem); }

  .info { margin-left: 0; font-size: 1.15rem; }

  .claim { font-size: clamp(1.55rem, 7.4vw, 2.4rem); }

  .contact { font-size: clamp(1.45rem, 7vw, 2rem); }

  .holding { font-size: 0.8rem; }

  .footer {
    --footer-x: 1.25rem;
    font-size: 0.8rem;
  }
}

/* sehr breite Bildschirme: Text nicht endlos skalieren */
@media (min-width: 1800px) {
  .content { padding-left: calc(19vw); }
}
