:root {
  --blue: #306CCF;
  --white: #F8FAFC;
  --black: #1E293B;
}

/* ================= RESET ================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "quasimoda", sans-serif;
  line-height: 1.6;
}

/* ================= NAV ================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  font-family: "forager-overlap", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--black);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Burger – versteckt auf Desktop */
.burger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  line-height: 1;
  padding: 4px 8px;
}

/* Mobile Extras – versteckt auf Desktop */
.nav-mobile-extra {
  display: none;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.2s, border-color 0.25s;
  border: 2px solid transparent;
}

.btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary img {
  filter: brightness(0) invert(1);
}

.btn-primary:hover {
  background-color: #2558b0;
  border-color: #2558b0;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover {
  background-color: #eef3fc;
  transform: translateY(-1px);
}

#langToggle,
#langToggleMobile {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

#langToggle:hover,
#langToggleMobile:hover {
  color: var(--blue);
}

/* ================= HERO ================= */

.hero {
  background: var(--blue);
  height: 100vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: "forager-overlap", sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 16vw, 260px);
  line-height: 0.85;
  letter-spacing: -2px;
  position: absolute;
  color: white;
}

.hero-title.top {
  top: 5%;
  right: 0;
  text-align: right;
  padding-right: 20px;
}

.hero-title.bottom {
  bottom: 5%;
  left: 0;
  padding-left: 20px;
}

.hero-img {
  position: absolute;
  height: 82%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
}

.outline {
  position: absolute;
  color: transparent;
  -webkit-text-stroke: 1.5px white;
  z-index: 2;
}

/* ================= SCROLL FADE ================= */

.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ================= ABOUT ================= */

.about {
  max-width: 1200px;
  margin: auto;
  padding: 80px 40px 0px;
}

.title-right {
  color: var(--blue);
  font-family: "forager-overlap", sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  text-align: right;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  max-width: 640px;
  line-height: 1.75;
}

.about-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  bottom:0px;
  object-fit: contain;
}

.signature {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
}

/* ================= CONTACT STRIP ================= */

.contact-strip {
  background: var(--blue);
  color: white;
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.contact-strip div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-strip img {
  height: 18px;
}

/* ================= FACT ================= */

.fact {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}
 
.fact h2 {
  margin-bottom: 40px;
}
 
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
 
/* Bildung-Box: volle Höhe der rechten Spalte */
.fact-grid > .box:first-child {
  display: flex;
  flex-direction: column;
}
 
.column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
 
/* Erfahrung & Sprachen füllen die volle Höhe gleichmäßig */
.column .box {
  flex: 1;
}
 
.box {
  background: var(--blue);
  color: white;
  padding: 25px;
  border-radius: 20px;
}
 
.box h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
 
.box p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
 
.box p::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
 
.icon-exp::before   { background-image: url('SVG/Erfahrung.svg'); }
.icon-lang::before  { background-image: url('SVG/Sprache.svg'); }
.icon-skill::before { background-image: url('SVG/Skillliste.svg'); }
 
/* ================= TIMELINE ================= */
 
.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  flex: 1;
}
 
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
 
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid white;
  flex-shrink: 0;
  margin-top: 4px;
}
 
.timeline-dot--current {
  background: transparent;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
  animation: pulse 2s ease-in-out infinite;
}
 
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(255,255,255,0.15); }
}
 
.timeline-line {
  width: 2px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  margin-left: 6px; /* zentriert unter dem 14px Dot */
}
 
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
  font-size: 0.95rem;
}
 
.timeline-year {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
 
.skill-box {
  position: relative;
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
 
.skill-box::before {
  content: "Skills:";
  position: absolute;
  top: 20px;
  left: 25px;
  font-weight: bold;
}
 
.skill-box img {
  width: 60%;
  transform: translateY(30px);
}
 

/* ================= DIVIDER ================= */

.divider {
  font-family: "forager-overlap", sans-serif;
  font-size: clamp(32px, 6vw, 80px);
  padding: 40px 20px;
}

.divider.blue {
  background: var(--blue);
  color: white;
}

.divider.white {
  background: var(--white);
  color: var(--blue);
}

/* ================= PROJECTS ================= */

.projects {
  width: 100%;
}

.projects-heading {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

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

.grid img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 50px 40px;
  background: var(--blue);
  color: var(--white);
  line-height: 1.7;
}

.text.blue,
.text ul {
  background: var(--blue);
}

.text ul {
  background: transparent;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.text ul li::before {
  content: "→ ";
  color: var(--white);
}

/* Box inside text cell */
.text .box {
  background: var(--blue);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
}
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #0d1a2e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
 
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* proportional, kein Zuschnitt */
  display: block;
}
 
/* ---- Großer Center-Play-Button ---- */
.video-play-center {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.25s;
  padding: 0;
}
 
.video-play-center svg {
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}
 
.video-play-center:hover svg {
  transform: scale(1.1);
}
 
/* Verstecken wenn Video läuft */
.video-wrapper.playing .video-play-center {
  opacity: 0;
  pointer-events: none;
}
 
/* ---- Controls Bar ---- */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.95) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 20;
}
 
/* Controls einblenden bei Hover oder wenn pausiert */
.video-wrapper:hover .video-controls,
.video-wrapper.paused .video-controls {
  opacity: 1;
  transform: translateY(0);
}
 
/* ---- Control Buttons ---- */
.vc-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
 
.vc-btn svg {
  width: 18px;
  height: 18px;
}
 
.vc-btn:hover {
  color: var(--blue);
  background: rgba(255,255,255,0.08);
}
 
/* ---- Zeitanzeige ---- */
.vc-time {
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  user-select: none;
  flex-shrink: 0;
}
 
/* ---- Fortschrittsleiste ---- */
.vc-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}
 
.vc-progress:hover {
  height: 6px;
}
 
.vc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 99px;
  pointer-events: none;
  transition: width 0.1s linear;
}
 
.vc-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  box-shadow: 0 0 0 2px var(--blue);
}
 
.vc-progress:hover .vc-progress-thumb {
  opacity: 1;
}

/* ================= CONTACT ================= */

.contact {
  background: var(--blue);
  padding: 80px 20px;
}

#contactForm {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255, 255, 255, 0.6);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

input:focus,
textarea:focus {
  background: white;
  border-color: white;
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

#formStatus {
  color: white;
  font-size: 0.95rem;
  min-height: 1.4em;
}

/* ================= FOOTER ================= */

footer {
  background: var(--white);
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-grid img {
  width: 120px;
  height: auto;
}

.footer-grid p {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-grid a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: var(--black);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--blue);
}

.legal {
  opacity: 0.6;
  text-align: center;
  font-size: 0.78rem;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 900px) {
  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}


/* Mobile */
@media (max-width: 768px) {

  .video-wrapper {
    min-height: 220px;
  }
 
  .video-controls {
    opacity: 1;
    transform: translateY(0);
  }
 
  .vc-btn svg {
    width: 16px;
    height: 16px;
  }


  /* --- Burger & Nav --- */
  .burger {
    display: block;
  }

  nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
  }

  nav.active {
    transform: translateX(0);
  }

  nav a {
    font-size: 1.2rem;
    margin: 0;
  }

  .nav-right {
    display: none;
  }

  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }

  /* --- Hero --- */
  .hero-img {
    height: 60%;
  }

  .hero-title {
    font-size: clamp(60px, 18vw, 120px);
  }

  /* --- About --- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-text {
    order: 1;
    max-width: 100%;
  }

  .about-img-wrapper {
    order: 2;
  }

  .title-right {
    text-align: left;
  }

  /* --- Contact strip --- */
  .contact-strip {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* --- Fact --- */
  .fact-grid {
    grid-template-columns: 1fr;
  }

  /* --- Projects Grid --- */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Ensure correct reading order on mobile: image after text */
  .grid img {
    min-height: 220px;
    order: 0;
  }

  .grid .text {
    padding: 32px 20px;
  }

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

  #contactForm {
    padding: 24px 16px;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .skill-box img {
    width: 85%;
    transform: translateY(20px);
  }
}