* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
}

/* HEADER */
header {
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo img {
  height: 100px; /* Passe die Höhe an dein Design an */
  width: auto;
  display: block;
}


/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s;
  z-index: 2;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  
}

nav a:hover {
  color: #1abc9c;
  transform: translateY(-2px);
}

/* MENU ICON */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: transform 0.3s, fill 0.3s;
}

.menu-toggle.active .icon {
  fill: #1abc9c;
  transform: rotate(90deg); /* kleine Drehung beim aktiv */
}

/* MAIN */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured GIF Hintergrund */
.featured {
  position: relative;
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: rgba(0,0,0,0.5);
}

.featured .main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./images/grillworksLogoGif.gif');
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* leicht transparent */
  z-index: 0;
}

.featured p,
.featured h2 {
  position: relative;
  z-index: 1;
}

/* Grid Artikel Bilder */
.grid article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0.5rem;
}


.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.featured .date {
  color: #777;
  font-size: 0.9rem;
}

.featured h2 {
  margin: 0.5rem 0;
}

/* GRID SECTION */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid article {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.grid h3 {
  margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #222;
    display: none;
    text-align: center;
    padding: 1rem 0;
    gap: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .main-img{
    object-fit: cover;
  }
}



/* ===== ABOUT ME ===== */
.aboutme {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.aboutme h1, .aboutme h2 {
  color: #222;
  margin-bottom: 1rem;
}

.aboutme p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.aboutme ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}

.aboutme ul li {
  margin-bottom: 0.5rem;
  color: #555;
}

/* ===== CONTACT ===== */
.contact {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact h1, .contact h2 {
  color: #222;
  margin-bottom: 1rem;
}

.contact p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Kontaktformular */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.8rem 1.2rem;
  background: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #159d82;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .aboutme, .contact {
    padding: 1.5rem;
    margin: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}
