/* =============================================
   TIPI — Global Styles
   ============================================= */

@font-face {
    font-family: 'StudioFeixenSans-Book';
    src: url('fonts/StudioFeixenSans-Book.woff2') format('woff2'),
         url('fonts/StudioFeixenSans-Book.woff') format('woff'),
         url('fonts/StudioFeixenSans-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --color-tipi:      #007c87;
  --color-tanz:      #e5676a;
  --color-cantienica:#00a2d1;
  --color-angebote:  #53ae4e;
  --color-raum:      #b08663;
  --color-kontakt:   #fbe85e;
  --nav-height:      80px;
  --font-display:    'StudioFeixenSans-Book', sans-serif;
  --font-body:       'StudioFeixenSans-Book', sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  background: #fff;
  overflow-x: hidden;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: stretch;
  z-index: 100;
  background: white;
}

.nav-brand {
  display: flex;
  align-items: center;
  padding: 0 1.4rem;
  background: var(--color-tipi);
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  min-width: 80px;
  transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  flex: 1;
  align-items: stretch;
  list-style: none;
}

.nav-links li {
  flex: 1 1 auto;
  min-width: max-content;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1rem 10px 1rem;
  text-decoration: none;
  color: rgba(0,0,0,0.75);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, color 0.2s, background 0.2s, border-top-color 0.2s;
  text-align: center;
  background: white;
  border-top: 20px solid transparent;
  box-sizing: border-box;
  white-space: nowrap;
}

.nav-links a:hover { opacity: 0.7; }

/* Top stripe colors for each tab */
.nav-links li:nth-child(1) a { border-top-color: var(--color-tipi); }
.nav-links li:nth-child(2) a { border-top-color: var(--color-tanz); }
.nav-links li:nth-child(3) a { border-top-color: var(--color-cantienica); }
.nav-links li:nth-child(4) a { border-top-color: var(--color-angebote); }
.nav-links li:nth-child(5) a { border-top-color: var(--color-raum); }
.nav-links li:nth-child(6) a { border-top-color: var(--color-kontakt); }

/* Active state with colored backgrounds */
.nav-links li:nth-child(1) a.active { background: var(--color-tipi); }
.nav-links li:nth-child(2) a.active { background: var(--color-tanz); }
.nav-links li:nth-child(3) a.active { background: var(--color-cantienica); }
.nav-links li:nth-child(4) a.active { background: var(--color-angebote); }
.nav-links li:nth-child(5) a.active { background: var(--color-raum); }
.nav-links li:nth-child(6) a.active { background: var(--color-kontakt); }

.nav-links a.active {
  color: rgba(0,0,0,1);
  font-weight: 400;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25);
}

/* Triangle logo */
.nav-triangle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 0 6rem;
  margin-left: clamp(0.2rem, 12vw, 20rem);
  background: white;
  cursor: default;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid var(--color-tipi);
  transition: border-bottom-color 0.3s;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 1rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

/* Hamburger color changes based on active page */
.nav-hamburger.active-tipi span { background: var(--color-tipi); }
.nav-hamburger.active-tanz span { background: var(--color-tanz); }
.nav-hamburger.active-cantienica span { background: var(--color-cantienica); }
.nav-hamburger.active-angebote span { background: var(--color-angebote); }
.nav-hamburger.active-raum span { background: var(--color-raum); }
.nav-hamburger.active-kontakt span { background: var(--color-kontakt); }

/* =============================================
   PAGE WRAPPER
   ============================================= */

.page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* =============================================
   HOME — TIPI PAGE
   ============================================= */

.home-hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  background-image: url('../images/Bewegung.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SECTION HERO (Tanz, Cantienica, etc.)
   ============================================= */

.section-hero {
  position: relative;
  height: calc(100vh - var(--nav-height));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0 0 8vh 4vw;
  overflow: hidden;
}

/* Colour tint overlay — set per page via class */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.tanz-hero       { background-image: url('../images/tanz_desktop.jpg'); }

.cantienica-hero { background-image: url('../images/cantienica_desktop.jpg'); }

.angebote-hero  { background-image: url('../images/angebote.jpg'); }

.raum-hero      { background-image: url('../images/raum.webp'); }

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 420px;
  animation: slideUp 0.7s ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  max-width: 320px;
}

/* Squiggle accent on hero text */
.hero-squiggle {
  display: block;
  margin-top: 1.5rem;
  width: 180px;
  height: 40px;
  opacity: 0.5;
}

.hero-overlay-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;          /* above the ::before tint (z-index auto) */
  pointer-events: none; /* so it doesn't block clicks */
}

/* =============================================
   CONTENT SECTIONS (below hero)
   ============================================= */

.content-section {
  padding: 5rem 8vw;
  max-width: 860px;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #222;
}

.content-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

/* =============================================
   ANGEBOTE — course cards (shared desktop + mobile)
   ============================================= */

.mob-angebote-intro {
  padding: 2rem 8vw 1.5rem;
  max-width: 860px;
}

.mob-angebote-intro .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-angebote);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.mob-angebote-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: #222;
}

.mob-angebote-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.mob-cards {
  padding: 0 min(8vw, 4rem) 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
}

.mob-card {
  background: #f5f2ec;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.mob-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--swatch, #ccc);
}

.mob-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0.6rem 0 0;
}

.mob-card .sub {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.mob-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #666;
}

.mob-card__img {
  display: block;
  width: calc(100% + 2 * 1.25rem);
  margin: -1.25rem -1.25rem 0.75rem;
  height: auto;
}

/* =============================================
   SCHEDULE + PRICE DETAIL  (shared desktop + mobile)
   ============================================= */

.mob-detail {
  padding: 2.5rem 8vw 4rem;
  max-width: 860px;
}

.mob-detail h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: #222;
  margin: 2rem 0 0.6rem;
}

.mob-detail h3:first-child { margin-top: 0; }

.mob-detail .schedule {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}

.mob-detail .schedule li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  align-items: baseline;
}

.mob-detail .schedule li b    { font-weight: 500; }
.mob-detail .schedule li span { color: #666; }

.mob-detail dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 0.5rem;
  column-gap: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.mob-detail dt { color: #444; }
.mob-detail dd { color: #666; margin: 0; }

/* =============================================
   KONTAKT CARD  (shared desktop + mobile)
   ============================================= */

.mob-kontakt-extra {
  padding: 0 0 4rem;
  max-width: 580px;
  font-family: var(--font-display);
}

.mob-kontakt-extra .intro {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #666;
  margin-bottom: 1.75rem;
}

.mob-kontakt__card {
  background: #f5f2ec;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.mob-kontakt__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--color-kontakt);
}

.mob-kontakt__field {
  padding: 0.875rem 0;
  border-bottom: 1px solid #e9e3d2;
  font-size: 0.95rem;
}

.mob-kontakt__field:last-child { border-bottom: none; }

.mob-kontakt__field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.2rem;
}

.mob-kontakt__field a { color: inherit; text-decoration: none; }
.mob-kontakt__field a:hover { text-decoration: underline; }

.mob-kontakt-sig {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.mob-kontakt-sig b { color: #222; }

.mob-kontakt-sig__tri {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left:  9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--color-tipi);
}

/* =============================================
   KONTAKT PAGE
   ============================================= */

.kontakt-page {
  padding: 6rem 8vw;
  min-height: calc(100vh - var(--nav-height));
}

.kontakt-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: #222;
}

.kontakt-info p {
  font-size: 1rem;
  line-height: 2;
  color: #444;
}

.kontakt-info a {
  color: var(--color-tipi);
  text-decoration: none;
}

.kontakt-info a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 680px) {
  /* Hide all nav elements — the .mob-tabs rule below re-shows the bottom bar */
  nav { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li { flex: none; }

  .nav-links a {
    justify-content: flex-start;
    padding: 1rem 1.4rem;
    font-size: 1rem;
    height: 52px;
    border-top: none;
    border-left: 5px solid transparent;
    transition: opacity 0.2s, color 0.2s, background 0.2s, border-left-color 0.2s;
  }

  /* Left stripe colors for each mobile menu item */
  .nav-links li:nth-child(1) a { border-left-color: var(--color-tipi); }
  .nav-links li:nth-child(2) a { border-left-color: var(--color-tanz); }
  .nav-links li:nth-child(3) a { border-left-color: var(--color-cantienica); }
  .nav-links li:nth-child(4) a { border-left-color: var(--color-angebote); }
  .nav-links li:nth-child(5) a { border-left-color: var(--color-raum); }
  .nav-links li:nth-child(6) a { border-left-color: var(--color-kontakt); }

  .nav-hamburger { display: flex; }
  .nav-triangle   { display: none; }

  .section-hero {
    padding: 0 0 6vh 6vw;
  }

  .hero-text h1 { font-size: 2rem; }
}
