/* =============================================
   ROILUX MEDIA — Stylesheet
   =============================================
   Struktur:
   1. Reset & Variablen
   2. Typografie
   3. Intro Animation
   4. Navigation
   5. Hero
   6. Leistungen
   7. Portfolio
   8. Über uns
   9. Kontakt
   10. Footer
   11. Scroll Animationen
   12. Responsive (Mobile)
============================================= */


/* 1. RESET & VARIABLEN */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream:   #F7F4EF;
  --cream2:  #F0EDE6;
  --ink:     #1A1814;
  --ink2:    #3A3530;
  --muted:   #9A9188;
  --gold:    #B8975A;
  --line:    rgba(26, 24, 20, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 2. TYPOGRAFIE */
h1, h2, h3 {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.75;
  font-weight: 300;
}


/* 3. INTRO ANIMATION */
#intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#intro.hide {
  opacity: 0;
  visibility: hidden;
}

#intro-logo {
  width: 100px;
  opacity: 0;
  transform: translateY(10px);
  animation: introFadeIn 0.8s ease 0.3s forwards;
   /* macht das helle Logo auf cremefarbenem Hintergrund sichtbar */
}

#intro-logo img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* Page starts hidden, reveals after intro */
body.loading nav,
body.loading section,
body.loading footer {
  opacity: 0;
}

body.ready nav,
body.ready section,
body.ready footer {
  opacity: 0;
  animation: pageFadeIn 0.8s ease forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}


/* 11. SCROLL ANIMATIONEN */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* 4. NAVIGATION */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 60px;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(26, 24, 20, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
   /* Logo hell → dunkel für cremefarbene Nav */
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--ink);
}

.nav-kontakt {
  color: var(--ink) !important;
  font-weight: 500 !important;
}


/* BUTTONS */
.btn-dark {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

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

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--ink);
}

.btn-text::after {
  content: '↗';
  font-size: 14px;
  transition: transform 0.2s;
}

.btn-text:hover::after {
  transform: translate(2px, -2px);
}


/* 4. HERO */
.hero {
  min-height: 100vh;
  padding: 140px 56px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stats {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 60px;
}

.stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* 5. LEISTUNGEN */
section {
  padding: 96px 56px;
}

.services-bg {
  background: var(--cream2);
}

.services-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  gap: 40px;
}

.service-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  min-width: 28px;
}

.service-name {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  color: var(--ink2);
  flex: 1;
  transition: color 0.2s;
}

.service-row:hover .service-name {
  color: var(--ink);
}

.service-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.6;
  text-align: right;
}


/* 6. PORTFOLIO */
.portfolio-top {
  margin-bottom: 40px;
}

.portfolio-top h2 {
  margin-top: 4px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.portfolio-item {
  background: var(--cream);
  padding: 40px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}

.portfolio-item:hover {
  background: var(--cream2);
}

.p-num {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  position: absolute;
  top: 32px;
  right: 32px;
}

.portfolio-cat {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.portfolio-item h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.portfolio-item p {
  font-size: 12px;
  color: var(--muted);
}


/* 7. ÜBER UNS */
.about-bg {
  background: var(--cream2);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  aspect-ratio: 3/4;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img-placeholder {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Wenn du ein echtes Foto hast, lösche .about-img-placeholder
   und füge ein <img> Tag ein */

.about-img-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  border: 1px solid var(--line);
  padding: 7px 14px;
  background: var(--cream);
}


/* 8. KONTAKT */
.contact-inner {
  max-width: 520px;
}

.contact-inner h2 {
  margin-bottom: 12px;
}

.contact-inner .section-sub {
  margin-bottom: 48px;
}

.form {
  border-top: 1px solid var(--line);
}

.field {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.field select option {
  color: var(--ink);
  background: var(--cream);
}

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

.form-btn {
  margin-top: 32px;
}

.form-btn .btn-dark {
  width: 100%;
  text-align: center;
}


/* 9. FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
}


/* 10. RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }

  nav ul {
    display: none; /* Hamburger-Menu später ergänzen */
  }

  section {
    padding: 64px 24px;
  }

  .hero {
    padding: 120px 24px 64px;
  }

  h1 {
    font-size: 40px;
  }

  .stats {
    gap: 32px;
  }

  .services-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-row {
    flex-direction: column;
    gap: 8px;
  }

  .service-desc {
    text-align: left;
  }

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

  .portfolio-item {
    aspect-ratio: 3/2;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img {
    aspect-ratio: 4/3;
  }

  footer {
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
