@import "resets.css";
@import "fonts.css";

/* === Variablen === */
:root {
  --co-dark: #FA94CE;
  --co-light: #f6f5f5;
  --co-accent: #007bff;
  --co-text: #484451;

  --ga-large: 100px;
  --ga-medium: 60px;
  --ga-small: 16px;

  --f-title: 700 3rem/120% 'Climate Crisis', sans-serif;
  --f-text: 400 0.9rem/100% 'Inter', sans-serif;
  --f-subline: 400 1.2rem/120% 'Inter', sans-serif;
  --f-script: 400 2rem/120% 'Monsieur La Doulaise', cursive;
}

/* === Global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--co-light);
}

body {
  font: var(--f-text);
  background-color: #2C2A1F;
  position: relative;
  overflow-x: hidden;
}

/* === Hero Section === */
.hero {
  width: 100%;
  height: 100vh;
  overflow: clip;
  position: relative;
}

/* ========================================================================== */
/* === SAFARI-SICHERE HINTERGRUNDVIDEOS ===================================== */
/* ========================================================================== */

.video-landscape,
.video-portrait {
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* Standard = Landscape sichtbar */
.video-landscape {
  opacity: 1;
}

/* Hochformat → Portrait sichtbar */
@media (orientation: portrait) {
  .video-landscape { opacity: 0; }
  .video-portrait { opacity: 1; }
}

/* ========================================================================== */
/* === Gradient über Video ================================================== */
/* ========================================================================== */

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(44, 42, 31, 0) 0%,
    rgba(44, 42, 31, 0.02) 25%,
    rgba(44, 42, 31, 0.08) 45%,
    rgba(44, 42, 31, 0.18) 60%,
    rgba(44, 42, 31, 0.38) 75%,
    rgba(44, 42, 31, 0.65) 88%,
    rgba(44, 42, 31, 0.9) 96%,
    rgba(44, 42, 31, 1) 100%
  );
}

/* ========================================================================== */
/* === HERO-NAME – UNTER DEM VIDEO ========================================= */
/* ========================================================================== */

.hero-name {
  width: 100%;
  text-align: center;
  margin: clamp(40px, 10vw, 90px) 0;
  z-index: 5;
  position: relative;
}

.hero-name h1 {
  font-family: 'Climate Crisis', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  font-size: clamp(5rem, 20vw, 12rem); /* <<< RIESIG jetzt */
  color: var(--co-dark);
  letter-spacing: 0.06em;
}

.hero-name .char {
  display: inline-block;
  color: var(--co-dark);
}

/* ========================================================================== */
/* === ABOUT ME ============================================================= */
/* ========================================================================== */

.about-me {
  width: 100%;
  padding: var(--ga-large) 0 var(--ga-large);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-me h2 {
  font: var(--f-script);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--co-dark);
  margin-bottom: clamp(40px, 6vw, 80px);
  text-align: center;
}

/* ========================================================================== */
/* === ABOUT WRAPPER ======================================================== */
/* ========================================================================== */

.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 8vw, 120px);
  width: min(1100px, 90%);
  margin-inline: auto;

  opacity: 0;
  transform: translateY(40px);
}

.about-photo {
  flex: 0 0 clamp(220px, 26vw, 360px);
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;

  opacity: 0;
  transform: translateY(30px);
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-text p {
  font-family: 'Inter', sans-serif;
  color: var(--co-light);
  font-size: clamp(2rem, 5.2vw, 2.8rem);
  line-height: 1.4;
  max-width: 560px;

  opacity: 0;
  transform: translateY(20px);
}

/* ========================================================================== */
/* === RESPONSIVE ABOUT ===================================================== */
/* ========================================================================== */

@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========================================================================== */
/* === PROJECT SLIDER ======================================================= */
/* ========================================================================== */

.project-row {
  position: relative;
  height: 70vh;
  margin: 10vh 0;
  overflow: hidden;
}

.project-row .row-track {
  display: flex;
  gap: 28px;
  height: 100%;
  padding: 0 var(--ga-medium);
  padding-top: clamp(24px, 6vh, 96px);
  padding-bottom: clamp(12px, 3vh, 48px);
}

.project-row .item {
  flex: 0 0 auto;
  position: relative;
}

.project-row .item--wide { width: 60vw; aspect-ratio: 16/9; }
.project-row .item--tall { width: 38vw; aspect-ratio: 4/5; }
.project-row .item--portrait { width: 32vw; aspect-ratio: 3/4; }

.project-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-row .meta {
  position: absolute;
  top: -1.6em;
  left: 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(246,245,245,0.85);
}

/* ========================================================================== */
/* === MOBILE SLIDER ======================================================== */
/* ========================================================================== */

@media (max-width: 768px) {
  .project-row { height: auto; }

  .project-row .row-track { flex-direction: column; }

  .project-row .item--wide,
  .project-row .item--tall,
  .project-row .item--portrait {
    width: 100%;
    aspect-ratio: auto;
  }

  .project-row .meta {
    position: relative;
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --ga-large: 50px;
    --ga-medium: 32px;
  }

  .about-me h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero-name h1 {
    font-size: clamp(2.8rem, 13vw, 5.2rem);
  }
}

footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

footer p {
  font-size: 0.75rem;
  opacity: 0.7;
  color: var(--co-light);
}
