/* Global Styles */
:root {
  --primary-color: #ffe402;     /* Hauptfarbe: Gelb */
  --secondary-color: #f7c600;   /* Etwas dunkleres Gelb für Hover oder Buttons */
  --accent-color: #142e3c;      /* Akzentfarbe: Blaugrau */
  --light-color: #d2d5db;       
  --dark-color: #1e1e26;        /* Sehr dunkles Grau für Kontraste */
  --text-color: #2b2f38;        /* Fast schwarz – aber angenehmer */
  --text-light: #d2d5db;        /* Abgeschwächtes Grau für Hilfetexte */
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(60, 69, 86, 0.15); /* Soft Shadow in Akzentfarbe */
  --transition: all 0.3s ease;
  --text-panel-width: 110%;
}

body, h1, h2, h3, h4, h5, h6, p, a, li, input, textarea, button, select {
  font-family: 'Playfair Display', sans-serif !important;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  padding-bottom: 20px; /* oder die tatsächliche Footerhöhe */
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.yellow-shadow {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  background-color: var(--accent-color);
  color: #d2d5db;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
  text-align: left;
  position: relative;
  color: var(--primary-color);
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: -15px;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease-out;
  background-color: #d2d5db;
  border-radius: 2px;
}

.section-title.animate-line::after {
  transform: scaleX(1);
}

h2.section {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

/* Button Styles */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-button.primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(90, 91, 95, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  transition: var(--transition);
  padding: 0.1px 0;
}

.header-flex {
  justify-content: space-between;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

.logo-nav-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 220px;
  gap: 4px;
}

.logo-text h1 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 0;
  margin-top: -1px;
  line-height: 1.2;
  font-weight: 700;
  pointer-events: none;
  transform: scaleY(1.2);
  display: inline-block;
}

.logo-text p {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin: 0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.logo-text p a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.logo-text p a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}


.logo-img:hover {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}



               /* Header Transition */
header,
header .logo,
header .logo-img,
header nav ul li a,
.burger {
  transition: all 0.4s ease-in-out;
}

/* Logo Scaling */
.logo-img {
  height: 50px;
  transition: inherit;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Scrolled State - Proportional Scaling */
header.scrolled {
  padding: 0.5px 0;
}

header.scrolled .logo-img {
  height: 35px; /* 30% kleiner */
  left: 15px;
}

header.scrolled .logo-text h1 {
  font-size: 1.1rem;
  transform: scale(0.9);
  transform-origin: left center;
  margin-left: -1px;
}

header.scrolled .logo-text p {
  font-size: 0.6rem;
  transform: scale(0.9);
  transform-origin: left center;
  letter-spacing: 3px;
  margin-bottom: 5px;
  margin-top: -5px;
}

header.scrolled nav ul li a {
  font-size: 0.9rem;
  padding: 3px 0;
}

header.scrolled .header-flex {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navigation Styles */
nav ul {
  display: flex;
  gap: 25px;
}

nav ul li a {
  position: relative;
  font-weight: 600;
  padding: 5px 0;
  color: #142e3c;
  transition: var(--transition);
}

nav ul li a:hover {
  color: #ffe402;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Scrolled State */
header.scrolled {
  padding: 0.1px 0;
}

header.scrolled .logo-text h1 {
  font-size: 1.1rem;
}

header.scrolled .logo-text p {
  font-size: 0.6rem;
}

header.scrolled nav ul li a {
  font-size: 0.9rem;
}

header.scrolled .burger {
  top: 0.9rem; /* weiter hochschieben */
  transform: scale(0.8); /* leicht verkleinern */
}

header.scrolled .mobile-nav-box.active {
  top: 0.2rem; /* weiter hochschieben */
  right: 15px;
}

header.scrolled .quick-contact-buttons {
  top: 0.5rem; /* weiter hochschieben */
  right: 60px;
  transform: scale(0.8); /* leicht verkleinern */
}


/* Hero Section */
.hero {
  height: 80vh;
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  background: url('images/hero-bg.jpg') no-repeat center top/cover;
  color: var(--white);
  text-align: center;
  padding-top: 80px;
  background-position: center -10%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* About Section */
.about {
  padding: 3rem 0;
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text a:hover {
  color: var(--primary-color); 
  transition: color 0.3s ease, color 0.3s ease;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: -20px;
}

.about-image img {
  width: 100%;
  object-fit: cover;
  display: block;
  height: 480px;
  transform-origin: top;
  transform: scale(1.2);
  transition: transform 0.4s ease-in-out;
}

.about-image:hover img {
  transform: scale(1.1);
}

/* Services Section */
   .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      max-width: 1200px;
      margin: auto;
    }

    .tile {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: transform 0.2s ease;
    }
    .center-tile {
  grid-column: 2 / 3; /* steht in der Mitte (bei 3 Spalten) */
}

    .tile:hover {
      transform: translateY(-4px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    .tile img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      display: block;
      transition: filter 0.4s ease;
    }

    .tile .title {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 0.75rem;
      background: rgba(20, 46, 60, 0.8);
      color: white;
      font-weight: bold;
      text-align: center;
      z-index: 3;
      transition: opacity 0.4s ease;
    }

    .tile.active .title {
      opacity: 0.25;
    }

    .tile .overlay {
      position: absolute;
      top: 0;
      left: 100%;
      width: 100%;
      height: 100%;
      background: rgba(20, 46, 60, 0.8);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      z-index: 2;
      opacity: 0;
      pointer-events: none;
      transition: left 0.5s ease, opacity 0.5s ease;
      padding: 1rem;
      box-sizing: border-box;
    }

    .tile.active .overlay {
      left: 0;
      opacity: 1;
      pointer-events: auto;
    }

    .tile.active img {
      filter: brightness(50%);
    }

    .overlay .max-text {
      max-height: 80%;
      max-width: 99%;
      overflow-y: auto;
      padding: 0.5rem;
      box-sizing: border-box;
      scrollbar-width: thin;
      scrollbar-color: white transparent;
    }

    .overlay .max-text::-webkit-scrollbar {
      width: 6px;
    }

    .overlay .max-text::-webkit-scrollbar-track {
      background: transparent;
    }

    .overlay .max-text::-webkit-scrollbar-thumb {
      background-color: white;
      border-radius: 6px;
    }
.single-tile {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.tile .arrow-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: white;
  opacity: 0.7;
  pointer-events: none;
  z-index: 4;
  transition: color 0.3s ease, transform 0.4s ease, opacity 0.3s ease;
}

.tile:hover .arrow-icon {
  color: white;
  opacity: 0.9;
}

.tile.active .arrow-icon {
  transform: translateY(-50%) rotate(180deg);
  opacity: 0.5;
}

#services {
  scroll-margin-top: 50px;
}

#services h2:not(.section-title) {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}


/* Team Section */
.team {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-member {
  display: flex;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.member-image {
  flex: 1;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  flex: 1;
  padding: 2rem;
}

.member-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.position {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.qualifications {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.member-social {
  display: flex;
  gap: 1rem;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  transition: var(--transition);
}

.member-social a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

#team {
  scroll-margin-top: 40px;
}

/* Praxis Section */
.praxis {
  padding: 6rem 0;
}

.praxis-content {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.praxis-gallery {
  flex: 2;
}

.gallery-main {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-main:hover img {
  transform: scale(1.02);
}

.gallery-thumbnails {
  display: flex;
  gap: 1rem;
}

.gallery-thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumbnails img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.praxis-info {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.praxis-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.info-item p {
  color: var(--text-color);
}

#praxis {
  scroll-margin-top: 40px;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.3rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

#contact-form {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Playfair Display', sans-serif;
  font-size: 1rem;
  transition: var(--transition); 
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 95, 135, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

.privacy {
  display: flex;
  align-items: center;
  gap: -0.4rem;
}

.privacy input {
  margin-right: 10px;
  width: auto;
}

.privacy label {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.privacy a {
  color: var(--accent-color);
  text-decoration: underline;
}

.privacy a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-map {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
}

/* Footer */
html, body {
  height: 10%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.footer-bar {
  background-color: rgba(90, 91, 95, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition);
  color: var(--accent-color);
  padding: 0.3rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

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

.footer-logo-small img {
  height: 30px; /* deutlich kleiner */
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  margin: -2px;
  margin-bottom: -8px;
  transition: filter 0.3s ease;
}

.footer-logo-small:hover img {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Abstand zwischen den Links */
  flex-wrap: wrap; /* Zeilenumbruch bei kleinen Bildschirmen */
}

.footer-links a {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--primary-color); /* normale Farbe wie im Menü */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color); /* gleiche Linie wie Menü */
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color); /* gleiche Hover-Farbe wie Menü */
}

.footer-links a:hover::after {
  width: 100%; /* animiertes Unterstreichen */
}

.footer-separator {
  display: none; /* Optional: Trenner ausblenden, wenn Flexbox-Abstand verwendet wird */
}


/* Fade-in Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 60px;
  width: auto;
}


/* Contact Page Styles */
.contact-page {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.osm-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.osm-map iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.osm-map small {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--white);
}


/* Floating Contact Button */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.contact-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.contact-btn:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
}

/* Contact Popup */
.contact-popup {
  display: none; /* Wichtig: Standardm  ig versteckt */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1001; /* H her als Header */
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  color: var(--primary-color);
}

.floating-contact {
  z-index: 1000; /* Unter dem Popup aber  ber anderen Elementen */
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 30px;
}

.popup-form input,
.popup-form textarea {
  background-color: var(--light-color);
  color: var(--accent-color); /* Optional: Textfarbe anpassen */
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-popup.fade-in {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.contact-popup.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

/* Popup Formular Styles */
.popup-form .form-group {
  margin-bottom: 1px;
}

.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Playfair Display', sans-serif;
}

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

.popup-form .privacy {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.popup-form .privacy input {
  width: auto;
  margin-right: 10px;
}

.popup-form .privacy label {
  font-size: 0.9rem;
}

/* Erfolgsmeldung Styling */
.form-success {
  position: relative; /* vorher NICHT gesetzt */
  z-index: 1; /* niedriger als Button */
  background: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}


.form-success i {
    margin-right: 8px;
}

.form-success p {
    margin: 5px 0;
}

/* Countdown Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stil für den Kontakt-Link mit Icon */
.kontakt-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kontakt-link:hover {
  color: var(--accent-color);
}

.kontakt-link i {
  font-size: 1em;
  transition: inherit;
}

/* Dropdown-Menü */
nav ul li.dropdown {
  position: relative;
}

nav ul li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 5px;
  z-index: 1000;
}

nav ul li.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 10px 20px;
  white-space: nowrap;
}

.dropdown-menu li a {
  color: var(--primary-color);
}

.dropdown-menu li a:hover {
  color: var(--accent-color);
}


.site-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease;
}

.site-notice-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-notice button {
  align-self: flex-start;
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.site-notice button:hover {
  background: var(--primary-color);
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 10000;
  font-size: 0.95rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 60%;
}

.cookie-banner a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.cookie-buttons button:hover {
  background: var(--primary-color);
}

/* CSS für Hover-Effekt */
.nav-item {
  position: relative;
  transition: color 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #005f87;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}


.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-icon {
  font-size: 1.2rem;
}



.top-bar {
  background: var(--primary-color);
  color: white;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.top-bar-content a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-content a:hover {
  color: var(--accent-color);
}


.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header-logo img {
  height: 60px;
}


/* Logo Container */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.logo-img {
  height: 65px;
  width: auto;
}




/* Layout für Impressum / Datenschutz */
.legal-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.legal-page h1.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.legal-page h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.legal-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.2rem;
}

.legal-content a {
  color: var(--accent-color);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-color);
}

/* Fade-in Animation für Seite */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1100;
}
.menu-overlay.active {
  display: block;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
  transition: all 0.3s ease;
}
.burger span {
  width: 30px;
  height: 4px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}
.burger:hover span {
  background: var(--primary-color);
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  color: var(--accent-color);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  color: var(--accent-color);
}

/* Mobile Nav Box (als kleine Karte) */
.mobile-nav-box {
  position: fixed;
  top: 1rem;
  right: -310px;
  width: 250px;
  background: var(--light-color);
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  padding: 2rem 1.5rem;
  z-index: 1101;
  transition: right 0.4s ease;
  border-radius: 12px 12px 12px 12px;
   color: var(--accent-color);
}
.mobile-nav-box.active {
  right: 1rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--accent-color);
}
.mobile-nav-list a {
  text-decoration: none;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.has-submenu {
  position: relative;
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow {
  font-size: 1.1rem;
  transform: scaleX(1.8);  /* breiter machen */
  display: inline-block;   /* nötig für scale */
  transition: transform 0.6s ease;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  list-style: none;
}

.submenu li:first-child{
  margin-top: 0.8rem;
}

/* Slide in on focus/hover */
.has-submenu:focus-within .submenu,
.has-submenu:hover .submenu {
  max-height: 200px; /* je nach Inhalt */
  padding-left: 1rem;
}

.has-submenu:focus-within .arrow,
.has-submenu:hover .arrow {
  transform: rotate(180deg) scaleX(1.8);
}

.main-nav {
  display: none !important;
}



.quick-contact-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  position: fixed;
  top: 1.3rem;
  right: 5rem; /* rechts vom Rand, aber links vom Burger */
  z-index: 1100;
}

.icon-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.3s ease;
}

.icon-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.icon-btn i {
  font-size: 1rem;
}



.scroll-top-btn {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 1000;
  display: none; /* wird durch JS eingeblendet */
  background-color: #142e3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease;
}

.scroll-top-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}




.phone-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-family: 'Playfair Display', serif;
}

.phone-popup .tel-number a {
  display: inline-block;
  font-size: 1.3rem;
  color: var(--accent-color);
  font-weight: bold;
  margin: 0.5rem 0 1.5rem;
  transition: color 0.3s ease;
}

.phone-popup .tel-number a:hover {
  color: var(--primary-color);
}

.popup-hours {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.close-phone-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-phone-popup:hover {
  color: var(--primary-color);
}

.popup-icon {
  font-size: 2.8rem;
  color: var(--accent-color);
  margin-bottom: 0.8rem;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}



@media (max-width: 480px) {
  .phone-popup .popup-inner {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .phone-popup h3 {
    font-size: 1.2rem;
  }

  .phone-popup .tel-number a {
    font-size: 1.1rem;
  }

  .popup-hours {
    font-size: 0.95rem;
  }
}

.location-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1300;
  animation: fadeIn 0.4s ease-in-out;
}

.location-popup .popup-inner {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 920px;
  width: 95%;
  text-align: center;
  font-family: 'Playfair Display', sans-serif;
  color: var(--text-color);
  animation: fadeIn 0.3s ease-out;
  position: relative;
  display: flex;
  flex-direction: column;
}

.location-popup h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.location-map {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-info, .location-parking, .location-public {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.location-popup a {
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: none;
}

.location-popup a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.close-location-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-location-popup:hover {
  color: var(--primary-color);
}

.location-popup .location-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.location-map {
  flex: 1 1 300px;
  min-width: 280px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-info {
  flex: 1 1 260px;
  font-size: 0.95rem;
  color: var(--accent-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-info .highlight {
  font-weight: bold;
  color: var(--accent-color);
}


/* Add subtle shadow to all text using primary color */
.text-yellow,
a[href],
nav ul li a:hover,
.section-title,
.service-card h3,
.member-info h3,
.contact-info h3,
footer .footer-col a:hover,
.popup-form .privacy a,
.kontakt-link,
.hero h2,
.hero p,
.button.primary,
.cta-button.primary {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-with-lines {
  position: relative;
  width: 100%;           /* passt das Bild responsiv an */
  max-width: 2240px;     /* oder feste Breite */
  margin: 0 auto;
}

.hero-with-lines img {
  display: block;
  width: 100%;
  height: auto;
}

.nose-lines {
  position: absolute;
  inset: 0;              /* deckt das ganze Bild ab */
  pointer-events: none;  /* klickbar bleibt das Bild darunter */
}

.nose-lines .line {
  stroke-dasharray: 400;     /* Länge etwas großzügig schätzen */
  stroke-dashoffset: 400;    /* Linie startet unsichtbar */
  animation: draw-line 1s ease-out forwards;
  animation-delay: 0.5s;     /* nach 0.5 s starten */
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;    /* Linie komplett sichtbar */
  }
}

/* Modal Overlay – versteckt, transparent, kein Klicken */
.image-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Modal offen – sichtbar und klickbar */
.image-modal.opened {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Bild im Modal – mit Scale-Animation */
.image-modal .modal-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

/* Bild wenn Modal offen – auf 1.0 skalieren */
.image-modal.opened .modal-img {
  transform: scale(1);
}

/* Close-Button bleibt unverändert */
.image-modal .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
}
.image-modal .modal-close:hover {
  transform: scale(1.2);
}

/* Overlay: nur Fade, kein Scale */
.phone-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1300;
}

.phone-popup.opened {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 2) Popup-Window: kommt von 0.8 → 1 */
.phone-popup .popup-inner {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;

  transform: scale(0.5);
  transition: transform 0.5s ease;
  transform-origin: center center;
}

.phone-popup.opened .popup-inner {
  transform: scale(1);
}

/* Phone-Popup: Hintergrund, Text- und Icon-Farbe anpassen und text-zentriert */
.phone-popup .popup-inner {
  background: var(--light-color);  /* heller Hintergrund */
  text-align: center;              /* Text mittig */
  color: var(--accent-color);      /* Text in Accent-Color */
}

/* Überschrift und Texte im Popup */
.phone-popup .popup-inner h3,
.phone-popup .popup-inner p,
.phone-popup .popup-inner .popup-hours,
.phone-popup .popup-inner .tel-number {
  color: var(--accent-color);
  margin: 0.5rem 0;
}

/* Telefonnummer-Link */
.phone-popup .popup-inner .tel-number a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

/* Hörer-Icon in Primary-Color */
.phone-popup .popup-inner .popup-icon i {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Telefon-Nummer: Hover-Effekt */
.phone-popup .popup-inner .tel-number a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Gemeinsamer Popup-Inner-Stil für Phone, Location & Contact */
.phone-popup .popup-inner,
.location-popup .popup-inner,
.contact-popup .popup-inner {
  background: var(--light-color);
  text-align: center;
  color: var(--accent-color);
  border-radius: 12px;
}

/* Icon-Farbe und Größe */
.phone-popup .popup-inner .popup-icon i,
.location-popup .popup-inner .popup-icon i,
.contact-popup .popup-inner .popup-icon i {
  color: var(--primary-color);
  font-size: 2.8rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Überschrift im Popup */
.phone-popup .popup-inner h3,
.location-popup .popup-inner h3,
.contact-popup .popup-inner h3 {
  color: var(--accent-color);
  margin: 0.5rem 0;
}

/* Textabsätze im Popup */
.phone-popup .popup-inner p,
.location-popup .popup-inner p,
.contact-popup .popup-inner p,
.phone-popup .popup-inner .popup-hours,
.location-popup .popup-inner .popup-hours,
.contact-popup .popup-inner .popup-hours {
  color: var(--accent-color);
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* Links im Popup */
.phone-popup .popup-inner a,
.location-popup .popup-inner a,
.contact-popup .popup-inner a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* Hover-Effekt für Links */
.phone-popup .popup-inner a:hover,
.location-popup .popup-inner a:hover,
.contact-popup .popup-inner a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.about,
.services,
.praxis,
.team {
  padding: 3rem 0;    /* mehr Luft um jede Sektion herum */
}


/* --------------------------------
   1. Grid & Container
--------------------------------- */
.highlights {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: var(--dark-bg);
  overflow: visible;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  overflow: visible;
}

/* --------------------------------
   2. Details-Accordion Cards
--------------------------------- */
details.highlight-card {
  position: relative;
  overflow: visible;
  z-index: 1;
}
/* Default-Marker entfernen */
details.highlight-card > summary {
  list-style: none;
}
details.highlight-card > summary::-webkit-details-marker {
  display: none;
}

/* --------------------------------
   3. Summary = Bildkachel
--------------------------------- */
summary.tile-btn {
  display: block;
  width: 100%;
  padding-top: 100%;           /* Quadrat */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}
summary.tile-btn:hover {
  transform: translateY(-3px);
}

/* Titel-Overlay */
.tile-title {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 0.4rem;
  background: rgba(20,46,60,0.75);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

/* --------------------------------
   4. Text-Panel (hidden + scrollbar + animation)
--------------------------------- */
.tile-content {
  position: absolute;
  top: 0;
  left: 100%;                  /* rechts beginnen */
  width: 0;                    /* geschlossen */
  height: 100%;
  
  /* Scrollbar erlauben */
  overflow-y: auto;
  overflow-x: hidden;
  
  /* schöner Verlauf */
  background: linear-gradient(
    to bottom,
    #1f333a 0%,
    #1f333a 40%,
    #10212a 100%
  );
  color: var(--light-color);
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;

  /* Fade & Slide Animation */
  opacity: 0;
  transform: translateX(20px);
  transition:
    width 0.4s ease,
    opacity 0.3s ease 0.1s,
    transform 0.3s ease 0.1s;

  z-index: 999;                /* über allen Kacheln */
}

/* Scrollbar-Styling (optional) */
.tile-content {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}
.tile-content::-webkit-scrollbar {
  width: 6px;
}
.tile-content::-webkit-scrollbar-track {
  background: transparent;
}
.tile-content::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 3px;
}

/* --------------------------------
   5. Open-States
--------------------------------- */
/* Kachel dimmen, wenn Text offen */
details.highlight-card[open] > summary.tile-btn {
  opacity: 0.3;
}
/* geöffnete Karte nach vorne holen */
details.highlight-card[open] {
  z-index: 10;
}

/* Karten 1+2: rechts ausfahren */
details.highlight-card:not(:nth-child(3))[open] .tile-content {
  width: var(--text-panel-width);
  opacity: 1;
  transform: translateX(0);
}

/* Karte 3: links ausfahren */
details.highlight-card:nth-child(3) .tile-content {
  left: auto;
  right: 100%;
  transform: translateX(-20px);
}
details.highlight-card:nth-child(3)[open] .tile-content {
  width: var(--text-panel-width);
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------
   6. Responsive Fallback
--------------------------------- */
@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  }
  details.highlight-card[open] .tile-content {
    position: static;
    width: 100%;
    margin-top: 1rem;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------
   Section Titles linksbündig
--------------------------------- */
.section-title {
  margin-bottom: 0.4rem;
  text-align: left !important;
}


/* --------------------------------
   Klinik-Galerie Styles
--------------------------------- */
.praxis {
  padding: 2rem;
  background: var(--accent-color);
  text-align: center;
}

.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.gallery-arrow {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.gallery-arrow.prev { left: -1.5rem; }
.gallery-arrow.next { right: -1.5rem; }
.gallery-arrow:hover {
  background: var(--secondary-color);
}

/* --------------------------------
   Thumbnails (automatisch zugeschnitten)
--------------------------------- */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1.5rem;
}
.gallery-thumbnails .thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-thumbnails .thumb.active,
.gallery-thumbnails .thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.thumb + .thumb-caption,
.gallery-thumbnails figure .thumb-caption {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

/* --------------------------------
   Soft Open/Close der Lightbox
--------------------------------- */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lightbox.open .lightbox-img {
  opacity: 1;
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lightbox.open .lightbox-close {
  opacity: 1;
}
.lightbox-close:hover {
  transform: scale(1.2);
}

/* --------------------------------
   Section Titles linksbündig
--------------------------------- */
.section-title {
  text-align: left !important;
}

/* --------------------------------
   Galerie-Main Bild (Fade & Scale)
--------------------------------- */
.gallery-main {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.gallery-main img {
  width: 100%;
  max-width: 950px;
  height: auto;
  min-height: 500px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-main img.show {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------
   Soft-Open/Close Lightbox & Centering
--------------------------------- */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%; max-height: 90%;
  border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox.open .lightbox-img {
  opacity: 1; transform: scale(1);
}
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  font-size: 3rem; color: #fff; cursor: pointer;
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox.open .lightbox-close {
  opacity: 1;
}
.lightbox-close:hover {
  transform: scale(1.2);
}


/* Portrait-Bereich */
.portrait-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.portrait-image {
  flex: 1 1 20%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait-image img {
  width: 100%;
  object-fit: cover;
  display: block;
  max-height: 800px;
  object-position: top;
}

.portrait-image:hover img {
  transform: scale(1.10);
}

.portrait-text {
  flex: 1 1 55%;
  color: var(--light-color);
}

.portrait-text h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.portrait-text .position {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.portrait-text blockquote {
  font-style: italic;
  color: var(--text-light);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.portrait-text .bio {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--light-color);
}

@media (max-width: 768px) {
  .portrait-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .portrait-text {
    text-align: left;
  }
}

.fade-img {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-img.visible {
  opacity: 1;
  transform: scale(1);
}

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1300;
}

.popup.opened {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-inner {
  background: var(--light-color);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 700px;
  transform: scale(0.85);
  transition: transform 0.3s ease;
  position: relative;
  text-align: center;
  font-family: 'Playfair Display', sans-serif;
  color: var(--accent-color);
  max-height: 90vh;
  overflow-y: auto;
}


.popup.opened .popup-inner {
  transform: scale(1);
}

.popup-inner h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-inner .tel-number a {
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: none;
}

.popup-inner .tel-number a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.popup-hours {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent-color);
  margin-top: 1.5rem;
}

.popup-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
}
.close-popup:hover {
  color: var(--primary-color);
}

.popup-text {
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
  color: var(--accent-color);
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.popup-text a {
  color: var(--accent-color);
  text-decoration: underline;
}
.popup-text a:hover {
  color: var(--primary-color);
}

.popup-text::-webkit-scrollbar {
  width: 6px;
}
.popup-text::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}


.partner-logo-link img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.partner-logo-link img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.services-section {
  outline: 2px dashed red;
  padding: 0 !important;
  margin: 0 !important;
}

.collapsible-section {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  position: relative;
}

.collapsible-section.expanded {
  max-height: 2000px; /* oder einfach: none mit auto */
}

.toggle-section {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #142e3c;
  color: white;
  font-size: 1.5rem;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 5;
}

.creator-signature {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 30px;
  opacity: 0.6;
}

.creator-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.creator-link:hover {
  color: var(--primary-color);
}

.creator-logo {
  height: 26px;
  width: auto;
  opacity: 0.4; /* 👈 macht es transparent im Normalzustand */
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.creator-link:hover .creator-logo {
  opacity: 1; /* 👈 beim Hover volle Deckkraft */
  filter: brightness(1.3);
}








@media (max-width: 768px) {
  .logo-wrapper {
    padding-left: 8px;
  }

  .burger {
    right: 8px;
  }

  .quick-contact-buttons {
    right: 48px; 
    gap: 8px;
  }

  .mobile-nav-box {
  position: fixed;
  top: 1rem;
  right: -310px;
  width: 150px;
  background: var(--light-color);
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  padding: 20px 20px;
  z-index: 1101;
  transition: right 0.4s ease;
  border-radius: 12px 12px 12px 12px;
   color: var(--accent-color);
}
.mobile-nav-box.active {
  right: 3px;
}

header.scrolled .header-flex {
  padding-left: 1px;
}

header.scrolled .logo-text {
  gap: 2px;
  width: auto;
}

header.scrolled .logo-img {
  height: 35px;
  padding-left: 5px;
}

header.scrolled .logo-text h1 {
  font-size: 1.1rem;
  transform: scale(0.9);
  margin-left: -1px;
}

header.scrolled .logo-text p {
  font-size: 0.6rem;
  transform: scale(0.9);
  letter-spacing: 3px;
  margin-bottom: 5px;
  margin-top: -5px;
}

header.scrolled .burger.active {
  top: 20px;
  right: 8px;
  transform: scale(0.8);
}

header.scrolled .mobile-nav-box.active {
  top: 10px;
  right: 3px;
  transform: scale(0.9);
  padding: 15px 15px;
}

header.scrolled .quick-contact-buttons {
  top: 0.5rem;
  right: 35px;
  transform: scale(0.8);
}

  .hero {
    height: 60vh;
    min-height: 300px;
    padding: 80px 4vw;
    background-position: center -10%;
  }
  
  .hero-text {
  margin-top: 400px;
}

.services {
    padding: 10px 5px;
  }


  .services h2,
  .services .section-title {
    text-align: center !important;
    line-height: 1.2;
  }

.about {
    padding: 10px 5px;
  }

  .about-content {
    flex-direction: column;
  }

  .about h2,
  .about .section-title {
    line-height: 1.2;
    font-size: 1.9rem;
    margin-bottom: 3rem;
  }

  .about-text {
    border-radius: 10px;
    max-width: 98%;       
    margin: -35px auto;       
  }
  .about-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: -25px;
    max-height: 500px;
  }
  
  .team,
  .praxis {
    padding: 10px 5px;
  }
 
   #praxis .section {
    margin: 10px 5px;
    width: 98%;
  }
 
 
details.highlight-card {
  position: relative;
  overflow: visible;
}

/* Kachel bleibt sichtbar */
details.highlight-card > summary.tile-btn {
  opacity: 1 !important;
}

/* Kein Öffnen zur Seite oder unten */
details.highlight-card[open] .tile-content {
  transform: none;
  width: 80%;
  height: 20%;
}

/* Optional: Titel styling */
.tile-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.tile-content p {
  font-size: 1rem;
  line-height: 1.5;
}

 summary.tile-btn {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%; /* Quadrat bleibt */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: none;
  z-index: 1;
  overflow: hidden;
}

details.highlight-card .tile-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 46, 60, 0.9); /* dunkler Overlay */
  color: var(--light-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

details.highlight-card[open] .tile-content {
  opacity: 1;
  pointer-events: auto;
}

.tile-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: auto;
  transform: translate(-50%, -70%);
  background: rgba(20, 46, 60, 0.9);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
 
}

.hero {
  height: 80vh;
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Text nach rechts */
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  color: var(--white);
  text-align: left;
  padding: 80px 4vw;
  background-position: center -10%;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-text {
  max-width: 250px;
  max-height: 150px;
  background: rgba(3, 8, 12, 0.85); 
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
  color: var(--light-text);
  margin-right: -50px;
  margin-top: 60px;
}

.hero.visible .hero-text {
  opacity: 1;
  transform: translateX(0);
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
}

/* Hintergrund einblenden */
.hero.fade-in-bg {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero.fade-in-bg.visible {
  opacity: 1;
  transform: scale(1);
}

/* Parallax */
.parallax {
  height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
.parallax {
   height: 300px;
   background-size: 170%;
   background-position: center 30%;
  }
}


/* Praxis-Gallerie */
#praxis .gallery {
  position: relative;
  width: 100%;
  max-height: 600px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: scale(1.02);
  animation: fadeInZoom 1.5s ease forwards;
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#praxis .gallery img {
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease, transform 10s ease;
  z-index: 1;
}

#praxis .gallery img.active {
  opacity: 1;
  z-index: 2;
}

#praxis .gallery:not(:hover) img.active {
  transform: scale(1.05);
}

#praxis .title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.4);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  z-index: 3;
}

#praxis .dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

#praxis .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s ease;
  cursor: pointer;
}

#praxis .dots .active {
  background: white;
}

#praxis .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  padding: 0 0.4rem;
  cursor: pointer;
  border: none;
  background: none;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#praxis .arrow.left {
  left: 10px;
}

#praxis .arrow.right {
  right: 10px;
}

#praxis .gallery:hover .arrow {
  opacity: 1;
}

#praxis .arrow:hover {
  transform: translateY(-50%) scale(1.2);
}

#fallback-message {
  margin-top: 1.5rem;
  color: #dc2626;
  font-weight: 500;
  display: none;
}

/* Lightbox Styles */
#praxis .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;  
}
#praxis .lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}
#lightbox.fade-out {
  opacity: 0;
}
#praxis .lightbox img {
  max-width: 80%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  transition: opacity 0.4s ease;
  cursor: pointer;
  z-index: 1;
}
#praxis .lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.9;
}
#praxis .lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.8;
}
#praxis .lightbox .nav-btn.left {
  left: 30px;
}
#praxis .lightbox .nav-btn.right {
  right: 30px;
}

.only-for-indexing {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

