/* Hausarztpraxis Dr. med. Sabine Ritter – Stylesheet */


/**********************************
 01. Typografie
**********************************/

body,
p,
h1,
h2,
h3,
h4,
h5,
li,
a {
  color: #292929;
  font-family: 'Open Sans', sans-serif;
}

p {
  font-size: 16px;
  line-height: 1.65em;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

h1 { font-size: 100px; }
h2 { font-size: 60px; }

h3 {
  font-size: 22px;
  text-transform: uppercase;
}

h4 { font-size: 32px; }

h5 {
  font-size: 18px;
  font-weight: 600;
}

/* Typewriter-Effekt */
.typewriter {
  display: inline-block;
  border-right: 3px solid #292929;
  white-space: nowrap;
  overflow: hidden;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: blink-caret 0.7s step-end infinite;
}

@keyframes blink-caret {
  0%, 100% { border-color: #292929; }
  50% { border-color: transparent; }
}

/* SEO: H1 als Seitentitel – visuell dezent, semantisch korrekt */
.main-section header h1 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* SEO: Section-H2 übernimmt das bisherige H4-Styling */
.main-section header h2 {
  font-size: 32px;
  text-transform: uppercase;
}

p.sub-header {
  color: #666;
  font-size: 18px;
  text-align: center;
}


/**********************************
 02. Allgemeine Stile
**********************************/

.main-section {
  padding-top: 115px;
  padding-bottom: 150px;
}

.description.main-section {
  padding-bottom: 60px;
}

.main-section header {
  text-align: center;
}

.main-section header p {
  width: 75%;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 768px) {
  .main-section header p {
    width: 90%;
  }
}


/**********************************
 03. Button
**********************************/

.btn-default {
  background-color: #afcff5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  padding: 15px 32px;
  transition: all ease-in-out 300ms;
}


/**********************************
 04. Navigation
**********************************/

/* --- Grundzustand --- */
#nav1 {
  color: #000;
  border: none;
  margin: 0;
  padding-top: 22px;
  padding-bottom: 22px;
  background-color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: padding 0.35s ease, background-color 0.35s ease,
              box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Brand */
#nav1 .navbar-brand,
#nav1 .navbar-brand:hover,
#nav1 .navbar-brand:focus,
#nav1 .navbar-brand:active {
  color: #000;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.96;
  display: flex;
  align-items: center;
  transition: font-size 0.35s ease, letter-spacing 0.35s ease, opacity 0.35s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}

/* Nav-Links */
#nav1 .navbar-nav > li > a {
  color: #000 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 25px;
  padding-top: 14px;
  padding-bottom: 14px;
  opacity: 0.86;
  position: relative;
  transition: opacity 0.25s ease, padding 0.35s ease;
}

/* Premium-Hover: Unterlinie */
#nav1 .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

#nav1 .navbar-nav > li > a:hover,
#nav1 .navbar-nav > li > a:focus {
  opacity: 1;
}

#nav1 .navbar-nav > li > a:hover::after,
#nav1 .navbar-nav > li > a:focus::after {
  transform: scaleX(1);
  opacity: 1;
}

/* --- Scrolled-Zustand --- */
#nav1.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

#nav1.scrolled .navbar-brand {
  font-size: 16px;
  letter-spacing: 0.5px;
  opacity: 1;
}

#nav1.scrolled .navbar-nav > li > a {
  padding-top: 10px;
  padding-bottom: 10px;
  opacity: 0.92;
}

/* Toggle-Button (Desktop: Bootstrap-Standard) */
.navbar-toggle {
  border: none;
}

/* Favicon im Brand */
.brand-favicon {
  height: 26px;
  width: 26px;
  margin-right: 8px;
  display: block;
}

/* --- Tablet --- */
@media only screen and (max-width: 992px) {
  #nav1 .navbar-nav > li > a {
    margin-left: 15px;
  }
}

/* --- Mobile (konsolidiert) --- */
@media (max-width: 767px) {

  /* Stabile Höhe – kein Hüpfen */
  #nav1,
  #nav1.scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* Brand: immer schwarz, kein Springen */
  #nav1 .navbar-brand,
  #nav1 .navbar-brand:hover,
  #nav1 .navbar-brand:focus,
  #nav1 .navbar-brand:active,
  #nav1.scrolled .navbar-brand {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 20px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    transform: none !important;
    transition: none !important;
  }

  /* Burger-Button */
  #nav1 .navbar-toggle {
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.70);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color 0.25s ease, border-color 0.25s ease;
  }

  #nav1 .navbar-toggle:hover,
  #nav1 .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.22) !important;
  }

  /* Burger-Linien */
  #nav1 .navbar-toggle .icon-bar {
    background-color: rgba(0, 0, 0, 0.78) !important;
    height: 2px;
    width: 22px;
    border-radius: 2px;
  }

  #nav1 .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 5px;
  }

  /* X-Animation beim Öffnen */
  #nav1 .navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  #nav1 .navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
    opacity: 0;
  }

  #nav1 .navbar-toggle:not(.collapsed) .icon-bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Dropdown-Menü als Card */
  #nav1 .navbar-collapse {
    margin-top: 10px;
    border-top: 0 !important;
    box-shadow: none !important;
  }

  #nav1 .navbar-nav {
    margin: 10px 0 12px 0;
    padding: 8px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
  }

  /* Menü-Links */
  #nav1 .navbar-nav > li > a {
    padding: 14px 14px !important;
    border-radius: 12px;
    opacity: 0.92;
    letter-spacing: 0.3px;
    transform: none !important;
  }

  #nav1 .navbar-nav > li > a:hover,
  #nav1 .navbar-nav > li > a:focus {
    background-color: rgba(0, 0, 0, 0.03) !important;
    opacity: 1;
  }

  /* Trennlinie zwischen Menüpunkten */
  #nav1 .navbar-nav > li + li > a {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Keine Transition wenn Menü offen */
  #nav1.menu-open {
    transition: none !important;
  }

  /* Unterlinie auf Mobile dezenter */
  #nav1 .navbar-nav > li > a::after {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .brand-favicon {
    height: 20px;
    width: 20px;
    margin-right: 6px;
  }
}

/* Navbar fixieren (Sicherheitsregel für Bootstrap) */
#nav1.navbar-fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
}


/**********************************
 05. Intro / Slider
**********************************/

.swiper-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* Option B: Dunkler Gradient oben – Navbar-Text bleibt auf hellem Bild lesbar */
.swiper-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.swiper-container .intro-content {
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-container .intro-content h1,
.swiper-container .intro-content p {
  color: #fff;
}

.swiper-container .intro-content h1 {
  margin-bottom: 40px;
}

.swiper-container .intro-content p {
  font-size: 22px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

/* Slide-Hintergründe */
.intro-slide-1 {
  background-image: url(../images/title.jpg);
  background-size: cover;
  background-position: center;
}

.intro-slide-2 {
  background-image: url(../images/title2.jpg);
  background-size: cover;
  background-position: center;
}

.intro-slide-3 {
  background-image: url(../images/title4.jpg);
  background-size: cover;
  background-position: center;
}

/* Ken-Burns-Effekt */
.swiper-slide {
  transition: transform 6s ease;
}

.swiper-slide-active {
  transform: scale(1.04);
}

/* --- Swiper-Pfeile: Premium, kreisförmig, weiß --- */
.swiper-button-next,
.swiper-button-prev {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Einflug-Animation */
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.swiper-button-next {
  transform: translateX(10px) scale(0.96);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 30px;
}

.swiper-button-prev {
  transform: translateX(-10px) scale(0.96);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 30px;
}

/* Sichtbar bei Hover */
.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 0.55);
  transform: translateX(0) scale(1.08);
}

/* Mobile: immer sichtbar */
@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Responsive Slider-Text */
@media only screen and (max-width: 992px) {
  .swiper-container h1 {
    font-size: 80px;
  }

  .swiper-container .intro-content p {
    width: 90%;
  }
}

@media only screen and (max-width: 768px) {
  .swiper-container h1 {
    font-size: 50px;
  }

  .swiper-container .intro-content p {
    font-size: 18px;
    width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .swiper-container .intro-content h1 {
    margin-bottom: 20px;
  }

  .swiper-container .intro-content p {
    margin-bottom: 25px;
  }
}


/**********************************
 06. Willkommen / Description
**********************************/

.description {
  background-color: #f9f9f9;
}

.description header {
  margin-bottom: 60px;
}

.description img {
  margin-left: auto;
  margin-right: auto;
}


/**********************************
 07. Leistungen / Services
**********************************/

#services {
  background: #f4f9ff;
  padding-bottom: 100px;
}

#services header {
  margin-bottom: 40px;
}

/* 2-Spalten Card-Layout */
#services .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

#services .center-block {
  float: none !important;
  margin: 0 !important;
  width: calc(50% - 18px);
  display: flex;
}

/* Glassmorphism-Cards */
#services .service1 {
  width: 100%;
  min-height: 90px;
  border-radius: 18px;
  padding: 18px 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.60) 0%,
    rgba(255, 255, 255, 0.38) 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glanz-Schimmer */
#services .service1::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.00) 55%
  );
  pointer-events: none;
}

#services .service1 h3 {
  margin: 0;
  line-height: 1.55;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(0, 0, 0, 0.88);
  text-transform: none;
}

/* Hover (nur Desktop-Maus) */
@media (hover: hover) and (pointer: fine) {
  #services .service1 {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  #services .service1:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.14);
  }
}

/* Mobile: 1 Spalte */
@media (max-width: 767px) {
  #services .center-block {
    width: 100%;
  }

  #services .service1 {
    min-height: auto;
    padding: 16px;
  }

  #services .service1 h3 {
    font-size: 16px;
  }
}


/**********************************
 08. Öffnungszeiten / Process
**********************************/

.process-line {
  background-color: #eaeaea;
  width: 100%;
  height: 4px;
}

.process-list {
  text-align: center;
}

.process-list h3 {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
}

.process-list p {
  color: #666;
}

.process-dot {
  background-color: #afcff5;
  width: 15px;
  height: 15px;
  border-radius: 15px;
  margin-top: -9px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 35px;
}

@media only screen and (max-width: 992px) {
  .process-line {
    display: none;
  }

  .process-dot {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .process-list p {
    margin-bottom: 40px;
  }
}


/**********************************
 09. Über uns / Team
**********************************/

#team header {
  margin-bottom: 90px;
}

.team1 {
  background-color: #f9f9f9;
  padding: 70px 60px 50px 60px;
  margin-bottom: 30px;
}

.team1 img,
.team1 .team-info {
  float: left;
}

.team1 img {
  margin-right: 50px;
}

.team1 h3 {
  margin-bottom: 10px;
  text-transform: none;
}

.team1 p.team-pos {
  margin-bottom: 30px;
}

.team1 p.team-description {
  color: #666;
  margin-top: 25px;
}

@media only screen and (max-width: 529px) {
  .team1 {
    text-align: center;
  }

  .team1 img,
  .team1 .team-info {
    float: none;
  }

  .team1 img {
    margin-left: auto;
    margin-right: auto;
  }

  /* Beschreibung und Liste linksbündig */
  .team1 p.team-description,
  .team1 ul,
  .team1 li {
    text-align: left !important;
  }

  .team1 ul {
    list-style-position: outside !important;
    padding-left: 22px;
    margin: 10px 0 0 0;
  }

  .team1 li {
    display: list-item;
    line-height: 1.45;
  }
}


/**********************************
 10. Aktuelles / News
**********************************/

#news {
  background-color: #d2def1;
}

#news header {
  margin-bottom: 90px;
}

#news h2,
#news h3,
#news p {
  color: #292929;
}

.news1 {
  background: linear-gradient(
    135deg,
    rgba(207, 233, 255, 0.78) 0%,
    rgba(159, 208, 255, 0.78) 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  padding: 60px;
  margin-bottom: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news1,
.news1 h3,
.news1 p,
.news1 a {
  color: #000 !important;
}

.news1 a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news1:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.news1 p.post-date {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.news1 h3 {
  font-size: 32px;
  text-transform: none;
  margin-top: 0;
  margin-bottom: 50px;
}

.news1 p.post-text {
  margin-bottom: 40px;
}


/**********************************
 11. Kontakt / Contact
**********************************/

#contact {
  background-color: #f9f9f9;
}

#contact header {
  margin-bottom: 80px;
}

#contact .form-control {
  background-color: transparent;
  border-radius: 3px;
  border: 2px solid #afcff5;
  box-shadow: none;
}

#contact input {
  height: 50px;
  margin-bottom: 30px;
}

#contact button:hover {
  background-color: #fff;
  color: #292929;
  box-shadow: 0 0 0 2px #afcff5;
}

.contact1 {
  padding-bottom: 100px;
}

.contact1 .contact-info {
  text-align: center;
  margin-bottom: 70px;
}

.contact1 .contact-info li {
  vertical-align: top;
  padding-left: 45px;
  padding-right: 45px;
  border-right: 1px solid #ddd;
}

.contact1 .contact-info li:last-child {
  border: none;
}

.contact1 h5 {
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 16px;
}

@media only screen and (max-width: 701px) {
  .contact1 .contact-info li {
    padding-left: 20px;
    padding-right: 20px;
    border: none;
  }
}

/* Mobile Kontakt-Liste */
@media (max-width: 767px) {
  #contact .contact-info ul.list-inline > li {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 22px 0;
    padding: 0;
    text-align: center;
  }

  #contact .contact-info h5 {
    margin-bottom: 6px;
  }

  #contact .contact-info a {
    display: inline-block;
  }
}


/**********************************
 12. Footer
**********************************/

footer {
  background-color: #ffffff;
  padding: 30px;
  text-align: center;
}

footer p,
footer h3,
footer h5,
footer a {
  color: #292929;
}

footer h3 {
  margin-bottom: 30px;
  font-size: 18px;
  text-transform: none;
}

footer h5 {
  margin-bottom: 30px;
}

footer p {
  font-size: 14px;
  margin-bottom: 20px;
}

footer li {
  margin-bottom: 10px;
}

p.copyright {
  color: #292929;
}

#accordion .panel,
.panel-group .panel-heading + .panel-collapse > .panel-body {
  border: none;
  box-shadow: none;
}

@media only screen and (max-width: 768px) {
  footer {
    padding-top: 30px;
  }

  footer h3,
  footer h5 {
    margin-top: 55px;
  }

  p.copyright {
    margin-top: 50px;
  }
}


/**********************************
 13. Datenschutz-Hinweis
**********************************/

.datenschutz-hinweis {
  max-width: 530px;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
  text-align: justify;
}
