/* Startseite: Bilderslider und Kontaktformular */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--color-primary);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10rem 6rem 14rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}

.slide.active {
  visibility: visible;
  opacity: 1;
}

.slide picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.slide.active img {
  animation: slide-zoom 3.6s linear both;
}

@keyframes slide-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.slide .title {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font: 600 10rem/1 var(--font-heading);
}

.slide.right {
  justify-content: flex-end;
}

.slide.top {
  align-items: flex-start;
}

.slide.shade::after {
  position: absolute;
  inset: 0;
  background: #0003;
  content: "";
}

.contact {
  min-height: 50vh;
  padding: 6rem 2rem;
}

.contact-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.contact h1 {
  margin: 0 0 4rem;
  font-size: 2.5rem;
  font-weight: 500;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: inherit;
  background: var(--color-white);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
}

button[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--border-radius);
  color: var(--color-white);
  background: var(--color-blue);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: var(--color-blue-hover);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  margin: 1rem 0 0;
}

.status:empty {
  display: none;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .slide { padding: 10rem 4rem; }
  .slide .title { font-size: 8rem; }
  .contact h1 { font-size: 2.2rem; }
}

@media (max-width: 767px) {
  .slide { padding: 4rem 2rem 6rem; }
  .slide .title { font-size: 5.7rem; }
  .contact { padding: 5rem 1rem 4rem; }
  .contact h1 {
    font-size: 2rem;
    line-height: 1.5;
  }
  footer { padding: 2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide img { transition: none; }
  .slide img,
  .slide.active img {
    animation: none;
    transform: none;
  }
}
