/* ==========================================================================
   Yoga Loft Rankweil – individual stylesheet
   Loaded after css/bootstrap.min.css. Bootstrap handles grid, flex and
   spacing utilities; this file defines the project-specific design tokens
   and visual design that goes beyond Bootstrap defaults.
   ========================================================================== */

/* ---------------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Lock the site to the light palette even when the OS is in dark mode
     (prevents browser auto-darkening / Bootstrap color-scheme flips). */
  color-scheme: only light;

  /* Colors (from Figma) */
  --color-cream: #f5ead3;
  --color-gold: #cba65c;
  --color-link: #795316;
  --color-text: #000000;
  --border-footer: rgba(80, 62, 31, 0.18);

  /* Typography */
  --font-family-base: 'Open Sans', sans-serif;
  --fs-eyebrow: 1rem;        /* 16px, 700, letter-spacing .3125rem, uppercase */
  --fs-headline: 4rem;       /* 64px, 300 (Light) desktop size, scaled via clamp() */
  --fs-name: 1.5rem;         /* 24px, 600 */
  --fs-body: 1.25rem;        /* 20px, 400 */
  --fs-link: 1rem;           /* 16px, 400 */

  /* Layout */
  --content-max-width: 960px;
  --content-max-width-narrow: 704px;
  --content-max-width-narrow-sm: 576px;
  --section-padding-x: 2rem; /* 32px */
}

/* ---------------------------------------------------------------------
   Fonts (self-hosted Open Sans variable font, covers weights 300–700)
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/open-sans-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/open-sans-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/open-sans-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/open-sans-variable.woff2') format('woff2');
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-weight: 400;
}

a {
  color: var(--color-link);
}

/* Visible focus state for keyboard users on every interactive element */
a:focus-visible,
button:focus-visible,
.btn-route:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   Layout helpers (custom containers matching Figma content widths)
   --------------------------------------------------------------------- */
.container-custom {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.container-narrow {
  max-width: var(--content-max-width-narrow);
  margin-inline: auto;
}

.container-narrow-sm {
  max-width: var(--content-max-width-narrow-sm);
  margin-inline: auto;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-cream);
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .site-header {
    padding-block: 4.5rem;
  }
}

@media (min-width: 992px) {
  .site-header {
    padding-block: 6rem;
  }
}

.site-header__inner {
  display: flex;
  justify-content: center;
}

.logo {
  display: inline-block;
}

.logo__image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

@media (min-width: 768px) {
  .logo__image {
    max-width: 360px;
  }
}

@media (min-width: 992px) {
  .logo__image {
    max-width: 488px;
  }
}

/* ---------------------------------------------------------------------
   Sections (shared)
   --------------------------------------------------------------------- */
.section {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 4.5rem;
  }
}

@media (min-width: 992px) {
  .section {
    padding-block: 6rem;
  }
}

.section-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .section-intro {
    margin-bottom: 4rem;
  }
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.3125rem;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.section-headline {
  font-weight: 300;
  font-size: clamp(2rem, 1.1rem + 4.2vw, var(--fs-headline));
  line-height: 0.95;
  color: var(--color-gold);
  margin: 0.75rem 0 0;
}

.section-headline--on-gold {
  color: var(--color-text);
}

.section-text {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  margin: 1.5rem auto 0;
  max-width: var(--content-max-width-narrow-sm);
}

/* ---------------------------------------------------------------------
   Section: Über uns (Team)
   --------------------------------------------------------------------- */
.section--team {
  background-color: var(--color-cream);
}

/* Group photo in an arch shape (semicircle top, flat bottom) matching the
   Figma frame proportions of 960 x 498 for the "Über uns" section. The two
   top corners each use a horizontal radius of 50% of the width and a
   vertical radius calculated so that both resolve to the same pixel value
   (half the width) at any responsive size, forming one true semicircle. */
.team-photo-frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 498;
  margin: 2.5rem auto 0;
  overflow: hidden;
  border-top-left-radius: 50% 96.39%;
  border-top-right-radius: 50% 96.39%;
}

@media (min-width: 992px) {
  .team-photo-frame {
    margin-top: 4rem;
  }
}

.team-photo-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.team-grid {
  margin-top: 0;
  row-gap: 2rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member__name {
  font-size: var(--fs-name);
  font-weight: 600;
  line-height: 1.28;
  margin: 1.5rem 0 0;
}

.team-member__link {
  font-size: var(--fs-link);
  font-weight: 400;
  line-height: 1.6;
  margin: 0.25rem 0 0;
}

.team-member__link a {
  color: var(--color-link);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
   Section: Unser Raum
   --------------------------------------------------------------------- */
.section--room {
  background-color: var(--color-gold);
}

/* Room photo masked with the same arch shape and overall frame size as the
   team photo (see .team-photo-frame above), so both images appear at the
   same scale. */
.room-photo-frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 498;
  margin: 2.5rem auto 0;
  overflow: hidden;
  border-top-left-radius: 50% 96.39%;
  border-top-right-radius: 50% 96.39%;
}

@media (min-width: 768px) {
  .room-photo-frame {
    width: 70%;
  }
}

@media (min-width: 992px) {
  .room-photo-frame {
    margin-top: 4rem;
  }
}

.room-photo-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Cream border so the CTA stays visible on the gold section background */
.section--room .btn-route {
  border-color: var(--color-cream);
}

.section--room .btn-route:hover,
.section--room .btn-route:focus-visible {
  background-color: var(--color-cream);
  color: var(--color-text);
}

/* ---------------------------------------------------------------------
   Section: Kontakt & Lage
   --------------------------------------------------------------------- */
.section--contact {
  background-color: var(--color-cream);
  text-align: center;
}

.contact-address {
  font-style: normal;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  margin: 2.5rem 0;
}

.contact-address strong {
  font-weight: 600;
}

.btn-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-gold);
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-route:hover,
.btn-route:focus-visible {
  background-color: var(--color-gold);
  color: #ffffff;
}

/* ---------------------------------------------------------------------
   Section: Legal pages (Impressum / Datenschutz)
   --------------------------------------------------------------------- */
.section--legal {
  background-color: var(--color-cream);
}

.legal-content {
  font-size: 1.125rem;
  line-height: 1.6;
}

.legal-content__lead {
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2.5rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content__letter-list {
  list-style-type: lower-alpha;
}

.legal-content a {
  text-decoration: underline;
}

.footer-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-cream);
  border-top: 1px solid var(--border-footer);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 2rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0.5rem;
  padding-inline: 0.5rem;
  font-size: var(--fs-body);
  color: var(--color-text);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}
