/* ==========================================================================
   Flamenco Sin Fronteras – Startseite
   1:1-Umsetzung des Figma-Designs
   Desktop-Frame: 1728 px Inhaltsbreite (+ 25 px Seitenrand)
   Mobile-Frame:  402 px (Inhaltsbreite 352 px, 25 px Seitenrand)
   ========================================================================== */

/* ---------- Schriften (lokal, aus /Fonts) ---------- */
@font-face {
  font-family: "Vollkorn";
  src: url("/assets/fonts/vollkorn-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens (exakte Figma-Werte) ---------- */
:root {
  --beige:  #F3F0E3;   /* Hintergrund + helle Schrift */
  --plum:   #300419;   /* Footer, Buttons, dunkle Schrift */
  --orange: #FF7550;   /* Akzent */
  --white:  #FFFFFF;

  --vollkorn: "Vollkorn", Georgia, serif;
  --raleway:  "Raleway", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

img, svg { display: block; }

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

body {
  background: var(--beige);
  font-family: var(--raleway);
  color: var(--plum);
  -webkit-font-smoothing: antialiased;
}

/* Seitengerüst: 25 px Rand, Sektionen mit 100 px Abstand (Figma: gap 100).
   Der Hero liegt ausserhalb und läuft randlos über die volle Breite. */
.page {
  max-width: 1778px;
  margin: 100px auto 0;
  padding: 0 25px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.page > * { width: 100%; }

/* ==========================================================================
   Navigation (Burger, Figma 28:5021 – 100×100, Icon 75 px)
   ========================================================================== */
.nav-burger {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 100;
  width: 100px;
  height: 100px;
  background: var(--plum);
  border: none;
  cursor: pointer;
  padding: 12px;
}
.nav-burger img { width: 75px; height: 75px; }

/* X-Zustand des Burgers (im offenen Menü) */
.nav-burger__close { display: none; position: relative; width: 75px; height: 75px; }
.nav-burger__close::before,
.nav-burger__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 2px;
  background: var(--beige);
}
.nav-burger__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

body.menu-open .nav-burger img { display: none; }
body.menu-open .nav-burger__close { display: block; }

/* ==========================================================================
   Menü (Seiten-Drawer von links, wie im Figma-Prototyp)
   ========================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  right: 38%;                 /* Drawer bedeckt die linken ~62% der Fläche */
  z-index: 90;
  background: var(--plum);
  display: flex;
  flex-direction: column;
  padding: 12vh 8vw 50px;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}
body.menu-open .menu-overlay { transform: translateX(0); }
body.menu-open { overflow: hidden; }

.menu-overlay nav { margin-top: auto; }
.menu-overlay ul { list-style: none; }
.menu-overlay li + li { margin-top: 18px; }
.menu-overlay ul a {
  font-family: var(--vollkorn);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  transition: opacity 0.2s ease;
}
.menu-overlay ul a:hover { opacity: 0.75; }

.menu-overlay__bottom {
  margin-top: auto;
  padding-top: 60px;
  display: flex;
  align-items: center;
  gap: 19px;
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
}
.menu-overlay__bottom img { width: 31px; height: 31px; }
.menu-overlay__bottom .mail { color: var(--orange); }
.menu-overlay__bottom .legal { margin-left: 36px; color: var(--white); }
.menu-overlay__bottom .legal .sep { color: var(--orange); }

.menu-overlay__dancer {
  position: absolute;
  right: -6%;
  bottom: 6%;
  width: 14%;
}

/* ==========================================================================
   Hero (Figma 28:4961 – 1728×1117, randlos über die volle Breite)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1728 / 1117;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Verlauf: unten rgba(0,0,0,.5) → transparent bei 39.839 % (Figma-Gradient) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 9.087%,
    rgba(0, 0, 0, 0) 39.839%
  );
  pointer-events: none;
}

/* Logo: 420×144 bei y=100, zentriert */
.hero__logo {
  position: absolute;
  z-index: 1;
  top: 8.953%;                 /* 100 / 1117 */
  left: 50%;
  transform: translateX(-50%);
  width: 24.306%;              /* 420 / 1728 */
}
/* Linie: 1258 px breit bei y=344 (Figma Line 1, #FF7550) */
.hero__line {
  position: absolute;
  z-index: 1;
  top: 30.797%;                /* 344 / 1117 */
  left: 50%;
  transform: translateX(-50%);
  width: 72.801%;              /* 1258 / 1728 */
  border: none;
  border-top: 1px solid var(--orange);
}
/* Titelblock: 1258 px breit bei y=761 */
.hero__title {
  position: absolute;
  z-index: 1;
  top: 68.129%;                /* 761 / 1117 */
  left: 50%;
  transform: translateX(-50%);
  width: 72.801%;
  text-align: center;
  color: var(--beige);
}
.hero__title h1 {
  text-transform: uppercase;
  font-family: var(--vollkorn);
  font-weight: 400;
  font-size: 72px;
  line-height: 85px;
  letter-spacing: 1.6px;
}
.hero__title p {
  margin-top: 45px;
  font-weight: 500;
  font-size: 38px;
  line-height: 45px;
  letter-spacing: 1.6px;
}
.hero__title .br-mobile { display: none; }

/* ==========================================================================
   Intro (Figma 28:4963 – zwei Spalten à ~839 px)
   ========================================================================== */
.intro {
  max-width: 1677px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.intro__statement {
  font-weight: 500;
  font-size: 38px;
  line-height: 45px;
}
.intro__statement span { display: block; }
.intro__statement span + span { margin-top: 5px; }   /* Zeilenraster 50 px */
.intro__statement .indent { margin-left: 210px; }
.intro__statement .accent { color: var(--orange); }

.intro__text {
  font-weight: 500;
  font-size: 25px;
  line-height: 38px;
  max-width: 838px;
}
.intro__text p + p { margin-top: 38px; }             /* Leerzeile im Figma */
.intro__text .signature { font-weight: 600; }

/* ==========================================================================
   Veranstaltungen (Figma 44:1984)
   ========================================================================== */
.events { max-width: 1680px; }

.events__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.events__head h2 {
  font-family: var(--vollkorn);
  font-weight: 400;
  font-size: 72px;
  line-height: 85px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--orange);
}
.events__head .btn { margin-top: 30px; }

/* Button-Grundform (Figma: h 55, Padding 25, Gap 10, Text 20/36) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 55px;
  padding: 0 25px;
  font-weight: 500;
  font-size: 20px;
  line-height: 36px;
  cursor: pointer;
  white-space: nowrap;
}
.btn img { width: 25px; height: 25px; }
.btn--orange { background: var(--orange); color: var(--plum); }
.btn--plum   { background: var(--plum);  color: var(--orange); }

/* Kartenraster: 4 × 420 px, keine Lücke */
.events__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Karte (Figma „Veranstaltung“ – 420×940) */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--orange);  /* Linie ab Bildunterkante – s. Maske */
}
/* Die Linie beginnt im Figma erst unter dem Bild (y 525) */
.event-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 55.85%;
  background: var(--beige);
}
.event-card figure {
  aspect-ratio: 420 / 500;
  overflow: hidden;
}
.event-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Bildausschnitte wandern wie im Figma über das Panorama */
.event-card:nth-child(1) figure img { object-position: 0% 50%; }
.event-card:nth-child(2) figure img { object-position: 33% 50%; }
.event-card:nth-child(3) figure img { object-position: 66% 50%; }
.event-card:nth-child(4) figure img { object-position: 100% 50%; }

.event-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px 25px 0;
}
.event-card__body h3 {
  font-family: var(--vollkorn);
  font-weight: 400;
  font-size: 50px;
  line-height: 55px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 110px;           /* Titelzone: alle Daten auf gleicher Höhe */
}
.event-card__date {
  margin-top: 55px;            /* Leerzeile (55 px) im Figma */
  font-weight: 500;
  font-size: 38px;
  line-height: 45px;
}
.event-card__text {
  margin-top: 20px;
  font-weight: 500;
  font-size: 18px;
  line-height: 25px;
  min-height: 150px;
}
.event-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Mobiler „Alle Veranstaltungen“-Button – nur im Mobile-Layout sichtbar */
.events__all-mobile { display: none; }

/* ==========================================================================
   Footer (Figma 28:7851 – 1678×470, #300419)
   ========================================================================== */
.site-footer {
  position: relative;
  height: 470px;
  background: var(--plum);
  color: var(--beige);
}
.site-footer__logo {
  position: absolute;
  top: 50px;
  left: 1.49%;
  width: 11.12%;               /* 186.6 / 1678 */
}
.site-footer__verein {
  position: absolute;
  top: 40.21%;
  left: 1.49%;
  font-family: var(--vollkorn);
  font-weight: 400;
  font-size: 50px;
  line-height: 55px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
}
.site-footer__adresse {
  position: absolute;
  top: 40.21%;
  left: 37.49%;
  font-family: var(--vollkorn);
  font-weight: 400;
  font-size: 50px;
  line-height: 55px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-footer__dancer {
  position: absolute;
  top: 229px;
  left: 84.51%;
  width: 12.51%;
}
.site-footer__meta {
  position: absolute;
  top: 419px;
  left: 1.55%;
  right: 1.55%;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
}
.site-footer__meta .insta { width: 31px; height: 31px; }
.site-footer__meta .mail {
  color: var(--orange);
  margin-left: 19px;
}
.site-footer__meta .legal { margin-left: 55px; color: var(--white); }
.site-footer__meta .legal .sep { color: var(--orange); }

/* ==========================================================================
   Mobile (Figma-Frame 402 px – Layout 50:2676)
   ========================================================================== */
@media (max-width: 767px) {

  .page {
    margin-top: 50px;
    padding: 0 0 77px;         /* unten 77 px (Figma) */
    gap: 50px;
  }

  /* Auf schmalen Screens nimmt der Drawer die volle Breite ein */
  .menu-overlay {
    right: 0;
    padding: 100px 32px 32px;
  }
  .menu-overlay ul a {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: 0.6px;
  }
  .menu-overlay__bottom {
    flex-wrap: wrap;
    row-gap: 12px;
    padding-right: 90px;      /* Platz für die Tänzerin-Silhouette freihalten */
  }
  .menu-overlay__bottom .legal { margin-left: 0; width: 100%; }
  .menu-overlay__dancer {
    width: 72px;
    right: 24px;
    bottom: 20px;
  }

  /* Burger: 75×75 bei 25/25, Icon füllt die Fläche */
  .nav-burger {
    top: 25px;
    left: 25px;
    width: 75px;
    height: 75px;
    padding: 0;
  }
  .nav-burger img { width: 75px; height: 75px; }

  /* ---------- Hero (402×874) ---------- */
  .hero {
    aspect-ratio: auto;
    height: 100svh;
    min-height: 640px;
  }
  .hero__img { object-position: 80% 50%; }   /* Figma-Bildausschnitt mobile */
  .hero::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.5) 18.549%,
      rgba(0, 0, 0, 0) 39.839%
    );
  }
  /* Logo 262.5×90 bei y=200, Linie 352 px 50 px darunter */
  .hero__logo {
    top: 200px;
    width: 262.5px;
  }
  .hero__line {
    top: 340px;
    width: calc(100% - 50px);
    max-width: 352px;
  }
  .hero__title {
    top: 550px;
    width: calc(100% - 50px);
    max-width: 352px;
  }
  .hero__title h1 {
    font-size: 45px;
    line-height: 50px;
    letter-spacing: 0.9px;
  }
  /* Im mobilen Figma steht die Headline ohne Ausrufezeichen */
  .hero__title .only-desktop { display: none; }
  .hero__title p {
    margin-top: 25px;
    font-size: 25px;
    line-height: 36px;
    letter-spacing: 1.6px;
  }
  .hero__title .br-mobile { display: inline; }

  /* ---------- Intro ---------- */
  .intro {
    grid-template-columns: minmax(0, 1fr);
    width: 352px;
    max-width: calc(100% - 50px);
    margin: 0 auto;
  }
  .intro__statement {
    font-size: 25px;
    line-height: 36px;
  }
  .intro__statement span + span { margin-top: 0; }
  .intro__statement .indent { margin-left: 0; }
  /* Im mobilen Figma fliessen Zeile 2+3 zusammen */
  .intro__statement .flow { display: inline; }
  .intro__text {
    margin-top: 61px;          /* Figma: Textblock bei mt 169 (169−108) */
    font-size: 18px;
    line-height: 25px;
    max-width: none;
  }
  .intro__text p + p { margin-top: 25px; }

  /* ---------- Veranstaltungen ---------- */
  .events {
    width: 352px;
    max-width: calc(100% - 50px);
    margin: 0 auto;
  }
  .events__head h2 {
    font-size: 45px;
    line-height: 50px;
    letter-spacing: 0.9px;
    hyphens: manual;
  }
  .events__head .btn { display: none; }      /* Button steht mobil unter den Karten */

  .events__grid {
    margin-top: 25px;          /* Figma: Karten bei mt 125 (125−100) */
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .event-card figure { aspect-ratio: 352 / 450; }
  .event-card figure img { object-position: center !important; }
  .event-card__body { padding: 25px 17px 0 25px; }
  .event-card__body h3 {
    font-size: 45px;
    line-height: 50px;
    letter-spacing: 0.9px;
    min-height: 100px;
  }
  .event-card__date {
    margin-top: 55px;
    font-size: 25px;
    line-height: 36px;
  }
  .event-card__text {
    margin-top: 25px;
    margin-right: 4px;
    min-height: 150px;
  }
  .event-card .btn {
    margin-top: 25px;
    align-self: center;
    width: 302px;
    max-width: 100%;
  }

  .events__all-mobile {
    display: flex;
    margin: 50px auto 0;
    width: 302px;
    max-width: 100%;
  }

  /* ---------- Footer (352 px, zentriert) ---------- */
  .site-footer {
    width: 352px;
    max-width: calc(100% - 50px);
    margin: 0 auto;
    height: auto;
    padding: 50px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
  .site-footer__logo {
    position: static;
    width: 177.917px;
  }
  .site-footer__inner {
    position: relative;
    width: 302px;
    max-width: 100%;
  }
  .site-footer__verein {
    position: static;
    font-size: 25px;
    line-height: 32px;
    letter-spacing: 0.5px;
  }
  .site-footer__adresse {
    position: static;
    margin-top: 57px;          /* Figma: mt 89 − 32 */
    font-size: 25px;
    line-height: 32px;
    letter-spacing: 0.5px;
  }
  .site-footer__meta {
    position: static;
    margin-top: 50px;
    display: block;
    text-align: center;
    font-size: 20px;
    line-height: 35px;
  }
  .site-footer__meta .mail { display: block; margin: 0; }
  .site-footer__meta .legal { display: block; margin: 0; }
  .site-footer__dancer {
    position: absolute;
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
    width: 88px;
  }
  .site-footer__insta-mobile {
    display: inline-block;
    margin-top: 78px;
  }
  .site-footer__insta-mobile img { width: 35px; height: 35px; }

  /* Desktop-Instagram-Zeile ausblenden */
  .site-footer__meta .insta { display: none; }
}

/* Desktop: mobile Sonder-Elemente verbergen */
@media (min-width: 768px) {
  .site-footer__insta-mobile { display: none; }
  .intro__statement .flow { display: block; }
}
