/* =========================================================
   StallManager – Coming Soon
   ========================================================= */

/* ---------------------------------------------------------
   Schriften – lokal von diesem Server ausgeliefert.
   Kein Request an fonts.googleapis.com / fonts.gstatic.com,
   damit keine Besucher-IP an Google übertragen wird (DSGVO).
   Quelle: Google Fonts, Open Font License 1.1.

   Archivo Black: statische Schnittdatei, nur Gewicht 400.
   Sora: Variable Font – eine Datei deckt 300–500 ab.
   --------------------------------------------------------- */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/archivo-black-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/archivo-black-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --c-bg:        #16130f;
  --c-cream:     #f7f2e8;
  --c-cream-dim: #d9d0c1;
  --c-accent:    #d6b174;
  --c-line:      rgb(243 237 226 / 0.14);

  --font-body:    "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo Black", "Sora", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
}

@supports (color: oklch(0.78 0.09 80)) {
  :root { --c-accent: oklch(0.78 0.09 80); }
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-cream-dim);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   Hero – ganzseitig
   --------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--c-bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hochformat: Ausschnitt vom Mittelpfosten weg in Richtung Stallgasse */
@media (max-aspect-ratio: 3 / 4) {
  .hero__media img { object-position: 68% center; }
}

/* Abdunklung für Textlesbarkeit */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgb(20 16 11 / 0.94) 0%,
      rgb(20 16 11 / 0.78) 26%,
      rgb(20 16 11 / 0.46) 55%,
      rgb(20 16 11 / 0.24) 78%,
      rgb(20 16 11 / 0.38) 100%
    ),
    radial-gradient(120% 80% at 50% 100%, rgb(20 16 11 / 0.5) 0%, rgb(20 16 11 / 0) 70%);
}

/* ---------------------------------------------------------
   Nav-Label oben
   --------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(24px, 4vh, 44px) var(--gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cream);
}

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

.stage {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2.2vh, 22px);
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(40px, 7vh, 88px);
}

.stage__icon img {
  width: clamp(104px, 15vw, 168px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  box-shadow:
    0 24px 60px rgb(0 0 0 / 0.55),
    0 4px 16px rgb(0 0 0 / 0.4),
    0 0 80px rgb(255 220 160 / 0.12);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--c-cream);
}

.eyebrow {
  margin: 0;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-cream);
  max-width: 14ch;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-cream-dim);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   App-Store-Button (Platzhalter)
   --------------------------------------------------------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(6px, 1.4vh, 14px);
}

.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid rgb(243 237 226 / 0.22);
  border-radius: var(--radius);
  background: rgb(243 237 226 / 0.08);
  color: rgb(243 237 226 / 0.5);
  font-family: inherit;
  font-size: clamp(15px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1;
  cursor: not-allowed;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cta__glyph {
  width: 20px;
  height: 20px;
  flex: none;
}

.cta__hint {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgb(217 208 193 / 0.58);
}

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

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 0 var(--gutter) clamp(16px, 3vh, 24px);
  font-size: 11px;
  font-weight: 300;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
}

.footer__link {
  padding: 6px 0;
  font: inherit;
  letter-spacing: 0.08em;
  color: rgb(207 196 178 / 0.62);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.footer__link:hover,
.footer__link:focus-visible { color: var(--c-cream); }

.footer__credit {
  letter-spacing: 0.04em;
  color: rgb(217 208 193 / 0.45);
}

/* ---------------------------------------------------------
   Impressum-Modal
   --------------------------------------------------------- */

/* Scroll-Sperre, solange das Modal offen ist */
body.is-modal-open { overflow: hidden; }

.modal {
  width: min(520px, calc(100vw - 2 * var(--gutter)));
  max-height: min(78svh, 640px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: #1c1813;
  color: var(--c-cream-dim);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.6), 0 6px 20px rgb(0 0 0 / 0.4);
  overflow: hidden;
}

.modal::backdrop {
  background: rgb(12 10 7 / 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal__inner {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 34px);
  overscroll-behavior: contain;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(243 237 226 / 0.06);
  color: rgb(243 237 226 / 0.62);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal__close svg { width: 18px; height: 18px; }

.modal__close:hover,
.modal__close:focus-visible {
  background: rgb(243 237 226 / 0.14);
  color: var(--c-cream);
}

.modal__title {
  margin: 0 48px 4px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-cream);
}

.modal__body { font-size: 14px; }

/* Erstes Element schliesst buendig an die Ueberschrift an */
.modal__body > :first-child { margin-top: 0; }

.modal__body a {
  color: var(--c-cream);
  text-decoration: underline;
  text-decoration-color: rgb(243 237 226 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

.modal__body a:hover,
.modal__body a:focus-visible { text-decoration-color: var(--c-accent); }

.modal__body h3 {
  margin: 20px 0 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.modal__body p { margin: 0 0 10px; }
.modal__body p:last-child { margin-bottom: 0; }

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

@media (max-width: 560px) {
  .stage { gap: 14px; }
  .headline { max-width: 16ch; }
  .cta__button { width: 100%; max-width: 320px; }
  .footer {
    justify-content: center;
    text-align: center;
    row-gap: 4px;
  }
  .footer__nav { flex: 0 0 100%; justify-content: center; }
  .footer__credit { flex: 0 0 100%; }
}

/* Niedrige Hochformat-Displays: etwas kompakter, damit der Footer sichtbar bleibt */
@media (max-height: 640px) and (orientation: portrait) {
  .stage {
    gap: 10px;
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .stage__icon img { width: clamp(80px, 13vh, 104px); }
  .headline { font-size: clamp(28px, 5.6vh, 34px); }
  .lede { font-size: 14px; }
}

/* Querformat auf kleinen Geraeten: kompakter, damit alles sichtbar bleibt */
@media (max-height: 560px) and (orientation: landscape) {
  .topbar { padding-top: 10px; }

  .stage {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .stage__icon img { width: clamp(56px, 17vh, 84px); }

  .wordmark { font-size: clamp(16px, 4.6vh, 20px); }
  .eyebrow { font-size: 11px; }
  .headline { font-size: clamp(26px, 9vh, 38px); max-width: 22ch; }
  .lede { font-size: 14px; max-width: 56ch; }

  .cta { margin-top: 2px; gap: 6px; }
  .cta__button { min-height: 44px; padding: 11px 22px; font-size: 15px; }

  .footer { padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
