* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f7f7f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, .logo, .btn {
  font-family: 'Poppins', sans-serif;
}

.hero {
  background: linear-gradient(135deg, #1f3c88, #4a90e2);
  color: white;
  min-height: 0vh;
  padding: 20px 40px 60px;
}

.nav {
  max-width: 100%;
  margin: 0 auto;
  padding: -10px 40px;
  display: flex;
  align-items: center;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
}

.lang-btn {
  background: transparent;
  border: 1px transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  margin-left: 10px;
  color: white;
  font-size: 18px;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.logo-name {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.logo-name::after {
  content: "";
  position: absolute;
  left: 1%;
  bottom: 9px;
  width: 85%;
  height: 0.4rem;
  background: white;
  border-radius: 999px;
}

.logo-dot {
  position: absolute;
  right: 5px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.page-hero-text {
  max-width: 1000px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero-text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-hero-text p {
  font-size: 1.5rem;
  line-height: 1.7;
  max-width: 700px;
}

.projects-page {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #4a90e2;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-width 0.25s ease;
  cursor: pointer;
  height: 100%;
}

.project-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1f3c88;
}

.project-card p {
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.project-link:hover .project-card {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  border-left-width: 8px;
}

.project-link:active .project-card {
  transform: translateY(-3px);
}

.footer {
  text-align: center;
  padding: 30px 20px;
  background: #222;
  color: white;
}

/* =========================
   Handy / Tablet Ergänzung
   oberer Code bleibt gleich
========================= */

@media (max-width: 992px) {
  .hero {
    padding: 20px 24px 50px;
  }

  .hero-wrapper {
    max-width: 90%;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1.08rem;
    max-width: 100%;
  }

  .about,
  .contact,
  .journey {
    margin: 40px 20px;
    padding: 30px;
  }

  .projects {
    margin: 40px 20px;
    padding: 0;
  }

  .journey-item {
    grid-template-columns: 170px 1fr;
    gap: 16px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 18px 16px 40px;
    min-height: auto;
  }

  .hero-wrapper {
    margin-top: 24px;
    max-width: 100%;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .nav {
    width: 100%;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .lang-btn {
    font-size: 16px;
  }

  .about,
  .contact,
  .journey {
    margin: 30px 14px;
    padding: 22px 18px;
  }

  .projects {
    margin: 30px 14px;
    padding: 0;
  }

  .about h2,
  .contact h2,
  .journey h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .about p,
  .contact p,
  .journey-content p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .journey-item {
    grid-template-columns: 130px 1fr;
    gap: 14px;
  }

  .journey-content h3 {
    font-size: 1.05rem;
  }

  .schulabshluss,
  .umzug,
  .Bachelor,
  .Master {
    font-size: 1.2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .about h2,
  .contact h2,
  .journey h2 {
    font-size: 1.5rem;
  }

  .journey-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .journey-year {
    margin-bottom: 4px;
  }
}

/* Hamburger-Button standardmäßig verstecken */
.menu-toggle {
  display: none;
  background: rgba(34, 47, 68, 0.95);
  border: none;
  border-radius: 14px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #5f6977;
  border-radius: 999px;
}

/* Nur für Mobile */
@media (max-width: 768px) {
  .nav {
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 16px;
    width: 220px;
    background: rgba(34, 47, 68, 0.98);
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: white;
    font-size: 1rem;
    display: block;
    width: 100%;
  }
}