@charset "utf-8";
/* CSS Document */
/* --- GLOBAL RESET --- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #111;
  background: #fff;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- TYPOGRAPHY --- */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  max-width: 60ch;
}

a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

a:hover {
  opacity: 0.6;
}

/* --- HERO SECTION --- */

#hero {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  object-fit: cover;
}
.logo-img {
  width:45px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  margin: 0px;
}

/* --- PATHS (3 MODULE) --- */

#paths .paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

#paths article {
  padding-right: 1rem;
}

#paths h2 {
  margin-bottom: 0.5rem;
}

/* --- KRAUTWEDEL ÜBER --- */

#krautwedel-about {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

#krautwedel-about p {
  font-size: 1.3rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

/* --- PROJECTS --- */

#projects article {
  margin-bottom: 2rem;
}

/* --- CONTACT --- */

#contact .contact-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

#contact img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  object-fit: cover;
}

/* --- FOOTER --- */

footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
}

footer nav a {
  margin-right: 1rem;
}

/* ------------------------------------------
   MOBILE BREAKPOINT (max-width: 900px)
------------------------------------------- */
/* MOBILE NAVIGATION */

.mobile-nav {
  display: none;
}

@media (max-width: 900px) {

  .mobile-nav {
    display: block;
    margin-bottom: 2rem;
  }

  /* Toggle Button */
  .nav-button {
    display: block;
    font-size: 1.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #000;
    cursor: pointer;
    user-select: none;
  }

  /* Hide checkbox */
  #nav-toggle {
    display: none;
  }

  /* Menu */
  .nav-menu {
    list-style: none;
    padding: 1rem 0;
    display: none;
    border-bottom: 1px solid #ddd;
  }

  .nav-menu li {
    margin-bottom: 1rem;
  }

  .nav-menu a {
    font-size: 1.1rem;
    text-decoration: none;
    border-bottom: 1px solid #000;
    color: #000;
  }

  /* Toggle logic */
  #nav-toggle:checked ~ .nav-menu {
    display: block;
  }
}
@media (max-width: 768px) {

  .hero-photo img {
    width: 100%;
    max-width: 450px;   /* harte Obergrenze */
    height: auto;
    margin: 0 auto;     /* zentriert */
    display: block;
    object-fit: cover;  /* verhindert Verzerrung */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;  /* Text + Bild sauber zentriert */
    text-align: center;     /* optional, aber meist schöner */
    gap: 2rem;
  }
}


@media (max-width: 900px) {

  body {
    padding: 1.5rem;
    font-size: 17px;
    line-height: 1.55;
  }

  /* HERO */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo img {
    width: 100%;
    height: auto;
  }

  h1 {
    font-size: 2.2rem;
  }

  .function {
    font-size: 1.2rem;
  }

  /* THREE PATHS */
  #paths .paths-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #paths article {
    padding-right: 0;
  }

  /* KRAUTWEDEL ÜBER */
  #krautwedel-about p {
    font-size: 1.2rem;
  }

  /* PROJECTS */
  #projects article {
    margin-bottom: 2.5rem;
  }

  /* CONTACT */
  #contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #contact img {
    width: 100%;
    max-width: 260px;
  }

  /* FOOTER */
  footer {
    text-align: left;
    font-size: 0.85rem;
  }
}
