:root {
  --pts-orange: #ed9800;
  --pts-blue: #002657;
  --pts-light: #f4f7f9;
  --pts-muted: #6e7b8c;
  --pts-text: #24364a;
  --pts-border: #dde5ec;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--pts-text);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.section-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.02em;
}

.text-blue {
  color: var(--pts-blue) !important;
}

.text-orange {
  color: var(--pts-orange) !important;
}

.bg-light-soft {
  background: var(--pts-light);
}

.pts-watermark {
  position: fixed;
  right: -2rem;
  top: 5rem;
  z-index: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(10rem, 28vw, 28rem);
  line-height: 0.8;
  font-weight: 700;
  color: rgba(0, 38, 87, 0.045);
  pointer-events: none;
  user-select: none;
  transition: transform 0.08s linear;
}

/* HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 38, 87, 0.06);
  z-index: 1000;
}

.header-bar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: block;
  width: 100%;
  max-width: 920px;
  flex: 0 1 920px;
}

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

.menu-toggle {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.5rem;
  color: var(--pts-blue);
}

.main-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
}

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

.main-nav a {
  color: var(--pts-blue);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--pts-orange);
}

.sub-nav {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--pts-border);
  border-radius: 1rem;
  box-shadow: 0 16px 38px rgba(0, 38, 87, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 20;
}

.sub-nav li + li {
  margin-top: 0.6rem;
}

.sub-nav a {
  font-size: 0.9rem;
  display: block;
}

.nav-item-has-submenu:hover .sub-nav,
.nav-item-has-submenu:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* BUTTONS */
.btn-brand {
  --bs-btn-bg: var(--pts-blue);
  --bs-btn-border-color: var(--pts-blue);
  --bs-btn-hover-bg: #0a3771;
  --bs-btn-hover-border-color: #0a3771;
  --bs-btn-active-bg: #0a3771;
  --bs-btn-active-border-color: #0a3771;
  --bs-btn-color: #fff;
  border-radius: 0.65rem;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-outline-brand {
  --bs-btn-color: var(--pts-blue);
  --bs-btn-border-color: var(--pts-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pts-blue);
  --bs-btn-hover-border-color: var(--pts-blue);
  border-radius: 0.65rem;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-outline-light-brand {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-hover-border-color: #fff;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8.5rem;
  overflow: hidden;
  z-index: 1;
}

.hero-full {
  background:
    linear-gradient(120deg, rgba(0, 38, 87, 0.78), rgba(0, 38, 87, 0.48)),
    url('../img/bg-baustelle.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 38, 87, 0.55) 0%, rgba(0, 38, 87, 0.2) 52%, rgba(0, 38, 87, 0.08) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 0.92;
  color: #fff;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.38rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 52rem;
}

.hero-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-topic-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.hero-topic-links a:hover,
.hero-topic-links a:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

/* SECTIONS */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-kicker {
  color: var(--pts-orange);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--pts-blue);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: clamp(1.6rem, 2.1vw, 2rem);
  color: var(--pts-blue);
  margin-bottom: 0.6rem;
}

.body-lg,
.section p,
.feature-list,
.detail-list {
  font-size: 1.16rem;
}

.feature-list {
  padding-left: 1.4rem;
  margin: 1.25rem 0 1.5rem;
  font-weight: 600;
  line-height: 1.6;
}

.feature-list li {
  margin-bottom: 0.45rem;
}

.feature-list li::marker {
  color: var(--pts-orange);
}

.quote-text {
  color: var(--pts-blue);
  font-weight: 700;
  font-size: 1.35rem;
}

.profile-frame,
.image-placeholder {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 38, 87, 0.12);
  min-height: 480px;
  background: linear-gradient(135deg, #d8dee7, #eef2f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pts-blue);
  font-weight: 700;
  text-align: center;
  padding: 2rem;
}

.profile-frame img,
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card,
.philosophy-card,
.contact-card,
.credential-card {
  background: #fff;
  border: 1px solid var(--pts-border);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 14px 34px rgba(0, 38, 87, 0.05);
}

.service-card h3,
.philosophy-card h3 {
  color: var(--pts-blue);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.philosophy-card {
  text-align: center;
  background: #fcfdff;
}

.philosophy-symbol {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--pts-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--pts-blue);
  border: 1px solid var(--pts-border);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

.cta-section {
  background: linear-gradient(135deg, rgba(237, 152, 0, 0.1), rgba(0, 38, 87, 0.06));
}

.content-img {
  background-color: #d3d7dd;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 38, 87, 0.12);
}

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

.mb-6 {
  margin-bottom: 6rem;
}

/* HOVER PANELS */
.hover-panel {
  background: #fff;
  border: 1px solid var(--pts-border);
  border-radius: 1.25rem;
  box-shadow: 0 14px 34px rgba(0, 38, 87, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hover-panel:hover,
.hover-panel:focus-within,
.hover-panel:focus {
  box-shadow: 0 20px 44px rgba(0, 38, 87, 0.1);
  transform: translateY(-2px);
}

.hover-panel-title {
  padding: 1.2rem 1.35rem;
  background: rgba(237, 152, 0, 0.08);
  color: var(--pts-blue);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.hover-panel-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding: 0 1.35rem;
}

.hover-panel:hover .hover-panel-body,
.hover-panel:focus-within .hover-panel-body,
.hover-panel:focus .hover-panel-body {
  max-height: 520px;
  opacity: 1;
  padding: 1.15rem 1.35rem 1.35rem;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.65;
}

.detail-list li {
  display: grid;
  grid-template-columns: 0.7rem 1.4rem 1fr;
  column-gap: 0.35rem;
  align-items: start;
  margin-bottom: 0.65rem;
}

.detail-list li::before {
  content: "•";
  color: var(--pts-text);
  line-height: 1.65;
}

.detail-list .lead-dots {
  display: block;
  white-space: nowrap;
}

.detail-list .detail-text {
  display: block;
  min-width: 0;
  margin-left: -2%;
}

/* CAROUSEL */
.slider-highlight-section {
  position: relative;
  background:
    linear-gradient(180deg, #fff 0%, #fff7ea 40%, #fff 100%);
}

.info-carousel {
  position: relative;
  padding: 0 4rem;
}

.info-card {
  min-height: 320px;
  border-radius: 1.5rem;
  padding: 2.5rem 2.3rem;
  background:
    linear-gradient(135deg, rgba(237, 152, 0, 0.95), rgba(255, 196, 79, 0.88));
  color: #1c2b3a;
  box-shadow: 0 26px 60px rgba(237, 152, 0, 0.22);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.info-card-label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: rgba(0, 38, 87, 0.75);
}

.info-card h3 {
  color: var(--pts-blue);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.info-card p {
  font-size: 1.16rem;
  margin-bottom: 0;
  max-width: 44rem;
}

.info-carousel .carousel-control-prev,
.info-carousel .carousel-control-next {
  width: 3rem;
}

.info-carousel .carousel-control-prev-icon,
.info-carousel .carousel-control-next-icon {
  background-color: var(--pts-blue);
  border-radius: 50%;
  background-size: 55% 55%;
  width: 2.6rem;
  height: 2.6rem;
}

.info-carousel .carousel-indicators {
  margin-bottom: -2.75rem;
}

.info-carousel .carousel-indicators [data-bs-target] {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--pts-blue);
  opacity: 0.25;
}

.info-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: var(--pts-orange);
}

/* FOOTER */
footer a {
  color: var(--pts-blue);
  text-decoration: none;
}

footer a:hover {
  color: var(--pts-orange);
}

footer {
  background: #eef3f6;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--pts-border);
}

.footer-title {
  color: var(--pts-blue);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.btn:hover {
  color: #FFFFFF !important;
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.contact-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.contact-highlight-item {
  display: inline-block;
  min-width: 360px;
  text-align: center;
  background: #fff;
  color: var(--pts-blue);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--pts-border);
  box-shadow: 0 14px 34px rgba(0, 38, 87, 0.05);
}

.contact-highlight-item:hover,
.contact-highlight-item:focus {
  color: var(--pts-blue);
  text-decoration: none;
}

.top-dot {
  position: relative;
  top: -0.28em;
  font-size: 0.75em;
  font-weight: 700;
}

/* MOBILE */
@media (max-width: 1199.98px) {
  .header-bar {
    min-height: auto;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .site-logo {
    max-width: min(760px, calc(100% - 70px));
    flex: 1 1 auto;
  }

  .navbar-toggler,
  .menu-toggle {
    display: block;
    flex: 0 0 auto;
    background-color: var(--pts-orange) !important;
    border: none;
    border-radius: .5rem;
    padding: .5rem .65rem;
  }

  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  #mainNav {
    width: 100%;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.75rem 0 0.25rem;
  }

  .hero {
    min-height: auto;
    padding: 9.5rem 0 4rem;
  }

  .hero-content {
    padding: 2rem 0 0;
  }

  .pts-watermark {
    font-size: 10rem;
    right: -1rem;
    top: 7rem;
  }

  .info-carousel {
    padding: 0 1rem;
  }

  .hover-panel-body {
    max-height: none;
    opacity: 1;
    padding: 1.15rem 1.35rem 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .site-logo {
    max-width: 280px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-topic-links a {
    min-width: 100%;
  }

  .profile-frame,
  .image-placeholder {
    min-height: 340px;
  }

  .hover-panel-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) and (orientation:portrait) {

.site-logo {
    max-width: 600px;
  }

.site-logo img {
  width: 850px;
  height: auto;
  display: block;
}

/* Button-Hintergrund orange */
.navbar-toggler,
.menu-toggle {
  background-color: var(--pts-orange) !important;
  border: none;
  border-radius: .5rem;
  padding: .5rem .65rem;
}

/* Hamburger-Icon weiß machen (damit es auf Orange sichtbar ist) */
.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.menu-toggle svg {
  fill: #fff;
}

.navbar-toggler {
  background-color: var(--pts-orange) !important;
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

  .header-bar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .menu-toggle,
  .navbar-toggler {
    margin: 0 auto;
    display: block;
  }

  .main-nav,
  .sub-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .main-nav > li,
  .sub-nav > li {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .main-nav a,
  .sub-nav a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pts-blue);
  }

  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    min-width: 0;
  }

    /* Kein Abstand zwischen den Menüpunkten */
  .main-nav,
  .sub-nav {
    gap: 0 !important;
  }

  .main-nav li,
  .sub-nav li {
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-nav a,
  .sub-nav a {
    padding: 0.35rem 0; /* Optional: etwas Klickfläche */
  }
  
   .hover-panel {
    transform: none !important;
  }

  .hover-panel-title {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
  }

  .hover-panel-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.35rem;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  }

  .hover-panel.is-open .hover-panel-body {
    max-height: 1400px;
    opacity: 1;
    padding: 1.15rem 1.35rem 1.35rem;
  }

   .hover-panel:hover .hover-panel-body,
  .hover-panel:focus .hover-panel-body,
  .hover-panel:focus-within .hover-panel-body {
    max-height: 0;
    opacity: 0;
    padding: 0 1.35rem;
  }

  .hover-panel.is-open .hover-panel-body {
    max-height: 1400px;
    opacity: 1;
    padding: 1.15rem 1.35rem 1.35rem;
  }

}

@media (max-width: 768px) {
  .contact-highlight {
    width: 100%;
    padding: 0 1rem;
  }

  .contact-highlight-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 1.1rem;
    word-break: break-word;
  }
}
