/*
Theme Name: Estel Clean
Theme URI: https://hautarzt-dr-estel.de/
Author: Webdesign in Gera
Description: Sicher neu erstelltes Theme im vertrauten Erscheinungsbild der Hautarztpraxis.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: estel-clean
*/

:root {
  --green: #23861e;
  --green-dark: #176313;
  --orange: #ff4e00;
  --orange-light: #fc7f48;
  --charcoal: #272825;
  --ink: #4b4b4b;
  --muted: #777973;
  --line: #d7dace;
  --paper: #fff;
  --content: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--green);
  text-underline-offset: .17em;
}

a:hover,
a:focus {
  color: var(--green-dark);
}

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

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: #fff;
  background: #000;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.header-top {
  display: flex;
  align-items: center;
  min-height: 106px;
  padding-block: 15px;
}

.brand {
  display: inline-block;
  text-decoration: none;
}

.brand img {
  width: 629px;
}

.nav-wrap {
  padding: 0;
  border-radius: 5px 5px 0 0;
  background: #050505;
}

.nav-inner {
  min-height: 44px;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-menu {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu li {
  display: flex;
}

.primary-menu li:last-child {
  margin-left: auto;
}

.primary-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
  color: #fff;
  background: #242424;
}

.primary-menu .current-menu-item>a,
.primary-menu .current_page_item>a {
  color: #fff;
  background: var(--orange);
}

.slider-back {
  width: 100%;
  background: linear-gradient(to bottom, var(--charcoal) 0%, #050505 89%, #fff 89%, #fff 100%);
}

.legacy-slider {
  display: grid;
  grid-template-columns: minmax(0, 74.468%) minmax(0, 25.532%);
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
  background: var(--green);
}

.legacy-slider-media {
  min-width: 0;
  background: #ddd;
}

.legacy-slider-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #fff;
  background: var(--green);
}

.opening-hours {
  margin: 20px 3px 0;
  color: #3e3e3e;
  background: #fff;
}

.opening-heading {
  position: relative;
  min-height: 36px;
  padding: 7px 8px 6px 52px;
  background: #e6e9db;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.clock-icon {
  position: absolute;
  z-index: 1;
  top: -18px;
  left: 12px;
  width: 46px;
  height: 46px;
  border: 7px solid var(--orange);
  border-radius: 50%;
  background: #e6e9db;
}

.clock-icon::before,
.clock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  border-radius: 2px;
  background: #31322f;
  transform-origin: 50% 100%;
}

.clock-icon::before {
  height: 11px;
  transform: translate(-50%, -100%);
}

.clock-icon::after {
  height: 9px;
  transform: translate(-50%, -100%) rotate(90deg);
}

.opening-row {
  display: grid;
  grid-template-columns: 35% 65%;
  border-bottom: 1px solid #e6e9db;
  font-size: 12px;
}

.opening-row strong,
.opening-row span {
  padding: 9px 8px;
}

.opening-row strong {
  font-weight: 400;
}

.opening-row span {
  border-left: 1px solid #e6e9db;
  text-align: center;
}

.institute-address {
  padding: 30px 12px 26px;
  border-top: 1px dotted #e1e0e0;
  font-size: 13px;
  line-height: 1.62;
}

.panel-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 9px 10px;
  color: #fff;
  text-decoration: none;
}

.panel-contact:hover,
.panel-contact:focus {
  color: #fff;
  background: rgba(0, 0, 0, .1);
}

.panel-contact img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.panel-contact span {
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
}

.panel-contact strong {
  margin-right: 4px;
  color: #050505;
  font-size: 12px;
  text-transform: uppercase;
}

.panel-contact-mail {
  padding-top: 5px;
}

.panel-contact-mail span {
  display: flex;
  flex-direction: column;
  white-space: normal;
}

.panel-contact-mail small {
  color: #fff;
  font-size: 11px;
}

.slider-foot {
  grid-column: 1 / -1;
  height: 10px;
  background: #050505;
}

.page-intro {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 245px;
  align-items: center;
  gap: 18px;
  min-height: 98px;
  padding-block: 18px;
}

.page-intro-icon {
  display: flex;
  justify-content: center;
}

.page-intro-icon img {
  width: 52px;
  height: 51px;
}

.page-intro-title h1 {
  margin: 0;
  color: #585a55;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.page-intro-title h1 strong {
  color: #101010;
}

.page-intro-action {
  text-align: center;
}

.contact-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.contact-button:hover,
.contact-button:focus,
.button:hover,
.button:focus {
  color: #fff;
  background: var(--orange-light);
}

.header-divider {
  width: 100%;
  height: 15px;
  background: #91938a;
}

.content-area {
  padding: 34px 0 48px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
}

.content-layout.has-sidebar {
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  align-items: start;
}

.entry-content> :first-child {
  margin-top: 0;
}

.entry-content> :last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--green);
  line-height: 1.25;
}

.entry-content h2 {
  margin-top: 1.65em;
  font-size: 24px;
}

.entry-content h3 {
  margin-top: 1.45em;
  font-size: 20px;
}

.entry-content h4 {
  margin-top: 1.3em;
  font-size: 17px;
}

.entry-content h6 {
  font-size: 14px;
}

.entry-content blockquote {
  margin: 25px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--green);
  background: #f1f3ec;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 9px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
}

.estel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 28px;
}

.estel-row .estel-row {
  margin-bottom: 0;
}

.estel-col {
  flex: 1 1 100%;
  min-width: 0;
}

.estel-col-3 {
  flex-basis: calc(25% - 20px);
}

.estel-col-4 {
  flex-basis: calc(33.333% - 18px);
}

.estel-col-6 {
  flex-basis: calc(50% - 13px);
}

.estel-col-8 {
  flex-basis: calc(66.666% - 13px);
}

.estel-col-9 {
  flex-basis: calc(75% - 8px);
}

.estel-text> :first-child {
  margin-top: 0;
}

.estel-text> :last-child {
  margin-bottom: 0;
}

.estel-gap {
  height: 18px;
}

.estel-image {
  margin: 0 0 17px;
  overflow: hidden;
  background: #f1f1f1;
}

.estel-image img {
  width: 100%;
}

.estel-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 25px 0;
}

.estel-gallery figure {
  margin: 0;
}

.front-content {
  padding-top: 28px;
}

.front-content .estel-row:first-child {
  gap: 0;
  align-items: stretch;
}

.front-content .estel-row:first-child .estel-col-3 {
  flex: 0 0 25%;
  padding: 0 20px;
  border-right: 1px solid #bfc1bb;
  background: #fff;
}

.front-content .estel-row:first-child .estel-col-3:first-child {
  padding-left: 0;
}

.front-content .estel-row:first-child .estel-col-3:last-child {
  padding-right: 0;
  border-right: 0;
}

.front-content .estel-row:first-child .estel-image {
  aspect-ratio: 1 / 1;
}

.front-content .estel-row:first-child .estel-image img {
  height: 100%;
  object-fit: cover;
}

.front-content .estel-row:first-child h4 {
  margin: 0 0 11px;
  font-size: 16px;
}

.front-content .estel-row:first-child p {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.55;
}

.services-nav {
  position: sticky;
  top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  background: #f3f4ef;
}

.services-nav h2 {
  margin: 0 0 13px;
  font-size: 17px;
}

.services-nav details {
  border-top: 1px solid var(--line);
}

.services-nav summary {
  padding: 10px 0;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.services-nav ul {
  margin: 0 0 11px;
  padding-left: 18px;
}

.services-nav li {
  margin: 5px 0;
}

.services-nav a {
  font-size: 13px;
}

.timeline {
  position: relative;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 39px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 0 0 24px;
}

.timeline strong {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  align-self: start;
  min-height: 36px;
  border-radius: 20px;
  color: #fff;
  background: var(--green);
}

.timeline span {
  padding-top: 5px;
}

.map-card {
  padding: 22px;
  background: #eef1e8;
}

.map-card p {
  margin-top: 0;
}

.contact-form {
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 17px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.form-field input:not([type="checkbox"]),
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #aeb1aa;
  border-radius: 3px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 165px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(35, 134, 30, .18);
  border-color: var(--green);
}

.form-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.form-consent input {
  margin-top: 5px;
}

.form-notice {
  padding: 13px 15px;
}

.form-notice.success {
  color: #123e25;
  background: #e3f4e8;
}

.form-notice.error {
  color: #721c24;
  background: #f9e3e5;
}

.contact-form button {
  background: var(--orange);
}

.contact-form button:hover,
.contact-form button:focus {
  background: var(--orange-light);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
}

.site-footer {
  margin-top: 0;
  color: #d5d5d5;
  background: var(--charcoal);
  border-top: 15px solid #91938a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 38px 0;
}

.site-footer h2 {
  margin: 0 0 11px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(36, 105, 41, .55);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  box-shadow: 0 1px 0 #407d4a;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
}

.site-footer a {
  color: #fff;
}

.footer-menu {
  margin: 0;
  padding-left: 19px;
}

.footer-menu li {
  padding: 7px 0;
  border-bottom: 1px solid #555751;
}

.footer-bottom {
  padding: 11px 0;
  border-top: 1px solid #555751;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 940px) {
  .primary-menu a {
    padding-inline: 15px;
  }

  .legacy-slider {
    grid-template-columns: minmax(0, 70%) minmax(0, 30%);
  }

  .institute-address {
    padding-block: 19px;
  }

  .panel-contact {
    min-height: 62px;
    padding-block: 5px;
  }

  .page-intro {
    grid-template-columns: 65px minmax(0, 1fr) 220px;
  }

  .page-intro-title h1 {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 26px), var(--content));
  }

  .header-top {
    min-height: 88px;
  }

  .nav-wrap {
    border-radius: 0;
  }

  .nav-inner {
    padding: 0 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    padding-bottom: 7px;
  }

  .primary-menu.is-open {
    display: flex;
  }

  .primary-menu li,
  .primary-menu li:last-child {
    display: block;
    margin-left: 0;
  }

  .primary-menu a {
    min-height: 41px;
    padding-inline: 11px;
  }

  .legacy-slider {
    grid-template-columns: 1fr;
  }

  .legacy-slider-media img {
    height: auto;
    object-fit: contain;
  }

  .practice-panel {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
  }

  .opening-hours {
    grid-row: 1 / span 2;
  }

  .panel-contact {
    min-height: 66px;
  }

  .slider-foot {
    grid-column: 1 / -1;
  }

  .page-intro {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .page-intro-action {
    grid-column: 1 / -1;
  }

  .contact-button {
    min-height: 44px;
  }

  .content-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .services-nav {
    position: static;
  }

  .front-content .estel-row:first-child .estel-col-3 {
    flex-basis: 50%;
    padding: 0 16px 24px;
  }

  .front-content .estel-row:first-child .estel-col-3:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .front-content .estel-row:first-child .estel-col-3:nth-child(3) {
    padding-left: 0;
  }

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

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .header-top {
    min-height: 76px;
  }

  .practice-panel {
    display: flex;
  }

  .opening-hours {
    margin-right: 3px;
  }

  .page-intro {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .page-intro-title h1 {
    font-size: 17px;
  }

  .front-content .estel-row:first-child .estel-col-3 {
    flex-basis: 100%;
    padding: 0 0 24px;
    border-right: 0;
  }

  .estel-col-3,
  .estel-col-4,
  .estel-col-6,
  .estel-col-8,
  .estel-col-9 {
    flex-basis: 100%;
  }

  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 32px;
  }

  .timeline li {
    grid-template-columns: 64px 1fr;
    gap: 13px;
  }
}