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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2f2f2f;
  background: #ffffff;
}

a {
  color: #006eb8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #004f85;
}

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

/* Seitenbreite */
.site-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 18px 24px;
}

.site-main p {
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  color: #2b2b2b;
  line-height: 1.25;
  font-weight: 500;
}

h1 {
  font-size: 34px;
  margin: 0 0 22px;
}

h2 {
  font-size: 27px;
  margin: 42px 0 18px;
}

h3 {
  font-size: 21px;
  margin: 30px 0 12px;
}

/* Header / Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d8cbb6;
}

.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 18px 12px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #2f2f2f;
  text-decoration: none;
  margin-bottom: 16px;
}

.site-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: 0.75;
  flex: 0 0 auto;
}

.site-brand-text {
  display: block;
}

.site-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #2f2f2f;
}

.site-subtitle {
  display: block;
  font-size: 15px;
  color: #6f665c;
  line-height: 1.35;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  border-top: 1px solid #eee4d5;
  padding-top: 12px;
}

.site-nav a {
  color: #006eb8;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: #006eb8;
}

/* Seitenstart */
.nake-seitenstart {
  margin-top: 0;
}

/* Hinweisrahmen */
.nake-hinweisrahmen {
  background: #fffaf2;
  border: 2px solid #d8cbb6;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
  color: #2f2f2f;
  line-height: 1.65;
  font-size: 16px;
}

/* Kacheln */
.kompass-kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.kompass-kachel {
  background: #ffffff;
  border: 1.5px solid #d8cbb6;
  border-radius: 14px;
  padding: 20px;
  color: #2f2f2f;
  line-height: 1.6;
  box-shadow: 0 6px 18px rgba(80, 61, 39, 0.06);
}

.kompass-kachel strong {
  display: block;
  margin-bottom: 6px;
  color: #3b3026;
  font-size: 18px;
}

/* Bilder */
.nake-bild {
  text-align: center;
  margin: 32px auto 36px;
}

.nake-bild img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border: 6px solid #efe6d6;
  outline: 1px solid #c8b89f;
  box-sizing: border-box;
}

.nake-bild figcaption {
  font-size: 13px;
  color: #6f665c;
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}

/* FAQ */
.nake-faq {
  margin: 24px 0 34px;
}

.nake-faq details {
  background: #fffaf2;
  border: 1px solid #d8cbb6;
  border-radius: 7px;
  margin-bottom: 8px;
  padding: 0;
  overflow: hidden;
}

.nake-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 16px;
  color: #2f2f2f;
  line-height: 1.4;
  position: relative;
}

.nake-faq summary::-webkit-details-marker {
  display: none;
}

.nake-faq summary::before {
  content: "›";
  display: inline-block;
  margin-right: 9px;
  color: #8c7357;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.nake-faq details[open] summary::before {
  transform: rotate(90deg);
}

.nake-faq details p {
  padding: 0 16px 14px 34px;
  margin: 0;
  line-height: 1.65;
  color: #2f2f2f;
}

.nake-faq details[open] {
  background: #fff7eb;
}

/* Buttons / CTA */
.nake-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 70px;
}

.nake-cta-row a.nake-cta-btn {
  display: inline-block !important;
  background: #d8cbb6 !important;
  color: #1f1f1f !important;
  padding: 12px 18px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  border: none !important;
}

.nake-cta-row a.nake-cta-btn:hover {
  background: #c8b89f !important;
  color: #1f1f1f !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.nake-abschlussbereich {
  margin-bottom: 70px;
}

/* Footer */
.site-footer {
  background: #fffaf2;
  border-top: 1px solid #d8cbb6;
  margin-top: 40px;
}

.site-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 18px 36px;
  color: #4b4036;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-contact {
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #006eb8;
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .site-main {
    padding: 34px 30px 20px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
    margin-top: 36px;
  }

  h3 {
    font-size: 20px;
  }

 .site-header-inner {
  padding: 18px 28px 12px;
}

.site-brand {
  gap: 10px;
  margin-bottom: 14px;
}

.site-logo {
  width: 46px;
  height: 46px;
}

.site-title {
  font-size: 20px;
}

.site-subtitle {
  font-size: 14px;
}

.site-nav {
  gap: 6px 16px;
  padding-top: 12px;
}

.site-nav a {
  font-size: 16px;
}

  .kompass-kacheln {
    grid-template-columns: 1fr;
  }

  .nake-hinweisrahmen,
  .kompass-kachel {
    padding: 16px;
  }

  .nake-bild {
    margin: 26px auto 30px;
  }

  .nake-cta-row {
    margin-bottom: 54px;
  }

  .site-footer-inner {
    display: block;
    padding: 30px 32px 36px;
    font-size: 16px;
  }

  .footer-contact {
    max-width: none;
    margin-bottom: 18px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 10px 18px;
  }
}


/* Zertifikate */
.zertifikat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 34px;
}

.zertifikat-kachel {
  display: block !important;
  background: #fffaf2 !important;
  border: 1.5px solid #d8cbb6 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  color: #2f2f2f !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(80, 61, 39, 0.06) !important;
  line-height: 1.45;
}

.zertifikat-kachel img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 12px;
  background: #ffffff;
  border: 1px solid #e6dac8;
  box-sizing: border-box;
}

.zertifikat-kachel strong {
  display: block;
  color: #3b3026;
  font-size: 15px;
  margin-bottom: 6px;
}

.zertifikat-kachel span {
  display: block;
  color: #6f665c;
  font-size: 14px;
}

.zertifikat-kachel:hover {
  background: #fff7eb !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .zertifikat-grid {
    grid-template-columns: 1fr;
  }

  .zertifikat-kachel img {
    height: 180px;
  }
}


/* Video */
.nake-video {
  margin: 24px auto 34px;
  max-width: 720px;
}

.nake-video video {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border: 6px solid #efe6d6;
  outline: 1px solid #c8b89f;
  box-sizing: border-box;
}


/* Kontakt-Hero */
.nake-kontakt-hero {
  text-align: center;
  margin: 28px auto 34px;
}

.nake-kontakt-hero img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
  border: 6px solid #efe6d6;
  outline: 1px solid #c8b89f;
  box-sizing: border-box;
}

.nake-kontakt-hero figcaption {
  font-size: 13px;
  color: #6f665c;
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .nake-kontakt-hero {
    margin: 24px auto 30px;
  }

  .nake-kontakt-hero img {
    max-width: 100%;
    height: 165px;
  }
}

/* Zurück-nach-oben-Pfeil */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #006eb8;
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.back-to-top:hover {
  background: #004f85;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

/* Zurück-nach-oben-Pfeil */
.back-to-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 4px !important;
  background: #006eb8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  line-height: 1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  z-index: 9999 !important;
}

.back-to-top:hover {
  background: #004f85 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px !important;
    bottom: 16px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 24px !important;
  }
}
