/* ================================
   Google Fonts
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* ================================
   RESET & GRUNDSTILE
   ================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: var(--neutral-light);
  color: var(--text-color);
}

/* ================================
   VARIABLEN
   ================================ */
:root {
  /* Farbpalette */
  --primary-color:    #001F3F; /* Navy Blue */
  --secondary-color:  #FFFFFF; /* White */
  --accent-color:     #D4AF37; /* Gold */

  /* Neutral & Text */
  --neutral-light:    #F8F9FA;
  --text-color:       var(--primary-color);
  --light-text:       #6B7280;

  /* Abstände */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;

  /* Breakpoints */
  --bp-tablet: 768px;
  --bp-desktop: 1200px;
}

/* ================================
   NAVIGATION
   ================================ */
header {
  background: var(--primary-color);
  padding: var(--spacing-md) var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  max-width: var(--bp-desktop);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar a {
  color: var(--secondary-color);
  text-decoration: none;
  margin-left: var(--spacing-md);
  font-weight: 600;
  transition: color .2s, opacity .2s;
}
.navbar a:first-child {
  margin-left: 0;
}
.navbar a:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* ================================
   LOGO-TEXT
   ================================ */
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .05em;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .2s ease, text-shadow .2s ease;
}
.logo-text:hover {
  transform: scale(1.05) rotate(-2deg);
  text-shadow: 4px 4px 8px rgba(0,0,0,0.3),
               0 0 2px rgba(0,0,0,0.2);
}

/* ================================
   HERO SEKTION
   ================================ */
.hero {
  position: relative;
  background: var(--primary-color) center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero > * {
  position: relative;
  color: var(--secondary-color);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: var(--spacing-sm);
}
.hero p {
  font-size: clamp(1rem, 3vw, 1.25rem);
}

/* ================================
   SECTION-STYLING
   ================================ */
section {
  padding: 4rem 2rem;
  max-width: var(--bp-desktop);
  margin: 0 auto;
}
h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
}

/* INTRO */
#intro p {
  margin: 1.25rem 0;
  color: var(--text-color);
}
#intro h2,
#intro h3 {
  margin: 2rem 0 1rem;
}
#intro ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  list-style: disc outside;
}
#intro li {
  margin-bottom: .75rem;
  line-height: 1.5;
  color: var(--light-text);
}

/* FEATURE- & BENEFITS-GRID */
.features-grid,
.benefits-grid {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--secondary-color);
  border-radius: 8px;
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-card .icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}
.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none;
}
.benefits-grid li {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
}

/* ================================
   KONTAKT
   ================================ */
#contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-lg);
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
}
#contact h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}
#contact p {
  color: var(--light-text);
  margin-bottom: var(--spacing-md);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--accent-color);
  color: var(--primary-color);
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* ================================
   TEAM SEktion
   ================================ */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
}
.team-member {
  text-align: center;
  max-width: 200px;
}
.team-member img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: var(--spacing-md);
}

/* ================================
   FOOTER
   ================================ */
footer,
.site-footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
}
footer a {
  color: var(--accent-color);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.social-list {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  list-style: none;
}
.footer-social {
  font-size: 1.5rem;
  transition: transform .2s, color .2s;
}
.footer-social:hover {
  transform: scale(1.2);
  color: var(--accent-color);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: var(--bp-tablet)) {
  .hero h1 { font-size: 2.5rem; }
  .hero p  { font-size: 1rem;   }
  #contact { grid-template-columns: 1fr; }
}

/* ==================================
   Team-Sektion
   ================================== */

/* Container und Grid */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

/* Einzelkarte */
.team-member {
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  padding: var(--spacing-md);
}

/* Hover-Effekt */
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Bild mit fester Ratio */
.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

/* Name */
.team-member h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Rolle/Funktion */
.team-member .role {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: var(--spacing-sm);
}

/* Kurzbeschreibung */
.team-member .bio {
  font-size: var(--fs-small);
  color: var(--text-color);
  line-height: 1.4;
}

/* Responsive Anpassung (falls nötig) */
@media (max-width: var(--bp-tablet)) {
  .team {
    grid-template-columns: 1fr;
  }
}


/* Mehr Abstand unter der Footer-Überschrift */
.footer-heading {
  margin-bottom: var(--spacing-lg); /* z.B. 2rem */
}

/* Mehr Abstand unter den Social-Icons */
.social-list {
  margin-bottom: var(--spacing-lg); /* z.B. 2rem */
}

/* Mehr Abstand oberhalb der Copyright-Zeile */
.footer-copy {
  margin-top: var(--spacing-md); /* z.B. 1rem */
}


/* ==================================
   Leistungen: Zwei-Spalten-Layout
   ================================== */
.card-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

/* Mobile: eine Spalte */
@media (max-width: var(--bp-tablet)) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

/* ==================================
   Cards: Definierter Rahmen
   ================================== */
.card {
  /* Grundrahmen */
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background-color: var(--secondary-color);
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

/* Hover-State: Goldener Akzent und Schatten */
.card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card-Content: Innenabstand */
.card-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Überschrift mit etwas Luft nach oben und unten */
.card-content h3 {
  margin: var(--spacing-sm) 0;
}

/* Optional: Trennlinie unter der Überschrift */
.card-content h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin: var(--spacing-sm) auto 0;
}


.our-team-section {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
}
.our-team-section:before {
    position: absolute;
    top: -0;
    left: 0;
    content: " ";
    background: url(img/service-section-bottom.png);
    background-size: 100% 100px;
    width: 100%;
    height: 100px;
    float: left;
    z-index: 99;
}
.our-team {
    padding: 30px 0 40px;
    background: #f9f9f9;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-bottom: 5px solid #00325a;
}
.our-team:hover{
    border-bottom: 5px solid #2f2f2f;
}

.our-team .pic{
    display: inline-block;
    width: 130px;
    height: 130px;
    margin-bottom: 50px;
    z-index: 1;
    position: relative;
}
.our-team .pic:before {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #00325a;
    position: absolute;
    bottom: 135%;
    right: 0;
    left: 0;
    opacity: 1;
    transform: scale(3);
    transition: all 0.3s linear 0s;
}
.our-team:hover .pic:before{
 height: 100%;
    background: #2f2f2f; 
 }
.our-team .pic:after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff00;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s linear 0s;
}
.our-team:hover .pic:after{
    background: #7ab92d;
}
.our-team .pic img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transform: scale(1);
    transition: all 0.9s ease 0s;
    box-shadow: 0 0 0 14px #f7f5ec;
    transform: scale(0.7);
    position: relative;
    z-index: 2;
}
.our-team:hover .pic img{
    box-shadow: 0 0 0 14px #f7f5ec;
    transform: scale(0.7);
}
.our-team .team-content{ margin-bottom: 30px; }
.our-team .title{
    font-size: 22px;
    font-weight: 700;
    color: #4e5052;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin-bottom: 5px;
}
.our-team .post{
    display: block;
    font-size: 15px;
    color: #4e5052;
    text-transform:capitalize;
}
.our-team .social{
    width: 100%;
    padding: 0;
    margin: 0;
    background: #2f2f2f;
    position: absolute;
    bottom: -100px;
    left: 0;
    transition: all 0.5s ease 0s;
}
.our-team:hover .social{ bottom: 0; }
.our-team .social li{ display: inline-block; }
.our-team .social li a{
    display: block;
    padding: 10px;
    font-size: 17px;
    color: #fff;
    transition: all 0.3s ease 0s;
}
.our-team .social li a:hover{
    color: #2f2f2f;
    background: #f7f5ec;
}
@media only screen and (max-width: 990px){
    .our-team{ margin-bottom: 30px; }
}

/* Card-Grundstyling */
.card {
  border: none;                         /* keine Standard-Grenze */
  border-radius: 0.75rem;               /* abgerundete Ecken */
  overflow: hidden;                     /* Bild und Inhalte bleiben innerhalb der Ecken */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* leichter Schatten für 3D-Effekt */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;               /* weiße Hinter­grundfläche */
}

/* Bild oben */
.card-img-top {
  object-fit: cover;
  height: 220px;                        /* einheitliche Höhe */
  transition: transform 0.3s ease;
}

/* Card-Body */
.card-body {
  padding: 1.5rem;                      /* großzügiger Innenabstand */
}

/* Titel und Text */
.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card p.small {
  color: #555;                          /* etwas abgeschwächter Text */
}

/* Hover-Effekte */
.card:hover {
  transform: translateY(-5px);          /* hebt die Karte leicht an */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.card:hover .card-img-top {
  transform: scale(1.05);               /* leichtes Hereinzoomen des Bildes */
}

/* Responsive Anpassung */
@media (max-width: 576px) {
  .card-img-top {
    height: 180px;
  }
}

/* Team-Cards nebeneinander je 50% */
.team-cards {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;    /* Ausgleich für horizontalen Padding */
}

.team-cards .card-wrapper {
  flex: 0 0 50%;        /* fixe 50% Breite */
  max-width: 50%;
  padding: 0 0.5rem;    /* Abstand zwischen den Karten */
  margin-bottom: 1rem;  /* Abstand nach unten auf schmalen Bildschirmen */
}

@media (max-width: 576px) {
  .team-cards .card-wrapper {
    flex: 0 0 100%;     /* auf sehr kleinen Geräten 100% Breite */
    max-width: 100%;
  }
}
