/* Sommerfest Landingpage – Design-Vorgaben */
:root {
  --color-text: #434242;
  --color-heading: #F14712;
  --color-orange-light: #F46C42;
  --color-accent: #FBC321;
  --font-main: 'Open Sans', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}

/* Hero */
.hero {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(244, 108, 66, 0.08) 0%, transparent 100%);
}

.hero__image {
  max-width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Main content */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.content {
  max-width: 65ch;
  margin: 0 auto 3rem;
}

.content__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.content__subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-heading);
  margin: 2rem 0 0.75rem;
}

.content p {
  margin: 0 0 1rem;
}

.content__link {
  color: var(--color-orange-light);
  font-weight: 600;
  text-decoration: underline;
}

.content__link:hover,
.content__link:focus {
  color: var(--color-heading);
}

/* Contact form */
.contact {
  margin-bottom: 3rem;
}

.form-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-message--success {
  background: rgba(0, 128, 0, 0.1);
  color: #0a5c0a;
}

.form-message--error {
  background: rgba(200, 0, 0, 0.1);
  color: #8b0000;
}

.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: var(--color-text);
  min-height: 44px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-orange-light);
  outline-offset: 2px;
  border-color: var(--color-orange-light);
}

.contact-form__submit {
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s, transform 0.1s;
}

.contact-form__submit:hover,
.contact-form__submit:focus {
  background: #e6b01e;
  outline: 2px solid var(--color-heading);
  outline-offset: 2px;
}

.contact-form__submit:active {
  transform: scale(0.98);
}

/* Balls section – volle Breite, gleicher Hintergrund wie Rest */
/* Negativer Abstand gleicht main padding-bottom aus, damit Bälle auf der Footer-Linie liegen */
.balls-section {
  min-height: 280px;
  padding: 1.5rem 0 0;
  background: #fff;
  margin-bottom: -2rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.balls-container {
  position: relative;
  width: 100%;
  height: 260px;
  max-width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
  overflow: hidden;
  touch-action: none;
}

.ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ball img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Footer */
.footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text);
  border-top: 1px solid rgba(67, 66, 66, 0.15);
}

.footer a {
  color: var(--color-orange-light);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  color: var(--color-heading);
  text-decoration: underline;
}

.footer__sep {
  margin: 0 0.5rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
  .hero {
    padding: 1.5rem 1rem 2rem;
  }

  .hero__image {
    max-height: min(56vh, 320px);
    min-height: 140px;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .main {
    padding: 0 1rem 1.5rem;
  }

  .content {
    margin-bottom: 2rem;
  }

  .balls-section {
    min-height: 220px;
    margin-bottom: -1.5rem;
  }

  .balls-container {
    height: 200px;
    padding: 0 1rem;
  }
}
