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

html, body {
    overflow-x: hidden;
}

section {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;

}

@font-face {
    font-family: superior_regular;
    src: url(fonts/LTSuperior-Regular.otf);
}

@font-face {
    font-family: superior_medium;
    src: url(fonts/LTSuperior-Medium.otf);
}

@font-face {
    font-family: headings;
    src: url(fonts/neue_einstellung_medium.otf);
}

@font-face {
    font-family: headings-light;
    src: url(fonts/neue_einstellung_regular.otf);
}

h1, h2, h3, h4, h5, h6,p {margin: 0;}

h1 {
   font-family: headings;
    text-align: center;
}

H1 {
    font-size: clamp(2.5rem, 4vw, 5rem);
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    letter-spacing: 4px; /* optional: tighter tracking reads better on phones */
  }
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}

h4 {
   font-size: clamp(1.5rem, 1.5vw, 3.5rem);
}
h5 {
   font-size: clamp(2rem, 1.75vw, 3.5rem);
    font-family: headings-light;
}
h2 {
    font-family: headings-light;
}


h3, h4{ font-family: headings;}

body {
    color: #222222;
    font-family: superior_regular;
    margin: 0;
    font-size: clamp(1rem, 1.25vw, 2rem);
    background-color: #f6f6f6;

}


a {
    color: #222222;
    text-decoration: none;
}

a:hover {
    color: #c4c13a;
}

ul {
    margin: 0;
}

button {
    color: white;
    background-color: #222222;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin: 1rem;
    padding-left: 3rem;
    padding-right: 3rem;
    width: 600px;
    border-radius: 50px;
    box-shadow: none;
    border-style: none;
    border-color: none;
    border-width: none;
    font-family: headings-light;
    font-size: clamp(2rem, 1.75vw, 3.5rem);

}

button:hover {
    background-color: #c4c13a;
}


#header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    width: 100%;
    align-content: baseline;
    background-color: #ffffff;!important;
    opacity: 1;
    z-index: 1;
    position: fixed;
    height: fit-content;
}
#mainlogo {
    max-width: 65%;
    margin: .5rem;
        grid-row: 1;
    grid-column: 1;
    align-self: baseline;
}

.hero-container {
  position: relative;
  width: 100%;            /* use 100% instead of 100vw */
  height: 90vh;          /* full screen hero */
  overflow: visible;      /* allows overlay to hang below */
    z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%; /* desktop focal point */
}

.hero-image2 {
    height: 70%;
    object-position: 25%;
}


.overlay-image {
  position: absolute;
  bottom: -50px;
  left: 5%;
  width: 30%;
}


/* Medium screens (tablets) */
@media (max-width: 1024px) {
  .overlay-image {
    width: 40%;    /* slightly bigger to compensate smaller hero */
    bottom: -40px;
    left: 5%;
  }
}

/* Small screens (large phones) */
@media (max-width: 768px) {
  .overlay-image {
    width: 40%;
    bottom: -30px;
    left: 4%;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
   .hero-image {
  width: 100%;            /* forces full width */
  height: 100%;           /* fills container height */
  object-fit: cover;
    object-position: 65%;
  display: block;         /* removes inline gap */
}
  .overlay-image {
    width: 65%;
    bottom: -25px;
    left: auto;
      right: 5%;
  }
}

.text_blocks {
    margin-top: 100px;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 100px;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}

.addpaddingH1{
    margin-bottom: 50px;
    font-family: headings-light;
}


.alternate {
    background-color: #E6E3DD;
    padding-top: 50px;
    padding-bottom: 50px;
}

.alternate .text_blocks {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: calc(100% - 2rem);
}

.nextup {
    color: #FFFFFF;
    width: 100%;
    margin-bottom: 1rem;
    text-align: left;
    margin-left: -10%;
}


@media (max-width: 1100px) {
.nextup {
    margin-left: 0;
}
   }

/* Center only when the event layout stacks */


@media (max-width: 768px) {
     .text_blocks{
       margin-top: 65px;
       margin-bottom: 50px;
   }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
   .text_blocks{
       margin-top: 50px;
       margin-bottom: 50px;
         margin-left: 5%;
    margin-right: 5%;
   }
}
.position_heading{
    margin-left: 10%;
}

.events_flex {
    display: flex;
    flex-wrap: nowrap;           /* keep side-by-side on desktop */
    gap: 2rem;                   /* spacing between the two divs */
    justify-content: center;      /* center the flex container */
    align-items: flex-start;      /* align top edges */
    width: 100%;
}

/* Make each child div a column stack */
.events_flex > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;      /* align text to left */
}

/* Tablet: stack second div under first */
@media (max-width: 810px) {

    @media (max-width: 810px) {

    .alternate .text_blocks {
        flex-direction: column;
        align-items: center;   /* centers children including NEXT UP */
    }

    .nextup {
        align-self: center;    /* centers THIS element only */
        text-align: center;
    }
}
    .events_flex {
        flex-direction: column;   /* stack divs vertically */
        align-items: center;      /* center the stack horizontally */
        gap: 1.5rem;              /* spacing between stacked divs */
    }

    .events_flex > div {
        width: 100%;              /* fill available width */
        max-width: 500px;         /* optional: cap width */
        align-items: center;      /* center text inside each block */
    }
}
@media (max-width: 480px) {
   .events_flex{
       margin-top: 50px;
       margin-bottom: 50px;
       gap: 0;
   }
}


.socialicon {
    width: 40%;
}


.center {
    display: flex;
    flex-direction: column;   /* stack H2 above P */
    align-items: center;      /* center horizontally */
    text-align: center;       /* center text inside each element */
    justify-content: center;  /* optional vertical centering if height is set */
}

.socials_flex {
    display: flex;
    justify-content: center;   /* center the pairs horizontally */
    align-items: center;       /* vertical alignment */
    gap: 2rem;                 /* space between pairs */
    flex-wrap: wrap;           /* allow wrapping on small screens */
}

.socials_pair {
    display: flex;             /* flex to line up icons horizontally */
    justify-content: center;   /* center icons inside pair */
    align-items: center;       /* vertical alignment */
    gap: 3rem;                 /* space between icons */
}

.socials_pair a {
    display: inline-flex;      /* ensures link wraps image correctly */
}

.socialicon {
    width: 75px;               /* fixed size works better than % for centering */
    height: auto;
}

.text_blocks-socials {
    margin-bottom: 75px;
}

/* Mobile stacking */
@media (max-width: 580px) {
    .socials_flex {
        flex-direction: column;  /* stack pairs vertically */
        gap: 1.5rem;             /* vertical space between rows */
    }
}

.site-footer {
    background-color: #152101;       /* matches your button/footer style */
    color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-content: center;
}

.footerlogo {
    margin-top: 50px;
    max-width: 30%;
    height: auto;
    align-self: center;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #c4c13a; /* matches your hover accent */
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-content p {
    margin: 0;  /* removes default paragraph spacing */
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 60px;
}

.footer-socials a {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-socials img {
  width: 45px;
  height: 45px;
  display: block;
}
.newsletter-box {
  width: 100%;
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  font-family: "headings-light", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.newsletter-text {
  font-size: 0.95rem;
  margin-bottom: 18px;
  max-width: 420px;
    font-size: 12px;
}

#load-newsletter-btn {
  background: #c4c13a;
  color: #ffffff;
  border: none;
    width: auto;
    padding: 10px 5rem;
  font-family: "headings-light", sans-serif;
  cursor: pointer;
  transition: background-color .25s ease;
    font-size: 1.5rem;
}

#load-newsletter-btn:hover {
  background: #b93040;
}

/* iframe fix */
.newsletter-box iframe {
  width: 100% !important;
  max-width: 520px;
  height: 520px;
  border: 0;
}



hr {
    color: #9d9d9d;
    margin-top: 75px;
    margin-bottom: 75px;
    width: 80%;
}

#socials_section {
    background-color: #ECECEA;
    padding-top: 5px;
    padding-bottom: 150px;
}



.second-title {
font-size: clamp(3rem, 8vw, 10vw);
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.h1-1 {
    font-size: clamp(4rem, 7vw, 10rem);
    padding-bottom: 2rem;
    text-align: center;
    margin-bottom: 25px;

}

.heading-center {
        display: flex;
    justify-content: center;  /* horizontal centering */
    align-items: center;      /* vertical centering */
}

#repsection {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ================= CONCERT REPERTOIRE ================= */

.concert_rep {
    --composer-width: 8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8rem;
    row-gap: 2.2rem;
}

.opera_rep {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 6vw, 6rem);
    row-gap: 3rem;
}

.concert_rep,
.opera_rep {
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto;
    padding-inline: 6vw;
    box-sizing: border-box;
}


.repertoire_mini {
    display: grid;
    grid-template-columns: var(--composer-width) 1fr;
    column-gap: 1.4rem;
    align-items: baseline;
}

.composer {
    font-family: headings;

}

.works p {
    margin: 0.25rem 0;
}

/* ================= OPERA ================= */


.repertoire_mini_opera {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 0.4rem .5rem;
    align-items: baseline;
}

.repertoire_mini_opera .composer:not(:first-child) {
    visibility: hidden;
}

.role {  }

/* MOBILE */

@media (max-width: 900px) {
          .concert_rep {
        grid-template-columns: auto;   /* shrink to content */
        justify-content: center;       /* center the column */
    }

  .opera_rep {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    justify-content: center;     /* center the entire table */
    column-gap: 1.2rem;
    row-gap: 0.35rem;
  }

  .repertoire_mini_opera {
    display: contents;           /* removes inner grid */
  }


}


section-divider {
  border: none;
  height: 1px;
  background-color: #a0a688; /* soft stone tone */
  margin: 60px 0;
}

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

/* ================= MOBILE REPERTOIRE RESET ================= */
@media (max-width: 480px) {

  /* kill desktop grid behavior completely */
  .concert_rep,
  .opera_rep,
  .repertoire_container {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 2rem auto;
    padding: 0 1.2rem;

  }

  /* ---------- CONCERT ---------- */

  .repertoire_mini {
    display: grid;
    grid-template-columns: 8rem 1fr;
    column-gap: 1.2rem;
    margin-bottom: 1.6rem;
  }

  .works { text-align: left; }

  /* ---------- OPERA ---------- */

  .repertoire_mini_opera {
    display: block;
    margin-bottom: 2rem;
  }

  .repertoire_mini_opera .composer {
    display: block;
    font-family: headings;
    margin-bottom: .35rem;
  }

  .repertoire_mini_opera .role,
  .repertoire_mini_opera .work {
    display: inline;
  }

  .repertoire_mini_opera .role::after {
    content: " | ";
    opacity: .6;
  }

  /* show composer for each entry again */
  .repertoire_mini_opera .composer:not(:first-child) {
    visibility: visible;
    margin-top: .5rem;
  }

}

/* ================= CONTACT SECTION ================= */

.contact-section {
    padding-top: 5px;
    padding-bottom: 25px;
}
.contact-email {
    padding-top: 5px;
    padding-bottom: 25px;
    text-align: center;

}
.contact-email::before {
    content: " ";
}

.contact-button {
    cursor: pointer;
}
.contact-button:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

/* keeps columns close together instead of page-wide */


/* grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    align-items: center;
    margin: 0px auto 0 auto;
    max-width: 80%;
}

/* text column */
.contact-text p {
    margin: 6px 0;
}

/* button column */
.contact-action {
    text-align: right;
}

/* button appearance */
.contact-button {
    display: inline-block;
    padding: 14px 30px;
    border: 2px solid #000;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

/* hover effect */
.contact-button:hover {
    background: #000;
    color: #fff;
}

/* written email under columns */
.contact-email {

    letter-spacing: 0.05em;
    word-break: break-all;
    text-align: center;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-action {
        text-align: left;
    }

    .contact-button {
        width: 100%;
        text-align: center;
    }

    .contact-email {

    }
}
