*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #222;
    /*background-color: #f8f8f8;*/
    background-color: #ada0a4;
}

a {
  color: #0055aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus, button:focus, input:focus {
  outline: 2px solid #0055aa;
  outline-offset: 2px;
}

/* Layout */
.site-header,
.site-footer {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.logo a {
  font-weight: bold;
  font-size: 1.2rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.main-nav a {
  padding: 0.25rem 0.5rem;
}

.main-nav a:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

main {
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
  background-color: #ffffff;
}

/* Hero-Bereich Startseite */
.hero {
  padding: 1.5rem 0;
}

.hero h1 {
  margin-top: 0;
  font-size: 1.8rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  /*background-color: #004d99;
  */
  background-color: #786181;
  color: #ffffff;
  border-radius: 4px;
}

.btn:hover {
  /*background-color: #003f80;
  */
  background-color: #714E80;
  text-decoration: none;
}

/* Logo: feste Größe */
.logo {
    width: 400px; /* gewünschte Breite */
    height: auto; /* Höhe proportional */
    display: block;
    margin: 0 auto;
}

/* Erklärung zum Log */
.erklaerung {
    width: 400px;
    margin: 0 auto;
}

/* Angebot */
.angebot {
  margin-bottom: 1.5rem;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Kontakt */
.kontakt-block p {
  margin-bottom: 0.5rem;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.kontakt-form button {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  /*background-color: #004d99;
  */
  background-color:#786181;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.kontakt-form button:hover {
  /*background-color: #003f80;
  */
  background-color: #714E80;
}

.site-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: 1rem;
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #004d99;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Burger-Menü Styles */
.menu-toggle {
  display: none;
}

.burger-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.burger-icon span {
  width: 25px;
  height: 3px;
  background-color: #222;
  margin: 3px 0;
  transition: 0.3s;
}

.image-list-wrapper {
    display: flex;
    align-items: flex-start; /* oben ausrichten */
    gap: 20px; /* Abstand zwischen Bild und Liste */
}

/* Bild links */
.side-image {
    width: 280px; /* gewünschte Breite */
    height: auto; /* Höhe automatisch */
    display: block;
}

/* rechte Spalte */
.list-column {
    flex: 1; /* nimmt den restlichen Platz */
}

    /* optional: etwas Styling für die Liste */
    .list-column ul {
        margin: 0;
        padding-left: 20px; /* Einrückung für Bullets */
    }


/* RESPONSIVE: Mobile-First */
@media (max-width: 640px) {
    .site-header {
        position: relative;
    }

    .burger-icon {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        width: 100%;
        border-top: 1px solid #eee;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        }

    .image-list-wrapper {
        flex-direction: column;
    }


  /* Burger zu X Animation */
  #menu-toggle:checked ~ .burger-icon span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  #menu-toggle:checked ~ .burger-icon span:nth-child(2) {
    opacity: 0;
  }
  
  #menu-toggle:checked ~ .burger-icon span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Menü einblenden */
  #menu-toggle:checked ~ .main-nav {
    display: block;
  }
  
  /* Mobile Optimierungen */
  .hero h1 { 
    font-size: 1.5rem; 
  }
  main { 
    padding: 0.75rem; 
  }
  .kontakt-form input,
  .kontakt-form textarea {
    font-size: 16px;
  }
}