/* ----------------------------------------------------------
   Grundfarben und Basis
---------------------------------------------------------- */
:root {
  --accent: #385D8A;
  --accent-dark: #283C5D;
  --accent-light: #E6EDF6;
  --text: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: #ffffff;
}

/* ----------------------------------------------------------
   Header, Branding, Navigation
---------------------------------------------------------- */
header {
  border-top: 6px solid var(--accent);
  padding: 24px 24px 16px;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  justify-content: space-between;
}

header img.logo {
  width: 144px;
  height: auto;
}

/* DEKRA-Siegel rechts im Header */
.dekra-siegel {
  height: 200px;         /* bei Bedarf anpassen (z.B. 160px) */
  width: auto;           /* hält das Original-Seitenverhältnis */
  margin-left: 64px;
}

header .brand-text {
  flex: 1;
}

header .brand-text h1 {
  margin: 0;
  font-size: 28px;
  color: var(--accent-dark);
}

header .brand-text .small {
  margin-bottom: 4px;
}

header .tagline {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
}

/* Navigation – Hauptnavigation mit Dropdown */
nav.main-nav,
nav {
  max-width: 980px;
  margin: 16px auto 0;
}

/* Oberste Ebene der Navigation */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem; /* Abstand zwischen den Hauptpunkten */
}

.main-nav > ul > li {
  position: relative;
}

/* Links in der Hauptnavigation */
.main-nav a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: var(--accent-dark);
  padding: 4px 0;
  white-space: nowrap; /* verhindert Zeilenumbruch in der Navigation */
}


.main-nav a:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Untermenü standardmäßig verstecken */
.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #ddd;
  z-index: 1000;
}

/* Einträge im Untermenü */
.main-nav .submenu li {
  padding: 0;
}

.main-nav .submenu a {
  display: block;
  padding: 0.4rem 0.8rem;
  white-space: nowrap; /* verhindert Zeilenumbruch im Untermenü */
}


/* Dropdown bei Hover anzeigen (Desktop) */
.main-nav li.has-submenu:hover > .submenu {
  display: block;
}

/* Optional: kleine optische Hervorhebung bei Hover im Untermenü */
.main-nav .submenu a:hover {
  background: #f2f4f8;
}

/* ----------------------------------------------------------
   Hauptbereich & Typografie
---------------------------------------------------------- */
main {
  padding: 24px;
  max-width: 980px;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  margin: 0 0 1.2rem;
  color: var(--accent-dark);
}

h2 {
  margin: 24px 0 8px;
  font-size: 20px;
  color: var(--accent);
}

h3 {
  margin: 16px 0 4px;
  font-size: 16px;
  color: var(--accent-dark);
}

p {
  line-height: 1.5;
  margin: 0 0 12px;
}

ol {
  padding-left: 20px;
}

/* Links allgemein */
a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

/* Kleine Hilfsklassen */
.small {
  font-size: 14px;
  color: #666666;
}

.hr {
  height: 1px;
  background: #dddddd;
  margin: 16px 0;
}

/* ----------------------------------------------------------
   Leistungen – aufklappbare Blöcke (Accordion)
---------------------------------------------------------- */

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 0;
}

.service-item {
  border-top: 1px solid #ddd;
}

.service-item:last-child {
  border-bottom: 1px solid #ddd;
}

/* Abstand pro Block */
.service-details {
  padding: 4px 0;
}

/* Überschriftzeile – klickbar, bleibt fett */
.service-summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Standard-Dreieck ausblenden (Chrome, Safari etc.) */
.service-summary::-webkit-details-marker {
  display: none;
}

/* Plus/Minus-Symbol rechts */
.service-summary::after {
  content: "+";
  font-weight: normal;
  margin-left: 12px;
  font-size: 18px;
}

.service-details[open] .service-summary::after {
  content: "–";
}

/* Text im aufgeklappten Bereich */
.service-details p {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

/* Grundstil für alle <details>/<summary>, falls woanders genutzt */
details {
  margin: 6px 0;
}

summary {
  font-weight: bold;
  cursor: pointer;
  padding: 4px 0;
}

/* kleiner Abstand unter der Überschrift, wenn geöffnet */
details[open] summary {
  margin-bottom: 4px;
}

/* Text direkt darunter ohne zusätzlichen oberen Rand */
details[open] p {
  margin-top: 0;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
footer {
  background: var(--accent-light);
  padding: 18px 24px;
  margin-top: 40px;
  font-size: 14px;
}

footer a {
  text-decoration: none;
  color: var(--accent-dark);
}

footer a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Responsive Anpassungen
---------------------------------------------------------- */
@media (max-width: 640px) {
  header {
    padding: 16px;
  }

  header .brand {
    flex-direction: row;
    align-items: flex-start;
  }

  .dekra-siegel {
    height: 140px;    /* auf kleineren Geräten etwas kleiner */
  }

  main {
    padding: 16px;
  }
}

/* Formular auf der Kontaktseite */
#callback-form {
  max-width: 480px;
}
/* ----------------------------------------------------------
   Kontakt Seite
---------------------------------------------------------- */

#callback-form label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

#callback-form input,
#callback-form select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#callback-form button {
  margin-top: 16px;
}

/* ----------------------------------------------------------
   Haupt-CTA-Stil für Links UND Buttons
---------------------------------------------------------- */

a.cta,
button.cta {
  margin-top: 8px;
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  border: none;          /* Standard-Button-Rand entfernen */
  cursor: pointer;
}

a.cta:hover,
button.cta:hover {
  background-color: var(--accent-dark);
}

/* ----------------------------------------------------------
   Cookie Banner
---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f5f5f5;
  border-top: 1px solid #d0d3dd;
  padding: 12px 16px;
  font-size: 0.9rem;
  z-index: 9999;
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  text-decoration: underline;
  color: #385D8A;
}

.cookie-banner a:hover,
.cookie-banner a:focus {
  text-decoration: none;
}

.cookie-banner button {
  padding: 6px 14px;
  border: 1px solid #385D8A;
  background: #385D8A;
  color: #ffffff;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.9rem;
}

.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #2f4c70;
}

/* Auf kleineren Bildschirmen Text und Button untereinander */
@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner button {
    align-self: flex-end;
  }
}
/* ----------------------------------------------------------
   Intro
---------------------------------------------------------- */
#intro {
max-width: 960px;
margin: 0 auto;
padding: 1rem 1.5rem;
}


#intro h1 {
margin-bottom: 1.5rem; /* zusätzlicher Abstand unter der Überschrift */
}


#intro p {
margin-bottom: 0.75rem;
}

/* ----------------------------------------------------------
   Main Image Bildergrößen
---------------------------------------------------------- */
.img-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.img-main figure {
  flex: 1 1 240px;
  max-width: 280px;
}

.img-main img {
  width: 100%;
  height: 300px;      /* gemeinsame Höhe für beide Bilder */
  object-fit: cover;   /* Motiv wird bei Bedarf leicht zugeschnitten, aber nicht verzerrt */
  display: block;
  border-radius: 4px;
}

.img-main figcaption {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .img-main {
    flex-direction: column;
  }
}
/* Seitenspezifische Anpassungen: Leistungsübersicht */
#leistungen-uebersicht {
max-width: 960px;
margin: 0 auto;
padding: 1rem;
}


#leistungen-uebersicht h1 {
margin-bottom: 1.25rem;
}


#leistungen-uebersicht p {
margin-bottom: 0.75rem;
}


.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
margin: 1.5rem 0 2rem;
}


.service-teaser {
border: 1px solid #d0d3dd;
border-radius: 4px;
padding: 1rem 1.25rem;
background: #f9fafc;
}


.service-teaser h3 {
margin-top: 0;
margin-bottom: 0.5rem;
font-size: 1.05rem;
}


.service-teaser p {
margin-bottom: 0.5rem;
}


.service-teaser a {
color: #385D8A;
text-decoration: none;
}


.service-teaser a:hover,
.service-teaser a:focus {
text-decoration: underline;
}


.service-link {
font-size: 0.9rem;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}


.leistungen-cta {
border-top: 1px solid #d0d3dd;
padding-top: 1.5rem;
margin-top: 1.5rem;
}


}