/*
Theme Name: Sachsen Dental Terminplaner 2026
Theme URI: https://mundscan24.de/
Description: Theme für die Firma Sachsen Dental
Author: Tempus Webdesign
Author URI: https://tempus-webdesign.de
Version: 3.0
*/

/* =====================
   CSS Custom Properties
   ===================== */
:root {
  --color-primary: #ae2369;
  --color-primary-dark: #8c1c54;
  --color-primary-light: #d42e7f;
  --color-text: #2d2d2d;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-light: #f7f7f8;
  --color-bg-header: #f5f4f4;
  --color-border: #e0e0e0;
  --color-border-light: #eee;
  --color-green: #007948;
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* =====================
   Reset & Base
   ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a:link, a:visited {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-light); }
.clr, .clearfix { clear: both }
p, li { word-wrap: break-word }
h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
h2 { font-size: 1.6em; margin-bottom: 0.5em; }
p { line-height: 1.8; margin-bottom: 0.5em; color: var(--color-text-light); }

/* =====================
   Bilder
   ===================== */
img { height: auto; max-width: 100%; }
.alignleft { float: left; margin: 0 10px 10px 0 }
.alignright { float: right; margin: 0 0 10px 10px }
.alignnone { float: left; }
.size-full { width: 100%; height: auto }
.wp-image-95 { max-width: 250px }

/* =====================
   Allgemein / Layout
   ===================== */
.wrapper { float: left; width: 100% }
.one, .two, .three { float: left; width: 100%; position: relative }
.four { width: 50%; float: left; overflow: hidden; }
.four img { transition: transform 0.4s ease; }
.four:hover img { transform: scale(1.03); }
.breadcrumb {
  margin: 12px 0;
  font-size: 0.8em;
  color: var(--color-text-light);
}
.copyright {
  font-size: 0.85em;
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
  color: var(--color-text-light);
}
.liste { color: var(--color-primary); }
.liste li {
  background: url(assets/images/punkt.png) no-repeat left center;
  padding: 10px 30px;
  list-style-type: none;
  transition: padding-left var(--transition);
}
.liste li:hover { padding-left: 36px; }
.bookly-btn-submit { color: var(--color-primary) !important; }

/* =====================
   Header
   ===================== */
.header-container {
  position: relative;
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border-light);
}
.header { position: relative }
.sitename { padding: 2%; }
.sitename img { transition: opacity var(--transition); }
.sitename img:hover { opacity: 0.85; }
.junge {
  position: relative;
  right: 10px;
  bottom: 0;
  max-width: 275px;
  float: right;
}
.balken {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =====================
   Navigation (Bootstrap 5)
   ===================== */
.navbar { width: 100%; padding: 0; }
.navbar-toggler {
  border-color: var(--color-border);
  padding: 8px 12px;
  margin: 8px auto;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(174, 35, 105, 0.15); }
.navbar-nav { text-align: center; width: 100%; }
.navbar-nav .menu-item a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition);
  border-bottom: 2px solid transparent;
}
.navbar-nav .menu-item a:hover {
  color: var(--color-primary);
}
.navbar-nav .current_page_item a,
.navbar-nav .current-menu-item a {
  color: var(--color-primary);
  font-weight: 600;
}
.sub-menu, .navbar .children { display: none; }

/* =====================
   Main Content
   ===================== */
.main-container {
  background: url(assets/images/bg-main.jpg) no-repeat center center fixed;
  background-size: cover;
  padding: 3%;
}
.article-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 2em;
  box-shadow: var(--shadow-md);
}
.main-title {
  font-size: 1.4em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

/* =====================
   Kontakt / Formulare
   ===================== */
.wpcf7-form-control-wrap { float: left; width: 100%; margin: 5px 0 }
input, textarea, select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-family: var(--font-family);
  font-size: 0.9em;
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(174, 35, 105, 0.1);
}
input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 0;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
input[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.wpcf7-response-output { float: left; width: 100% }
.wpcf7 img { width: 20px }
textarea { min-height: 215px; resize: vertical; }

/* =====================
   Terminkalender
   ===================== */
td { text-align: center }
.appointments-list table td { color: #fff }
.ab-custom-field-row { float: left; width: 100% }

/* =====================
   Angebotsformular
   ===================== */
.upload, .wpcf7-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}
.upload:hover, .wpcf7-submit:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.wpcf7-submit { width: 50%; padding: 1% 0 }
.titel, .feldt { float: left; width: 100% }
.kasten { float: left; width: 100%; text-align: center }
textarea, input, select { width: 100%; font-size: 0.85em; padding: 12px; margin: 0.15em 0 }
.wpcf7-mail-sent-ok { clear: both }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 15px; }
.tabelle span.wpcf7-form-control-wrap { float: left; width: 5.1%; margin-right: 1% }
.tabelle.line-bottom { padding-bottom: 1%; border-bottom: 1px solid var(--color-green) }
.tabelle.line-top { padding-top: 1% }
.wpcf7-form-control { float: left; width: 100% }
.tabelle .andersartig-21, .tabelle .gleichartig-21, .tabelle .regelfall-21, .tabelle .befund-21, .tabelle .text-21, .text-31, .tabelle .befund-31, .tabelle .regelfall-31, .tabelle .gleichartig-31, .tabelle .andersartig-31 { border-left: 1px solid var(--color-green); padding-left: 1%; width: 6.1% !important }
.pruefung { max-width: 50px; float: left }
.datenschutzpruefung { border-top: 1px solid var(--color-border) }
.datenschutz-text { float: left; padding: 5px; width: calc(100% - 50px); }
.wpcf7-form-control.wpcf7-textarea.bemerkung-zahnersatz { height: 260px }
.wpcf7-form-control.wpcf7-textarea.bemerkung-op { height: 200px }
.ffl-form { width: 300px }
#ffl-label-username, .ffl-form-table-cell-left, .ffl-close-popup-link { color: var(--color-green) }
.upload { color: #fff; width: 100% }
.time { float: left; width: 15% }
.bookly-box { float: left; width: 100% }

/* =====================
   Footer – Content Area (above footer)
   ===================== */
.footer-content-area {
  padding: 2%;
  background: var(--color-bg-light);
}

/* =====================
   Footer
   ===================== */
.site-footer {
  font-family: 'DM Sans', var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0;
}

/* Accent bar */
.footer-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-primary-light));
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

/* Brand column */
.footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
}
.footer-logo-link {
  display: inline-block;
}
.footer-tagline {
  font-size: 0.92em;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Contact links */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-link,
.footer-contact-link:link,
.footer-contact-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-size: 0.92em;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact-link:hover {
  color: var(--color-primary-dark);
}
.footer-contact-link svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Navigation column */
.footer-heading {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li {
  margin-bottom: 18px;
}
.footer-nav-list li a {
  color: var(--color-text);
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav-list li a:hover {
  color: var(--color-primary);
}

/* CTA Box */
.footer-cta-box {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-border-light);
}
.footer-cta-title {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-cta-box p {
  font-size: 0.92em;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', var(--font-family);
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.footer-cta-btn:link,
.footer-cta-btn:visited {
  color: #fff !important;
}
.footer-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: #fff !important;
}

/* Divider */
.footer-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
  clear: both;
}

/* Bottom bar */
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.85em;
  color: var(--color-text-light);
  margin: 0;
}
.footer-copy a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-copy a:hover {
  color: var(--color-primary);
}
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-legal-list li + li {
  border-left: 1px solid var(--color-border);
  padding-left: 8px;
}
.footer-legal-list li a {
  font-size: 0.85em;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-list li a:hover {
  color: var(--color-primary);
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  cursor: pointer;
  padding: 10px;
  display: none;
  z-index: 9999;
  background: var(--color-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
#back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
#back-to-top img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Footer responsive */
@media only screen and (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-cta {
    grid-column: 1 / -1;
  }
}
@media only screen and (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 28px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-list {
    justify-content: center;
  }
}

/* =====================
   600px Breakpoint
   ===================== */
@media only screen and (min-width: 600px) {
  .two, .four { width: 50%; padding: 1% }
  .header { min-height: 360px }
  .sitename { max-width: 350px }
  .junge { margin-top: -100px }

  .balken {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .navbar-nav { flex-direction: row; justify-content: center; }
  .navbar-nav .menu-item a {
    color: var(--color-primary);
    border-bottom: 2px solid transparent;
  }
  .navbar-nav .menu-item a:hover {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary-dark);
  }
  .navbar-nav .current_page_item a,
  .navbar-nav .current-menu-item a {
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary-dark);
  }
  .navbar-nav .menu-item + .menu-item { border-left: 1px solid var(--color-border-light); }

  [data-id="16913"] { width: 50%; padding: 0 1% 0 0 }
  [data-id="76095"] { width: 50%; padding: 0 0 0 1% }
}

/* =====================
   650px Breakpoint
   ===================== */
@media only screen and (min-width: 650px) {
  .junge { position: absolute }
}

/* =====================
   700px Breakpoint
   ===================== */
@media only screen and (min-width: 700px) {
  .four { width: 25% }
  .page-id-63 .your-name, .page-id-63 .praxis, .page-id-63 .your-email, .page-id-63 .telefon, .page-id-63 .email { width: 50% }
  .page-id-63 .your-name, .page-id-63 .your-email { padding: 0 1% 0 0 }
  .page-id-63 .praxis, .page-id-63 .telefon { padding: 0 0 0 1% }
  .titel { width: 20% }
  .feldt { width: 80% }
  span.wpcf7-list-item { width: 23%; float: left; }
}

/* =====================
   980px Breakpoint
   ===================== */
@media only screen and (min-width: 980px) {
  .wrapper { max-width: 1200px; margin: 0 auto; float: none }
  .three { width: 33.3%; padding: 1% }
  .four { width: 25% }
  .sitename { max-width: 600px }
}

/* =====================
   Borlabs Cookie Fix
   ===================== */
#BorlabsCookieBox {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  transform: none !important;
}

#BorlabsCookieBox.borlabsCookieBoxBottomMiddle,
#BorlabsCookieBox.bottom-middle,
#BorlabsCookieBox[data-position*="middle"] {
  left: 50% !important;
  right: auto !important;
  margin-left: 0 !important;
  transform: translateX(-50%) !important;
}
