/*
Theme Name: Uta Weber Pilates
Description: Child-Theme für muenchenpilates.com auf Basis von Twenty Twenty-Five.
Author: Uta Weber
Template: twentytwentyfive
Version: 1.0.0
Text Domain: uta-weber-pilates
*/

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-VariableFont.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --uw-deep: #252827;
  --uw-blue: #2f5762;
  --uw-stone: #ecece9;
  --uw-paper: #f7f7f5;
  --uw-white: #ffffff;
  --uw-line: #cfd3d1;
  --uw-error: #9f2d28;
  --uw-container: 1240px;
  --uw-hero-container: 1440px;
  --uw-gutter: 28px;
  --uw-section: 128px;
  --uw-header-offset: 96px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-22: 88px;
  --space-24: 96px;
  --space-28: 112px;
  --space-30: 120px;
  --space-32: 128px;
}

html { scroll-behavior: smooth; }

body {
  color: var(--uw-deep);
  background: var(--uw-paper);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.58;
}

body :where(button, input, select, textarea) { font-family: inherit; }

body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--uw-deep);
  outline-offset: 3px;
}

body.home main section { scroll-margin-top: var(--uw-header-offset); }

body.home .wp-site-blocks > main,
body.page .wp-site-blocks > main { margin-block-start: 0; }

/* Header */
body.home .wp-site-blocks > div:first-child {
  min-height: 6px;
  padding: 0 !important;
  background: var(--uw-blue) !important;
  color: transparent !important;
  overflow: hidden;
}

body.home header.wp-block-group {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0);
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-8);
  min-height: 80px;
  padding: 18px var(--uw-gutter) !important;
  background: color-mix(in srgb, var(--uw-paper) 94%, transparent) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--uw-deep) 12%, transparent);
}

body.home header.wp-block-group > * {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

body.home header h1 {
  color: var(--uw-blue) !important;
  font-size: 20px !important;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

body.home header > p {
  padding: 0 !important;
  color: color-mix(in srgb, var(--uw-deep) 72%, transparent);
  font-size: 15px;
  white-space: nowrap;
}

body.home header nav { justify-self: end; font-size: 15px !important; }
body.home header nav ul { gap: 26px; font-size: inherit !important; }
body.home header nav a { text-decoration: none; }
body.home header nav li:last-child a {
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--uw-deep);
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
body.home header nav li:last-child a:hover {
  color: var(--uw-paper);
  background: var(--uw-deep);
}

/* Shared content rhythm */
body.home main > section:not(:first-child) {
  padding: var(--uw-section) var(--uw-gutter) !important;
}

body.home main > section > :where(.wp-block-columns, h2, blockquote) {
  width: 100%;
  max-width: var(--uw-container) !important;
  margin-inline: auto !important;
}

body.home main h1,
body.home main h2,
body.home main h3 {
  color: var(--uw-deep);
  text-wrap: balance;
}

body.home main h2 {
  margin-top: 0;
  margin-bottom: var(--space-18);
  font-size: clamp(2.5rem, 5vw, 4.75rem) !important;
  font-weight: 300 !important;
  line-height: .98 !important;
  letter-spacing: -.03em;
}

body.home main h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
}

body.home main p { max-width: 70ch; }
body.home main .wp-block-columns { gap: var(--space-20); }
body.home main figure { margin: 0; }
body.home main img { border-radius: 0; object-fit: cover; }

/* Hero */
body.home main > section:first-child {
  min-height: 720px;
  padding: 0 !important;
  background: var(--uw-paper) !important;
}

body.home main > section:first-child > .wp-block-columns {
  max-width: var(--uw-hero-container) !important;
  min-height: 720px;
  gap: 0;
}

body.home main > section:first-child .wp-block-column:first-child {
  flex-basis: 65% !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px max(40px, 6vw) 100px;
}

body.home main > section:first-child .wp-block-column:last-child {
  flex-basis: 35% !important;
  min-height: 680px;
}

body.home main > section:first-child figure,
body.home main > section:first-child img { width: 100%; height: 100%; }

body.home main > section:first-child h1 {
  max-width: 620px;
  margin: var(--space-7) 0;
  font-size: clamp(3.4rem, 6.4vw, 6rem) !important;
  font-weight: 300 !important;
  line-height: .96 !important;
  letter-spacing: -.035em;
}

body.home main > section:first-child h1 strong { font-weight: 700; }
body.home main > section:first-child h1 + p {
  max-width: 590px;
  margin-top: 0;
  margin-bottom: var(--space-9);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem) !important;
}

body.home .wp-block-button__link {
  min-height: 52px;
  padding: 14px 26px !important;
  color: var(--uw-paper) !important;
  background: var(--uw-deep) !important;
  border: 1px solid var(--uw-deep);
  border-radius: 0 !important;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
body.home .wp-block-button__link:hover {
  color: var(--uw-deep) !important;
  background: transparent !important;
}

/* Ansatz */
body.home #ansatz { background: var(--uw-white) !important; }
body.home #ansatz > .wp-block-columns { gap: 0; }
body.home #ansatz > .wp-block-columns > .wp-block-column {
  min-height: 280px;
  padding: var(--space-9) var(--space-10) var(--space-5) 0;
  border-top: 1px solid var(--uw-deep);
}
body.home #ansatz > .wp-block-columns > .wp-block-column + .wp-block-column {
  padding-left: var(--space-10);
  border-left: 1px solid var(--uw-line);
}
body.home #ansatz h3 { margin-top: var(--space-14); }

/* Quote */
body.home main > section:nth-child(3) {
  padding-block: var(--space-28) !important;
  color: var(--uw-paper) !important;
  background: var(--uw-blue) !important;
  overflow: hidden;
}
body.home main > section:nth-child(3) blockquote {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: var(--space-18);
  border: 0;
  padding: 0;
}
body.home main > section:nth-child(3) blockquote::before {
  content: "PILATES";
  color: color-mix(in srgb, var(--uw-paper) 13%, transparent);
  font-size: clamp(7rem, 14vw, 13.75rem);
  font-weight: 700;
  line-height: .7;
  letter-spacing: -.06em;
  transform: translateX(-18%);
  white-space: nowrap;
}
body.home main > section:nth-child(3) blockquote p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem) !important;
  font-weight: 300;
  line-height: 1.1;
}
body.home main > section:nth-child(3) blockquote cite { grid-column: 2; margin-top: var(--space-6); }

/* Method, Wirkung, Training, About */
body.home #methode { background: var(--uw-white) !important; }
body.home #methode > .wp-block-columns { grid-template-columns: .9fr 1.1fr; }
body.home #wirkung { background: var(--uw-stone) !important; }
body.home #wirkung > .wp-block-columns { gap: 0; }
body.home #wirkung > .wp-block-columns > .wp-block-column {
  padding: var(--space-7) var(--space-6);
  border-top: 1px solid var(--uw-deep);
}
body.home #wirkung > .wp-block-columns > .wp-block-column:first-child { padding-left: 0; }
body.home #training { background: var(--uw-white) !important; }
body.home #training > .wp-block-columns { gap: 70px; }
body.home #training img { min-height: 390px; }
body.home #ueber-mich { background: var(--uw-stone) !important; }
body.home #ueber-mich > .wp-block-columns { gap: 90px; }
body.home #ueber-mich figure {
  padding: 18px 18px 0;
  background: color-mix(in srgb, var(--uw-deep) 10%, var(--uw-stone));
}
body.home #ueber-mich img { width: 100%; min-height: 600px; max-height: 670px; }

/* Studio */
body.home #studio { padding: 0 !important; background: var(--uw-paper) !important; }
body.home #studio > .wp-block-columns { max-width: var(--uw-hero-container) !important; min-height: 650px; gap: 0; }
body.home #studio > .wp-block-columns > .wp-block-column:first-child { flex-basis: 55% !important; }
body.home #studio > .wp-block-columns > .wp-block-column:last-child {
  flex-basis: 45% !important;
  padding: 100px max(54px, 6vw);
}
body.home #studio figure,
body.home #studio img { width: 100%; height: 100%; min-height: 650px; }
body.home #studio h2 { margin-bottom: var(--space-8); }

/* Kontaktformular */
body.home #kontakt {
  padding-block: var(--space-30) !important;
  color: var(--uw-paper) !important;
  background: var(--uw-deep) !important;
}
body.home #kontakt > .wp-block-columns { gap: var(--space-20); }
body.home #kontakt > .wp-block-columns > .wp-block-column:first-child { flex-basis: 40% !important; }
body.home #kontakt > .wp-block-columns > .wp-block-column:last-child { flex-basis: 60% !important; }
body.home #kontakt h2,
body.home #kontakt a { color: var(--uw-paper); }
body.home #kontakt h2 { margin-bottom: var(--space-7); }
body.home #kontakt .wpcf7 { max-width: 700px; }
body.home #kontakt .wpcf7 p { margin: 0 0 var(--space-6); }
body.home #kontakt .wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
body.home #kontakt .wpcf7-form-control-wrap { display: block; margin-top: var(--space-2); }
body.home #kontakt :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  color: var(--uw-deep);
  background: var(--uw-white);
  border: 1px solid var(--uw-line);
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
}
body.home #kontakt textarea { min-height: 160px; padding: 16px 18px; resize: vertical; }
body.home #kontakt :where(input, select, textarea):hover { border-color: var(--uw-blue); }
body.home #kontakt :where(input, select, textarea):focus-visible { border-color: var(--uw-paper); outline-color: var(--uw-paper); }
body.home #kontakt .wpcf7-acceptance label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: var(--space-3);
  min-height: 48px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
body.home #kontakt .wpcf7-acceptance input { width: 20px; height: 20px; margin: 2px 0 0; }
body.home #kontakt input[type="submit"] {
  min-width: 180px;
  min-height: 56px;
  padding: 14px 28px;
  color: var(--uw-deep);
  background: var(--uw-paper);
  border: 1px solid var(--uw-paper);
  border-radius: 0;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
body.home #kontakt input[type="submit"]:hover { color: var(--uw-paper); background: transparent; }
body.home #kontakt input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
body.home #kontakt .wpcf7-not-valid-tip { margin-top: var(--space-2); color: #ffd5d2; font-size: 14px; line-height: 1.4; }
body.home #kontakt .wpcf7-response-output { margin: var(--space-5) 0 0; padding: var(--space-6); border: 1px solid currentColor; }

/* Footer */
body.home footer.wp-block-group {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--space-16);
  padding: 42px var(--uw-gutter) !important;
  color: var(--uw-paper) !important;
  background: var(--uw-deep) !important;
  border-top: 1px solid color-mix(in srgb, var(--uw-paper) 18%, transparent);
}
body.home footer.wp-block-group > * { width: auto !important; max-width: none !important; margin: 0 !important; }
body.home footer nav,
body.home footer nav ul { font-size: 15px !important; }
body.home footer nav ul { gap: var(--space-6); }
body.home footer a { color: var(--uw-paper); }

/* Rechtliche Seiten */
body.page:not(.home) main { background: var(--uw-paper); }
body.page:not(.home) .wp-block-post-content {
  width: min(100% - 40px, 780px);
  margin-inline: auto;
  padding-block: var(--space-22);
}
body.page:not(.home) .wp-block-post-content h1,
body.page:not(.home) .wp-block-post-content h2,
body.page:not(.home) .wp-block-post-content h3 { color: var(--uw-deep); text-wrap: balance; }
body.page:not(.home) .wp-block-post-content h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 300; line-height: .98; }
body.page:not(.home) .wp-block-post-content h2 { margin-top: var(--space-14); font-size: 2rem; }
body.page:not(.home) .wp-block-post-content p,
body.page:not(.home) .wp-block-post-content li { max-width: 70ch; }

@media (max-width: 980px) {
  :root { --uw-section: 96px; }
  body.home header.wp-block-group { grid-template-columns: 1fr auto; }
  body.home header > p { display: none; }
  body.home header nav { grid-column: 2; }
  body.home main > section:first-child > .wp-block-columns,
  body.home #studio > .wp-block-columns { min-height: 0; }
  body.home main > section:first-child .wp-block-column:first-child { padding: 90px var(--uw-gutter); }
  body.home main > section:first-child .wp-block-column:last-child { min-height: 560px; }
  body.home main > section:nth-child(3) blockquote { grid-template-columns: 36% 64%; gap: var(--space-12); }
  body.home #ueber-mich > .wp-block-columns,
  body.home #training > .wp-block-columns,
  body.home #kontakt > .wp-block-columns { gap: var(--space-12); }
  body.home #studio > .wp-block-columns > .wp-block-column:last-child { padding: 76px var(--uw-gutter); }
}

@media (max-width: 781px) {
  body.home main .wp-block-columns { gap: var(--space-12); }
  body.home main > section:first-child .wp-block-column:first-child,
  body.home main > section:first-child .wp-block-column:last-child,
  body.home #studio > .wp-block-columns > .wp-block-column:first-child,
  body.home #studio > .wp-block-columns > .wp-block-column:last-child,
  body.home #kontakt > .wp-block-columns > .wp-block-column:first-child,
  body.home #kontakt > .wp-block-columns > .wp-block-column:last-child { flex-basis: 100% !important; }
  body.home main > section:nth-child(3) blockquote { grid-template-columns: 1fr; }
  body.home main > section:nth-child(3) blockquote::before { transform: translateX(-8%); }
  body.home main > section:nth-child(3) blockquote cite { grid-column: 1; }
  body.home #ansatz > .wp-block-columns > .wp-block-column + .wp-block-column { padding-left: 0; border-left: 0; }
  body.home #wirkung > .wp-block-columns > .wp-block-column { padding-inline: 0; }
  body.home #ueber-mich img { min-height: 500px; }
  body.home #studio figure,
  body.home #studio img { min-height: 520px; }
}

@media (max-width: 640px) {
  :root { --uw-gutter: 20px; --uw-section: 88px; }
  body { font-size: 17px; }
  body.home header.wp-block-group { min-height: 68px; padding-block: 14px !important; }
  body.home header h1 { font-size: 17px !important; }
  body.home header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 20px; background: var(--uw-paper); }
  body.home header .wp-block-navigation__responsive-container-content { padding-top: var(--space-6); }
  body.home header nav li:last-child { width: 100%; }
  body.home header nav li:last-child a { justify-content: center; width: 100%; }
  body.home main > section:first-child .wp-block-column:first-child { padding: 76px var(--uw-gutter); }
  body.home main > section:first-child .wp-block-column:last-child { min-height: 430px; }
  body.home main > section:first-child h1 { font-size: clamp(3rem, 14vw, 4.4rem) !important; }
  body.home main h2 { margin-bottom: var(--space-12); font-size: clamp(2.4rem, 11vw, 3.5rem) !important; }
  body.home main > section:nth-child(3) { padding-block: 80px !important; }
  body.home main > section:nth-child(3) blockquote::before { font-size: clamp(5rem, 27vw, 7rem); }
  body.home #ueber-mich figure { padding: 14px 14px 0; }
  body.home #ueber-mich img { min-height: 500px; }
  body.home #studio figure,
  body.home #studio img { min-height: 380px; }
  body.home #studio > .wp-block-columns > .wp-block-column:last-child { padding: 76px 24px; }
  body.home #kontakt { padding-block: 84px !important; }
  body.home #kontakt input[type="submit"] { width: 100%; }
  body.home footer.wp-block-group { grid-template-columns: 1fr; gap: var(--space-4); }
  body.home footer nav ul { align-items: flex-start; gap: var(--space-5); }
}

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