/*
Theme Name: EM-dent Onepager
Theme URI: https://em-dent.de/
Author: Codex
Description: Schlankes Onepage-Theme fuer EM-dent / Edit Mueller mit animiertem Hero, Import-Content und lokalen Markenassets.
Version: 1.0.31
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: emdent-onepager
*/

:root {
  --em-primary: #2f8f9d;
  --em-primary-dark: #186f7c;
  --em-accent: #57cbe1;
  --em-mint: #eef7f8;
  --em-ink: #24343a;
  --em-muted: #63727a;
  --em-line: #dcebed;
  --em-white: #ffffff;
  --em-shadow: 0 22px 70px rgba(26, 87, 96, 0.14);
  --em-radius: 8px;
  --em-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
}

body {
  margin: 0;
  color: var(--em-ink);
  background: var(--em-white);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

body.emdent-lock {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.em-site {
  overflow: hidden;
}

.em-header {
  position: fixed;
  z-index: 50;
  top: 12px;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(47, 143, 157, 0.08);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  overflow: visible;
  transition: box-shadow 220ms ease, background 220ms ease;
}

.em-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(30, 78, 86, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.em-header__inner {
  max-width: var(--em-max);
  min-height: 132px;
  margin: 0 auto;
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.em-logo {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 4px 0;
}

.em-logo img {
  width: min(330px, 64vw);
  max-height: 96px;
  object-fit: contain;
}

.em-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #34474d;
}

.em-nav li {
  margin: 0;
  list-style: none;
}

.em-nav a {
  text-decoration: none;
  position: relative;
}

.em-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--em-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.em-nav a:hover::after,
.em-nav a:focus-visible::after,
.em-nav a.is-active::after {
  transform: scaleX(1);
}

.em-nav a.is-active {
  color: var(--em-primary-dark);
}

.em-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius);
  background: var(--em-white);
  color: var(--em-primary-dark);
  cursor: pointer;
}

.em-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.em-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--em-primary);
  border-radius: var(--em-radius);
  background: var(--em-primary);
  color: var(--em-white);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.em-button:hover,
.em-button:focus-visible {
  transform: translateY(-2px);
  background: var(--em-primary-dark);
  box-shadow: 0 14px 32px rgba(47, 143, 157, 0.26);
}

.em-button--ghost {
  background: transparent;
  color: var(--em-primary-dark);
}

.em-button--ghost:hover,
.em-button--ghost:focus-visible {
  background: var(--em-mint);
  color: var(--em-primary-dark);
}

.em-hero {
  position: relative;
  min-height: 100vh;
  padding: 178px 28px 78px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 15% 18%, rgba(87, 203, 225, 0.34), transparent 30%),
    linear-gradient(135deg, #f7fdfe 0%, #ffffff 58%, #eaf8fa 100%);
}

.em-hero__inner {
  width: min(var(--em-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 66px;
}

.em-kicker {
  margin: 0 0 18px;
  color: var(--em-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.em-hero h1 {
  margin: 0;
  color: #173238;
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: normal;
}

.em-hero__lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: #52646b;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.em-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.em-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.em-fact {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(47, 143, 157, 0.13);
  border-radius: var(--em-radius);
  background: rgba(255, 255, 255, 0.72);
}

.em-fact strong {
  display: block;
  color: var(--em-primary-dark);
  font-size: 1.55rem;
  line-height: 1.1;
}

.em-fact span {
  display: block;
  margin-top: 6px;
  color: var(--em-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.em-hero-art {
  position: relative;
  min-height: 560px;
}

.em-orbit {
  position: absolute;
  inset: 3% 4% auto auto;
  width: min(88vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(47, 143, 157, 0.16);
  border-radius: 50%;
  animation: emSpin 18s linear infinite;
}

.em-orbit::before,
.em-orbit::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--em-accent);
  box-shadow: 0 0 0 12px rgba(87, 203, 225, 0.16);
}

.em-orbit::before {
  top: 8%;
  left: 16%;
}

.em-orbit::after {
  right: 14%;
  bottom: 11%;
}

.em-dashboard {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(100%, 470px);
  padding: 22px;
  border: 1px solid rgba(47, 143, 157, 0.14);
  border-radius: var(--em-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--em-shadow);
  backdrop-filter: blur(18px);
  animation: emFloat 5.8s ease-in-out infinite;
}

.em-dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.em-dashboard__top img {
  width: 172px;
}

.em-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e4f7fa;
  color: var(--em-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.em-progress {
  display: grid;
  gap: 13px;
}

.em-progress span {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f4;
}

.em-progress i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--em-primary), var(--em-accent));
  animation: emLoad 1.2s ease-out both;
}

.em-dental-card {
  position: absolute;
  top: 14%;
  left: 0;
  width: min(64vw, 250px);
  padding: 16px;
  border-radius: var(--em-radius);
  background: var(--em-white);
  box-shadow: 0 20px 54px rgba(25, 87, 95, 0.13);
  animation: emFloatAlt 7s ease-in-out infinite;
}

.em-dental-card img {
  width: 100%;
  border-radius: calc(var(--em-radius) - 2px);
}

.em-dental-card p {
  margin: 12px 0 0;
  color: var(--em-primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.em-scroll-cue {
  display: none;
}

.em-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(47, 143, 157, 0.2);
  border-radius: 50%;
  background: var(--em-primary);
  color: var(--em-white);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(47, 143, 157, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.em-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.em-back-top:hover,
.em-back-top:focus-visible {
  background: var(--em-primary-dark);
}

.em-cookie {
  position: fixed;
  right: 22px;
  bottom: 86px;
  left: 22px;
  z-index: 70;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(47, 143, 157, 0.2);
  border-radius: var(--em-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(22, 49, 55, 0.18);
  backdrop-filter: blur(18px);
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.em-cookie.is-visible {
  display: flex;
}

.em-cookie p {
  margin: 0;
  color: var(--em-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.em-cookie strong {
  display: block;
  margin-bottom: 4px;
  color: var(--em-ink);
}

.em-cookie__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.em-cookie .em-button {
  min-height: 42px;
  padding: 0 16px;
}

.em-cookie .em-button--ghost {
  background: var(--em-white);
}

.em-section {
  padding: 78px 28px;
  scroll-margin-top: 168px;
}

.em-anchor-alias {
  position: relative;
  top: -168px;
  display: block;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.em-page {
  min-height: 62vh;
  padding-top: 230px;
}

.em-page .em-wrap {
  max-width: 920px;
}

.em-page h1 {
  margin: 0 0 26px;
  color: #173238;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem) !important;
  line-height: 1.15 !important;
}

.em-page h2,
.em-page h3,
.em-page .wp-block-heading {
  margin: 0 0 16px;
  margin-top: 44px;
  color: #173238;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem) !important;
  line-height: 1.25 !important;
}

.em-page p,
.em-page li {
  color: var(--em-muted);
}

.em-legal-box {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid rgba(47, 143, 157, 0.14);
  border-radius: var(--em-radius);
  background: var(--em-mint);
}

.em-legal-box p {
  margin: 0;
}

.em-note {
  padding: 18px 20px;
  border-left: 4px solid var(--em-accent);
  background: #f8fcfd;
  color: var(--em-muted);
}

.em-section--soft {
  background: var(--em-mint);
}

.em-enhanced .em-section {
  position: relative;
}

.em-enhanced .em-section::before {
  content: "";
  position: absolute;
  top: 34px;
  left: max(28px, calc((100vw - var(--em-max)) / 2));
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--em-primary), var(--em-accent));
}

.em-enhanced .em-section--soft {
  background:
    linear-gradient(180deg, rgba(238, 247, 248, 0.94), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 88% 14%, rgba(87, 203, 225, 0.24), transparent 28%);
}

.em-enhanced .em-section h2 {
  color: #12333a;
}

.em-enhanced .em-section__lead {
  padding-left: 20px;
  border-left: 4px solid var(--em-accent);
}

.em-enhanced .em-card {
  border-top: 5px solid var(--em-primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 253, 254, 0.94));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.em-enhanced .em-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--em-accent);
  box-shadow: 0 24px 62px rgba(31, 89, 98, 0.15);
}

.em-enhanced .em-card__icon {
  background: linear-gradient(135deg, var(--em-primary), var(--em-accent));
  color: var(--em-white);
}

.em-enhanced .em-checks li {
  padding: 14px 16px 14px 48px;
  border: 1px solid rgba(47, 143, 157, 0.14);
  border-radius: var(--em-radius);
  background: rgba(238, 247, 248, 0.68);
}

.em-enhanced .em-checks li::before {
  left: 18px;
}

.em-enhanced .em-step {
  border-color: rgba(87, 203, 225, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(87, 203, 225, 0.08));
}

.em-enhanced .em-contact-box {
  border-top: 5px solid var(--em-accent);
}

.em-enhanced .em-contact-list > div {
  padding: 15px 16px;
  border: 1px solid rgba(47, 143, 157, 0.14);
  border-radius: var(--em-radius);
  background: #f8fcfd;
}

.em-section--dark {
  background:
    radial-gradient(circle at 12% 10%, rgba(87, 203, 225, 0.22), transparent 30%),
    linear-gradient(135deg, #1d5963 0%, #14363d 56%, #0f2b31 100%);
  color: var(--em-white);
}

.em-wrap {
  width: min(var(--em-max), 100%);
  margin: 0 auto;
}

.em-section h2 {
  max-width: 790px;
  margin: 0;
  color: #173238;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.em-section--dark h2,
.em-section--dark .em-kicker {
  color: var(--em-white);
}

.em-section--dark h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

body:not(.em-enhanced) .em-section--dark {
  background: #163137;
}

body:not(.em-enhanced) .em-section--dark h2 {
  color: var(--em-white);
  text-shadow: none;
}

body:not(.em-enhanced) .em-step {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.em-enhanced) .em-step::before {
  min-height: auto;
  padding: 0;
  display: block;
  border-radius: 0;
  background: transparent;
  color: var(--em-accent);
}

#ablauf.em-section,
.em-enhanced #ablauf.em-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(87, 203, 225, 0.24), transparent 30%),
    linear-gradient(135deg, #1f6671 0%, #17424a 54%, #102d34 100%) !important;
  color: var(--em-white) !important;
}

#ablauf.em-section h2,
#ablauf.em-section .em-kicker,
#ablauf.em-section .em-section__lead,
.em-enhanced #ablauf.em-section h2,
.em-enhanced #ablauf.em-section .em-kicker,
.em-enhanced #ablauf.em-section .em-section__lead {
  color: var(--em-white) !important;
}

#ablauf.em-section h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18) !important;
}

#ablauf .em-step,
.em-enhanced #ablauf .em-step {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(87, 203, 225, 0.09)) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(14px);
}

#ablauf .em-step::before,
.em-enhanced #ablauf .em-step::before {
  width: fit-content !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #a7edf6 !important;
}

body:not(.em-enhanced) #ablauf.em-section {
  background: #163137 !important;
}

body:not(.em-enhanced) #ablauf .em-step {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

body:not(.em-enhanced) #ablauf .em-step::before {
  min-height: auto !important;
  padding: 0 !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--em-accent) !important;
}

.em-section__lead {
  max-width: 750px;
  margin: 22px 0 0;
  color: var(--em-muted);
  font-size: 1.08rem;
}

.em-section--dark .em-section__lead {
  color: rgba(255, 255, 255, 0.74);
}

.em-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
  overflow: visible;
}

.em-portrait {
  position: relative;
}

.em-portrait::before {
  content: "";
  position: absolute;
  inset: -22px 22px 22px -22px;
  border: 1px solid var(--em-accent);
  border-radius: var(--em-radius);
}

.em-portrait img {
  position: relative;
  width: 100%;
  border-radius: var(--em-radius);
  box-shadow: var(--em-shadow);
}

.em-checks {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.em-checks li {
  position: relative;
  padding-left: 34px;
}

.em-checks li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 15px;
  height: 9px;
  border-bottom: 3px solid var(--em-primary);
  border-left: 3px solid var(--em-primary);
  transform: rotate(-45deg);
}

.em-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.em-grid--compact .em-card {
  min-height: 214px;
}

.em-card {
  min-height: 238px;
  padding: 28px;
  border: 1px solid rgba(47, 143, 157, 0.14);
  border-radius: var(--em-radius);
  background: var(--em-white);
  box-shadow: 0 16px 48px rgba(31, 89, 98, 0.08);
}

.em-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--em-radius);
  background: var(--em-mint);
  color: var(--em-primary-dark);
  font-size: 1.5rem;
}

.em-card h3 {
  margin: 22px 0 10px;
  color: #1e3d44;
  font-size: 1.2rem;
  line-height: 1.25;
}

.em-card p {
  margin: 0;
  color: var(--em-muted);
  font-size: 0.98rem;
}

.em-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
  counter-reset: process;
}

.em-info-panel {
  padding: 32px;
  border: 1px solid rgba(47, 143, 157, 0.15);
  border-radius: var(--em-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 248, 0.78));
  box-shadow: var(--em-shadow);
}

.em-info-panel h3 {
  margin: 0 0 14px;
  color: #173238;
  font-size: 1.28rem;
}

.em-info-panel p {
  margin: 0;
  color: var(--em-muted);
}

.em-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.em-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(47, 143, 157, 0.18);
  border-radius: 999px;
  background: var(--em-white);
  color: var(--em-primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.em-tag-list span:hover,
.em-tag-list span:focus-visible {
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(135deg, var(--em-primary), var(--em-accent));
  color: var(--em-white);
  box-shadow: 0 14px 30px rgba(47, 143, 157, 0.24);
}

.em-step {
  position: relative;
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--em-radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(14px);
}

.em-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 24px;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #9ee9f4;
  font-size: 0.88rem;
  font-weight: 900;
}

.em-step h3 {
  margin: 0 0 10px;
  color: var(--em-white);
  font-size: 1.05rem;
}

.em-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.em-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.em-contact-box {
  padding: 34px;
  border: 1px solid rgba(47, 143, 157, 0.16);
  border-radius: var(--em-radius);
  background: var(--em-white);
  box-shadow: var(--em-shadow);
}

.em-contact-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.em-contact-list a,
.em-contact-list span {
  display: block;
  color: var(--em-muted);
  text-decoration: none;
}

.em-contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--em-ink);
}

.em-form {
  display: grid;
  gap: 14px;
}

.em-form input,
.em-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cfe2e5;
  border-radius: var(--em-radius);
  background: #f8fcfd;
  color: var(--em-ink);
  font: inherit;
}

.em-form textarea {
  min-height: 146px;
  resize: vertical;
}

.em-form small {
  color: var(--em-muted);
}

.em-form__status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--em-radius);
  background: var(--em-mint);
  color: var(--em-primary-dark);
  font-weight: 700;
}

.em-form__status--error {
  background: #fff1f1;
  color: #9d2f2f;
}

.em-footer {
  padding: 54px 28px 30px;
  background: #f7fbfc;
  color: var(--em-muted);
}

.em-footer__inner {
  width: min(var(--em-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.em-footer img {
  width: 230px;
  margin-bottom: 18px;
}

.em-footer h3 {
  margin: 0 0 14px;
  color: var(--em-ink);
  font-size: 1rem;
}

.em-footer a {
  display: block;
  margin: 8px 0;
  color: var(--em-muted);
  text-decoration: none;
}

.em-footer__bottom {
  width: min(var(--em-max), 100%);
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--em-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.em-footer__bottom a {
  display: inline;
  margin: 0;
  color: var(--em-primary-dark);
  font-weight: 700;
}

.em-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 680ms ease, transform 680ms ease;
}

.em-scroll-reveal-enabled .em-reveal,
.em-scroll-reveal-enabled .em-section {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.em-scroll-reveal-enabled .em-hero,
.em-scroll-reveal-enabled .em-hero .em-reveal {
  opacity: 1;
  transform: translateY(0);
}

.em-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.em-scroll-reveal-enabled .em-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes emFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(-1deg);
  }
}

@keyframes emFloatAlt {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(16px) rotate(1deg);
  }
}

@keyframes emSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes emLoad {
  from {
    width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .em-menu-toggle {
    display: block;
  }

  .em-nav {
    position: fixed;
    top: 144px;
    right: 18px;
    left: 18px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--em-line);
    border-radius: var(--em-radius);
    background: var(--em-white);
    box-shadow: var(--em-shadow);
  }

  .em-nav.is-open {
    display: flex;
  }

  .em-nav .em-button {
    width: 100%;
  }

  .em-hero__inner,
  .em-split,
  .em-contact {
    grid-template-columns: 1fr;
  }

  .em-split {
    gap: 38px;
  }

  .em-hero-art {
    min-height: 430px;
  }

  .em-dental-card {
    width: min(72vw, 220px);
  }

  .em-grid,
  .em-process,
  .em-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .em-header__inner {
    min-height: 122px;
    padding: 18px 18px 16px;
    gap: 14px;
  }

  .em-logo {
    min-height: 82px;
  }

  .em-logo img {
    width: min(282px, 72vw);
    max-height: 86px;
  }

  .em-nav {
    top: 132px;
  }

  .em-hero {
    padding: 154px 18px 62px;
  }

  .em-hero h1 {
    font-size: clamp(1.68rem, 8.1vw, 2.14rem);
    line-height: 1.15;
    text-wrap: balance;
  }

  .em-hero__lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .em-button {
    width: fit-content;
    max-width: 100%;
    min-height: 52px;
    white-space: normal;
    text-align: center;
  }

  .em-hero__facts,
  .em-grid,
  .em-process,
  .em-footer__inner {
    grid-template-columns: 1fr;
  }

  .em-section {
    padding: 56px 18px;
    overflow: visible;
  }

  #ueber {
    padding-top: 70px;
  }

  #ueber .em-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  #ueber .em-split > * {
    min-width: 0;
  }

  .em-portrait {
    width: min(100%, 320px);
    max-width: calc(100vw - 52px);
    margin: 0 auto 8px;
  }

  .em-portrait::before {
    inset: -10px;
  }

  .em-portrait img {
    width: 100%;
  }

  #ueber p,
  #ueber li,
  #ueber h2 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .em-page {
    padding-top: 176px;
  }

  .em-dashboard {
    width: 94%;
    right: 3%;
  }

  .em-dashboard__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .em-scroll-cue {
    display: none;
  }

  .em-contact-box {
    padding: 24px;
  }

  .em-cookie {
    right: 14px;
    bottom: 78px;
    left: 14px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .em-cookie.is-visible {
    display: flex;
  }

  .em-cookie__actions,
  .em-cookie .em-button {
    width: 100%;
  }
}
