:root {
  --primary: #1f2f46;     /* Dunkelblau */
  --secondary: #b1976b;   /* Gold-Ocker, CI-Farbe */
  --white: #ffffff;
}

.menu-toggle {
  position: relative;
  z-index: 4000;
}

/* === FONTS === */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/roboto-v47-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/roboto-v47-latin-500.woff2') format('woff2');
}

/* === RESET & BASIS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #333;
}

/* === CONTAINER === */
.container {
  position: relative;      /* für absolute Kinder */
  display: flex;           /* für Header/Flex-Layouts */
  align-items: center;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
  position: absolute;
  top: 0;
  right: 300px;
  background-color: #111;
  padding: 6px 10px;
  z-index: 2000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .language-switcher {
    right: 60px;
  }
}

.language-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.language-button img {
  width: 24px;
  height: auto;
}

/* Dropdown */
.language-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #111;
  padding: 5px 0;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.language-menu a {
  display: block;
  padding: 5px 10px;
}

.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu {
  display: block;
}

/* === HEADER === */
header {
  background-color: #ffffff;
  position: relative;
  z-index: 3000;
}

.logo img {
  height: 70px;
}

.spacer {
  flex: 0 0 10%;
}

/* === NAVIGATION === */
.navigation ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation li {
  margin: 0;
}

.navigation a {
  text-decoration: none;
  color: #333;
  font-size: 20px;
  padding-bottom: 5px;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navigation a:hover {
  color: #b1976b;
  text-decoration: underline;
}

.navigation li + li::before {
  content: "|";
  padding: 0 15px;
  color: #b1976b; /* CI-Farbe */
  font-weight: normal;
}

.navigation li.active a {
  color: #b1976b;
}

/* Untere Linie im Header */
.bottom-border {
  height: 4px;
  background-color: #b1976b;
}

/* === HERO TYPOGRAFIE === */
.hero-content h2 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  margin: 50px;
}

.hero-content h2::after {
  content: none;
}

.hero-content h1 {
  font-size: 50px;
  font-weight: bold;
  margin: 50px 0 50px;
}

.hero-content h3 {
  font-size: 28px;
  margin-bottom: 30px;
}

/* === BUTTON === */
.button {
  background-color: #b1976b;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 20px;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #a0805a;
}

/* === MOBILE MENÜ TOGGLE === */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #b1976b;
}

@media (min-width: 769px) {
  .navigation {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
  }

  .navigation ul {
    flex-direction: row;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 0;
    flex-direction: column;
    z-index: 3500;
  }

  .navigation.active {
    display: flex;
  }

  .navigation ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    gap: 15px;
  }
}

/* === LOGO-GRÖSSE IM HEADER === */
.logo-wrapper {
  width: 200px;      /* gewünschte Logo-Breite */
  height: auto;
  flex-shrink: 0;
}

.logo-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* === HERO MIT VIDEO (CLS-SAFE) === */

/* Container für das Hintergrundvideo */
/* === HERO MIT VIDEO (CLS-SAFE, NICHT SO HOCH) === */

/* Container für das Hintergrundvideo */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Platz reservieren – hier stellst du die Höhe ein:
   40% der Breite auf Desktop, 60% auf Mobile */
.hero::before {
  content: "";
  display: block;
  padding-top: 40%; /* weniger Höhe als 16:9 */
}

@media (max-width: 768px) {
  .hero::before {
    padding-top: 60%; /* etwas höher auf Handy */
  }
}

/* Video füllt den reservierten Bereich */
.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* füllt, ohne verzerren */
  display: block;
}

/* Overlay über Video – jetzt OHNE grauen Schleier */
.video-overlay {
  position: absolute;
  inset: 0;
  background: none;     /* kein Grau mehr */
  pointer-events: none;
}

/* Text im Hero mittig darüber */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  z-index: 2;
}


/* Optional: Mobile Typo leicht anpassen */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
    margin: 30px 0;
  }

  .hero-content h2 {
    font-size: 22px;
    margin: 20px;
  }
}

/* === FOOTER KOMPLETT === */
.footer {
  background-color: #1d1d1d;
  font-size: 16px;
  color: #ababab;
}

/* Oberer Teil */
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  border-bottom: 1px solid #333;
}

.footer-box {
  flex: 1 1 220px;
  min-width: 200px;
  padding-right: 20px;
  border-right: 1px solid #333;
}

.footer-box:last-child {
  border-right: none;
}

.footer-box p {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-box h4 {
  font-size: 25px;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
}

.footer-box h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: #b1976b;
  margin-top: 10px;
}

.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-box a {
  color: #ffffff;
  text-decoration: none;
}

.footer-box a:hover {
  color: #b1976b;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 20px;
}

.footer-logos img {
  width: 180px;
  height: auto;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
}

/* Unterer Footer-Bereich */
.footer-bottom {
  background-color: #111111;
  padding: 20px 0;
}

.footer-bottom-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: left;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 16px;
  color: #ababab;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
}

.footer-links a:hover {
  color: #b1976b;
}

/* === Responsive Footer === */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .footer-box {
    margin-bottom: 30px;
    border-right: none;
    padding-right: 0;
  }

  .footer-logos {
    align-items: left;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-links {
    justify-content: center;
  }
}

/* === ABOUT SECTION === */
.about {
  background-color: #ffffff;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.about-container {
  max-width: 800px;
  text-align: center;
  background-color: #ffffff;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.about h2 {
  font-size: 28px;
  color: #333333;
  margin-bottom: 10px;
}

.about-divider {
  width: 50px;
  height: 3px;
  background-color: #b1976b;
  margin: 0 auto 30px auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image {
  width: 200px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 18px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

@media (max-width: 768px) {
  .about-container {
    padding: 30px 20px;
  }

  .about-text p {
    font-size: 16px;
  }
}

/* === LEISTUNGEN === */
section.leistungen {
  background-color: #F7F7F7;
  color: #333;
  text-align: center;
}

.section-subtitle {
  color: #b1976b;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: #666;
}

.leistungen {
  background-color: #f9f9f9;
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header p {
  font-size: 16px;
  color: #555;
}

.leistungen-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.leistung-box {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 20px;
  width: 300px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s;
}

.leistung-box:hover {
  transform: translateY(-5px);
}

.leistung-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.leistung-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111;
}

.leistung-box p {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
  text-align: justify;
}

.leistung-box ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 15px;
}

.leistung-box ul li {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  padding-left: 25px;
  margin-bottom: 8px;
}

.leistung-box ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #b1976b;
  font-size: 16px;
  line-height: 1.6;
}

.leistung-box a {
  font-size: 14px;
  color: #b1976b;
  text-decoration: underline;
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .leistung-box p,
  .about-text p,
  .footer-box p {
    text-align: left;
  }
}

/* === BEITRÄGE === */
.beitrag {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.beitrag:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.beitrag img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.beitrag h2 {
  font-size: 1.25rem;
  margin: 16px 16px 8px;
  color: #1f2f46;
}

.beitrag p {
  margin: 0 16px 16px;
  line-height: 1.6;
  color: #444;
  font-size: 15px;
  text-align: justify;
  flex-grow: 1;
}

.beitrag a {
  display: block;
  margin: 0 16px 16px;
  text-decoration: none;
  color: #b1976b;
  font-weight: 600;
  font-size: 15px;
}

.beitrag a:hover {
  text-decoration: underline;
}

.beitraege-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.beitraege h1 {
  text-align: center;
  font-size: 32px;
  margin: 0 0 40px;
  color: var(--primary);
}

.beitraege-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px auto;
  max-width: 1400px;
  text-align: center;
}

@media (max-width: 1024px) {
  .beitraege-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-right: 25px;
    margin-left: 25px;
  }
}

@media (max-width: 600px) {
  .beitraege-grid {
    grid-template-columns: 1fr;
    margin-right: 25px;
    margin-left: 25px;
  }
}

.beitraege h3 {
  text-align: center;
  padding-top: 50px;
}

.footer-box a:hover {
  color: #b1a17d;
}

/* --- NAV Fix für Tablet & kleinere Desktop-Breite --- */
@media (max-width: 1300px) and (min-width: 769px) {
  nav.navigation a {
    font-size: 18px;
    white-space: nowrap;
  }

  nav.navigation li + li::before {
    padding: 0 8px;
  }

  nav.navigation {
    flex: 1 1 auto;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  nav.navigation a {
    font-size: 16px;
  }
}

/* Hero-Layout für Mobilgeräte */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h2 {
    font-size: 20px;
    margin: 4px 0;
  }

  .hero-content h1 {
    font-size: 30px;
    margin: 8px 0 10px;
  }

  .hero-content h2::after {
    width: 60%;
    margin-top: 4px;
  }

  .button {
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 8px;
  }
}
header .container {
  flex-wrap: nowrap;  /* verhindert Umbrechen */
}
/* ============================
   TABLET: NAV immer EINZEILIG
   ============================ */
@media (max-width: 1024px) and (min-width: 769px) {

  /* Navigation bekommt flexiblen Platz */
  .navigation {
    flex: 1 1 auto !important;
    white-space: nowrap;        /* kein Umbruch */
  }

  /* Schrittweise Schriftskalierung */
  .navigation a {
    font-size: clamp(14px, 1.6vw, 18px);
    /* 
      Bedeutet:
      - Minimum: 14px
      - Dynamisch anhand Viewport-Breite: 1.6vw
      - Maximum: 18px
    */
  }

  /* Trenner etwas schlanker */
  .navigation li + li::before {
    padding: 0 8px;
  }

  /* Minimale Lücken, damit alles in eine Reihe passt */
  .navigation ul {
    gap: 12px;
  }

  /* Language-Switcher klein halten */
  .language-switcher {
    transform: scale(0.9);
    right: 2%;
  }
}
/* ============================
   HERO-CONTENT: TABLET FIX
   ============================ */
@media (max-width: 1024px) and (min-width: 769px) {
  
  .hero-content {
    padding: 0 1rem;         /* weniger Seitenabstand */
    max-width: 90%;          /* Inhalte begrenzen */
    margin: 0 auto;          /* zentriert halten */
  }

  .hero-content h1 {
    font-size: clamp(28px, 4vw, 40px);  /* dynamische Skalierung */
    margin: 20px 0;
  }

  .hero-content h2 {
    font-size: clamp(18px, 2.2vw, 26px);
    margin: 10px 0;
  }

  .button {
    font-size: clamp(14px, 1.8vw, 18px);
    padding: 10px 22px;
    margin-top: 10px;
  }
}