/* ===============================
   Grundfarben & Basisvariablen
================================ */
:root {
  --orange: #eb5937;
  --petrol: #40686e;
  --light-bg: #fefcf6;
  --max-width: 900px;
}

/* ===============================
   Grundlayout & Typografie
================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eee;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ===============================
   Linkfarben (Standard, Hover, Active)
================================ */
a:not(.cta-button):not(.nav-inner a) {
  color: var(--orange);
  text-decoration: none;
}

a:not(.cta-button):not(.nav-inner a):visited {
  color: var(--petrol);
}

a:not(.cta-button):not(.nav-inner a):hover,
a:not(.cta-button):not(.nav-inner a):focus {
  text-decoration: underline;
}

a:not(.cta-button):not(.nav-inner a):active {
  color: var(--petrol);
}

/* ===============================
   Logo & Header
================================ */
#logoHeader {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#logoHeader.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.logo-wrapper {
  transition: all 0.3s ease;
  overflow: hidden;
  height: auto;
  padding-top: 20px;
  text-align: center;
}

.logo-wrapper.hidden {
  height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}

.header img {
  max-width: 100%;
  height: auto;
}

/* ===============================
   Navigation (Desktop)
================================ */
.navbar {
  text-align: center;
  max-width: var(--max-width);
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 999;
  padding-bottom: 10px;
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
}

.nav-inner a {
  text-decoration: none;
  color: var(--petrol);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.nav-inner a:hover {
  background: var(--petrol);
  color: white;
}

/* ===============================
   Burger Menü (Standard: unsichtbar)
================================ */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1000;
}

.burger-line {
  width: 25px;
  height: 3px;
  background-color: var(--petrol);
  margin: 4px 0;
  transition: 0.4s;
}

/* ===============================
   Scroll-Anker
================================ */
.anchor-offset {
  display: block;
  height: 80px;
  margin-top: -80px;
  visibility: hidden;
}

.spacer {
  height: 100px;
}

/* ===============================
   Container / Inhalt
================================ */
.container {
  max-width: var(--max-width);
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.content {
  padding: 20px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.column {
  flex: 1;
  min-width: 280px;
}

.center {
  text-align: center;
}

h1, h2, h3 {
  color: #40686e;
}

/* ===============================
   CTA Buttons
================================ */
.cta-button {
  display: inline-block;
  background: var(--petrol);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  margin: 20px 0;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: var(--orange);
}

/* ===============================
   Preisbox
================================ */
.price-card-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.price-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--orange);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.tarif-name {
  font-size: 52px;
  color: var(--orange);
  font-weight: bold;
  margin-bottom: 0px;
}

.tarif-subline {
  font-size: 18px;
  color: #888;
  margin-bottom: 20px;
}

.preis-gross {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
  color: #222;
}

.preis-symbol {
  font-size: 22px;
  vertical-align: super;
  color: #888;
  margin-right: 5px;
}

.leistungsliste,
.extrasliste,
.anfahrtsliste {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: center;
}

.leistungsliste li,
.extrasliste li,
.anfahrtsliste li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.leistungsliste li:last-child,
.extrasliste li:last-child,
.anfahrtsliste li:last-child {
  border-bottom: none;
}

/* ===============================
   Anfahrtskosten-Box
================================ */
.anfahrtskosten-box {
  max-width: 420px;
  margin: 0 auto 60px auto;
  padding: 20px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.anfahrtskosten-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* ===============================
   Kontaktbereich
================================ */
.kontaktbox {
  padding: 10px 20px;
  text-align: center;
  background: var(--petrol);
  color: white;
  border-radius: 5px;
  max-width: 300px;
  margin: 20px auto;
}

.kontaktbox a {
  color: var(--orange);
  text-decoration: none;
}

.qr-code {
  width: 200px;
  height: auto;
  display: block;
  margin: 10px auto;
}

.kontakt-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.kontakt-dreispaltig {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.kontakt-spalte {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
}

.kontaktbild {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===============================
   iFrame (Formular)
================================ */
iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* ===============================
   Scroll-to-Top Button
================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--petrol);
  color: white;
  padding: 12px 18px;
  font-size: 14px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background: var(--orange);
}

/* ===============================
   Responsive Design (Mobile)
================================ */
@media (max-width: 768px) {
  .flex {
    flex-direction: column;
      justify-content: center;
    text-align: center;
  }

/* Bild in der ersten Spalte zentrieren */
  .column.center img {
    display: block;
    margin: 0 auto;
    width: 90%;
    height: auto;
  }

  

  /* Burger-Button sichtbar */
  .burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 10px;
  z-index: 1001;
}


  .burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--petrol);
    margin: 4px 0;
    transition: 0.4s;
  }

  /* Logo */
  .logo-wrapper {
    padding-top: 15px;
    text-align: center;
    position: relative;
    z-index: 1000;
  }

  /* Logo in der mobilen Ansicht verkleinern */
.logo-wrapper img {
  max-width: 180px;   /* vorher vermutlich 300–400px */
  height: auto;
  margin: 10px auto;
  transition: all 0.3s ease;
}

/* Wenn Logo beim Scrollen ausgeblendet wird → fließender Übergang */
.logo-wrapper.hidden img {
  opacity: 0;
  transform: scale(0.95);
}


  /* Navigation – unter dem Logo, volle Breite */
  .nav-inner {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #ddd;
    position: relative; /* statt absolute → unter Logo */
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-inner.active {
    display: flex;
  }

  .nav-inner a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: var(--petrol);
  }

  .nav-inner a:last-child {
    border-bottom: none;
  }

  /* Burger-Icon Animation */
  .burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

