html {
  /* Höhe Deines Sticky-Headers */
  scroll-padding-top: 48px;
  /* optional: sanftes Scrollen bei jedem Anker‑Sprung */
  scroll-behavior: smooth;
}



/* =========================================================
   style.css – Gesamtübersicht
   ========================================================= */

/* 1. Basis‑Reset & Box‑Sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Body & Grundtypografie */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}
p { margin: 1rem 0; }
a { color: #0693e3; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* 3. Header & Logo */
.site-header {
  position: relative;
  text-align: center;
  padding: 1rem 1rem;
  
	
}
.logo {
  display: block;
  margin: 0 auto;
  max-width: 600px;
}

/* 4. Desktop‑Navigation */
.site-nav {
  display: flex;
  justify-content: center;
  background-color: #32373c;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-nav a {
  color: #fff;
  padding: 1rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
}
.site-nav a:hover,
.site-nav a:focus {
  background-color: #454c54;
}

/* 5. Hauptbereich & Sektionen */
main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}
section {
  margin-bottom: 2rem;
}
section h2 {
  font-size: 1.75rem;
  margin-bottom: .75rem;
  border-bottom: 2px solid #0693e3;
  padding-bottom: .25rem;
}
/* Listen im Angebot stärker einrücken */
#angebot ul {
  margin-left: 2rem;
  padding-left: 1rem;
}
.section-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}
.align-left {
  float: left;
  margin: 0 1rem 1rem 0;
}

/* 6. Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
  background-color: #f5f5f5;
  color: #555;
}
.site-footer a {
  color: #333 !important;
  text-decoration: none;
  margin: 0 .5rem;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* 7. Call‑Button (Mobil) */
.call-button {
  display: none;
}

/* 8. Responsive & Off‑Canvas Hamburger‑Menü */
.menu-toggle {
  display: none;
  background-color: #32373c;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: .75rem;
  cursor: pointer;
  z-index: 1100;
}

@media only screen and (max-width: 768px) {
  /* Logo volle Breite */
  .logo {
    width: 100%;
    max-width: none;
  }

  /* Platz für den Toggle */
  .site-header {
    padding-top: 48px; /* Höhe des Toggle-Buttons */
  }

  /* Toggle unter dem Logo, fixiert oben */
.menu-toggle {
  display: flex;                /* Flexbox aktivieren */
  align-items: center;          /* vertikal zentrieren */
  justify-content: center;      /* horizontal zentrieren */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;                 /* Höhe des Toggles */
  background-color: #32373c;
  color: #fff;
  font-size: 1.2rem;
  z-index: 1100;
  border: none;
  cursor: pointer;
}


  /* Off‑Canvas Nav direkt unter dem Toggle */
  .site-nav {
    position: fixed;
    top: 48px;             /* direkt unter dem Toggle */
    right: -260px;
    width: 260px;
    height: calc(100vh - 48px);
    background-color: #32373c;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ganz oben mit den Links beginnen */
    transition: right 0.3s ease;
    z-index: 1000;
  }
  .site-nav.open {
    right: 0;
  }

  /* Menü‑Links ohne zusätzlichen Abstand */
  .site-nav a {
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid #454c54;
    text-align: center;
    font-size: 1rem;
    color: #fff;
  }
  .site-nav a:first-child {
    /* kein extra margin */
  }

  /* Call‑Button nur Mobil anzeigen */
  .call-button {
    display: block !important;
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    background-color: #ececec !important;
    color: #000 !important;
    padding: .6rem 1.2rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    z-index: 1200 !important;
  }

  /* Kein zusätzliches Padding im Hauptinhalt */
  main {
    padding-top: 0;
  }

  /* Floats rückgängig */
  .align-left {
    float: none;
    display: block;
    margin: 1rem auto;
  }
}

@media only screen and (max-width: 480px) {
  section h2 {
    font-size: 1.5rem;
  }
}

.logo {
  border-radius: 12px; /* je nach Geschmack anpassen */
}

/* Abstand beim Scrollen zu Ankern (Desktop & Mobile) */
:target {
  scroll-margin-top: 100px !important; /* Höhe deines Sticky-Menüs */
}

/* Alternativ: auf alle h2 innerhalb von Sektionen anwenden */
section h2 {
  scroll-margin-top: 48px;
}
/* Abstand beim Scrollen zu Ankern auf allen Geräten */
section {
  scroll-margin-top: 48px; /* Höhe deines Sticky‑Menüs */
}
/* ---------------------------------------- */
/* 1. Abstand für alle Scroll‑Sprünge setzen */
/* ---------------------------------------- */

/* Für den Root‑Scrollcontainer */
html {
  scroll-padding-top: 48px;    /* Höhe Deines Sticky‑Headers */
  scroll-behavior: smooth;     /* sanftes Scrollen */
}

/* Manche Browser nutzen body als Scrollcontainer */
body {
  scroll-padding-top: 48px;
}

/* ---------------------------------------- */
/* 2. Fallback für Target‑Elemente (Sections) */
/* ---------------------------------------- */

section[id] {
  /* sorgt dafür, dass die Section 48px unter dem Viewport‑Top sitzt */
  scroll-margin-top: 48px;
}
/* ----------------------------------------------- */
/* Universal-Anker-Offset: gleicht den Sticky-Header aus */
/* ----------------------------------------------- */

/* Jede Section mit einer ID bekommt oben unsichtbaren Raum */
section[id] {
  position: relative;
}

section[id]::before {
  content: "";
  display: block;
  height: 48px;       /* = Höhe deines Sticky-Menüs */
  margin-top: -48px;  /* Rückverschiebung um genau diese Höhe */
  visibility: hidden; /* bleibt unsichtbar */
}
/* Universal-Anker-Offset anpassen */
html,
body {
  scroll-padding-top: 0px;  /* statt 48px */
}

section[id]::before {
  height: 0px;       /* statt 48px */
  margin-top: 0px;  /* statt -48px */
}
