/* ============================================================
   Joel Hippenstiel – Bewerbung
   Self-contained recreation of the Canva site.
   Design canvas: 1920px wide; everything scales fluidly with the
   viewport (vw) up to 1920, then the layout caps and centres.
   Fonts are self-hosted (GDPR-friendly, no external requests).
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;            /* variable font: full weight range */
  font-display: swap;
  src: url("../assets/fonts/fredoka.woff2") format("woff2");
}
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --orange: #F47A20;
  --orange-dark: #E06C16;
  --dark: #1A1A1A;
  --text-muted: #C9C9C9;
  --white: #ffffff;

  --font-display: "Fredoka", system-ui, sans-serif;   /* rounded display */
  --font-body: "Poppins", system-ui, sans-serif;      /* text & headings */

  --maxw: 1920px;                  /* design canvas width */
  --pad: clamp(20px, 5vw, 96px);   /* page side padding (≈5% at 1920) */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  padding: clamp(26px, 4vw, 78px) 0 clamp(44px, 6vw, 116px);
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--orange);
  font-size: clamp(1.25rem, 3.4vw, 4.05rem);
  letter-spacing: .52em;
  text-indent: .52em;            /* compensate trailing letter-spacing for centering */
  text-transform: uppercase;
  margin-bottom: clamp(22px, 3.4vw, 64px);
}
.hero__media {
  position: relative;
  width: min(1382px, 72vw);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute;
  left: clamp(14px, 3.5%, 40px);
  bottom: clamp(12px, 4%, 36px);
  text-align: left;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
  pointer-events: none;
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange);
  font-size: clamp(1.25rem, 3vw, 3.55rem);
  line-height: 1.04;
}
.hero__role {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--orange);
  font-size: clamp(.72rem, 1.55vw, 1.85rem);
  margin-top: .2em;
}
/* sound toggle */
.hero__sound {
  position: absolute;
  right: clamp(12px, 1.4vw, 26px); top: clamp(12px, 1.4vw, 26px);
  z-index: 3;
  width: clamp(40px, 2.6vw, 50px); aspect-ratio: 1;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.hero__sound:hover { background: var(--orange); transform: scale(1.06); }
.hero__sound svg { width: 46%; height: 46%; }
.hero__sound .icon-on { display: none; }
.hero__sound.is-unmuted .icon-on { display: block; }
.hero__sound.is-unmuted .icon-off { display: none; }

/* ============================================================
   ABOUT  (dark)
   ============================================================ */
.about {
  background: var(--dark);
  color: var(--white);
  padding: clamp(72px, 11vw, 210px) 0 clamp(60px, 9vw, 170px);
  overflow: hidden;                 /* contain the right-bleed photo */
}
.about__title {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--orange);
  font-size: clamp(2rem, 6.2vw, 7.35rem);
  line-height: 1.16;
  text-align: right;                /* right-aligned per request */
  width: max-content;
  max-width: 100%;
  margin: 0 0 clamp(60px, 10vw, 190px) auto;   /* hug the right side */
}
.about__title .euch {
  display: block;
  font-weight: 400;
  letter-spacing: .3em;
  font-size: 1.3em;
  /* negative right margin cancels the trailing letter-spacing so the
     block stays flush with the other right-aligned lines */
  margin: .04em -.3em .04em 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 30vw, 576px);
  align-items: center;
  column-gap: clamp(26px, 5vw, 96px);
  /* left content aligns to the page container; the photo bleeds to the design's right edge */
  padding-left: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
  padding-right: max(0px, calc((100% - var(--maxw)) / 2));
}
.about__text { max-width: min(1080px, 58vw); }
.about__heading {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--orange);
  font-size: clamp(1.2rem, 2.5vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1.5em;
}
.about__text p {
  color: var(--text-muted);
  font-size: clamp(.92rem, 1.25vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 1.25em;
}
.about__text p:last-child { margin-bottom: 0; }
.about__photo img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ============================================================
   LEBENSLAUF / TIMELINE  (dark)
   ============================================================ */
.cv {
  background: var(--dark);
  color: var(--white);
  padding: clamp(30px, 5vw, 96px) 0 clamp(70px, 10vw, 180px);
}
.cv__title {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--orange);
  font-size: clamp(1.5rem, 3.5vw, 4.2rem);
  margin-bottom: clamp(40px, 7vw, 130px);
}
.timeline-scroll { overflow-x: auto; overflow-y: hidden; max-width: 100%; }
.timeline {
  --tl-pad: clamp(82px, 8vw, 150px);   /* vertical room for the labels above/below */
  position: relative;
  min-width: 760px;
  margin-inline: auto;
  padding: var(--tl-pad) 0;
}
.timeline__img { width: 100%; display: block; }

/* milestone marker — a vertical line that spans the full height of the
   timeline tracks (like an edit point), with the label above or below */
.marker { position: absolute; top: 0; bottom: 0; width: 0; }
.marker__line {
  position: absolute;
  left: -1px;
  top: var(--tl-pad);
  bottom: var(--tl-pad);              /* exactly the image area */
  width: clamp(2px, .16vw, 3px);
  background: var(--orange);
}
.marker__label {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: clamp(125px, 11vw, 220px);
  text-align: center;
  font-weight: 600;
  font-size: clamp(.72rem, 1vw, 1.2rem);
  color: var(--orange);
  line-height: 1.25;
}
.marker--top .marker__label { bottom: calc(100% - var(--tl-pad) + .7em); }
.marker--bottom .marker__label { top: calc(100% - var(--tl-pad) + .7em); }
.marker__year { display: block; color: var(--orange); font-weight: 600; margin-top: .15em; }
.marker--accent .marker__line { width: clamp(3px, .22vw, 4px); }

/* ============================================================
   CTA  (white, arrows) — the whole cluster scales via font-size (em)
   ============================================================ */
.cta {
  background: var(--white);
  text-align: center;
  padding: clamp(60px, 9vw, 170px) 0 clamp(80px, 12vw, 210px);
}
.cta__text {
  color: var(--orange);
  font-weight: 400;
  letter-spacing: .14em;
  font-size: clamp(.9rem, 1.8vw, 1.7rem);
  margin-bottom: clamp(60px, 10vw, 150px);
}
.cta__stage {
  position: relative;
  font-size: clamp(12px, 1.92vw, 26px);   /* scaling base for the cluster */
  width: 38.75em;
  max-width: 94vw;
  height: 22.5em;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.cta__button {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82em;
  padding: 1.15em 2.2em;
  border-radius: 999px;
  box-shadow: 0 .6em 1.4em -.4em rgba(244,122,32,.7);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta__button:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--orange-dark);
  box-shadow: 0 1em 2em -.5em rgba(244,122,32,.8);
}
.cta__arrow {
  position: absolute;
  color: var(--orange);
  width: 2.65em; height: 2.65em;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot));
}
.cta__arrow svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   CONTACT PAGE  (orange)
   ============================================================ */
body.contact-page { background: var(--orange); }
.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--orange);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 150px) clamp(24px, 6.5vw, 130px);
}
.contact__block { margin: clamp(22px, 4vw, 60px) 0; }
.contact__label {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .42em;
  font-size: clamp(.85rem, 1.6vw, 1.6rem);
  margin-bottom: clamp(10px, 1.5vw, 26px);
  opacity: .95;
}
.contact__value {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  word-break: break-word;
  transition: opacity .2s ease;
}
.contact__value:hover { opacity: .82; }
.contact__value--phone { font-size: clamp(2rem, 5vw, 5.9rem); letter-spacing: .08em; }
.contact__value--mail  { font-size: clamp(1.35rem, 5.2vw, 6.15rem); letter-spacing: .03em; }

.contact__back {
  position: absolute;
  top: clamp(20px, 4vw, 56px);
  left: clamp(20px, 6vw, 120px);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .12em;
  font-size: clamp(.95rem, 1.2vw, 1.4rem);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.contact__back:hover { opacity: 1; transform: translateX(-3px); }

/* ============================================================
   RESPONSIVE  (mobile / narrow — below the two-column design)
   ============================================================ */
@media (max-width: 760px) {
  .about__title {
    width: auto;
    margin-inline: auto;
    text-align: center;             /* centre on small screens */
  }
  .about__title .euch { margin-right: 0; }
  .about__grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }
  .about__text { max-width: none; }
  .about__photo { max-width: 330px; margin-inline: auto; }
  .hero__media { width: min(560px, 88vw); }
}
@media (max-width: 520px) {
  .hero__eyebrow { letter-spacing: .34em; text-indent: .34em; }
}
