/*
Theme Name: Amore20 VitaBalance
Theme URI: https://www.amore20-vitabalance.de/
Author: Amore20 VitaBalance
Description: Maßgeschneidertes, responsives WordPress-Theme für Amore20 VitaBalance.
Version: 1.5.9
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: amore20-vitabalance
*/

:root {
  --paper: #f5f1f2;
  --ink: #442b31;
  --muted-wine: #8d5d68;
  --red: #d90808;
  --deep-red: #c61f0a;
  --salmon: #f1948a;
  --salmon-mid: #f5b7b3;
  --salmon-light: #f5b7b3;
  --field: #b7442f;
  --max: 1280px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Maven Pro", "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.38;
}

body.menu-open { overflow: hidden; }

.admin-bar .site-header { top: 32px; }

a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: #fff;
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  padding: 16px max(3.5vw, 24px);
  background: rgba(245, 241, 242, .97);
  backdrop-filter: blur(8px);
}

.brand {
  display: grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  width: 210px;
  color: var(--red);
  text-decoration: none;
}

.brand .custom-logo {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  width: 190px;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.brand-name {
  align-self: end;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  letter-spacing: -.8px;
}

.brand-name em { color: #f1948a; }
.brand small { color: #8d5d68; font-size: 5px; }

.site-nav { display: flex; align-items: center; }

.site-nav .menu {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  color: #d90808;
  font-size: 17px;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 1px;
  background: #b7442f;
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transition: .2s ease;
}

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

.menu-toggle { display: none; }

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: max(24px, 2vw);
  padding-left: max(24px, 2vw);
}

.hero {
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  min-height: 590px;
  padding-top: 36px;
  padding-bottom: 55px;
}

.hero-copy { max-width: 620px; }

h1, h2, h3 { margin-top: 0; font-family: var(--serif); }

.hero h1 {
  margin-bottom: 34px;
  color: var(--muted-wine);
  font-size: clamp(48px, 4.22vw, 64px);
  line-height: 1.17;
  letter-spacing: -2px;
}

.hero h1 em { font-weight: 700; }
.hero p { max-width: 590px; color: var(--muted-wine); }
.hero .region { margin: 18px 0 25px; }

.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #f5f1f2;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 1.4px;
  padding: 8px 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.wp-block-button.amore-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  border-radius: 8px;
  background: var(--red);
  color: #f5f1f2;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 1.4px;
  padding: 8px 10px;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.wp-block-button.amore-button .wp-block-button__link:hover,
.wp-block-button.amore-button .wp-block-button__link:focus-visible {
  filter: brightness(.88);
  transform: translateY(-2px);
}

.button:hover,
.button:focus-visible,
.submit-button:hover,
.submit-button:focus-visible { filter: brightness(.88); transform: translateY(-2px); }

.media-placeholder {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 300px;
  border: 2px dashed rgba(141, 93, 104, .45);
  color: var(--muted-wine);
  text-align: center;
}

.section-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image.has-image { border: 0; }
.hero-image.has-image .section-image { object-fit: contain; object-position: center bottom; }

.media-placeholder::before,
.media-placeholder::after {
  position: absolute;
  z-index: -1;
  width: 150%;
  height: 1px;
  background: rgba(141, 93, 104, .22);
  content: "";
  transform: rotate(35deg);
}

.media-placeholder::after { transform: rotate(-35deg); }
.media-placeholder span { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.media-placeholder strong { margin-top: 6px; font-family: var(--serif); font-size: 24px; }
.media-placeholder small { max-width: 260px; margin-top: 8px; }

.hero-image {
  justify-self: center;
  width: min(100%, 480px);
  min-height: 520px;
  border-bottom: 0;
}

.wp-block-image.hero-image,
.wp-block-image.consultation-image,
.wp-block-image.family-image { margin: 0; overflow: hidden; }

.wp-block-image.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center bottom;
}

.wp-block-image.consultation-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wp-block-image.family-image img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.understand {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 92px;
  align-items: center;
  min-height: 650px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.understand-copy { justify-self: end; max-width: 380px; color: var(--deep-red); }
.eyebrow { margin: 0 0 28px; font-size: 14px; font-weight: 700; }

.understand h2 {
  margin-bottom: 32px;
  font-size: clamp(36px, 3vw, 44px);
  line-height: 1.15;
}

.understand-copy > p:not(.eyebrow) { margin-bottom: 28px; }
.consultation-image { width: min(100%, 448px); aspect-ratio: 1 / 1; }

.services { border-top: 4px solid #f5b7b3; background: var(--salmon); }
.services-heading { padding: 26px 24px 30px; text-align: center; }

.services-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 370px;
  padding: 54px 28px 38px;
  text-align: center;
}

.tone-a { background: var(--salmon); }
.tone-b { background: var(--salmon-mid); }
.tone-c { background: var(--salmon-light); }
.service-card:nth-child(4) { background: var(--salmon-light); }
.service-card:nth-child(6) { background: var(--salmon); }

.service-icon { min-height: 45px; font-size: 22px; }
.service-card h3 { margin: 0; font-size: 27px; line-height: 1.15; }
.service-card p { max-width: 390px; margin: 0 auto 26px; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.service-card .button { margin-top: auto; }
.service-card .wp-block-buttons { margin-top: auto; }

.personal {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 92px;
  align-items: center;
  min-height: 810px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.family-image { justify-self: end; width: min(100%, 448px); min-height: 500px; }
.personal-copy { max-width: 540px; color: var(--deep-red); }
.personal .kicker { margin-bottom: 44px; font-size: 18px; }

.personal h2 {
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 2.1;
}

.personal ul { margin-bottom: 28px; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--salmon);
}

.contact > .wp-block-shortcode { display: contents; }

.contact-info { padding: 42px 44px 0; }
.contact-info h2 { margin-bottom: 28px; font-size: 40px; font-weight: 400; }
.contact-info a { text-decoration-thickness: 1px; }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin: 34px -44px 0;
  border: 32px solid #d90808;
  border-radius: 8px;
  background: #fff;
  color: #442b31;
  padding: 24px;
  text-align: center;
}

.map-placeholder span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #999;
  color: #fff;
}

.map-placeholder strong { font-size: 25px; font-weight: 400; }
.map-placeholder p { max-width: 480px; }

.contact-form { display: flex; flex-direction: column; padding: 34px 52px 28px; background: #f1948a; }
.contact-form label { margin: 0 0 8px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 0 0 26px;
  border: 2px solid transparent;
  border-radius: 0;
  outline: none;
  background: var(--field);
  color: #442b31;
  padding: 12px;
}

.contact-form input { height: 54px; }
.contact-form textarea { min-height: 200px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); background: #f5b7b3; }
.contact-form [aria-invalid="true"] { border-color: #680b02; }
.form-note { margin: 0 0 16px; }
.submit-button { width: 100%; background: #f24404; }
.form-status { min-height: 24px; margin: 12px 0 0; }
.form-status.success { color: #185b2c; }
.form-status.error { color: #7a0000; }

.website-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.site-footer {
  min-height: 220px;
  padding: 48px 24px 32px;
  background: var(--salmon);
  text-align: center;
}

.social-links { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--salmon);
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  z-index: 500;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 148px;
  background: rgba(255, 255, 255, .98);
  color: #442b31;
  padding: 18px max(9vw, 24px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 16px; line-height: 1.3; }

.cookie-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #595959;
  color: #fff;
}

.cookie-actions { display: flex; gap: 16px; }
.cookie-actions button { border: 0; border-radius: 8px; background: #595959; color: #fff; padding: 10px 12px; cursor: pointer; }

@media (max-width: 900px) {
  body { font-size: 16px; }

  .site-header { min-height: 118px; padding: 14px 24px; }
  .admin-bar .site-header { top: 46px; }
  .brand { width: 180px; }
  .brand-name { font-size: 16px; }

  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) { display: block; height: 3px; background: var(--red); transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 118px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 118px);
    overflow: auto;
    background: var(--paper);
    padding: 12px 24px 28px;
    box-shadow: 0 14px 20px rgba(68, 43, 49, .12);
  }

  .site-nav.open { display: flex; }
  .site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { border-bottom: 1px solid #f5b7b3; padding: 15px 4px; }
  .site-nav a::after { display: none; }

  .hero,
  .understand,
  .personal { grid-template-columns: 1fr; gap: 56px; }

  .hero { min-height: 0; padding-top: 52px; padding-bottom: 70px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(50px, 14vw, 64px); line-height: 1.15; hyphens: auto; overflow-wrap: normal; }
  .hero-image { min-height: 480px; }

  .understand { padding-top: 70px; padding-bottom: 70px; }
  .understand-copy { justify-self: start; max-width: none; }
  .consultation-image { justify-self: center; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 360px; }
  .service-card p { font-size: 22px; }

  .personal { padding-top: 70px; padding-bottom: 70px; }
  .family-image { justify-self: center; order: 2; }
  .personal-copy { max-width: none; }
  .personal h2 { line-height: 1.8; }

  .contact { grid-template-columns: 1fr; }
  .contact-info { padding: 36px 24px 0; }
  .contact-info h2 { font-size: 34px; }
  .map-placeholder { margin-right: -24px; margin-left: -24px; border-width: 20px; }
  .contact-form { padding: 34px 24px; }

  .cookie-banner { grid-template-columns: 48px 1fr; gap: 12px; padding: 16px; }
  .cookie-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
