@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  color: var(--color-text-primary-dark);
  background: var(--color-bg-default-light);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

/* Il kit font ha solo Regular/Bold (niente Medium reale come nel Figma): questo
   micro-ispessimento del tratto imita un peso intermedio senza cambiare il layout. */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  -webkit-text-stroke: 0.3px currentColor;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
}

h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line);
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-cta-size);
  line-height: var(--text-cta-line);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Colori hover presi dal componente "Button" di Figma (Primary/Secondary/Tertiary):
   niente overlay nero, ogni variante ha il proprio riempimento e colore testo. */
.btn-accent {
  background: var(--color-accent-500);
  color: var(--color-text-primary-dark);
  --btn-hover-fill: var(--color-accent-700);
  --btn-hover-text: var(--color-text-primary-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-text-primary-dark);
  color: var(--color-text-primary-dark);
  --btn-hover-fill: var(--color-accent-200);
  --btn-hover-text: var(--color-accent-700);
  transition: border-color 0.35s ease;
}
.btn-outline:hover {
  border-color: var(--color-accent-700);
}

/* Terziario: link testuale, nessun riempimento, solo sottolineatura all'hover. */
.btn-tertiary {
  background: transparent;
  border: none;
  padding-left: 4px;
  padding-right: 4px;
  color: var(--color-accent-700);
  --btn-hover-fill: transparent;
  --btn-hover-text: var(--color-accent-700);
}
.btn-tertiary:hover .btn-label {
  text-decoration: underline;
}

/* Effetto "flair": un cerchio pieno si espande dal punto esatto in cui il cursore
   entra nel bottone, riempiendolo con il colore hover della variante. */
.btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.35s ease;
}

.btn-flair {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--btn-hover-fill, var(--color-accent-700));
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.btn-flair.is-active {
  transform: translate(-50%, -50%) scale(1);
}

.btn:hover .btn-label {
  color: var(--btn-hover-text, var(--color-text-primary-light));
}

/* Cursore personalizzato: un pallino che segue il mouse e si allarga sopra gli elementi
   cliccabili. Attivo solo su dispositivi con puntatore reale (niente touch). */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-500);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(var(--cursor-x, -100px), var(--cursor-y, -100px)) translate(-50%, -50%) scale(var(--cursor-scale, 0.5));
  transition: transform 0.18s ease-out, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cursor-dot.is-visible {
  opacity: 1;
}
.cursor-dot.is-hover {
  background: transparent;
  border: 1.5px solid var(--color-accent-500);
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn,
body.has-custom-cursor .btn-expand,
body.has-custom-cursor .menu-toggle,
body.has-custom-cursor .icon-btn {
  cursor: none;
}

.btn-outline.on-light-bg {
  border-color: var(--color-text-primary-dark);
}

main {
  display: block;
}

.section {
  padding: 72px var(--space-section-x);
}

.section--tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Tutto il contenuto di pagina (non gli sfondi/foto a tutta larghezza) si allinea a
   questa larghezza, la stessa dell'immagine hero e dell'header. */
.content-1037 {
  width: 100%;
  max-width: 1037px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  /* Spazio per non far coprire il fondo di ogni pagina dalla barra Anfragen/Buchen
     fissa in basso (vedi header.scss). */
  body {
    padding-bottom: 140px;
  }
  .section {
    padding: 48px 16px;
  }
  /* h1-h4 prendono automaticamente la scala mobile da tokens.scss (--text-h*-size). */
  /* Tutti i bottoni a piena larghezza su mobile (es. "Unser Haus kennenlernen"),
     indipendentemente dal contesto (align-self:flex-start non li stringe più). */
  .btn {
    width: 100%;
  }
}
