/* =========================================================
   Säben Klausen 6000 – Coming-Soon Landingpage
   Schlicht, ruhig, sepiafarbenes Panorama als einziges Bild
   ========================================================= */

/* ---------- Reset / Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text-color: #a35b3f;      /* Coming-Soon-Textfarbe */
  --logo-width: 240px;         /* Logobreite Desktop */
  --edge-gap: 52px;            /* Abstand zum Seitenrand */
  /* Feste Oberkante des Fotos (statt vh): hält den weißen Streifen
     zwischen Logo und Bild auf jeder Bildschirmhöhe konstant. */
  --content-top: 250px;
}

html,
body {
  height: 100%;
}

body {
  background: #ffffff;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  color: var(--text-color);
  /* Kein Scrollen nötig – Seite füllt genau den Viewport */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Seitengerüst ---------- */
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh; /* stabile Höhe auf mobilen Browsern */
  overflow: hidden;
}

/* ---------- Logo oben links ---------- */
.logo {
  position: absolute;
  top: var(--edge-gap);
  left: var(--edge-gap);
  width: var(--logo-width);
  height: auto;
  z-index: 3;
  user-select: none;
}

/* ---------- Panoramafoto unten angedockt ---------- */
.panorama {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Explizite Höhe (Bild ist ein <img> und würde sonst seine
     Eigenhöhe behalten). Oberkante = --content-top, unten angedockt. */
  height: calc(100vh - var(--content-top));
  height: calc(100svh - var(--content-top));
  width: 100%;
  object-fit: cover;
  /* Bildausschnitt oben ausrichten: Himmel, Kloster Säben und Bergkamm
     bleiben immer sichtbar; bei breit-flachen Fenstern wird stattdessen
     der Vordergrund (Stadt) unten leicht beschnitten. */
  object-position: center top;
  display: block;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

/* ---------- Coming-Soon-Textblock ---------- */
/* Rechts von der Bildmitte, oberhalb des Bergkamms */
.intro {
  position: absolute;
  /* Im weißen Streifen oberhalb des Fotos, rechts von der Bildmitte */
  top: 100px;
  left: 50%;
  z-index: 2;
  max-width: 520px;
}

/* Startzustand für die sanfte Einblendung – NUR wenn JS aktiv ist.
   Ohne JS bleibt der Text sofort sichtbar (kein leerer Bildschirm). */
.js .intro {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
}

/* Sichtbarer Zustand nach dem Laden */
.js .intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro__headline {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 0.55em;
}

.intro__line {
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Kontakt-E-Mail: leicht abgesetzt, etwas kleiner */
.intro__contact {
  margin-top: 1.4em;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.5;
}

.intro__contact a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 91, 63, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.intro__contact a:hover,
.intro__contact a:focus-visible {
  border-color: var(--text-color);
  opacity: 0.85;
}

/* =========================================================
   Responsive – Tablet / Mobile
   ========================================================= */
@media (max-width: 820px) {
  :root {
    --edge-gap: 32px;
    --logo-width: 180px;
    /* Foto startet unterhalb des gestapelten Textblocks */
    --content-top: 400px;
  }

  /* Textblock unter das Logo, linksbündig */
  .intro {
    top: auto;
    left: var(--edge-gap);
    right: var(--edge-gap);
    /* Position unterhalb des Logos, oberhalb des Fotos */
    top: 225px;
    max-width: none;
  }

  .intro__headline {
    font-size: 1.15rem;
    margin-bottom: 0.4em;
  }

  .intro__line {
    font-size: 1rem;
    line-height: 1.35;
  }

  .intro__contact {
    margin-top: 1em;
  }
}

@media (max-width: 480px) {
  :root {
    --logo-width: 150px;
    --content-top: 360px;
  }

  .intro {
    top: 205px;
  }

  .intro__headline {
    font-size: 1.05rem;
    margin-bottom: 0.35em;
  }

  .intro__line {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .intro__contact {
    font-size: 0.9rem;
    margin-top: 0.9em;
  }
}

/* Bewegung reduzieren, wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce) {
  .js .intro {
    transform: none;
    transition: opacity 0.4s ease;
  }
  .js .intro.is-visible {
    transform: none;
  }
}
