/* ===== GRUNDLAGEN & VARIABLEN ===== */
:root {
  --gtu-rot: #DA1F3D;
  --silber-grau: #F4F6F9;
  --silber-dunkel: #C9CFD6;
  --weiss: #FFFFFF;
  --text-dunkel: #1E293B;
  --text-mittel: #334155;
  --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--weiss);
  color: var(--text-dunkel);
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background-color: var(--gtu-rot);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  text-align: left;
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo weiter nach links schieben */
.logo {
  margin-left: -20px;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.logo h1 span {
  font-weight: 500;
}

.logo p {
  font-size: 1.0rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* Navigation Desktop */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-menu a:hover {
  opacity: 0.85;
}

/* Dropdown Fix Desktop */
.dropdown {
  position: relative;
}
.dropdown > a i {
  margin-left: 6px;
  font-size: 0.75rem;
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding-top: 8px;
  background: transparent;
  min-width: 520px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 200;
  pointer-events: none;
}
.dropdown-content > div {
  background: var(--weiss);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  pointer-events: auto;
}
.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.dropdown-content a {
  color: var(--text-dunkel);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  display: block;
  text-align: left;
}
.dropdown-content a:hover {
  background-color: var(--silber-grau);
  color: var(--gtu-rot);
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Navigation: von rechts kommend */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    right: -100%; /* von rechts */
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 80%;
    max-width: 350px;
    height: calc(100vh - 80px);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-menu a {
    color: var(--text-dunkel);
    font-size: 1rem;
    display: block;
    padding: 0.5rem 0;
  }
  /* Mobile Dropdowns als Akkordeon */
  .dropdown {
    position: relative;
    width: 100%;
  }
  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .dropdown-content {
    position: static;
    visibility: visible;
    opacity: 1;
    padding-top: 0;
    min-width: auto;
    background: transparent;
    pointer-events: auto;
    transform: none;
    transition: none;
    display: none;
    box-shadow: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
  }
  .dropdown-content.active {
    display: block;
  }
  .dropdown-content > div {
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .dropdown-content a {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }
  .hamburger {
    display: block;
  }
  .header-inner {
    justify-content: space-between;
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background-color: var(--gtu-rot);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-primary:hover {
  background-color: #b81834;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(218,31,61,0.2);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gtu-rot);
  color: var(--gtu-rot);
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--gtu-rot);
  color: white;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  text-align: center;
  border-radius: 0 0 30px 30px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

/* Sektionen */
.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--silber-dunkel);
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--gtu-rot);
  border-radius: 4px;
}

/* Dienstleistungs-Buttons */
.service-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.service-btn {
  background: var(--silber-grau);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-dunkel);
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--silber-dunkel);
}
.service-btn:hover {
  background: var(--gtu-rot);
  color: white;
  border-color: var(--gtu-rot);
  transform: translateY(-3px);
}

/* ===== TEAM-BEREICH ===== */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.team-card-v {
  background: var(--weiss);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  width: 480px;
  padding: 2rem 140px 2rem 2rem;
  position: relative;
  border: 1px solid var(--silber-dunkel);
  transition: transform 0.2s;
  text-align: left;
}
.team-card-v:hover {
  transform: translateY(-5px);
}
.team-avatar {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--silber-dunkel);
  background: var(--silber-grau);
}
.team-card-v h3 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem 0;
  padding-right: 0;
}
.team-card-v .title {
  color: var(--gtu-rot);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.team-card-v ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-card-v li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-mittel);
}
.team-card-v li:before {
  content: "•";
  color: var(--gtu-rot);
  font-weight: bold;
  position: absolute;
  left: 0;
}
.team-card-v .contact-info {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--silber-dunkel);
  font-size: 0.9rem;
}
.team-card-v .contact-info a {
  color: var(--gtu-rot);
  text-decoration: none;
}
@media (max-width: 768px) {
  .team-card-v {
    width: 100%;
    max-width: 460px;
    padding: 1.5rem 100px 1.5rem 1.5rem;
  }
  .team-avatar {
    width: 90px;
    height: 90px;
    top: 1.5rem;
    right: 1.5rem;
  }
  .team-card-v h3 {
    font-size: 1.4rem;
  }
}

/* Kontakt */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  text-align: left;
}
.kontakt-details p {
  margin-bottom: 1rem;
  font-size: 1rem;
  padding-left: 0.5rem; /* Icons etwas nach rechts rücken */
}
.kontakt-details i {
  width: 28px;
  color: var(--gtu-rot);
  margin-right: 12px;
  margin-left: 0;
}
.map iframe {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  border: 0;
}

/* ===== DETAILSEITE (optimiert) ===== */
.detail-page {
  padding: 60px 0 90px 0;
  text-align: left;
}
.detail-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dunkel);
  line-height: 1.3;
}
.detail-content {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-mittel);
}
.detail-content p {
  margin-bottom: 1.6rem;
}
.detail-content h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--text-dunkel);
  line-height: 1.3;
}
.detail-content ul,
.detail-content ol {
  margin: 0.5rem 0 1.8rem 1.8rem;
  padding-left: 0;
}
.detail-content li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}
.detail-content strong {
  color: var(--text-dunkel);
}
.back-link {
  margin-top: 2.8rem;
  display: inline-block;
}

/* Footer */
.site-footer {
  background-color: var(--gtu-rot);
  color: white;
  padding: 40px 0 30px;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: left;
}
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-col a:hover {
  text-decoration: underline;
}

/* ===== MOBILE OPTIMIERUNG ===== */
@media (max-width: 768px) {
  .container {
    padding-left: 28px;
    padding-right: 20px;
  }
  .section > div[style*="max-width"] {
    padding-left: 0.5rem;
  }
  .kontakt-details p {
    padding-left: 0.25rem;
  }
  .kontakt-layout {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .section {
    padding: 50px 0;
  }
  .detail-title {
    font-size: 2rem;
  }
  .detail-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 24px;
    padding-right: 16px;
  }
  .section > div[style*="max-width"] {
    padding-left: 0.25rem;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .service-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .team-card-v {
    padding: 1.2rem 85px 1.2rem 1.2rem;
  }
  .team-avatar {
    width: 70px;
    height: 70px;
    top: 1rem;
    right: 1rem;
  }
  .team-card-v h3 {
    font-size: 1.2rem;
  }
  .team-card-v li {
    font-size: 0.8rem;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Sicherstellen, dass kein Elternteil overflow verbirgt */
body, #nav-placeholder {
  overflow-x: visible;
  overflow-y: visible;
}