/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-main: #f3f9f8;
  --primary-dark: #0f3d3e;
  --primary: #1e5b66;
  --primary-light: #3ba7a0;
  --accent-soft: #a8f0e6;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
}


/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.fade-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }


/* =========================================
   BODY & LAYOUT
   ========================================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeIn 0.6s ease forwards;
}

.navbar {
  backdrop-filter: blur(14px);
  background: rgba(243, 249, 248, 0.85);
  border-bottom: 1px solid rgba(15, 61, 62, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-logo img {
  height: 70px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--primary-dark);
  text-decoration: none;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-soft));
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}


/* =========================================
   MOBILE NAVIGATION
   ========================================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }


/* =========================================
   SECTIONS
   ========================================= */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.7);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}


/* =========================================
   HERO
   ========================================= */
.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 91, 102, 0.18);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  color: var(--primary-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* =========================================
   HERO SIDE CARD
   ========================================= */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 61, 62, 0.06);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}


/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(15, 61, 62, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 61, 62, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(30, 91, 102, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}


/* =========================================
   GRID SYSTEM
   ========================================= */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 61, 62, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.soft-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 61, 62, 0.06);
}
/* =========================================
   VIDEO SECTION
   ========================================= */
.section-video {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.video-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.55);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 62, 0.55);
}

.video-content {
  position: relative;
  z-index: 1;
}

.video-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(243, 249, 248, 0.96);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(168, 240, 230, 0.4);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}




/* =========================================
   STANDORTE
   ========================================= */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.location-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.location-card .map-info {
  margin-bottom: 1.25rem;
}

.location-card .map-info h3 {
  margin-bottom: 0.45rem;
}

.location-card .map-info p {
  margin-bottom: 0;
}

.location-card .map-wrapper {
  margin-top: auto;
}

/* =========================================
   TEAM
   ========================================= */
.team-intro {
  margin-bottom: 2rem;
}

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

.team-member {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.team-member-content {
  padding: 1.8rem;
}

.team-member-content h2 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member-content p:last-child {
  margin-bottom: 0;
}

.team-other {
  margin-top: 2rem;
}


/* =========================================
   MAP
   ========================================= */
.map-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 61, 62, 0.06);
}

.map-wrapper iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: block;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--primary-dark);
  color: var(--accent-soft);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-meta a {
  color: var(--accent-soft) !important;
  text-decoration: none;
  font-weight: 500;

  /* Entfernt Button-Optik */
  background: none;
  padding: 0;
  margin: 0 0.35rem;
  border-radius: 0;
  box-shadow: none;
}

.footer-meta a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}


/* =========================================
   FORMULARE
   ========================================= */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(15, 61, 62, 0.25);
  background: #ffffff;
  font-size: 1rem;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}


/* =========================================
   RESPONSIVE – TABLETS
   ========================================= */
@media (max-width: 768px) {

  .nav-inner { padding: 0.6rem 0; }
  .nav-logo img { height: 48px; }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .nav-links {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    background: rgba(243, 249, 248, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 1.5rem;
    display: none;
    border-bottom: 1px solid rgba(15, 61, 62, 0.08);
  }

  .nav-links.show { display: flex; }

  .nav-link {
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    justify-content: center;
  }

  .hero-card {
    max-width: 360px;
    padding: 1.6rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.4rem;
  }

  .locations-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .map-card {
    padding: 1.4rem;
  }

  .map-wrapper iframe {
    height: 260px;
  }

  .team-member-content {
    padding: 1.4rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* =========================================
   EXTRA SMALL DEVICES (MOBILE)
   ========================================= */
@media (max-width: 480px) {

  .nav-logo img { height: 42px; }

  .hero-text h1 { font-size: 1.7rem; }

  .hero-card,
  .video-card { padding: 1.4rem; }

  .btn {
    width: 100%;
    padding: 0.9rem 1.4rem;
  }

  .card p { font-size: 0.95rem; }

  /* Mobile Scroll-Offset */
  #top,
  [id] {
    scroll-margin-top: 70px;
  }

  /* Mobile Formular-Optimierung */
  .form-control,
  .form-textarea {
    min-height: 56px;
    padding: 1.1rem 1.2rem;
    font-size: 1.05rem;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  }

  .form-textarea {
    min-height: 160px;
  }

  .form-group {
    margin-bottom: 1.8rem;
  }
}


/* =========================================
   DESKTOP TWEAKS
   ========================================= */
@media (min-width: 769px) {

  #top,
  [id] {
    scroll-margin-top: 90px;
  }

  .section-video .video-card h2 { margin-bottom: 0.9rem; }
  .section-video .video-card p { margin-bottom: 1rem; }

  .section-video .video-card ul {
    margin-top: 0.1rem;
    margin-bottom: 1.1rem;
  }

  .section-video .video-card ul li {
    margin-bottom: 0.28rem;
  }

  .section-video .video-card .btn {
    margin-top: 0.55rem;
  }

  .section-video {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .footer {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .footer-inner {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  #navLinks {
    transition: opacity 0.25s ease;
  }
}

/* =========================================
   ANDROID formatierung TWEAKS
   ========================================= */
@supports (-webkit-touch-callout: none) {
  html, body {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .site-header,
  .navbar,
  .card,
  .soft-card,
  .section-header,
  .section,
  .grid,
  .form-control,
  .form-textarea {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  .nav-links {
    contain: layout style;
  }

  #top,
  [id] {
    scroll-margin-top: 90px;
  }
}

/* =========================================
   ANDROID formatierung TWEAKS
   ========================================= */

.kontakt-hero {
  padding-bottom: 20px;
}

.kontakt-hero + section {
  padding-top: 20px;
}

/* =========================================
   GOOGLE MAPS – STATISCHE VORSCHAU
   ========================================= */

.map-placeholder {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #e8efed;
}

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

.map-placeholder-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(15, 61, 62, 0.92);
  font-size: 0.85rem;
}

.map-placeholder-button {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.map-placeholder-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.map-placeholder-button:focus-visible,
.cookie-consent-button:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

/* =========================================
   GOOGLE MAPS – EINWILLIGUNGSDIALOG
   ========================================= */

.cookie-consent-overlay[hidden] {
  display: none !important;
}

.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(10, 25, 28, 0.65);
}

.cookie-consent-dialog {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(15, 61, 62, 0.12);
  border-radius: 18px;
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.cookie-consent-dialog h2 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 1.4rem;
  line-height: 1.3;
}

.cookie-consent-dialog p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.cookie-consent-dialog a {
  color: var(--primary);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.cookie-consent-button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-button.primary {
  background: var(--primary);
  color: #fff;
}

.cookie-consent-button.secondary {
  background: #fff;
  color: var(--primary-dark);
}

.cookie-consent-button:hover {
  filter: brightness(0.95);
}

/* Die vorhandene mobile Kartenhöhe bleibt erhalten. */
@media (max-width: 768px) {
  .map-placeholder {
    height: 260px;
  }

  .cookie-consent-dialog {
    padding: 22px;
  }

  .cookie-consent-actions {
    flex-direction: column-reverse;
  }

  .cookie-consent-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .map-placeholder-caption {
    padding: 9px;
    font-size: 0.78rem;
  }

  .map-placeholder-button {
    padding: 7px 10px;
  }

  .cookie-consent-dialog {
    padding: 18px;
  }
}
