@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('../fonts/Lato/Lato-Regular.woff2') format('woff2'),
    url('../fonts/Lato/Lato-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url('../fonts/Lato/Lato-Bold.woff2') format('woff2'),
    url('../fonts/Lato/Lato-Bold.woff') format('woff');
}
body {
  font-family: 'Lato', Arial, sans-serif;
}

/* Intro Section */
.intro-theme {
  background: #ffffff; /* #f9fafa */
  padding: 1rem 1rem;
  text-align: center;
}
.intro-theme .container {
  max-width: 1200px;
  margin: 0 auto;
}
.intro-theme h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00515C;
}
.intro-theme p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #333;
}
.intro-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.intro-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  width: 90%;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.intro-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}
.intro-card h3 {
  margin: 0.5rem 0;
  color: #00515C;
}
.intro-card p {
  font-size: 0.95rem;
  color: #555;
}

/* CTA Button - gleiche wie Termin anfordern */
.intro-theme .cta-btn {
  padding: 0.5em 1.5em;
  background: #00515C;
  color: #fff;
  border-radius: 2em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
  display: inline-block;
}

.intro-theme .cta-btn:hover,
.intro-theme .cta-btn:focus {
  background: #007a8a;
  color: #fff;
}
.sparten-intro .cta-btn {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
  text-align: center;
}
/* Responsive */
@media(max-width:768px) {
  .intro-cards {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Hauptnavigation Flex-Layout */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* Call-To-Action Button Style */
.cta-btn {
  margin-left: 1.5rem;
  padding: 0.5em 1.2em;
  background: #00515C;
  color: #fff;
  border-radius: 2em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
  white-space: nowrap;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #007a8a;
  color: #fff;
}
/* Screenreader only (versteckter Text, nur für Barrierefreiheit) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
    aspect-ratio: 1/1;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Spartendarstellung Startseite */
.sparten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.sparte-card {
  background: #f7fafd;
  border-radius: 12px;
  padding: 1.1em 1em 1em 1em;
  box-shadow: 0 2px 8px #e3eaf3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}
.sparte-card h3 {
  color: #1a6ca3;
  margin: 0.7em 0 0.5em 0;
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sparte-card p {
  color: #222;
  font-size: 1em;
  margin: 0;
}
.sparte-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5em auto;
  display: block;
  filter: drop-shadow(0 1px 2px #e3eaf3);
}
@media (max-width: 900px) {
  .sparten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sparten-grid {
    grid-template-columns: 1fr;
  }
  .sparte-card {
    min-height: unset;
  }
}
/* Sparten-Grid auf der Startseite */
.sparten-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.sparte-card {
  background: #f7fafd;
  border-radius: 12px;
  padding: 1.2em 1em;
  box-shadow: 0 2px 8px #e3eaf3;
  text-align: center;
}
@media (max-width: 900px) {
  .sparten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sparten-grid {
    grid-template-columns: 1fr;
  }
}
/* Referenzkunden-Badges */
.badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
}
.badge {
  background: #92B5BF;
  color: #00515C;
  border-radius: 1em;
  padding: 0.3em 1em;
  font-size: 1em;
  margin: 0.1em;
  display: inline-block;
  font-family: 'Lato', Arial, sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  letter-spacing: 0.02em;
}


/* Hintergrund */
body {
  margin: 0; padding: 0;
  font-family: 'Lato', Arial, sans-serif;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.07) 0%, transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.07) 0%, transparent 70%);
  color: #00515C;
  min-height: 100vh;
}

/* Header */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,81,92,0.08);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  height: 60px;
}
.logo-img {
  height: 40px;
  display: block;
}

.vorteile-highlights {
  font-family: 'Lato', Arial, sans-serif;
  color: var(#222);
  font-size: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
/* Navigation */
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0; padding: 0;
}
nav li {
  font-weight: 600;
}
nav a {
  color: #00515C;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
  font-family: 'Lato', Arial, sans-serif;
}
nav a:hover,
nav a.active {
  border-bottom-color: #FFD100;
}

/* Hamburger Menü (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #00515C;
  border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    background: rgba(255 255 255 / 0.95);
    height: calc(100vh - 60px);
    width: 200px;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  }
  nav ul.open {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
}

/* Inhalt */
main {
  max-width: 1100px;
  margin: 4rem auto 2rem auto;
  padding: 0 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,81,92,0.10);
  color: #00515C;
}
h1 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
    text-align: center;
}
h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
    text-align: center;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
    text-align: center;
}
p {
  font-size: 1.1rem;
  line-height: 1.6;
    text-align: center;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
}
.service-card {
  background: white;
  border-radius: 12px;

  text-align: center;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 15px rgba(11, 61, 145, 0.1);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.service-card.active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.9); /* zentrieren + vergrößern */
  z-index: 1000;
  box-shadow: 0 40px 100px rgba(0, 81, 92, 0.5);
  border: 3px solid #FFD100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 90%;
  max-width: 600px;
}
.service-card.active img,
.service-card.active video {
  max-width: 90%;
  width: auto;
  height: auto;
}
.service-grid.has-active .service-card:not(.active) {
  opacity: 0.6;
  transform: scale(0.97);
}
@media (max-width: 600px) {
  .service-card.active {
    transform: scale(1.53);
  }
}
.service-card:not(.active):hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(11, 61, 145, 0.15);
}
.service-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #00515C;
}
.service-card p {
  color: #626469;
  font-size: 1rem;
  line-height: 1.5;
}

/* Referenzen */
.references-cards {
  padding: 1rem;
  background: #fff;
}
.references-cards h2 {
  color: #00515C;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.card {
  background: #f6f8f8;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,81,92,0.08);
  padding: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100px;
  position: relative;
}
.card img {
  filter: grayscale(0);
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5em auto;
}
.card .badge {
  margin-top: auto;
  margin-bottom: 0.25em;
  align-self: center;
  position: static;
  left: unset;
  transform: none;
  text-align: center;
  white-space: nowrap;
}
.card p {
  font-style: italic;
  color: #626469;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(66,180,230,0.15);
}

/* Kontakt */
.contact {
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  background: #92B5BF22;
  border-radius: 12px;
}
.contact h2 {
  color: #00515C;
}
.contact p {
  margin-bottom: 2rem;
  color: #626469;
}
.contact a {
  color: #42B4E6;
  font-weight: 600;
}

/* Footer */
footer {
  background: #00515C;
  color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Sekundärfarben für Akzente */
.accent-pflaume { color: #BE3F00; }
.accent-blau { color: #42B4E6; }
.accent-gold { color: #FFD100; }

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  h3 {
    font-size: 1rem;
  }
  p {
    font-size: 1rem;
  }
}

/* Einheitliche Team-Bildgröße und Form */
.team-img-col {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  margin: 0 auto;
}
.team-img-col img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  aspect-ratio: 1/1;
}
/* --- Tabs Styles --- */
.tabs { max-width: 1200px; margin: 2em auto; align-content: center}
.tab-nav { display: flex; flex-wrap: wrap; border-bottom: 2px solid #ccc; margin-bottom: 1em; list-style: none; padding: 0; align-content: center ; align-items: center }
.tab-nav li { padding: 0.75em 1.5em; cursor: pointer; border-top-left-radius: 6px; border-top-right-radius: 6px; margin-right: 0.25em; background: #f5f5f5; }
.tab-nav {
  display: flex;            /* Flexbox aktivieren */
  justify-content: center;  /* Zentrieren horizontal */
  gap: 1rem;                /* Optional: Abstand zwischen Tabs */
  padding: 0;
  list-style: none;         /* Entfernt die Standard-Aufzählungszeichen */
}

.tab-nav li {
  cursor: pointer;
  padding: 0.5rem 1rem;     /* Optional: etwas Abstand innerhalb der Tabs */
}

.tab-nav li.active { background: #00515C; color: #fff; font-weight: bold; }
.tab-nav li:hover { background: #007A85; /* z.B. etwas hellerer Ton für Hover */}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Service Grid inside Tabs --- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5em; }
.service-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 1.5em; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.service-card h2 { font-size: 1.25em; margin-bottom: 0.5em; }
.service-card figure { margin: 0 0 1em 0; }
.service-card img { width: 100%; max-width: 220px; display: block; margin: 0 auto;}
.service-card figcaption { text-align: center; font-size: 0.9em; color: #888; }

/* --- Partner --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* genau 3 Spalten */
  grid-template-rows: repeat(2, auto);   /* genau 2 Reihen */
  gap: 2rem;
  justify-items: center;
  align-items: center;
  margin-top: 2rem;
}
.partner-card img {
  max-width: 220px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.partner-card img:hover {
  transform: scale(1.05);
}
/* --- Referenzen --- */
.references-content {
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}
.references-content.is-collapsed {
  max-height: 420px; /* 1–2 Reihen */
}
.references-content.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.references-toggle {
  cursor: pointer;
}
.references-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.references-toggle-wrapper .cta-btn {
  margin-left: 0;
}
.icon {
  color: #626469;
  margin: 1rem 0;
  width: 100%;
  max-width: 150px;
  height: auto;
}
.icon--grey   { color: #626469; }
.icon--lightblue  { color: #92B5BF; }
.icon--blue { color: #42B4E6; }
.icon--red    { color: #BE3F00; }
.icon--yellow { color: #FFD100; }