/* ========== Variablen ========== */

:root {
  
  --theme-night:#1f4e46;

  --theme-dark: #367b70;
  
  --theme-dusky: #6bada2;

  --theme-medium:#e0f2f1;
  
  --theme-light: #f8fdfc;

  --accent-lila: #9155a7;

}



/* ========== SCHRIFTSTIL ========== */



/* Allgemeiner Fließtext */


body, p, li {
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.6;
}



p {
  margin-top: 0;
  margin-bottom: auto; /* z.B. ca. 8px Abstand */
}



a {
  color: inherit;              /* übernimmt die Textfarbe vom Elternelement */
  text-decoration: none;  
  margin-top:0.5rem;     /* entfernt die Unterstreichung */
}



a:hover {
  text-decoration: underline;  /* optional: Unterstreichung beim Hover */
}



/* Überschriften */

h1 {
  font-weight: 200; 
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

h2 {
  font-weight: 300; 
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color:var(--accent-lila)
}

h3 {
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

h4 {
  font-weight: 400;
  letter-spacing: 0.4px;
  margin-bottom: 0.3rem;
}


/* ========== GRUNDLAYOUT & STRUKTUR ========== */
html {
  min-height: 100vh;
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  background-color: var(--theme-light);
  color: #444;
  display: flex;
  flex-direction: column;
}

.accent {
  color: var(--accent-lila);
  text-align: center;
}


main {
  flex: 1 0 auto; /* Hauptinhalt füllt den verfügbaren Platz */
  min-height: 600px;
}

header {
  background: #fff;
  padding: 0.5rem 1rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-bottom: 1px solid #ddd;
}


header h1{
  color: var(--accent-lila); 
  font-weight:300; 
  font-size: 1.5rem; 
  letter-spacing: -0.0px;
  margin: 0;
}



/* =============================== */
/* =====  INDEXSEITE       ======= */
/* =============================== */

/* NAVBAR */

.nav-link {
  font-size: 0.8rem;
  text-decoration: none !important;
}

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


/* Aktiver Menüpunkt */

.nav-link.active {
  color: var(--accent-lila) !important;
}

.navbar-brand {
  text-decoration: none !important;
  color: inherit;
}

.navbar-brand * {
  text-decoration: none !important;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: grey;
  margin-top: 0.2rem;
}

.brand-subtitle p {
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

/* Logo */
.logo-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  height: 60px;
}

.hero {
  text-align: center;
  padding: 2rem;
}



/* ========== Brand-Namen/Text / Top Zeile========== */
.arzt-info-box {
  background-color: #eee;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: right;
}

.arzt-info-header{
  font-size: 0.7rem;
}

.arzt-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0.2rem 1rem;
  justify-content: end;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: left;
}

.arzt-grid .titel {
  color: #888;
}

.subtitle-text {
  display: block;
}

.subtitle-names {
  display: none;
}

/* Info*/

.info {
  text-align: center;
  margin: 2rem;
}
/* Scroll ANCHOR*/
#pageTop {
  position: relative;
  top: 0px; /* Höhe der Navbar */
  height: 0;
  pointer-events: none;
}
/* ==========  FOOTER ========== */

footer {
  background-color: var(--theme-dark);
  display: flex;
  color:white;
  justify-content: space-between;
  padding: 1rem;
  flex-wrap: wrap;
  flex-shrink:0;
  font-size: 0.9rem;
}

footer *{
  color:inherit!important;
}

footer .zeiten{
  font-weight: 300;
  font-size: 1rem;
}


footer a {
  display: inline;
  margin-right: 1rem;
}

footer .bottom{
  font-size: 0.7rem;
  width: 100%;
  text-align: center;
  color: inherit;
  padding: 0;

}


/* ====================== */
/* =====  STARTSEITE  ==== */
/* ====================== */



/* CAROUSEL*/



.slider-container {
  position: relative;
  margin: auto;
}



.carousel-inner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}



.carousel-control-prev,
.carousel-control-next {
  z-index: 20; /* Pfeile in den Vordergrund */
  width: 5%; /* optional: enger als Standard (default ist 15%) */
}

.carousel-control-prev {
  left: 0 !important; /* direkt am linken Rand */
}

.carousel-control-next {
  right: 0 !important; /* direkt am rechten Rand */
}



/* NEWS*/

.news-section {
  margin: 0;
  display: flex;
}



.news-left {
  flex: 1;
  background-color: var(--theme-dusky);
}

.news-left a{
  display: inline-block;
  margin-top: auto;
  color: var(--theme-dark);
  background-color: var(--theme-light);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
}

.news-right {
  flex: 2;
}

/* TILES */

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -85%);
  z-index: 10;
  width: 100%;
  padding: 0 1rem;
}



.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffffee;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  flex: 1 1 250px;
  max-width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}



.tile img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.8rem;
}



.tile h2 {
  font-size: 1.1rem;
  font-weight:400;
  color: var(--theme-dark);
}



.tile a {
  display: inline-block;
  color: white;
  background-color: var(--theme-dusky);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
}

/* ====== Willkommens-Banner ====== */
.welcome-section {
  background: var(--theme-medium, #e0f2f1); /* sanftes Grün, passend zum Farbschema */
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 16px rgba(54,123,112,0.07); /* sanfter Grünton im Schatten */
  border-radius: 1.2rem;
}
.welcome-section .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.welcome-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.welcome-section h3 {
  color: var(--accent-lila);
  font-weight: 500;
  margin-bottom: 1rem;
}
.welcome-section p {
  font-size: 1.1rem;
  color: var(--theme-night, #1f4e46); /* dunkles Grün für Text */
}
@media (max-width: 768px) {
  .welcome-section .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .welcome-icon {
    margin-bottom: 1rem;
  }
}


/* ====================== */
/* =====  PRAXIS  ======= */
/* ====================== */
.praxis-motto-wrapper p{
  margin-bottom:1.5rem;
}
/* Praxisprofil */
.profil-header{
  margin-bottom:2rem;
}
.icon-bg {
  background-color: var(--theme-dark);
  width: 80px;
  height: 80px;
}

.icon-white {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1); /* Weiß einfärben */
}

/*  Ärzte */
.arzt-container p{
  font-size: 0.8rem;
}


.arzt-container .row.g-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.img-doctor {
  width: 100%;
  max-width: 250px;             /* maximale Breite */
  aspect-ratio: 4 / 5;          /* Verhältnis Breite:Höhe */
  object-fit: cover;
  object-position: top;
  border-radius: inherit;
  margin: 0 auto 1rem;          /* zentriert, mit Abstand unten */
  display: block;
}

.card-b-theme{
  border: 1px solid #e0f2f1;
  box-shadow: 0 2px 12px rgba(54,123,112,0.07);
  transition: box-shadow 0.2s;
  border-radius:1rem;
}


/*  Helferinnen */
.img-assistant {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
}

.praxis-top-bild{
  height: 400px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 5/4;
}

/* Leistungen */

.card-b-theme:hover {
  box-shadow: 0 4px 24px rgba(54,123,112,0.13);
}

.leistung-card {
  background-color: var(--theme-light);

}
.leistung-icon-bg {
  background: var(--theme-dark);
  width: 80px;
  height: 80px;
}
.leistung-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}
.leistung-list {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  padding-left: 0;
}
.leistung-list li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.7em;
}
.leistung-check {
  color: var(--theme-dark);
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}
@media (max-width: 991px) {
  .leistung-card {
    margin-bottom: 2rem;
  }
}
@media (max-width: 600px) {
  .leistung-icon-bg {
    width: 60px;
    height: 60px;
  }
  .leistung-icon {
    width: 30px;
    height: 30px;
  }
  .leistung-card {
    padding: 1.2rem;
  }
}


/* ====================== */
/* =====  NEWS  =========== */
/* ====================== */

.news-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem 0 0 1rem;
  max-height: 250px;
}

.object-fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.read-more-btn {
  align-self: flex-start;
  position: relative;
  z-index: 10;
}

.news-text {
  text-align: justify;
}



/* =============================== */
/* =====  ONLINE-SERVICES  ======= */
/* =============================== */
.service-container {
  padding:2rem;
  max-width: 800px;
  margin: auto;
}
.service-box {
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

/* Termin */
.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  font-size: 1rem;
  margin-bottom: 1em;
  background: #f8fdfc;
  padding: 0.75em 1em;
  border-radius: 6px;
  border: 1px solid #e0f2f1;
  transition: background 0.2s;
}
.custom-checkbox-label:hover {
  background: #e0f2f1;
}
.custom-checkbox {
  width: 1.3em;
  height: 1.3em;
  margin-top: 0.15em;
  accent-color: var(--theme-dark, #367b70);
}
#terminHinweis {
  margin-bottom: 1em;
  font-size: 1.05em;
  background: #f3f3fa;
  padding: 0.7em 1em;
  border-radius: 6px;
  border: 1px solid #e0f2f1;
}
#iframeWrapper {
  margin-top: 1.5em;
}

@media (max-width: 600px) {
  .service-container{
    padding:0.5rem;
  }
  .service-box{
    padding:1rem;
  }
  .custom-checkbox-label {
    font-size: 0.97rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4em;
    padding: 0.7em 0.7em;
  }
  .custom-checkbox {
    width: 1.5em;
    height: 1.5em;
  }
  #terminHinweis {
    font-size: 0.98em;
    padding: 0.6em 0.6em;
  }
  .iframe-wrapper {
    width: 100%;
    margin-left: 0;
    transform: none;
    border-radius: 0;
    padding: 0;
  }
  .iframe-wrapper iframe {
    border-radius: 0;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .custom-checkbox-label {
    font-size: 0.93rem;
    padding: 0.5em 0.3em;
  }
}


/* Einheitliche Gestaltung für Zustell- und Apotheken-Buttons */
button.btn-zustellart,
button.btn-apotheke {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

/* Hinweis-Styling */
.warning-note {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  font-weight: bold;
}

.form-hinweis {
  display: block;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.form-fehler {
  color: red;
  font-weight: bold;
  margin-bottom: 1rem;
}

sup.text-danger {
  font-size: 1.5rem;
  top:.2rem;
  line-height: 1;
}

button.mt-3:hover {
  color: var(--accent-lila);
}

form .form-control {
  margin-bottom: 0.75rem; /* statt 1.5rem oder mt-3 */
}

form label {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

form textarea.form-control {
  min-height: 120px; /* eine Zeile höher als Standard (~90px) */
  resize: vertical; /* erlaubt Größenänderung nach unten */
}

.table.inherit-theme {
  --bs-table-bg: inherit;
  background-color: inherit;
}


/*===== Kontakt-Seite ======= */
.map-preview {
  background: url('img/gmaps.png') center/cover no-repeat;
  filter: grayscale(30%) brightness(85%) contrast(90%);
  z-index: 10;
}

.show-map-btn {
  cursor: pointer;
  pointer-events: auto;
}

#gmapContainer {
  z-index: 1;
}



.notfall-box {
  background: #ffeaea !important;
  border: 1.5px solid #ffb3b3 !important;
  color: #a94442 !important;
  box-shadow: 0 2px 8px rgba(255,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  margin-top: 0.2em;
  min-height: 120px;
}
.notfall-box .notfall-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #d90429;
}
.notfall-number{
  margin-top:1rem;
}
.bg-light-green {
  background: #eafaf1 !important;
  border-left: 4px solid #6bbf7b;
}
.patienten-box {
  font-size: 1.08rem;
}

@media (max-width: 767px) {
  .notfall-box { margin-bottom: 1rem; }
}



.news-section.border-top {
  border-top: 2px solid var(--accent-lila);
  margin-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 322px) {
  header .container-fluid {
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: flex-start;
  }

}

@media (max-width: 371px) {
  .subtitle-names {
    font-size: 0.6rem;
  }
}


@media (max-width: 700px) {
    .arzt-info-header,
  .arzt-info-box {
    display: none;
  }
  
  .subtitle-text {
    display: none !important;
  }

  .subtitle-names {
    display: block!important;
  }

  .navbar-brand {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .navbar-brand h1 {
    font-size: 1.2rem;
  }

  .navbar-brand p {
    white-space: normal !important;
    word-break: break-word;
  }



  .news-section {
    flex-direction: column;
  }

  .news-left,
  .news-right {
    width: 100%;
  }

}

/* Korrektur für Bild und Text Newsblog */
@media (max-width: 768px) {
  .news-image-wrapper {
    aspect-ratio: 2 / 1;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    max-height: 200px;
  }

  .col-md-8 {
    padding-top: 1rem;
  }

  /* === Fix for Firefox mobile sticky navbar bug === 
  html, body {
    height: auto !important;
    min-height: 0 !important;
  }*/
  body {
    /*display: block !important;*/
    padding-top: 80px; /* Höhe der Navbar, ggf. anpassen */
  }
  .navbar.sticky-top {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1050 !important;
  }
}


@media (max-width: 820px) {

  .carousel-inner img {
    height: 200px;
  }

  .tiles {
    position: static;
    transform: none;
    margin: 2rem auto;
    padding: 0;
  }

}

/* =============================== */
/* =====  SONSTIGE ELEMENTE       ======= */
/* =============================== */
.iframe-spinner-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iframe-wrapper { position: relative; }

/* Route-Button auf Map */
.gmap-route-link {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  z-index: 20;
}


/* =============================== */
/* =====  FORMULARE        ======= */
/* =============================== */
input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
input.error, textarea.error, select.error {
  border-color: red;
}
button {
  background-color: var(--theme-dusky);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  margin: 0.5rem 0;
}
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.hidden {
  display: none;
}
label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
textarea::placeholder {
  color: #888;
}
.confirmation {
  background-color: var(--theme-medium);
  border-left: 4px solid var(--theme-dusky);
  padding: 1rem;
  margin-top: 1rem;
}

/*Honigfeld*/
.mobileblock {
  position: absolute;
  top: -1091px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirmation, .warning-note {
  scroll-margin-top: 150px; /* Höhe des Headers */
}
