/*=========================
   RESET
=========================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/*=========================
   COLORS
=========================*/

:root {
  --burgundy: #7a2e2e;
  --dusty-rose: #c9a3a3;
  --warm-beige: #f5ede8;
  --warm-grey: #2b2b2b;
  --spacing-big:140px;
  --spacing-medium:80px;
  --spacing-small:40px;
}


/*=========================
   BODY
=========================*/

body {
  background-color: var(--dusty-rose);
  color: var(--warm-grey);
  font-family: "Georgia", serif;
}


/*=========================
   LAYOUT
=========================*/

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  display:flex;
  flex-direction: column;
  gap: var(--spacing-small);
}


/*=========================
   HEADER
=========================*/

header {
  position: fixed;
  top: 30px;
  left: 40px;
}

.nav-toggle {
  display:none;
}

.logo {
  position: fixed;
  top: 50px;
  right: 40px;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.logo img {
  height: 180px;
  width:auto;
  display: block;
}


/*=========================
   NAV (clean small)
=========================*/

.overlay-nav {
  position: fixed;
  top: 200px;
  left: 40px;
  opacity: 1;
  line-height: 2.2;
  pointer-events: auto;
}


.overlay-nav a {
  display: inline-block;
  color: var(--burgundy);
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  opacity: 0.6;
}

.overlay-nav ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transition: 0.3s ease;
  opacity: 0.3;
}

.overlay-nav a:hover  {
  opacity:1;
}

/*=========================
   HERO (EDITORIAL)
=========================*/

.hero {
  margin-bottom: 0;
}

.hero-text h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--burgundy);
  margin-bottom: 40px;
}

/* HERO STACKED (untereinander) */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
  width: 100%;
}

/* Textbox */
.hero .text {
  width: 100%;
}

/* Bild */
.hero .images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}



/*=========================
   SECTIONS
=========================*/

.section,
.class-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-small);
  align-items: start;
}

.section.reverse {
  grid-template-areas: "images text";

}

section:not(.reverse) {
  grid-template-areas: "text images";
}

.section .text {
  grid-area: text;
  height:750px;
}

.section .images {
  grid-area: images;
  height: 750px;
  object-fit: cover;
}



.section.reverse .text{
  order:2;
}

.section.reverse .images{
  order:1;
}

.section.reverse * {
  direction: ltr;
}
/*=========================
  CLOSING SECTION
=========================*/

.closing-box {
  background: rgba(245, 237, 232, 0.6);
  border: 1px solid rgba(122, 46, 46, 0.2);
  padding: 60px;
  text-align: center;
  max-width: 100%;
}

.closing-box h2 {
  font-size: 2.4rem;
  color: var(--burgundy);
  margin-bottom: 20px;
}

.closing-box p {
  line-height: 1.7;
  margin-bottom: 15px;
}

/*=========================
   TEXT
=========================*/

.text {
  background: rgba(245, 237, 232, 0.6);
  padding: 70px 70px 70px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}


.text h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--burgundy);
}

.text p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.text::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--dusty-rose);
  border-left: 2px solid var(--dusty-rose);
}

.text::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--dusty-rose);
  border-right: 2px solid var(--dusty-rose);
}
/*=========================
   IMAGES
=========================*/

.images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.images{
  display: block;
  height: 100%;
}


/*=========================
   FOOTER
========================= */

footer {
  font-size: 0.75rem;
  opacity: 0.6;
  text-align: center;
  margin-bottom: 10px;
}

footer .credit {
  margin-top: 5px;
  font-size: 0.7rem;
}

/*=========================
   CLASSES PAGE
=========================*/
.pageTitle {
  font-size: 3rem;
  color: var(--burgundy);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.intro-text {
  max-width:100%;
  padding:30px;
  background: rgba(245, 237, 232, 0.6);
  position: relative;
}

.intro-text p{
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 50px;
}

.class-image {
  height: 100%;
  overflow: hidden;
}

.class-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.class-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-small);
  align-items: center;
}


/*=========================
   SCHEDULE PAGE
=========================*/
.schedule-box {
  background: rgba(245, 237, 232, 0.6);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-small);
  position: relative;
}

.schedule-column h3 {
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--burgundy);
  margin-top: 40px;
  margin-bottom: 10px;
}

.schedule-column p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 6px;
  opacity: 0.85;
}

.schedule-column h3:first-child {
  margin-top: 0;
}

.schedule-box h3{
  color: var(--burgundy);
  margin-bottom: 10px;
  margin-top:10px;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: 0.3s;
}


/*=========================
   ABOUT PAGE
=========================*/

.about {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
  object-position: center 80%;
}

/*=========================
   CONTACT PAGE
=========================*/

.button:not(.button-filled):hover {
  background: var(--burgundy);
  color: var(--warm-beige);
}




.button-filled {
  background: var(--burgundy);
  color: var(--warm-beige);
}

.button-filled:hover {
  background: transparent;
  color: var(--burgundy);
}

.text-buttons {
  width: auto;
}

.cta-buttons {
  display:flex;
  gap: 20px;
  margin-top:30px;
}

.about-image img{
  width:100%;
  display:block;
}
.contact .button{
  width:auto;
  display: inline-block
}
.contact .text {
  align-items: flex-start;
}

/* =========================
   CORNER SYSTEM (GLOBAL)
========================= */

.text,
.schedule-box,
.closing-box,
.intro-text {
  position: relative;
}

/* OBEN LINKS */
.text::before,
.schedule-box::before,
.closing-box::before,
.intro-text::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--dusty-rose);
  border-left: 2px solid var(--dusty-rose);
}

/* UNTEN RECHTS */
.text::after,
.schedule-box::after,
.closing-box::after,
.intro-text::after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--dusty-rose);
  border-right: 2px solid var(--dusty-rose);
}


@media (max-width: 768px) {

  /* ======================
     GLOBAL
  ====================== */
  body {
    overflow-x: hidden;
  }

  .content {
    padding: 30px 20px;
    gap: 40px;
  }

  /* ======================
     HEADER / LOGO
  ====================== */
  header {
    top: 15px;
    left: 20px;
  }

  .logo {
    top: 15px;
    right: 20px;
  }

  .logo img {
    height: 70px;
  }
/* ======================
   HEADER SPACING FIX
====================== */

/* Abstand für gesamten Content */
.content {
  padding-top: 120px;
}

/* HERO zusätzlich leicht runterziehen */
.hero {
  margin-top: 20px;
}

/* H1 etwas entspannen */
.hero-text h1 {
  line-height: 1.1;
}

  /* ======================
     NAV → CLEAN MOBILE
  ====================== */
  .nav-toggle {
    display: block;
    position: fixed;
    top: 18px;
    left: 20px;
    font-size: 26px;
    z-index: 1000;
    cursor: pointer;
  }

  .overlay-nav {
    display: none;
  }

  .overlay-nav.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: fixed;
    inset: 0;

    background: rgba(201, 163, 163, 0.95);
    backdrop-filter: blur(6px);

    z-index: 999;
  }

  .overlay-nav a {
    font-size: 1.4rem;
    margin: 12px 0;
    opacity: 1;
  }

  /* ======================
     HERO
  ====================== */
  .hero-text h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    text-align: center;
  }

  .hero-content {
    gap: 30px;
  }

  /* ======================
     GRID → STACK
  ====================== */
  .section,
  .class-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .section.reverse {
    flex-direction: column;
  }

  /* ======================
     ORDER FIX
  ====================== */
  .section .text {
    order: 1;
    height: auto;
  }

  .section .images {
    order: 2;
    height: auto;
  }

  /* ======================
     TEXT BOX
  ====================== */
  .text {
    padding: 35px;
  }

  .text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* ======================
     IMAGES
  ====================== */
  .images,
  .images img {
    height: auto;
  }

  .images img {
    width: 100%;
    display: block;
    object-fit: cover;
  }

  /* ======================
     CLASS IMAGE
  ====================== */
  .class-image {
    height: auto;
  }

  .class-image img {
    height: auto;
  }

  /* ======================
     SCHEDULE
  ====================== */
  .schedule-box {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  /* ======================
     BUTTONS
  ====================== */
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  /* ======================
     INTRO TEXT
  ====================== */
  .intro-text {
    padding: 20px;
  }

  .intro-text p {
    padding: 10px;
  }

  /* ======================
     SPACING
  ====================== */
  .section {
    margin-bottom: 50px;
  }

  /* ======================
   MOBILE: IGNORE REVERSE
====================== */

/* alle Sections gleich behandeln */
.section,
.class-section,
.hero-content {
  display: flex;
  flex-direction: column;
}

/* Text immer oben */
.section .text,
.class-section .text,
.hero-content .text {
  order: 1;
}

/* Bilder immer unten */
.section .images,
.class-section .class-image,
.hero-content .images {
  order: 2;
}


}
