/*
 * ============================================
 * layout.css
 * Section wrappers, grids, spacing, hero,
 * dividers, and overall page structure.
 * Responsive breakpoints at the bottom.
 * ============================================
 */

/* ============================================
   CONTAINERS & SECTION SHELLS
   ============================================ */

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}
section { position: relative }
.section-pad { padding: 140px 0 }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.section-head .pg-mark {
  align-self: center;
  margin-bottom: 0;
  width: 56px;
  height: 56px;
}
.section-head h2 {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1;
  letter-spacing: 0.06em;
}
.section-head h2 br { display: none }
.section-head h2 .flourish {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.06em;
}

/* Flourish — accent word in mint, gleiche Font */
.flourish {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
  text-transform: uppercase;
  color: #710e33;
  letter-spacing: 0.06em;
}
.section-head .h-meta {
  grid-column: 2;
  margin-top: 16px;
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--smoke);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-head .h-meta .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 80px;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg .h-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg .h-img.one {
  background-image: url("../images/hero/logo-1.jpg");
  background-position: center 20%;
}
.hero-bg .h-img.two {
  display: none;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,rgba(10,8,7,.20) 0%,rgba(10,8,7,.18) 45%,rgba(10,8,7,.35) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100% }
.hero-tag {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.hero-tag .line { height: 1px; width: 60px; background: var(--mint) }
.hero-tag span {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--mint); font-weight: 600;
}
.hero h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(96px,18vw,260px);
  line-height: .82;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  position: relative;
}
.hero h1 .out {
  -webkit-text-stroke: 1.5px var(--paper);
  color: transparent;
}
.hero h1 .it {
  font-family: "Italiana", serif;
  font-style: italic;
  text-transform: none;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: .05em;
}
.hero-sub {
  font-family: "Italiana", serif;
  font-size: clamp(20px,2.4vw,32px);
  color: var(--paper);
  margin-bottom: 48px;
  max-width: 720px;
  letter-spacing: .02em;
  text-shadow: 0 1px 24px rgba(0,0,0,.5);
}
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; align-items: center }

/* ============================================
   DIVIDERS
   ============================================ */

.divider {
  height: 340px;
  background-size: cover;
  background-position: center 38%;
  background-attachment: fixed;
  position: relative;
}
.divider::after {
  content: ""; position: absolute; inset: 0;
  background: none;
}
@media (max-width:900px) {
  .divider { background-attachment: scroll; height: 240px }
}

/* Gallery divider — row of photos */
.divider-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 340px;
  overflow: hidden;
}
.divider-gallery .cell {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.divider-gallery .cell .ph {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s;
}
.divider-gallery .cell:hover .ph { transform: scale(1.06) }
.divider-gallery .cell::after {
  content: ""; position: absolute; inset: 0;
  background: none;
}
.divider-gallery .cell + .cell { border-left: 2px solid var(--cream) }
@media (max-width:900px) {
  .divider-gallery { height: 200px }
  .divider-gallery .cell:nth-child(n+4) { display: none }
}
@media (max-width:560px) {
  .divider-gallery { height: 170px }
  .divider-gallery .cell:nth-child(n+3) { display: none }
}

/* Angled single-image divider — slanted top & bottom edges */
.divider-angled {
  height: 460px;
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
  position: relative;
  margin: -60px 0;
  z-index: 1;
  -webkit-clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
          clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
}
.divider-angled::after {
  content: ""; position: absolute; inset: 0;
  background: none;
}
@media (max-width:900px) {
  .divider-angled {
    background-attachment: scroll; height: 240px;
    margin: -40px 0;
    -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
            clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  }
}

/* ============================================
   SECTION GRIDS
   ============================================ */

.studios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.kurse-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-bottom: 48px;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

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

@media (max-width:1024px) {
  .wrap { padding: 0 32px }
  .nav-inner { padding: 0 32px }
  .nav-links { display: none !important }
  .nav-cta { display: none !important }
  .nav-burger { display: flex !important }
  .studios-grid,
  .events-grid,
  .news-grid,
  .kontakt-grid { grid-template-columns: 1fr }
  .k-col:first-child { border-right: none; border-bottom: 1px solid var(--rule) }
  .kurse-grid { grid-template-columns: repeat(2,1fr) }
  .insta-grid { grid-template-columns: repeat(4,1fr) }
  .section-pad { padding: 96px 0 }
  .section-head { grid-template-columns: auto 1fr; gap: 16px; margin-bottom: 48px }
  .k-shared { grid-template-columns: 1fr; gap: 24px }
  h1 { font-size: clamp(72px, 10vw, 140px) }
  .divider { background-attachment: scroll }
  .divider-angled { background-attachment: scroll }
}
@media (max-width:640px) {
  .wrap { padding: 0 20px }
  .nav-inner { padding: 0 20px }
  .kurse-grid { grid-template-columns: 1fr }
  .insta-grid { grid-template-columns: repeat(2,1fr) }
  .hero { padding: 120px 0 48px; min-height: 100svh; min-height: 100dvh }
  .footer-top { grid-template-columns: 1fr }
  .tab { padding: 16px 24px; font-size: 18px }
  .k-col { padding: 32px 24px }
  .k-shared { padding: 32px 24px }
  h1 { font-size: clamp(52px, 14vw, 96px) }
  .hero-sub { font-size: 15px }
  .hero-ctas { flex-direction: column; gap: 12px }
  .hero-ctas .btn { width: 100%; text-align: center }
  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-bg .h-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
  }
.k-shared {
  grid-template-columns: 1fr !important;
  padding: 32px 24px;
}
.wa-band {
  padding: 28px 24px;
  flex-direction: column;
  align-items: flex-start;
}
.wa-btn {
  width: 100%;
  justify-content: center;
}
.k-col {
  padding: 32px 24px;
}
.k-col h3 {
  font-size: 40px;
}
.section-head h2 {
  font-size: clamp(32px, 8vw, 56px);
}
.section-head { grid-template-columns: auto 1fr; gap: 12px; }
.section-head .pg-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.section-head .h-meta { grid-column: 1 / -1; }
.studio-card h3 {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-size: 30px;
}
}
@media (max-width:560px) {
  .divider-gallery {
    height: 170px;
    overflow-x: auto;
    grid-auto-columns: 60vw;
  }
  .divider-gallery .cell:nth-child(n+3) { display: block }
}