/*
Theme Name: Nikola Premium Theme
Author: OpenAI
Version: 4.0
Description: Premium Landingpage für meintraumurlaub.at ohne Lightbox.
*/

:root {
  --gold: #EAC974;
  --sand: #DCCBBA;
  --blue: #1066A9;
  --navy: #133459;
  --cream: #EDE8E4;
  --white: #ffffff;
  --sungold: #D9AC4F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Myriad Pro", Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.5;
}

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

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

/* Rabatt-Balken */

.rabatt-balken {
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  border-bottom: 5px solid #fff;
}

.rabatt-balken__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rabatt-balken__logo img {
  max-height: 42px;
  width: auto;
  display: block;
}

.rabatt-balken__text {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.rabatt-balken__text strong {
  font-weight: 700;
}

.rabatt-balken__button {
  display: inline-block;
  background: var(--sungold);
  color: #111;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.3s ease;
}

.rabatt-balken__button:hover {
  background: #eaeaea;
  color: #111;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(19, 52, 89, .55), rgba(19, 52, 89, .55)),
    url("nikola-hero.webp") center bottom / cover no-repeat;
}

.hero-content {
  max-width: 950px;
  color: white;
  animation: fadeUp 1s ease;
}

.hero-title-reveal {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  overflow: hidden;
  padding-bottom: 0.18em;
}

.hero-title-reveal span {
  display: block;
  opacity: 0;
  transform: translateY(80px);
  animation: titleReveal 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-title-reveal span:nth-child(2) {
  animation-delay: .45s;
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: .92;
  margin-bottom: 30px;
  letter-spacing: -0.05em;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  max-width: 760px;
  margin: 0 auto 42px;
  color: rgba(255, 255, 255, .9);
}

/* Buttons */

.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: 18px 34px;
  font-size: 1rem;
  font-weight: 700;
  transition: .45s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

.btn-gold:hover {
  background: var(--sungold);
}

.btn-blue {
  background: var(--cream);
  color: var(--navy);
  backdrop-filter: blur(10px);
}

.btn-blue:hover {
  background: var(--sand);
}

/* Sections */

.section {
  padding: 110px 24px;
  background: white;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: stretch;
}

.grid > div:first-child {
  margin-top: -20px;
}

.eyebrow {
  color: var(--blue);
  font-size: .85rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.gold-eyebrow {
  color: var(--gold);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 2.8rem);
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -0.05em;
}

.lead {
  font-size: 1.25rem;
  color: rgba(19, 52, 89, .8);
  margin-bottom: 45px;
}

/* Facts */

.facts {
  background: rgba(237, 232, 228, .72);
  padding: 36px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.fact {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.fact:last-child {
  margin-bottom: 0;
}

.check {
  color: var(--blue);
  font-weight: 700;
}

.fact-title {
  font-weight: 680;
  margin-bottom: 4px;
}

.fact-text {
  color: rgba(19, 52, 89, .78);
}

/* Galerie */

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

.gallery-item {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(19, 52, 89, .16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  transition: .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03) translateY(-4px);
  opacity: .96;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 20px;
  background: var(--navy);
  color: white;
  font-size: .95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(100%);
  transition: .35s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Kontaktbereich */

.contact-wrap {
  background: var(--navy);
  border-radius: 6px;
  padding: 60px;
  color: white;
}

.contact-wrap p {
  color: var(--white);
  margin-bottom: 36px;
  font-size: 1.1rem;
}

.contact-wrap ul {
  list-style: none;
}

.contact-wrap li {
  margin-bottom: 14px;
}

/* Formular-Karte */

.form-card {
  background: linear-gradient(135deg, #D9AC4F 0%, #EAC974 100%);
  padding: 42px;
  border-radius: 14px;
  color: var(--navy);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.form-top {
  color: var(--blue);
  text-transform: uppercase;
  font-size: .55rem;
  letter-spacing: .3em;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-card h3 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--navy);
  letter-spacing: -0.03em;
}

/* Formular */

.nikola-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
}

.nikola-form .field {
  margin-bottom: 0;
}

.nikola-form .field-full,
.nikola-form .checkbox-field,
.nikola-form .submit-btn {
  grid-column: 1 / -1;
}

.field {
  margin-bottom: 18px;
}

.nikola-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.nikola-form input,
.nikola-form textarea {
  width: 100%;
  border: 2px solid rgba(19, 52, 89, 0.12);
  background: rgba(255, 255, 255, 0.96);
  padding: 17px 18px;
  border-radius: 10px;
  outline: none;
  transition: 0.25s ease;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(19, 52, 89, 0.08);
}

.nikola-form input::placeholder,
.nikola-form textarea::placeholder {
  color: rgba(19, 52, 89, 0.48);
}

.nikola-form input:focus,
.nikola-form textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16, 102, 169, 0.16);
}

.nikola-form textarea {
  min-height: 145px;
  resize: vertical;
}

/* Checkbox Industriekongress */

.checkbox-field {
  margin-top: 2px;
}

.industriekongress-checkbox {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  margin: 0 !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(19, 52, 89, 0.14);
  border-radius: 10px;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(19, 52, 89, 0.08);
  transition: 0.25s ease;
}

.industriekongress-checkbox:hover {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 14px 32px rgba(19, 52, 89, 0.16);
  transform: translateY(-2px);
}

.industriekongress-checkbox input[type="hidden"] {
  display: none;
}

.industriekongress-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.checkbox-control {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  background: #ffffff;
  position: relative;
  transition: 0.25s ease;
}

.industriekongress-checkbox input[type="checkbox"]:checked + .checkbox-control {
  background: var(--blue);
  border-color: var(--blue);
}

.industriekongress-checkbox input[type="checkbox"]:checked + .checkbox-control::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 7px;
  height: 13px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.3;
}

.checkbox-label strong {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 800;
}

.checkbox-label small {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(19, 52, 89, 0.72);
}

.industriekongress-checkbox input[type="checkbox"]:focus-visible + .checkbox-control {
  outline: 4px solid rgba(16, 102, 169, 0.22);
  outline-offset: 3px;
}

/* Submit Button */

.nikola-form .submit-btn {
  width: 100%;
  margin-top: 4px;
  background: var(--blue);
  color: #ffffff;
  border-radius: 10px;
  padding: 18px 28px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(16, 102, 169, 0.28);
}

.nikola-form .submit-btn:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(19, 52, 89, 0.32);
}

/* Erfolgsmeldung */

.script-success-message {
  background: #1066A9;
  color: white;
  padding: 22px;
  border-radius: 6px;
  margin-bottom: 22px;
  text-align: center;
  font-weight: 600;
  animation: successFadeIn .4s ease;
}

.script-success-message strong {
  color: white;
}

/* Footer */

footer {
  background: var(--navy);
  padding: 42px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sand);
}

/* Animationen */

.typing-title span {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  animation: typingLine 4s steps(32, end) forwards;
}

@keyframes typingLine {
  from {
    max-width: 0;
  }

  to {
    max-width: 40ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    padding: 34px 24px;
  }
}

@media (max-width: 768px) {
  .rabatt-balken__inner {
    flex-direction: column;
    text-align: center;
  }

  .rabatt-balken__text {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .form-card {
    padding: 28px 22px;
  }

  .nikola-form {
    grid-template-columns: 1fr;
  }

  .nikola-form .field-full,
  .nikola-form .checkbox-field,
  .nikola-form .submit-btn {
    grid-column: auto;
  }

  .industriekongress-checkbox {
    align-items: flex-start;
    padding: 16px;
  }

  .checkbox-control {
    margin-top: 2px;
  }
}

@media (max-width: 640px) {
  .hero {
    background-position: center bottom;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}