/* ==========================================================================
   Kir Royal - Show Ballet Entertainment
   Refactored from Adobe Muse (2014) to modern CSS
   ========================================================================== */

/* ==========================================================================
   1. Custom Properties
   ========================================================================== */
:root {
  --color-primary: #4BC2FF;
  --color-primary-dark: #29ABE2;
  --color-primary-light: #A0DEFF;
  --color-text: #646464;
  --color-text-white: #FFFFFF;
  --color-error: #D7244C;
  --color-input-border: #C4C4C4;
  --color-input-border-focus: #6B6B6B;
  --color-input-bg: #F2F2F2;
  --color-input-text: #4F4F4F;
  --color-status-sending: #999999;

  --font-heading: 'Comfortaa', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-logo: Palatino, 'Palatino Linotype', Georgia, 'Times New Roman', serif;

  --site-width: 960px;
  --nav-height: 33px;
}

/* ==========================================================================
   2. Reset / Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  word-wrap: break-word;
}

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

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

input, button, textarea, select {
  font: inherit;
}

input:focus, textarea:focus {
  outline: none;
}

textarea {
  resize: none;
}

ul {
  list-style: disc;
  padding-left: 34px;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 300;
  text-align: center;
  line-height: 43px;
}

h2 {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

h3 {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
}

p {
  line-height: 19px;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.page-content {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--color-primary);
  height: var(--nav-height);
}

.nav-bar {
  display: flex;
  align-items: center;
  max-width: var(--site-width);
  margin: 0 auto;
  height: var(--nav-height);
  position: relative;
}

.nav-logo {
  font-family: var(--font-logo);
  font-size: 25px;
  font-weight: bold;
  color: var(--color-text-white);
  line-height: 23px;
  padding: 5px 10px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  padding: 0 15px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-white);
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.nav-links a:hover {
  background-color: var(--color-primary-light);
}

.nav-links a.active {
  background-color: var(--color-primary-dark);
}

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  position: relative;
  transition: all 0.3s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Open state */
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  padding: 17px 0 19px;
  margin-top: 59px;
}

.site-footer .footer-content {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-white);
  line-height: 13px;
}

.site-footer a {
  color: var(--color-text-white);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--color-primary-light);
}

/* ==========================================================================
   7. Page: Home
   ========================================================================== */
.page-home {
  padding-top: calc(var(--nav-height) + 51px);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  line-height: 31px;
  color: #000;
  text-align: center;
}

.hero-image {
  margin-top: 56px;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.cta-buttons {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.cta-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 208px;
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  text-align: center;
  line-height: 41px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--color-primary-light);
}

/* ==========================================================================
   8. Page: Praesentation
   ========================================================================== */
.page-praesentation {
  background: #FFFFFF url("../images/background_2.jpg") repeat center top scroll;
}

.page-praesentation .page-content {
  padding-top: calc(var(--nav-height) + 33px);
}

/* Intro tagline */
.intro-tagline {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 34px;
  color: var(--color-text-white);
  text-align: center;
  margin-top: 47px;
}

.intro-tagline strong {
  font-weight: 700;
}

.section-praesentation h1 {
  margin-top: 50px;
}

/* Content blocks (image + text alternating) */
.content-blocks {
  margin-top: 31px;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 45px;
  margin-block-end: 19px;
}

.content-block + .content-block {
  margin-top: 0;
}

.content-block img {
  flex-shrink: 0;
  width: 283px;
  height: auto;
}

.content-block__text {
  flex: 1;
}

.content-block__text h2 {
  color: var(--color-text-white);
  line-height: 24px;
  margin-block-end: 19px;
}

.content-block__text p,
.content-block__text li {
  color: var(--color-text-white);
  line-height: 19px;
  font-size: 16px;
}

.content-block__text ul {
  color: var(--color-text-white);
}

.content-block__text .spacer {
  height: 19px;
}

/* Variants for different blocks */
.content-block--image-right {
  flex-direction: row-reverse;
}

/* Gallery section */
.section-gallery {
  margin-top: 51px;
}

.section-gallery h1 {
  margin-bottom: 24px;
}

.slideshow {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.slideshow__viewport {
  position: relative;
  width: 100%;
  max-width: 828px;
  aspect-ratio: 828 / 440;
  margin: 0 auto;
  overflow: hidden;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

.slideshow__slide.active {
  opacity: 1;
}

.slideshow__prev,
.slideshow__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
  font-size: 28px;
  line-height: 28px;
  text-align: center;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slideshow__prev { left: 0; }
.slideshow__next { right: 0; }

/* Contact section */
.section-contact {
  margin-top: 69px;
}

.section-contact h1 {
  margin-bottom: 28px;
}

.contact-form {
  max-width: 542px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--color-input-border);
  background-color: var(--color-input-bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 14px;
  color: var(--color-input-text);
  transition: border-color 0.2s, background-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-input-border);
  font-weight: 300;
  font-style: normal;
}

.form-field input:hover,
.form-field input:focus,
.form-field textarea:hover,
.form-field textarea:focus {
  border-color: var(--color-input-border-focus);
  background-color: #FFFFFF;
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
  background-color: #FFFFFF;
}

.form-field textarea {
  min-height: 80px;
}

.form-status {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  margin-top: 8px;
}

.form-status--sending {
  color: var(--color-status-sending);
  font-weight: 600;
}

.form-status--error {
  color: var(--color-error);
  font-weight: 400;
}

.form-status--success {
  color: var(--color-primary);
  font-weight: 600;
}

.form-submit {
  display: block;
  width: 100%;
  max-width: 540px;
  min-height: 45px;
  margin-top: 12px;
  border: none;
  cursor: pointer;
  background: url("../images/u300-17.png") no-repeat 0 0;
  background-size: 100% auto;
  font-size: 0;
  line-height: 0;
}

.form-submit:hover {
  background-image: url("../images/u300-17-r.png");
}

.form-submit:active {
  background-image: url("../images/u300-17-m.png");
}

.form-submit.submitting {
  background-image: url("../images/u300-17-fs.png");
}

/* ==========================================================================
   9. Page: Impressum
   ========================================================================== */
.page-impressum {
  padding-top: calc(var(--nav-height) + 48px);
}

.page-impressum h1 {
  margin-bottom: 27px;
  line-height: 43px;
}

.legal-text h2 {
  line-height: 24px;
  margin-top: 24px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text h3 {
  line-height: 19px;
  margin-top: 12px;
}

.legal-text p {
  line-height: 19px;
  margin-top: 4px;
}

.legal-text .source {
  font-style: italic;
  margin-top: 24px;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 960px) {
  .page-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-buttons {
    gap: 20px;
  }

  .cta-button {
    min-height: 160px;
    font-size: 28px;
  }

  .content-block img {
    width: 200px;
  }

  .content-block__text {
    padding-top: 20px;
  }

  .content-block--programm .content-block__text,
  .content-block--einsatz .content-block__text,
  .content-block--leitung .content-block__text {
    padding-top: 20px;
  }

  .slideshow__prev { left: 5px; }
  .slideshow__next { right: 5px; }
}

/* Mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 24px;
    line-height: 32px;
  }

  /* Navigation: hamburger */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }

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

  .nav-links a {
    height: 44px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .nav-toggle {
    display: block;
  }

  /* Home */
  .page-home {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .hero-tagline {
    font-size: 18px;
    line-height: 24px;
  }

  .hero-image {
    margin-top: 24px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .cta-button {
    min-height: 120px;
    font-size: 24px;
  }

  /* Praesentation */
  .intro-tagline {
    font-size: 20px;
    line-height: 26px;
  }

  .content-block {
    flex-direction: column;
    gap: 16px;
  }

  .content-block--image-right {
    flex-direction: column;
  }

  .content-block img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .content-block__text,
  .content-block--programm .content-block__text,
  .content-block--einsatz .content-block__text,
  .content-block--leitung .content-block__text {
    padding-top: 0;
  }

  /* Slideshow */
  .slideshow__prev,
  .slideshow__next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* Form */
  .contact-form {
    padding: 0;
  }

  /* Footer */
  .site-footer {
    margin-top: 30px;
  }

  .site-footer .footer-content {
    line-height: 18px;
  }
}
