@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 700;
  font-display: swap;
}

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

html {
  font-size: 19px;
  overflow-x: hidden;
}

body {
  font-family: 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: -0.025em;
  color: #1a1a1a;
  background-color: #ffffff;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Einheitliches Styling für Textlinks (Absätze + Akkordeon) */
p a,
.accordion-content a {
  color: #6eb5e5;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.25s ease;
}

p a:hover,
.accordion-content a:hover {
  color: #4a9bd6;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 12px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: left;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1000;
  height: 245px;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #ffffff;

  clip-path: polygon(0% 0%,
      100% 0%,
      100.00% 66.48%,
      97.69% 67.48%,
      95.44% 68.28%,
      93.24% 68.89%,
      91.09% 69.34%,
      88.98% 69.63%,
      86.91% 69.79%,
      84.88% 69.84%,
      82.87% 69.78%,
      80.88% 69.65%,
      78.91% 69.46%,
      76.95% 69.21%,
      75.00% 68.95%,
      73.05% 68.67%,
      71.09% 68.40%,
      69.12% 68.15%,
      67.13% 67.94%,
      65.12% 67.79%,
      63.09% 67.72%,
      61.02% 67.74%,
      58.91% 67.88%,
      56.76% 68.14%,
      54.56% 68.55%,
      52.31% 69.13%,
      50.00% 69.89%,
      47.69% 70.57%,
      45.44% 71.08%,
      43.24% 71.44%,
      41.09% 71.65%,
      38.98% 71.74%,
      36.91% 71.72%,
      34.88% 71.61%,
      32.87% 71.41%,
      30.88% 71.16%,
      28.91% 70.85%,
      26.95% 70.51%,
      25.00% 70.15%,
      23.05% 69.79%,
      21.09% 69.44%,
      19.12% 69.12%,
      17.13% 68.84%,
      15.12% 68.62%,
      13.09% 68.47%,
      11.02% 68.40%,
      8.91% 68.44%,
      6.76% 68.60%,
      4.56% 68.89%,
      2.31% 69.33%,
      0.00% 69.89%);
}

.header__inner {
  position: relative;
  z-index: 1;
  height: 140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav {
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #1a1a1a;
  text-decoration: none;
}

.logo img {
  width: 125px;
  height: auto;
}

.logo .highlight {
  color: #6eb5e5;
}

.nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1.3rem;
}

.nav a {
  text-decoration: none;
  color: #626262;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav a:hover {
  color: #1a1a1a;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.nav a.nav-cta {
  background-color: #7fbeea;
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 3px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav a.nav-cta:hover {
  background-color: #7fbeea;
  color: #edf8ff !important;
  transform: translateY(-2px);
}

.burger {
  display: none;
  width: 50px;
  height: 50px;
  border: 0px solid #e5e5e5;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.burger span::before {
  position: absolute;
  top: -8px;
  left: 0;
}

.burger span::after {
  position: absolute;
  top: 8px;
  left: 0;
}

/* Hero */

.hero {
  position: relative;
  margin-top: -80px;
  padding: 150px 0 120px;
  background: #edf8ff;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;
  overflow: hidden;
  height: 10px;
}


.hero-wave--bottom {
  bottom: -1px;
  height: 10px;
}

@media (max-width: 700px) {
  .hero-wave {
    width: 180%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.hero-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: hero-blob-float 9s ease-in-out infinite;
}

.hero-blob--2 {
  width: 48%;
  padding-top: 48%;
  left: 65%;
  top: -22%;
  background: #f7c1c1;
  opacity: 0.3;
  animation-duration: 9.5s;
  animation-delay: -2s;
}

.hero-blob--3 {
  width: 50%;
  padding-top: 50%;
  left: 22%;
  top: 60%;
  background: #fac775;
  opacity: 0.22;
  animation-duration: 9s;
  animation-delay: -4.5s;
}

.hero-blob--4 {
  width: 48%;
  padding-top: 48%;
  left: 74%;
  top: 50%;
  background: #7fbeea;
  opacity: 0.5;
  animation-duration: 10s;
  animation-delay: -1s;
}

.hero-blob--5 {
  width: 46%;
  padding-top: 46%;
  left: -16%;
  top: 48%;
  background: #bcdff4;
  opacity: 0.55;
  animation-duration: 8.5s;
  animation-delay: -3s;
}

@keyframes hero-blob-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  20% {
    transform: translate(4%, -4.5%) scale(1.08);
    opacity: 0.92;
  }

  40% {
    transform: translate(6%, -2%) scale(1.12);
    opacity: 0.85;
  }

  60% {
    transform: translate(-3%, 4%) scale(0.92);
    opacity: 0.95;
  }

  80% {
    transform: translate(-5%, -1.5%) scale(1.04);
    opacity: 0.92;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none;
  }
}

@media (max-width: 700px) {
  .hero-blob {
    filter: blur(40px) saturate(1.4);
  }

  .hero-blob--2 { opacity: 0.45; }
  .hero-blob--3 { opacity: 0.4; }
  .hero-blob--4 { opacity: 0.65; }
  .hero-blob--5 { opacity: 0.7; }
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  max-width: 820px;
  line-height: 1.05;
  color: #6eb5e5;
  letter-spacing: -0.04em;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: word-up 0.6s ease forwards;
}

/* animation-delay wird jetzt dynamisch per Inline-Style aus index.php gesetzt,
   damit beliebig viele Wörter korrekt nacheinander einblenden (siehe hero-title PHP) */

@keyframes word-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo & Navigation: sanftes Einblenden von oben beim Laden der Seite */
.logo,
.nav>a {
  opacity: 0;
  transform: translateY(-14px);
  animation: nav-fade-in 0.6s ease forwards;
}

.logo {
  animation-delay: 0.05s;
}

.nav>a:nth-of-type(1) {
  animation-delay: 0.18s;
}

.nav>a:nth-of-type(2) {
  animation-delay: 0.28s;
}

.nav>a:nth-of-type(3) {
  animation-delay: 0.38s;
}

.nav>a:nth-of-type(4) {
  animation-delay: 0.48s;
}

@keyframes nav-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections: standardmäßig sichtbar (ausfallsicher, falls JS nicht läuft).
   JS fügt die Klasse "reveal-init" hinzu und steuert darüber die
   Fade-in-Animation beim Scrollen. Ohne JS bleibt der Inhalt einfach sichtbar. */
.reveal.reveal-init {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.reveal.reveal-init.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  .hero-title .word,
  .logo,
  .nav>a,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.intro-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 82px;
  border-top: 0px solid #e5e5e5;
  border-bottom: 0px solid #e5e5e5;
  padding: 0px 0;
  margin-bottom: 50px;
}

.intro-col p {
  font-size: 1.05rem;
  color: #444444;
}

.intro-welcome {
  font-size: 1.3rem !important;
  font-weight: 600;
  color: #6eb5e5 !important;
}

.intro-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0px;
}

.intro-role {
  color: #666666;
}

/* Willkommensblock (über Bludit editierbar): stylt die 3 Absätze
   automatisch nach ihrer Reihenfolge, ohne dass der Redakteur im
   Editor selbst Farben/Fettung setzen muss. */
.intro-welcome-block p:nth-of-type(1) {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6eb5e5;
  margin-bottom: 1rem;
}

.intro-welcome-block p:nth-of-type(2) {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0px;
}

.intro-welcome-block p:nth-of-type(3) {
  color: #666666;
}

@media (max-width: 700px) {
  .intro-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Services / Praxis */

.services {
  padding: 70px 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.service-card {
  padding: 32px 27px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #cccccc;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 1rem;
  color: #666666;
}


.tabs {
  position: relative;
  padding-bottom: 50px;
}

.tab-toggle {
  display: none;
}

.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 0px solid #e5e5e5;
  margin-bottom: 40px;
}

.tab-label {
  padding: 16px 28px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #888888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.tab-label:hover {
  color: #1a1a1a;
}


.tab-panels {
  display: grid;
}

.tab-panel {
  display: block;
  grid-row: 1;
  grid-column: 1;
  padding-left: 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes tab-panel-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#panel-sprechzeiten {
  padding-left: 0;
}

@media (max-width: 700px) {
  .tab-panel {
    padding-left: 16px;
  }

  #panel-sprechzeiten {
    padding-left: 0;
  }
}

.tab-panel p {
  font-size: 1.05rem;
  color: #444444;
  max-width: 760px;
  margin: 0;
  text-align: left;
}

#tab-sprechzeiten:checked~.tab-nav label[for="tab-sprechzeiten"],
#tab-erreichbarkeit:checked~.tab-nav label[for="tab-erreichbarkeit"],
#tab-notfaelle:checked~.tab-nav label[for="tab-notfaelle"] {
  color: #6eb5e5;
  border-bottom-color: #6eb5e5;
}

#tab-sprechzeiten:checked~.tab-panels #panel-sprechzeiten,
#tab-erreichbarkeit:checked~.tab-panels #panel-erreichbarkeit,
#tab-notfaelle:checked~.tab-panels #panel-notfaelle {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: tab-panel-fade-in 0.4s ease;
}

@media (max-width: 700px) {
  .tab-nav {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 28px;
  }

  .tab-label {
    padding: 10px 14px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  /* Auf Mobile sollen die Tab-Panels nicht mehr übereinander im Grid
     liegen (das sorgt für viel Leerraum, weil alle Panels die Höhe
     des höchsten Panels - Sprechzeiten - erben). Stattdessen wird nur
     das aktive Panel im Fluss angezeigt. */
  .tab-panels {
    display: block;
  }

  .tab-panel {
    display: none;
    grid-row: auto;
    grid-column: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #tab-sprechzeiten:checked~.tab-panels #panel-sprechzeiten,
  #tab-erreichbarkeit:checked~.tab-panels #panel-erreichbarkeit,
  #tab-notfaelle:checked~.tab-panels #panel-notfaelle {
    display: block;
    animation: none;
  }
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #edf8ff;
  border-left: 4px solid #6eb5e5;
  border-radius: 8px;
  padding: 24px 28px;
}

.news-icon {
  font-size: 1.4rem;
  color: #6eb5e5;
  line-height: 1.4;
  flex-shrink: 0;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.news-text p {
  font-size: 1rem;
  color: #444444;
}

@media (max-width: 700px) {
  .news-item {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }

  .news-list {
    gap: 32px;
  }
}

/* Anker-Korrektur: Sticky-Header-Höhe als Scroll-Offset.
   Wert ggf. nachjustieren, falls Header-Höhe sich ändert. */
#praxis,
#sprechzeiten,
#erreichbarkeit,
#leistungen,
#kontakt,
.legal {
  scroll-margin-top: 175px;
}

#praxis {
  padding-top: 80px;
  padding-bottom: 0px;
}

#erreichbarkeit {
  padding-top: 30px;
  padding-bottom: 0px;
}

#leistungen {
  padding-top: 90px;
  padding-bottom: 80px;
}

#kontakt {
  padding-top: 90px;
  padding-bottom: 0px;
}

.praxis-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 100px;
  margin-bottom: 10px;
}

.praxis-item {
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  grid-column: span 4;
}

.praxis-item img {
  transition: transform 0.5s ease;
}

.praxis-item:hover img {
  transform: scale(1.03);
}

.praxis-item--wide {
  grid-column: span 8;
  min-height: 320px;
}

.accordion {
  max-width: none;
  margin: 0;
}

.accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-toggle {
  display: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.accordion-header:hover {
  color: #6eb5e5;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-top: 3px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: #6eb5e5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
}

.accordion-toggle:checked~.accordion-header .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease 0.05s;
  margin-bottom: 5px;
  margin-top: 5px;
}

.accordion-toggle:checked~.accordion-content {
  max-height: 1000px;
  opacity: 1;
}

.accordion-content ul {
  list-style: none;
  padding: 0 4px 28px;
}

.accordion-content li {
  position: relative;
  padding-left: 22px;
  color: #1a1a1a;
  font-size: 19px;
  line-height: 2;

}

.accordion-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;

  width: 4px;
  height: 4px;
  border-radius: 50%;

  background: #888888;
  opacity: 1;
}

/* Insights / Leistungen */

.insights {
  padding: 50px 0 90px;
  background: #f8f8f8;
}

/* Impressum & Datenschutz */

.legal {
  padding: 70px 0;
  background: #ffffff;
}

.legal + .legal {
  padding-top: 20px;
}

.legal-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.legal-intro p {
  font-size: 1.05rem;
  color: #444444;
}

.legal-block {
  max-width: 800px;
  margin-bottom: 44px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.legal-block h4 {
  font-size: 1.05rem;
  color: #6eb5e5;
  margin: 22px 0 8px;
}

.legal-block p {
  font-size: 1.02rem;
  color: #444444;
  margin-bottom: 14px;
}

.legal-block ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.legal-block ol li {
  font-size: 1.02rem;
  color: #444444;
  margin-bottom: 6px;
}

/* Bulletpoints im gleichen Stil wie das Akkordion auf der Startseite */
.legal-block ul {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
}

.legal-block ul li {
  position: relative;
  padding-left: 22px;
  color: #1a1a1a;
  font-size: 1.02rem;
  line-height: 2;
  margin-bottom: 0;
}

.legal-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #888888;
  opacity: 1;
}

.legal-block a {
  color: #6eb5e5;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.25s ease;
}

.legal-block a:hover {
  color: #4a9bd6;
}

.legal-meta {
  font-size: 1.02rem;
  color: #444444;
  margin-bottom: 14px;
}

.legal-meta strong {
  color: #1a1a1a;
}

/* Footer */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.contact-col:nth-child(2) {
  margin-left: 52px;
}

@media (max-width: 700px) {
  .contact-col:nth-child(2) {
    margin-left: 0;
  }
}

.contact-heading {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.contact-col p {
  font-size: 1.05rem;
  color: #444444;
}

.contact-col a {
  color: #6eb5e5;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.contact-col a:hover {
  color: #4a9bd6;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

#kontakt {
  padding-bottom: 95px;
}

.footer {
  position: relative;
  background: #7fbeea;
  color: #fff;
  padding: 65px 0 25px;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  overflow: hidden;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;

}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;

}

.footer-links a,
.footer-text {
  font-size: 1.05rem;
  color: #edf8ff;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }
}

/* Responsive */

@media (max-width: 960px) {

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

  .hero-title {
    font-size: 2.6rem;
  }
}

/* Burger-Menü erscheint, bevor die Navigationspunkte zweizeilig werden */
@media (max-width: 980px) {
  .burger {
    display: inline-flex;
    margin-right: 0px;
    width: 44px;
    height: 44px;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    width: 24px;
  }

  .header__inner {
    gap: 12px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 0px solid #e5e5e5;
    padding: 16px 20px 64px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 1.5rem;
    box-shadow: 0 12px 18px -12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }

  .nav-toggle:checked~.nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header__inner {
    position: relative;
  }

  .logo {
    gap: 1rem;
    font-size: 1rem;
  }

  .logo img {
    width: 76px;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 85px 0 70px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .praxis-grid {
    grid-template-columns: 1fr;
  }

  .praxis-item,
  .praxis-item--wide {
    grid-column: auto;
    min-height: 220px;
  }

  .footer-content {
    align-items: flex-start;
  }
}