/*
Theme Name: Physiotherapie Radestock
Author: Physiotherapie Radestock
Description: Maßgeschneidertes WordPress-Theme für die Physiotherapie Radestock in Eckartsberga.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: physiotherapie-radestock
*/

:root {
  --navy: #1f6f62;
  --navy-deep: #164f46;
  --teal: #1f6f62;
  --teal-dark: #164f46;
  --sage: #d78b45;
  --sage-dark: #b76e2f;
  --sage-soft: #f8eadc;
  --ice: #e5f3ef;
  --paper: #ffffff;
  --ink: #20302d;
  --muted: #65726f;
  --line: #dce7e4;
  --shadow: 0 18px 45px rgba(22, 79, 70, 0.12);
  --shadow-soft: 0 10px 30px rgba(22, 79, 70, 0.075);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f8f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-deep);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.container {
  width: min(calc(100% - 36px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 11px 15px;
  color: white;
  background: var(--navy);
  border-radius: 10px;
}

.skip-link:focus {
  top: 16px;
}

.site-top {
  color: white;
  background: var(--navy-deep);
  font-size: 0.9rem;
}

.site-top__inner {
  display: flex;
  justify-content: space-between;
  gap: 8px 22px;
  padding-block: 8px;
}

.site-top a {
  text-decoration: none;
}

.site-top a:hover,
.site-top a:focus-visible {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 225, 227, 0.9);
  backdrop-filter: blur(16px);
}

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

.navbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 265px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 62px;
  flex: none;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-soft);
}

.brand span,
.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.25;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--navy);
  background: var(--ice);
}

.nav-links .nav-job {
  margin-left: 5px;
  color: white;
  background: var(--sage-dark);
}

.nav-links .nav-job:hover,
.nav-links .nav-job:focus-visible,
.nav-links .nav-job.active {
  color: white;
  background: #995720;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 10px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  display: block;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
}

.job-ribbon {
  color: white;
  background: var(--teal);
}

.job-ribbon__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.job-ribbon a {
  font-weight: 800;
  text-decoration: none;
}

.job-ribbon a:hover,
.job-ribbon a:focus-visible {
  text-decoration: underline;
}

.home-hero {
  padding: 54px 0 66px;
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 139, 69, 0.18), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(31, 111, 98, 0.17), transparent 30%),
    linear-gradient(180deg, #fbfcfb 0%, #eef4f1 100%);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 34px;
  align-items: stretch;
}

.home-intro {
  padding: 18px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: var(--navy-deep);
  background: var(--ice);
  border: 1px solid #c8e3dc;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215, 139, 69, 0.18);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-intro h1 span,
.page-hero h1 span {
  color: var(--teal);
}

.contact-actions {
  display: grid;
  gap: 12px;
  margin: 28px 0 22px;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.contact-action:hover,
.contact-action:focus-visible {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.contact-action__icon,
.service-icon,
.contact-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  color: white;
  background: var(--navy);
  border-radius: 12px;
  font-weight: 900;
}

.contact-action__icon svg,
.contact-card__icon svg {
  width: 21px;
  height: 21px;
}

.contact-action strong,
.contact-action span {
  display: block;
}

.contact-action strong {
  color: var(--navy);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-action span {
  color: var(--ink);
  font-weight: 650;
}

.address-line {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.schedule-card {
  padding: 30px;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.schedule-card h2,
.schedule-card h3 {
  color: white;
}

.schedule-card .eyebrow {
  color: #c8ddd1;
}

.schedule-card > p {
  color: rgba(255, 255, 255, 0.78);
}

.schedule-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row strong {
  font-size: 0.92rem;
}

.schedule-times {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.time-pill {
  padding: 5px 9px;
  color: var(--navy-deep);
  background: white;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.time-pill--late {
  color: white;
  background: var(--sage);
}

.schedule-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  color: #eaf3ee;
  background: rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--sage);
  border-radius: 10px;
  font-size: 0.88rem;
}

.section {
  padding: 76px 0;
}

.section--white {
  background: white;
}

.section--soft {
  background: #f2f6f4;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.service-summary-grid,
.service-grid,
.team-grid,
.contact-grid,
.teaser-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.team-card,
.contact-card,
.legal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.service-card {
  min-height: 220px;
  min-width: 0;
  padding: 25px;
  overflow: hidden;
}

.service-card p,
.team-card p,
.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.service-icon {
  margin-bottom: 20px;
  background: var(--teal);
}

.service-card:nth-child(2n) .service-icon {
  background: var(--sage-dark);
}

.section-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

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

.button--primary {
  color: white;
  background: var(--navy);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--navy-deep);
}

.button--secondary {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--navy);
}

.image-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-teaser__image {
  position: relative;
  min-height: 360px;
}

.image-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-label,
.stock-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.image-teaser__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  color: white;
}

.image-teaser__copy h2,
.image-teaser__copy .eyebrow {
  color: white;
}

.image-teaser__copy p {
  color: rgba(255, 255, 255, 0.8);
}

.image-teaser__copy .button--secondary {
  align-self: flex-start;
}

.career-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 36px;
  background: var(--sage-soft);
  border: 1px solid #ccd9c8;
  border-radius: var(--radius-lg);
}

.career-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.career-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  overflow: hidden;
  padding: 66px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(215, 139, 69, 0.18), transparent 32%),
    linear-gradient(135deg, #f9fbfa, var(--ice));
}

.page-hero__inner {
  max-width: 780px;
}

.page-hero__inner--branded {
  position: relative;
  min-height: 224px;
  display: flex;
  max-width: var(--max-width);
  flex-direction: column;
  justify-content: center;
  padding-right: 260px;
}

.page-hero__brand-mark {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 190px;
  aspect-ratio: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 111, 98, 0.17);
  border-radius: 38px;
  box-shadow: 0 18px 45px rgba(22, 79, 70, 0.14);
  transform: translateY(-50%) rotate(2deg);
}

.page-hero__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 28px;
}

.page-hero h1 {
  font-size: clamp(2.65rem, 5.5vw, 5rem);
}

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

.service-grid .service-card {
  min-height: 245px;
}

.service-grid .service-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-grid .service-card p {
  font-size: 0.97rem;
  line-height: 1.58;
}

.notice {
  margin-top: 28px;
  padding: 20px 22px;
  color: var(--navy-deep);
  background: var(--sage-soft);
  border-left: 4px solid var(--sage-dark);
  border-radius: 12px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.photo-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-panel--portrait {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ice), #eef3f1);
}

.photo-panel--portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-panel--career {
  min-height: 520px;
}

.practice-gallery-section + .practice-gallery-section {
  margin-top: 58px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.practice-gallery-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.practice-gallery-heading h2 {
  margin-bottom: 9px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.practice-gallery-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.practice-gallery {
  display: grid;
  gap: 20px;
}

.practice-gallery--landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.practice-gallery--portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.practice-gallery--single {
  grid-template-columns: minmax(240px, 360px);
  justify-content: center;
}

.practice-photo {
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.practice-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ice);
}

.practice-gallery--landscape .practice-photo img {
  aspect-ratio: 1672 / 941;
}

.practice-gallery--portrait .practice-photo img {
  aspect-ratio: 941 / 1672;
}

.practice-photo figcaption {
  padding: 15px 17px 17px;
  color: var(--navy-deep);
  font-weight: 800;
  line-height: 1.35;
}

.photo-placeholder {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 32px;
  color: var(--navy-deep);
  background:
    linear-gradient(135deg, rgba(229, 243, 239, 0.96), rgba(248, 234, 220, 0.82)),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(31, 111, 98, 0.05) 16px 18px);
  border: 2px dashed rgba(31, 111, 98, 0.42);
  border-radius: inherit;
  text-align: center;
}

.photo-placeholder svg {
  width: 58px;
  height: 58px;
  margin: 0 auto 5px;
  opacity: 0.78;
}

.photo-placeholder__eyebrow,
.photo-placeholder__hint {
  display: block;
}

.photo-placeholder__eyebrow {
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-placeholder strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.photo-placeholder__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.image-teaser__image .photo-placeholder,
.photo-panel .photo-placeholder,
.gallery-slide .photo-placeholder {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.photo-placeholder--gallery {
  padding-bottom: 165px;
}

.team-groups {
  display: grid;
  gap: 48px;
}

.team-group__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.team-group__heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.team-group__heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  min-height: 172px;
  padding: 22px;
}

.team-card__avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  background: linear-gradient(145deg, var(--teal), var(--navy));
  border-radius: 15px;
  font-weight: 900;
}

.gallery-shell {
  position: relative;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.gallery-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #dce5e4;
  border-radius: 20px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  color: white;
  background: linear-gradient(90deg, rgba(10, 37, 72, 0.94), rgba(10, 37, 72, 0.66));
  border-radius: 15px;
}

.gallery-caption h2 {
  margin: 0 0 5px;
  color: white;
  font-size: 1.45rem;
}

.gallery-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.gallery-caption .stock-label {
  position: static;
  flex: none;
}

.gallery-controls {
  position: absolute;
  right: 34px;
  top: 34px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.gallery-control {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.gallery-control svg {
  width: 22px;
  height: 22px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 2px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #bdc9cb;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-dot.active {
  width: 26px;
  background: var(--teal);
  border-radius: 999px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 28px;
  align-items: start;
}

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

.contact-card {
  padding: 22px;
}

.contact-card__top {
  display: flex;
  align-items: start;
  gap: 15px;
}

.contact-card a {
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

.map-card {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(215, 139, 69, 0.28), transparent 24%),
    linear-gradient(135deg, var(--ice), #dfe9e4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 1.3rem;
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.job-copy,
.job-contact {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 29px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 900;
}

.legal-card {
  max-width: 850px;
  padding: 34px;
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 1.5rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 52px 0 22px;
  color: rgba(255, 255, 255, 0.77);
  background: var(--navy-deep);
}

.footer-logo {
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-logo a {
  display: inline-flex;
  border-radius: 36px;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.footer-logo a:hover,
.footer-logo a:focus-visible {
  transform: translateY(-3px);
}

.footer-logo__frame {
  width: clamp(170px, 16vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 36px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.19);
}

.footer-logo img {
  width: 132%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.footer-logo p {
  margin: 18px 0 0;
  color: white;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr;
  gap: 38px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: white;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-brand {
  color: white;
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  color: white;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
}

:focus-visible {
  outline: 3px solid rgba(215, 139, 69, 0.48);
  outline-offset: 3px;
}

/* Startseite nach der ursprünglichen Einseiten-Vorlage */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 46px;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 139, 69, 0.16), transparent 25%),
    radial-gradient(circle at 95% 25%, rgba(31, 111, 98, 0.19), transparent 30%),
    linear-gradient(180deg, #f9fcfb 0%, #f4f8f7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.hero-copy h1 span {
  color: var(--navy);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.hero-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding-top: 38px;
}

.quick-card {
  min-height: 115px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 35px rgba(22, 79, 70, 0.07);
}

.quick-card strong,
.quick-card span {
  display: block;
}

.quick-card strong {
  margin-bottom: 6px;
  color: var(--navy-deep);
  font-size: 0.86rem;
}

.quick-card span,
.quick-card a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.quick-card a:hover,
.quick-card a:focus-visible {
  text-decoration: underline;
}

.job-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--navy-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.job-card__brand-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 72px;
  height: 72px;
  padding: 5px;
  object-fit: contain;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.job-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.job-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #3b2816;
  background: #f4c99e;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: calc(100% - 92px);
}

.job-card h2 {
  margin: 24px 0 14px;
  color: white;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.job-card p {
  color: rgba(255, 255, 255, 0.82);
}

.job-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.job-points li {
  position: relative;
  padding-left: 27px;
}

.job-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f4c99e;
  font-weight: 900;
}

.job-card .button {
  position: relative;
  z-index: 1;
  color: var(--navy-deep);
  background: white;
}

.info-strip {
  padding: 24px 0 60px;
}

.info-panel {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.hours-table th,
.hours-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table th {
  width: 34%;
  color: var(--navy-deep);
  font-size: 0.94rem;
}

.hours-table td {
  font-weight: 650;
}

.hours-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  background: var(--ice);
  border: 1px solid #cbe2dc;
  border-radius: var(--radius-md);
}

.contact-panel h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-panel .contact-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

.schedule-card .eyebrow,
.image-teaser__copy .eyebrow {
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
  .hero-grid,
  .info-panel {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    grid-template-columns: 1fr 1fr;
    margin-top: 38px;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 46px;
  }

  .hero-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .job-card,
  .info-panel {
    padding: 22px;
  }

  .job-card__brand-mark {
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  .job-label {
    max-width: calc(100% - 70px);
  }

  .hours-table th,
  .hours-table td {
    display: block;
    width: 100%;
    padding-inline: 4px;
  }

  .hours-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .hours-table td {
    padding-top: 2px;
  }
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 18px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-links .nav-job {
    margin: 4px 0 0;
    text-align: center;
  }

  .home-hero__grid,
  .contact-layout,
  .job-layout {
    grid-template-columns: 1fr;
  }

  .home-intro {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .site-top__inner {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .site-top__inner span {
    width: 100%;
  }

  .service-summary-grid,
  .service-grid,
  .team-grid,
  .practice-gallery--portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-teaser,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .image-teaser__image {
    min-height: 310px;
  }

  .gallery-stage {
    min-height: 480px;
  }

  .career-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero__inner--branded {
    min-height: 190px;
    padding-right: 160px;
  }

  .page-hero__brand-mark {
    right: 18px;
    width: 122px;
    padding: 8px;
    border-radius: 27px;
  }

  .page-hero__brand-mark img {
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .page-hero__inner--branded {
    min-height: 0;
    padding-right: 0;
  }

  .page-hero__brand-mark {
    position: relative;
    top: auto;
    right: auto;
    width: 108px;
    margin-top: 22px;
    padding: 7px;
    align-self: flex-start;
    border-radius: 24px;
    transform: none;
  }

  .footer-logo {
    margin-bottom: 34px;
    padding-bottom: 34px;
  }

  .footer-logo__frame {
    width: 165px;
    border-radius: 30px;
  }

  .site-top__inner {
    font-size: 0.8rem;
  }

  .site-top__inner a:last-of-type {
    display: none;
  }

  .navbar {
    min-height: 76px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .brand strong {
    max-width: 190px;
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  .job-ribbon__inner {
    padding: 8px 0;
    flex-wrap: wrap;
  }

  .home-hero,
  .page-hero {
    padding: 42px 0 50px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.25rem);
  }

  .schedule-card,
  .job-copy,
  .job-contact,
  .legal-card {
    padding: 22px;
    border-radius: 20px;
  }

  .schedule-row {
    grid-template-columns: 92px 1fr;
  }

  .service-summary-grid,
  .service-grid,
  .team-grid,
  .practice-gallery--landscape,
  .practice-gallery--portrait {
    grid-template-columns: 1fr;
  }

  .practice-gallery-section + .practice-gallery-section {
    margin-top: 42px;
    padding-top: 38px;
  }

  .section {
    padding: 58px 0;
  }

  .image-teaser__copy {
    padding: 28px;
  }

  .gallery-shell {
    padding: 9px;
  }

  .gallery-stage {
    min-height: 420px;
    border-radius: 15px;
  }

  .gallery-caption {
    right: 13px;
    bottom: 13px;
    left: 13px;
    display: block;
    padding: 16px;
  }

  .gallery-caption .stock-label {
    display: inline-block;
    margin-top: 12px;
  }

  .gallery-controls {
    top: 22px;
    right: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

/* Moderne, interaktive Gestaltung */
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 6% 14%, rgba(215, 139, 69, 0.08), transparent 22rem),
    #f4f8f7;
}

.site-header {
  transition: box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  border-color: rgba(31, 111, 98, 0.16);
  box-shadow: 0 12px 34px rgba(22, 79, 70, 0.1);
}

.brand img,
.page-hero__brand-mark,
.footer-logo__frame {
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.42s ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(-3deg) scale(1.055);
  box-shadow: 0 13px 30px rgba(22, 79, 70, 0.16);
}

.nav-links a:not(.nav-job) {
  position: relative;
}

.nav-links a:not(.nav-job)::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:not(.nav-job):hover::after,
.nav-links a:not(.nav-job):focus-visible::after,
.nav-links a:not(.nav-job).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.page-hero {
  isolation: isolate;
}

.hero::before,
.hero::after,
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  top: -115px;
  left: -80px;
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(215, 139, 69, 0.15), transparent 70%);
  animation: ambient-float 13s ease-in-out infinite alternate;
}

.hero::after {
  right: -120px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(31, 111, 98, 0.15), transparent 70%);
  animation: ambient-float 16s ease-in-out -5s infinite alternate-reverse;
}

.page-hero::before {
  top: -105px;
  right: 7%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(215, 139, 69, 0.15), transparent 70%);
  animation: ambient-float 15s ease-in-out infinite alternate;
}

@keyframes ambient-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, 18px, 0) scale(1.09); }
}

.job-card,
.info-panel,
.image-teaser,
.schedule-card,
.job-copy,
.job-contact,
.map-card {
  border: 1px solid rgba(31, 111, 98, 0.12);
  box-shadow: 0 22px 64px rgba(22, 79, 70, 0.12);
}

.job-card {
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.36s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 72px rgba(22, 79, 70, 0.19);
}

.quick-card,
.service-card,
.team-card,
.contact-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.quick-card:hover,
.service-card:hover,
.team-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 111, 98, 0.28);
  box-shadow: 0 20px 48px rgba(22, 79, 70, 0.12);
}

.service-card::after,
.team-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 112px;
  height: 112px;
  pointer-events: none;
  background: url("assets/praxis-icon.png") center / contain no-repeat;
  opacity: 0.045;
  transform: rotate(-7deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover::after,
.team-card:hover::after,
.contact-card:hover::after {
  opacity: 0.085;
  transform: rotate(0deg) scale(1.05);
}

.service-card > *,
.team-card > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

.button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 9px 22px rgba(22, 79, 70, 0.08);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.36) 46%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.58s ease;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%);
}

.page-hero__brand-mark:hover {
  transform: translateY(-50%) rotate(-2deg) scale(1.04);
  box-shadow: 0 25px 65px rgba(22, 79, 70, 0.2);
}

.media-crossfade {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 10%, rgba(215, 139, 69, 0.24), transparent 34%),
    linear-gradient(145deg, var(--ice), #dce9e5);
  border: 1px solid rgba(31, 111, 98, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 58px rgba(22, 79, 70, 0.15);
}

.media-crossfade > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.055);
  transition: opacity 1s ease, transform 6.8s ease;
}

.media-crossfade > img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.media-crossfade--teaser {
  min-height: 390px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.media-crossfade--portrait {
  min-height: 560px;
  aspect-ratio: 3 / 4;
}

.media-crossfade--portrait > img {
  object-position: center;
}

.media-crossfade--career {
  min-height: 610px;
  margin-top: 26px;
}

.media-crossfade--landscape {
  min-height: 360px;
  aspect-ratio: 16 / 9;
}

.media-crossfade__brand {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  padding: 5px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(10, 37, 32, 0.2);
  backdrop-filter: blur(10px);
}

.media-crossfade__brand img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: none;
}

.practice-experience {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 18%, rgba(31, 111, 98, 0.07), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f7faf9 100%);
}

.practice-gallery-section + .practice-gallery-section {
  margin-top: 78px;
  padding-top: 70px;
  border-top: 1px solid rgba(31, 111, 98, 0.13);
}

.practice-gallery-heading {
  position: relative;
  z-index: 2;
  max-width: 790px;
  margin-bottom: 28px;
}

.photo-flow {
  position: relative;
  margin-inline: -10px;
  padding: 25px 10px 14px;
  isolation: isolate;
  background:
    radial-gradient(circle at 90% 5%, rgba(215, 139, 69, 0.17), transparent 22rem),
    linear-gradient(145deg, rgba(229, 243, 239, 0.82), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(31, 111, 98, 0.12);
  border-radius: 32px;
  box-shadow: 0 24px 68px rgba(22, 79, 70, 0.11);
}

.photo-flow--warm {
  background:
    radial-gradient(circle at 90% 5%, rgba(215, 139, 69, 0.22), transparent 24rem),
    linear-gradient(145deg, rgba(248, 234, 220, 0.66), rgba(255, 255, 255, 0.97));
}

.photo-flow__brand {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 5;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  padding: 4px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 111, 98, 0.12);
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(22, 79, 70, 0.16);
  backdrop-filter: blur(10px);
}

.photo-flow__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-flow__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 12px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.photo-flow__viewport::-webkit-scrollbar {
  display: none;
}

.photo-flow__track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px max(18px, calc((100vw - min(100vw - 56px, var(--max-width))) / 2));
  outline: none;
}

.photo-flow__item {
  position: relative;
  flex: none;
  overflow: hidden;
  padding: 0;
  background: #dce9e5;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(22, 79, 70, 0.13);
  cursor: zoom-in;
  scroll-snap-align: center;
  opacity: 0.68;
  transform: scale(0.955);
  transition: opacity 0.34s ease, transform 0.34s ease, box-shadow 0.34s ease;
}

.photo-flow__item--wide {
  width: min(68vw, 720px);
  aspect-ratio: 16 / 9;
}

.photo-flow__item--portrait {
  width: min(32vw, 360px);
  aspect-ratio: 9 / 15;
}

.photo-flow--portrait .photo-flow__item--portrait {
  width: min(34vw, 390px);
}

.photo-flow__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.photo-flow__item.is-current,
.photo-flow__item:hover,
.photo-flow__item:focus-visible {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 24px 54px rgba(22, 79, 70, 0.2);
}

.photo-flow__item:hover img,
.photo-flow__item:focus-visible img {
  transform: scale(1.035);
}

.photo-flow__item:focus-visible {
  outline: 4px solid rgba(215, 139, 69, 0.68);
  outline-offset: 4px;
}

.photo-flow__controls {
  display: grid;
  grid-template-columns: 46px minmax(120px, 260px) auto 46px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 5px 20px 4px;
}

.photo-flow__control {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(22, 79, 70, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.photo-flow__control:hover,
.photo-flow__control:focus-visible {
  background: var(--navy-deep);
  transform: scale(1.08);
}

.photo-flow__control svg {
  width: 21px;
  height: 21px;
}

.photo-flow__progress {
  height: 4px;
  overflow: hidden;
  background: rgba(31, 111, 98, 0.14);
  border-radius: 999px;
}

.photo-flow__progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.photo-flow__count {
  min-width: 54px;
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.map-card--visual {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 0;
  padding: 14px;
  overflow: hidden;
  background: white;
  text-align: left;
}

.map-card__media {
  width: 100%;
  min-height: 350px;
  border-radius: 20px;
}

.map-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px;
}

.map-card__content strong {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.photo-lightbox[hidden] {
  display: none;
}

.lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(8, 27, 24, 0.89);
  opacity: 0;
  backdrop-filter: blur(16px);
  transition: opacity 0.22s ease;
}

.photo-lightbox.is-open {
  opacity: 1;
}

.photo-lightbox__surface {
  position: relative;
  width: min(1180px, 94vw);
  height: min(850px, 88vh);
  display: grid;
  place-items: center;
}

.photo-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: scale(0.975);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.photo-lightbox__image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.photo-lightbox__close,
.photo-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.93);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.photo-lightbox__close {
  top: -4px;
  right: -4px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.photo-lightbox__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2.35rem;
  transform: translateY(-50%);
}

.photo-lightbox__nav--previous {
  left: -12px;
}

.photo-lightbox__nav--next {
  right: -12px;
}

.photo-lightbox__count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  padding: 7px 12px;
  color: white;
  background: rgba(10, 37, 32, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.brand-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 6px;
  overflow: visible;
  background: white;
  border: 1px solid rgba(31, 111, 98, 0.2);
  border-radius: 21px;
  box-shadow: 0 18px 44px rgba(22, 79, 70, 0.23);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.86);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.brand-fab:hover,
.brand-fab:focus-visible {
  transform: translateY(-4px) rotate(-2deg) scale(1.04);
}

.brand-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
}

.brand-fab span {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--sage-dark);
  border: 3px solid white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.js .reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease var(--reveal-delay, 0ms), transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

.js .reveal-ready.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .map-card--visual {
    grid-template-columns: 1fr;
  }

  .map-card__content {
    padding: 32px 24px 26px;
  }

  .photo-flow__item--wide {
    width: min(78vw, 680px);
  }

  .photo-flow__item--portrait,
  .photo-flow--portrait .photo-flow__item--portrait {
    width: min(43vw, 360px);
  }
}

@media (max-width: 820px) {
  .media-crossfade--portrait {
    width: min(100%, 520px);
    min-height: 580px;
    justify-self: center;
  }

  .page-hero__brand-mark:hover {
    transform: translateY(-50%) rotate(-2deg) scale(1.04);
  }

  .photo-flow {
    border-radius: 26px;
  }
}

@media (max-width: 560px) {
  .page-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.4rem);
    line-height: 1.03;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .page-hero__brand-mark:hover {
    transform: scale(1.04);
  }

  .media-crossfade--teaser {
    min-height: 290px;
  }

  .media-crossfade--portrait,
  .media-crossfade--career {
    width: 100%;
    min-height: 510px;
    aspect-ratio: 3 / 4;
  }

  .media-crossfade--career {
    min-height: 0;
  }

  .media-crossfade--landscape,
  .map-card__media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .media-crossfade__brand {
    right: 12px;
    bottom: 12px;
    width: 57px;
    height: 57px;
    border-radius: 16px;
  }

  .practice-gallery-section + .practice-gallery-section {
    margin-top: 54px;
    padding-top: 48px;
  }

  .photo-flow {
    margin-inline: -4px;
    padding-top: 18px;
    border-radius: 22px;
  }

  .photo-flow__brand {
    top: 13px;
    right: 15px;
    width: 49px;
    height: 49px;
    border-radius: 14px;
  }

  .photo-flow__track {
    gap: 13px;
    padding-inline: 8px;
  }

  .photo-flow__item--wide {
    width: calc(100vw - 54px);
  }

  .photo-flow__item--portrait,
  .photo-flow--portrait .photo-flow__item--portrait {
    width: min(76vw, 310px);
  }

  .photo-flow__item {
    border-radius: 18px;
  }

  .photo-flow__controls {
    grid-template-columns: 42px minmax(72px, 1fr) auto 42px;
    gap: 9px;
    padding-inline: 12px;
  }

  .photo-flow__control {
    width: 42px;
    height: 42px;
  }

  .photo-lightbox {
    padding: 14px;
  }

  .photo-lightbox__surface {
    width: 100%;
    height: 88vh;
  }

  .photo-lightbox__close {
    top: 2px;
    right: 2px;
  }

  .photo-lightbox__nav {
    top: auto;
    bottom: 7px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .photo-lightbox__nav--previous {
    left: 2px;
  }

  .photo-lightbox__nav--next {
    right: 2px;
  }

  .brand-fab {
    right: 14px;
    bottom: 14px;
    width: 59px;
    height: 59px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .page-hero::before {
    animation: none;
  }

  .js .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
