/* ================================================================
   style.css — Startseiten-spezifische Styles
   Globale Styles (Nav, Footer, Sidebar, Buttons, Variablen)
   → assets/css/shared.css
   ================================================================ */

/* ================================================================
   SEITE 1 — HERO
   ================================================================ */

.hero {
  min-height: 100vh;
  background: linear-gradient(47deg, var(--blau) 55%, var(--weiss));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-text {
  position: absolute;
  top: clamp(90px, 18vh, 180px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  white-space: nowrap;
  z-index: 2;
}

.hero-greeting {
  font-family: var(--font-base);
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 400;
  color: var(--weiss);
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  font-weight: 500;
  color: var(--weiss);
  line-height: 1;
  padding-left: 15px;
}

.hero-image {
  padding-top: 150px;
  max-height: 100vh;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}


/* ================================================================
   SEITE 2 — INTRO
   ================================================================ */

.intro {
  min-height: 100vh;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-xl) var(--gap-m);
}

.intro-inner {
  width: 80%;
  text-align: center;
}

.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 3rem);
  font-weight: 400;
  color: var(--grau);
  line-height: 1.85;
}

.intro-word {
  display: inline;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
}
.intro-word:hover {
  color: #555;
}


/* ================================================================
   SEITE 3 — ÜBER MICH
   ================================================================ */

.about {
  min-height: 100vh;
  background: linear-gradient(0, var(--grau) 0%, var(--beige) 100%);
  display: flex;
  align-items: center;
  padding: var(--gap-xl) var(--gap-m);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap-l);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.about-left  { padding: var(--gap-s) 0; }
.about-right { padding: var(--gap-s) 0; }

.about-photo {
  width: clamp(200px, 22vw, 320px);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transition: transform 0.4s ease;
}
.about-photo:hover { transform: scale(1.03) rotate(1deg); }

.about-center { display: flex; justify-content: center; }

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.about-buttons {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: var(--gap-m);
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: #777;
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid #bbb;
  padding-left: 1rem;
}


/* ================================================================
   ERFAHRUNG BANNER
   ================================================================ */

.experience-banner {
  background: var(--grau);
  padding: var(--gap-l) var(--gap-m);
}

.exp-inner {
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

.banner-text {
  color: var(--weiss);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--gap-s);
}


/* ================================================================
   TIMELINE
   ================================================================ */

.tl-section {
  background: linear-gradient(180deg, var(--grau) 0%, var(--dunkel) 100%);
  padding: var(--gap-xl) 0;
}

.tl-wrap {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gap-m);
  align-items: start;
}

.tl-line-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.tl-track {
  position: relative;
  width: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

.tl-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--weiss);
  border-radius: 4px;
  transition: height 0.08s linear;
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.35s ease, border-color 0.35s ease,
              transform 0.35s ease, box-shadow 0.35s ease;
}
.tl-dot.active {
  background: var(--weiss);
  border-color: var(--weiss);
  transform: translateX(-50%) scale(1.35);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.tl-entries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 1.8rem;
}

.tl-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 1.6rem 2rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              background 0.25s ease, box-shadow 0.25s ease;
}
.tl-card.visible {
  opacity: 1;
  transform: translateX(0);
}
.tl-card:hover {
  background: rgba(255,255,255,0.11);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.tl-year {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--weiss);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.tl-title {
  color: var(--weiss);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.tl-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.tl-more {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.2s;
}
.tl-more:hover { color: var(--weiss); padding-left: 4px; }


/* ================================================================
   MEIN ZIEL
   ================================================================ */

.goal {
  background: var(--dunkel);
  padding: var(--gap-xl) var(--gap-m);
}

.goal-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap-l);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.goal-image {
  width: clamp(180px, 18vw, 260px);
  height: clamp(180px, 18vw, 260px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}
.goal-image:hover { transform: scale(1.04); }

.goal-text {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}


/* ================================================================
   PROJEKTE
   ================================================================ */

.projects {
  background: var(--dunkel);
  padding: var(--gap-xl) var(--gap-m);
}

.projects-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.projects-header { margin-bottom: var(--gap-l); }

.projects-subline {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.project-card {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.22);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-img { transform: scale(1.04); }

.project-info { padding: 1.2rem 1.5rem 1.5rem; }

.project-title {
  color: var(--weiss);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.project-text {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-base);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}
.tag:hover {
  background: rgba(255,255,255,0.1);
  color: var(--weiss);
  border-color: rgba(255,255,255,0.6);
}

.projects-footer {
  margin-top: var(--gap-l);
  display: flex;
  justify-content: center;
}


/* ================================================================
   ZUKUNFT
   ================================================================ */

.future {
  background: #0a0a0a;
  padding: var(--gap-xl) var(--gap-m);
}

.future-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.future-text {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: var(--gap-s) 0 var(--gap-m);
}


/* ================================================================
   KONTAKT
   ================================================================ */

.contact {
  background: var(--dunkel);
  padding: var(--gap-xl) var(--gap-m);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gap-l);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-subline {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.6rem;
}

.cf-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-s);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--weiss);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cf-input::placeholder { color: rgba(255,255,255,0.3); }
.cf-input:focus {
  border-color: var(--blau);
  background: rgba(255,255,255,0.09);
}

.cf-textarea {
  height: 150px;
  resize: vertical;
}

.cf-submit { margin-top: 1rem; }

.cf-success, .cf-error {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-s);
  font-size: 0.95rem;
}
.cf-success { background: rgba(80,200,120,0.12); color: #6fc98a; border: 1px solid #6fc98a44; }
.cf-error   { background: rgba(220,80,80,0.12);  color: #e07070; border: 1px solid #e0707044; }

.contact-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  position: relative;
}

.contact-img {
  width: 100%;
  max-width: 360px;
  border-radius: var(--r);
  object-fit: cover;
  transition: transform 0.35s ease;
}
.contact-img:hover { transform: scale(1.02); }

.contact-details-btn { align-self: center; }


/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */

@media (max-width: 900px) {

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-center { order: -1; }
  .about-photo  { width: clamp(160px, 45vw, 240px); }
  .about-right  { display: none; }
  .about-buttons { justify-content: center; }

  .tl-wrap { max-width: 100%; }

  .goal-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .goal-image { margin: 0 auto; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-img-col { order: -1; }
  .contact-img { max-width: 280px; }

  .exp-inner { max-width: 100%; margin-right: 0; }
}


/* ================================================================
   RESPONSIVE — MOBIL
   ================================================================ */

@media (max-width: 600px) {
  :root {
    --gap-l:  2.2rem;
    --gap-xl: 3.2rem;
  }

  .hero-image {
    max-height: 65vh;
    width: 90%;
    object-fit: contain;
  }

  .hero-text {
    top: 82px;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    text-align: center;
    width: 90%;
    gap: 0.2em;
  }

  .intro-text { font-size: 1.1rem; }

  .about-photo { width: 55vw; max-width: 200px; }

  .tl-wrap { grid-template-columns: 40px 1fr; padding: 0 1rem; }
  .tl-card { padding: 1.1rem 1.2rem; }
  .tl-year { font-size: 1.5rem; }
  .tl-entries { padding-left: 1.2rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-img   { height: 180px; }

  .contact-img { max-width: 220px; }

  .goal-image { width: 50vw; height: 50vw; max-width: 200px; max-height: 200px; }
}
