/* =========================================================================
   NUI WORLD — Website Stylesheet
   Ein-Seiten-Website nach eurem Figma/Design-Draft.
   Alle Farben und Abstände liegen als CSS-Variablen oben — hier lässt
   sich das ganze Farbschema zentral anpassen, ohne die Regeln unten
   anzufassen.
   ========================================================================= */

:root {
  /* ---- Markenfarben (aus eurem Draft abgeleitet) ---- */
  --cream:        #f3ece0;   /* Creme-Weiß, große Headlines auf Fotos */
  --ink:          #17181a;   /* Fast-Schwarz für Fließtext/Überschriften */

  --mauve:        #d8aca6;   /* Rosé/Mauve — Logo-Box, Nav-Pills, Badge */
  --mauve-dark:   #c4938c;   /* Hover-Zustand für Mauve-Elemente */

  --rose:         #e3c7c3;   /* helleres Rosé — Services-Sektion */

  --teal:         #6f93a0;   /* Petrol/Teal — Playbook-Sektion */
  --teal-dark:    #4c6c78;   /* dunkleres Teal für Zahlen/Akzente */
  --teal-light:   #a9c3cb;   /* helles Teal für sekundären Text auf Foto */

  --navy:         #2a2d70;   /* Dunkelblau — Submit-Button */
  --navy-dark:    #1f2257;

  --wave-deep:    #0c2f3d;
  --wave-mid:     #1f5d72;
  --wave-light:   #5f9aa6;
  --sky-top:      #bfe0e6;
  --sky-bottom:   #f3d9c3;

  --white: #ffffff;
  --gray-mid: #6b6b6b;

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --max-width: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow-light { color: rgba(255,255,255,0.85); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.12s;
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  width: 100%;
}

.btn-navy:hover { background: var(--navy-dark); }

/* ---------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--ink);
  background: var(--mauve);
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.25s ease;
}

.logo:hover {
  transform: rotate(-4deg) scale(1.04);
  background: var(--mauve-dark);
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-pill {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--mauve);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-pill:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.nav-pill.active {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--mauve);
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}

/* Echtes Hintergrundfoto im Hero (img/ocean-wave.jpg), plus ein dezenter
   Verlauf darüber, damit Schrift/Badge auf jedem Foto lesbar bleiben. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,30,38,0.15) 0%, rgba(10,30,38,0.05) 35%, rgba(10,30,38,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.hero-location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--teal-dark);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(3.2rem, 11vw, 8rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 12px 40px rgba(12,47,61,0.25);
}

.hero-badge {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--mauve);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------
   About / "the nui-playbook."
   --------------------------------------------------------------------- */

#about, #services, #portfolio, #contact {
  scroll-margin-top: 110px;
}

.about {
  background: var(--teal);
  color: var(--white);
  padding: 220px 0 140px;
}

.about-title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  color: var(--mauve);
  margin-bottom: 40px;
}

.about-text {
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}

/* ---------------------------------------------------------------------
   Services
   --------------------------------------------------------------------- */

.services {
  background: var(--rose);
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1fr;
  gap: 40px;
  align-items: start;
}

.services-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--teal-dark);
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
}

.service-item .service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.service-item p {
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.service-item.muted .service-index {
  background: rgba(23,24,26,0.18);
  color: rgba(23,24,26,0.5);
}

.service-item.muted h3 {
  color: rgba(23,24,26,0.35);
}

/* ---------------------------------------------------------------------
   Portfolio / NUI HOTELES Feature
   --------------------------------------------------------------------- */

.portfolio {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

/* Dekorativer, dunkler Verlauf als Platzhalter für ein Hotel-Foto.
   BILD-TIPP: .portfolio-art durch ein echtes (leicht unscharfes) Foto
   ersetzen, z. B.:
   <img class="portfolio-photo" src="img/hoteles-bg.jpg" alt="">
   .portfolio-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:brightness(0.55) blur(1px); }
*/
.portfolio-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(216,172,166,0.22) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(111,147,160,0.25) 0%, transparent 50%),
    linear-gradient(150deg, #2a1c14 0%, #17110c 55%, #0f0b08 100%);
}

.portfolio-top {
  position: relative;
  z-index: 2;
  padding-top: 170px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.portfolio-tag {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
  line-height: 1.4;
}

.portfolio-bottom {
  position: relative;
  z-index: 2;
  padding: 120px 0 140px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.portfolio-bottom h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.portfolio-bottom p {
  max-width: 420px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
}

.demo-card {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.demo-tag {
  position: absolute;
  top: -14px;
  left: 18px;
  z-index: 2;
  background: var(--mauve);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 999px;
}

/* Platzhalter für einen Demo-Screenshot/ein Standbild in Metallic-Optik.
   BILD-TIPP: .demo-thumb durch <img src="img/demo-preview.jpg"> ersetzen. */
.demo-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(120deg, #d9dee2 0%, #ffffff 30%, #aab3ba 55%, #eef1f2 75%, #9aa3aa 100%);
  background-size: 220% 220%;
  animation: shimmer 7s ease-in-out infinite;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

@keyframes shimmer {
  0%   { background-position: 0% 40%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */

.contact {
  position: relative;
  padding: 200px 0 160px;
  color: var(--white);
  overflow: hidden;
}

/* Echtes Hintergrundfoto im Kontaktbereich, mit dunklerem Verlauf, damit
   die weiße Schrift und die Formularfelder gut lesbar bleiben. */
.contact-art {
  position: absolute;
  inset: 0;
}

.contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8,25,32,0.72) 0%, rgba(8,25,32,0.45) 55%, rgba(8,25,32,0.72) 100%);
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.contact-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 8px 2px;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact-form .btn-navy {
  margin-top: 8px;
  max-width: 220px;
}

/* ---------------------------------------------------------------------
   Closing visual + Footer
   --------------------------------------------------------------------- */

.closing-art {
  height: 46vh;
  min-height: 280px;
  overflow: hidden;
}

.closing-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner .logo {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--mauve); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------------------
   Scroll-Reveal-Animationen
   --------------------------------------------------------------------- */

/* Progressive enhancement: Inhalte sind standardmäßig sichtbar (z. B. wenn
   JavaScript deaktiviert ist oder nicht lädt). Erst wenn script.js die
   Klasse "js-ready" auf <html> setzt, wird die Einblend-Animation aktiv. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .nav-pill, .logo { transition: none !important; }
  .demo-thumb { animation: none; }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-bottom { grid-template-columns: 1fr; }
  .demo-card { justify-self: start; max-width: 320px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 32px;
    left: 32px;
    background: var(--ink);
    border-radius: 18px;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    display: none;
  }

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

  .nav-pill { text-align: center; }

  .nav-toggle { display: flex; }

  .hero-location { align-items: center; margin-bottom: 26px; }

  .about { padding: 160px 0 100px; }

  .services-list { grid-template-columns: 1fr; gap: 34px; }

  .contact-inner { justify-content: flex-start; }

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

  .portfolio-top { padding-top: 140px; }
}
