/* ----------------------------- */
/* Grundlegendes Layout & Typo   */
/* ----------------------------- */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fbf9f6;
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #B06B3B;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: #B06B3B;
  transition: color 0.3s ease;
}

a:hover {
  color: #8A4B2C;
}

/* ----------------------------- */
/* Header & Navigation           */
/* ----------------------------- */
header {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav a {
  margin: 0 0.75rem;
  font-weight: 500;
}

nav a:hover {
  color: #8A4B2C;
}

/* ----------------------------- */
/* Hero-Bereich                  */
/* ----------------------------- */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: url('../images/lasergravur.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.35); /* dunkler Overlay für Kontrast */
}

.hero h2, .hero p, .hero .button {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .button {
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  background: #B06B3B;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero .button:hover {
  background: #8A4B2C;
  transform: translateY(-2px);
}

/* ----------------------------- */
/* Container / Hauptbereich      */
/* ----------------------------- */
main.container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------------------- */
/* Karten / Leistungen           */
/* ----------------------------- */
.card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 600px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.card img {
  border-radius: 12px;
  margin-top: 1rem;
  width: 100%;
}

/* ----------------------------- */
/* Galerie / Masonry             */
.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.masonry img {
  width: calc(33% - 1rem); /* Breite pro Bild */
  height: auto;             /* Höhe automatisch, Seitenverhältnis bleibt */
  object-fit: cover;        /* Bild füllt den Container, ohne zu verzerren */
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.masonry img:hover {
  transform: scale(1.05);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .masonry img {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .masonry img {
    width: 100%;
  }
}

/* ----------------------------- */
/* Buttons                       */
.button {
  display: inline-block;
  background: #B06B3B;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background: #8A4B2C;
  transform: translateY(-2px);
}

/* ----------------------------- */
/* Kontaktformular               */
form {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
}

form input, form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus {
  border-color: #B06B3B;
  box-shadow: 0 0 8px rgba(176,107,59,0.3);
  outline: none;
}

form button {
  padding: 0.75rem 1.5rem;
  background: #B06B3B;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background: #8A4B2C;
  transform: translateY(-2px);
}

/* ----------------------------- */
/* Footer                        */
footer {
  background: #333;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: #B06B3B;
}

footer a:hover {
  color: #fff;
}

/* ----------------------------- */
/* Responsive Design             */
@media (max-width: 768px) {
  .masonry img {
    width: calc(50% - 1rem);
  }

  header {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .masonry img {
    width: 100%;
  }

  .card {
    padding: 1rem;
  }

  form {
    padding: 1.5rem;
  }
}
