
/* Grundlayout */
* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* Grauer Navigationsbalken */
.site-header {
  width: 100%;
  background: #999;
}

.navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.navigation a {
  display: block;
  padding: 11px 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.navigation .home-link {
  margin-right: auto;
}

.navigation a:hover,
.navigation a:focus-visible {
  color: #222;
  background: #d7d7d7;
}

.navigation a:focus-visible {
  outline: 2px solid #222;
  outline-offset: -3px;
}

/* PC: normale Navigation */
.desktop-links {
  display: flex;
  align-items: center;
}

.mobile-menu {
  display: none;
}

/* Bild und Kontaktangaben */
.main-content {
  width: min(100% - 32px, 1100px);
  margin: 28px auto;
  text-align: center;
}

.hero-image {
  display: block;
  width: 60%;
  height: auto;
  margin: 0 auto;
}

.contact-line {
  margin: 22px 0;
  font-size: 15px;
  line-height: 1.7;
}

.contact-line a {
  color: inherit;
  text-underline-offset: 3px;
}

/* Handy */
@media screen and (max-width: 600px) {
  .navigation {
    position: relative;
    justify-content: space-between;
    align-items: center;
  }

  .navigation .home-link {
    margin-right: auto;
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Nur das Handy-Menü anzeigen */
  .navigation .desktop-links {
    display: none !important;
  }

  .navigation .mobile-menu {
    display: block !important;
    position: relative;
  }

  .mobile-menu summary {
    display: block;
    padding: 8px 16px;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu[open] summary {
    color: #222;
    background: #d7d7d7;
  }

  .mobile-links {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    min-width: 180px;
    background: #999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .mobile-links a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-links a:hover,
  .mobile-links a:focus-visible {
    color: #222;
    background: #d7d7d7;
  }

  .main-content {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .contact-line {
    font-size: 14px;
  }
}

/* Sicherheitshalber: Auf größeren Displays kein Handy-Menü */
@media screen and (min-width: 601px) {
  .navigation .desktop-links {
    display: flex;
  }

  .navigation .mobile-menu {
    display: none;
  }
}
