/* grundlegende Style-Formatierung */

html {
  scroll-behavior: smooth;
}

/* grundlegende Formatierung für den Body der Seite */
body {
  margin: 0;                                  /* Standard-Außenabstand entfernen */
  font-family: Tahoma, system-ui, sans-serif; /* zuerst Tahoma, dann Fallbacks */
  background-color: rgb(47, 47, 47);          /* dunkler Hintergrund */
  color: #fff;                                /* Text weiss */
  line-height: 1.6;                           /* angenehme Zeilenhoehe für bessere Lesbarkeit */
}

.site-header,
.site-footer {
  padding: 1rem 0;
}

/* --- Seitenueberschrift --- */
.page-heading {
  font-size: 2.5rem; 	   /* Schriftgroesse */
  margin: 2.5rem 0 1.5rem; /* Abstand vor und nach */
  font-weight: 500;        /* leichte Schriftstaerke für modernen Look */
}

/* --- Ueberschrift --- */
.heading {
  font-size: 1.4rem;       /* Schriftgroesse */
  margin: 1.5rem 0 1rem;   /* Abstand vor und nach */
  font-weight: 500;        /* leichte Schriftstaerke für modernen Look */
  color: #a4c2f4;
}

.heading:first-child {
  margin-top: 0;
}

.text {
  font-size: 1.2rem;
  line-height: 1.6;        /* angenehme Zeilenhoehe für bessere Lesbarkeit */
  margin-bottom: 1rem;
  color: #fff;             /* weisser Text */
  text-decoration: none;   /* keine Unterstreichung */
}

.text:last-child {
  margin-bottom: 0;
}

.text strong {
  color: #a4c2f4;
  font-weight: 500;        /* leichte Schriftstaerke für modernen Look */
}

/* Inhalt */
.content {
  background: rgba(0,0,0,0.3);
  padding: 2rem;
  border-radius: 3px;
  margin-bottom: 2rem;
}

/* Hauptinhalt HOME */
.hero-page-wrapper {
  max-width: 1200px;       /* begrenzte Inhaltsbreite fuer bessere Lesbarkeit */
  margin: 0 auto;          /* zentriert den Inhalt horizontal */
  padding: 0 0rem 2rem;    /* Innenabstand oben, seitlich, unten */
}

/* Hauptinhalt */
.page-wrapper {
  max-width: 1200px;       /* begrenzte Inhaltsbreite fuer bessere Lesbarkeit */
  margin: 0 auto;          /* zentriert den Inhalt horizontal */
  padding: 0 3rem 2rem;    /* Innenabstand oben, seitlich, unten */
}

/* Navigation */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(47, 47, 47, 0.95);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-logo img {
  max-width: 200px;
  height: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: #fff;
}

.main-nav .is-active > a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(47, 47, 47, 0.95);
    border-radius: 5px;
    width: 200px;
    text-align: right;
    padding: 1rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav.active {
    display: block;
  }
  .hero-slogan {
    font-size: 1.5rem;
  }
}

.hero-header {
  background-image: url('/_bilder/BPT_HOME.webp');	/* Hintergrundbild */
  background-size: cover; 							/* Bild so scalieren, dass es den gesamten Bereich ausfuellt */
  background-position: center; 						/* zentriert das Bild im Container */
  background-repeat: no-repeat; 					/* Bild nicht wiederholen */
  padding: 15rem 2rem 4rem 0rem; 					/* Innenabstand: oben, rechts, unten, links */
  text-align: right; 								/* richtet den Text innerhalb des Elements rechts aus */
  position: relative; 								/* macht das Element zum Bezugspunkt für absolut positionierte Kindelemente */
  overflow: hidden; 								/* schneidet ueberstehende Inhalte (z.B. Animationen oder Bilder) ab */
  opacity: 0.9; 									/* Deckkraft, d.h. leicht transparent */
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/_bilder/BPT_KACHEL.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero-slogan {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

/* Call-to-Action-Button */
.btn-cta {
  display: inline-block;           	/* Blockverhalten, aber in einer Zeile darstellbar */
  padding: 0.1rem 0.1rem;          	/* Innenabstand */
  background-color: #666;          	/* Hintergrund grau */
  color: #fff;                     	/* Schrift weiss */
  text-decoration: none;           	/* Unterstreichung bei Links entfernen */
  border-radius: 3px;              	/* abgerundete Ecken */
  font-size: 1rem;
  font-weight: 500;                	/* mittlere Schriftstaerke für Lesbarkeit */
  position: relative;              	/* Basis für spaetere Effekte */
  transition: all 0.2s ease;       	/* sanfter Uebergang bei Hover-Effekt */
  align-self: flex-start;          	/* am Start einer Flexbox ausrichten (wenn innerhalb einer) */
  text-align: center;			   	/* Ausrichtung */
}

/* Hover-Zustand:
   - Hintergrundfarbe etwas heller (#999), um visuelles Feedback zu geben
   - Button wird leicht nach oben verschieben (-2px), um „Klick“-Effekt zu erzeugen
*/
.btn-cta:hover {
  background-color: #999;      		/* Hintergrundfarbe beim Ueberfahren mit der Maus */
  transform: translateY(-2px); 		/* Button leicht nach oben verschieben fuer dynamischen Effekt */
}

.btn-cta-left {
  display: inline-block;           /* Blockverhalten, aber in einer Zeile darstellbar */
  padding: 0.1rem 1.5rem;          /* Innenabstand */
  background-color: #666;          /* Hintergrund grau */
  color: #fff;                     /* Schrift weiss */
  text-decoration: none;           /* Unterstreichung bei Links entfernen */
  border-radius: 3px;              /* abgerundete Ecken */
  font-size: 1rem;
  font-weight: 500;                /* mittlere Schriftstaerke für Lesbarkeit */
  position: relative;              /* Basis für spaetere Effekte */
  transition: all 0.2s ease;       /* sanfter Uebergang bei Hover-Effekt */
  align-self: flex-start;          /* am Start einer Flexbox ausrichten (wenn innerhalb einer) */
  text-align: left;				   /* Ausrichtung */
  margin: 2rem 0 0rem;             /* Abstand vor und nach der Ueberschrift */
}

.btn-cta-left:hover {
  background-color: #999;      	   /* Hintergrundfarbe beim Ueberfahren mit der Maus */
  transform: translateY(-2px);     /* Button leicht nach oben verschieben fuer dynamischen Effekt */
}

/* Links */
.links {
  display: flex;                /* aktiviert Flexbox, um die Links flexibel anzuordnen */
  justify-content: center;      /* Link-Lage im Container */
  gap: 1rem;                    /* Abstand zwischen den einzelnen Links */
  flex-wrap: wrap;              /* Zeilenumbruch zulassen, falls zu viele Links für eine Zeile vorhanden sind */
  margin: 2rem 0 1rem;          /* Abstand */
}

.links .btn-cta {
  padding: 0.5rem 1rem;         /* Innenabstaende: oben/unten, links/rechts */
  font-size: 1rem;              /* Schriftgroesse */
}

.links-left {
  display: flex;                /* aktiviert Flexbox, um die Links flexibel anzuordnen */
  justify-content: left;        /* Link-Lage im Container */
  gap: 1rem;                    /* Abstand zwischen den einzelnen Links */
  flex-wrap: wrap;              /* Zeilenumbruch zulassen, falls zu viele Links für eine Zeile vorhanden sind */
  margin: 2rem 0 1rem;          /* Abstand */
}

.links-left .btn-cta {
  padding: 0.5rem 1rem;         /* Innenabstaende: oben/unten, links/rechts */
  font-size: 1rem;              /* Schriftgroesse */
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* Print-Styles für DSGVO-Seiten */
@media print {
  body { background: white; color: black; }
  .content { background: white; box-shadow: none; }
}

/* Sektionen mit Spalten */
.section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

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

.section-image {
  display: flex;
  align-items: stretch;
}

.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;                /* mittlere Schriftstaerke für Lesbarkeit */
  color: #a4c2f4;
  margin: 0 0 0.75rem;
}

.section-text p {
  margin: 0 0 1rem;
  line-height: 1.5;
  color: #fff;                     /* Schrift weiss */
}

/* Kachel-Stile */
.tile {
  width: 100%;
  border-radius: 3px;
  padding: 30px;
  background-color: #000;
  background-image: url('/_bilder/BPT_KACHEL.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  box-shadow: inset 0 0 0 999999rem rgba(0, 0, 0, .2);
}

/* Aufzaehlung der Features */
.features {
  margin: 0 0;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;            /* Platz fuer Symbol „•“ */
}

.features li::before {
  content: "•";                    /* Punkt vor jedem Eintrag */
  position: absolute;
  left: 0;
  color: #a4c2f4;
  font-weight: bold;
}

/* Optionale Logo-Variante */
.tile--logo {
  background-image: url('/_bilder/BPT_LOGO-b-h.webp');
}

/* Spacer-Hilfsklassen */
.spacer-16 { height: 16px; }
.spacer-32 { height: 32px; }
.spacer-250 { height: 250px; }

.item {
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* --- LOESUNGEN --- */
.loesungen-section {
  max-width: 1200px; 								/* begrenzte Breite für Lesbarkeit */
  margin: 0 auto 2rem; 								/* zentriert mit Abstand nach unten */
}

/* --- FAQ --- */
.faq-section {
  max-width: 1200px; 								/* begrenzte Breite für Lesbarkeit */
  margin: 0 auto 2rem; 								/* zentriert mit Abstand nach unten */
}

.question {
  font-size: 1.5rem;
  color: #a4c2f4;
  padding: 1rem 1.5rem;								/* Abstand: oben und unten, rechts und links */
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #666;          					/* Hintergrund grau */
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.question:hover {
  background-color: #999;          					/* helleres Grau beim Darueberfahren */
  transform: translateY(-2px);     					/* leichtes „Anheben“ für Klick-Feedback */
}

.question:focus {
  outline: 2px solid #a4c2f4;
  outline-offset: -2px;
}

.toggle {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.toggle.rotated {
  transform: rotate(180deg);
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(0,0,0,0.5);
}

.answer.expanded {
  max-height: 500px;
  padding: 1.5rem 2rem;
}

.answer p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- NEWS --- */
.news-section {
  max-width: 1200px; 								/* begrenzte Breite für Lesbarkeit */
  margin: 0 auto 2rem; 								/* zentriert mit Abstand nach unten */
}

.news-item {
  padding: 1rem 0; 									/* Abstand zwischen Artikeln */
  border-bottom: 1px solid rgba(255,255,255,0.1); 	/* dezente Trennlinie */
}

.news-item:last-child {
  border-bottom: none; 								/* keine Linie beim letzten Element */
}

.news-date {
  font-size: 1.1rem;
  color: #a4c2f4; 									/* hellblauer Akzent */
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 2rem;
  color: #a4c2f4; 									/* Titel in Akzentfarbe */
  margin: 0 0 1rem;
  line-height: 1.2;
}

.news-content {
  font-size: 1.1rem;
  line-height: 1.6; 								/* erhoehte Lesbarkeit */
  margin-bottom: 1rem;
}

/* --- UEBERUNS --- */
.ueberuns-section {
  max-width: 1200px; 								/* begrenzte Breite für Lesbarkeit */
  margin: 0 auto 2rem; 								/* zentriert mit Abstand nach unten */
}

.team-image {
  flex-shrink: 0;
  width: 50%;
  max-width: 300px;
}

.team-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
}

.team-info {
  flex: 1;
  text-align: left;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 500;        /* leichte Schriftstaerke für modernen Look */
  color: #a4c2f4;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.team-role {
  color: #ccc;
  margin: 0;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .team-section {
	flex-direction: column;
	text-align: left;
	gap: 1rem;
  }

  .team-info {
	text-align: left;
  }

  .team-image {
	width: 100%;
	max-width: none;
  }
}
