/*
  site.css — Custom styles for Meike Behrends therapy website.
  Loaded after main.css (the Stellar template base).
*/

/* ============================================================
   Global body — strip template background image
   ============================================================ */
body {
  background-image: none !important;
  background-attachment: scroll !important;
  background-size: auto !important;
  background-position: top left !important;
  font-family:
    "Inter",
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-weight: 300;
  line-height: 1.75;
  color: #4a4a4a;
}

/* ============================================================
   Typography — avoid stretched word spacing (justify)
   ============================================================ */
p.content {
  text-align: left;
}

/* ============================================================
   Header hero — full-width photo behind the title
   Uses assets/background1.png
   ============================================================ */
#header.alt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh !important;
  min-height: 100svh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Photo sharp on top; light wash only in the last band */
#header.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #f4f1eb;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 74%,
      rgba(252, 250, 247, 0.18) 90%,
      rgba(248, 246, 242, 0.48) 100%
    ),
    url("../background1.png");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    center,
    center center;
  transition: transform 8s ease-out;
}

/* Subtle zoom on load when is-preload is removed */
body:not(.is-preload) #header.alt::before {
  transform: scale(1.08);
}

#header.alt > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Navigation — language switcher
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(142, 155, 142, 0.08);
  padding: 0 4px;
  border-radius: 20px;
  border: 1px solid rgba(142, 155, 142, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-switcher:hover {
  background: rgba(142, 155, 142, 0.12);
  border-color: rgba(142, 155, 142, 0.3);
}

.lang-switcher__btn {
  min-width: auto;
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 12px !important;
  height: auto !important;
  width: auto !important;
  cursor: pointer;
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.lang-switcher__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #5f5144;
}

.lang-switcher__icon {
  display: block;
  line-height: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.lang-switcher svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   Navigation & Mobile Menu
   ============================================================ */

/* The Burger Button / Title Bar (Mobile Only) */
#titleBar {
  display: none;
}

@media screen and (max-width: 980px) {
  #titleBar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
    line-height: 3.5rem;
    background: #fcfbf9;
    background: rgba(252, 250, 249, 0.98);
    backdrop-filter: blur(12px);
    z-index: 10000;
    border-bottom: 1px solid rgba(142, 155, 142, 0.1);
  }

  /* Hamburger Toggle */
  #titleBar .toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 4rem;
    height: 100%;
    text-decoration: none;
    border: 0;
    cursor: pointer;
  }

  #titleBar .toggle::before {
    content: "\f0c9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.25rem;
    color: #5f5144;
    display: block;
    text-align: center;
  }

  /* Mobile Title */
  #titleBar .title {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2d2820;
    padding-left: 2rem; /* offset the hamburger */
  }

  /* Completely hide the desktop nav bar on tablets/mobile */
  #nav {
    display: none !important;
  }
}

/* Side Panel (The Menu) */
#navPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 18rem;
  max-width: 80%;
  height: 100%;
  z-index: 10001;
  background: #fcfbf9;
  padding: 4rem 2rem;
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
}

body.navPanel-visible #navPanel {
  transform: translateX(0);
}

/* Panel Menu Links */
#navPanel .link {
  display: block;
  padding: 1.25rem 0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f5144;
  border-bottom: 1px solid rgba(142, 155, 142, 0.08);
  transition: all 0.3s ease;
}

#navPanel .link:hover,
#navPanel .link.active {
  color: #8e9b8e;
  padding-left: 0.5rem;
}

/* Mobile Language Switcher (inside panel) */
#navPanel .nav-lang {
  padding-top: 2rem;
}

#navPanel .lang-switcher {
  justify-content: flex-start;
  width: fit-content;
}

/* Overlay Shadow */
body::after {
  content: "";
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(45, 40, 32, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.navPanel-visible::after {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop Pinning (Keep for Wide Screens) */
@media screen and (min-width: 981px) {
  #nav {
    padding-right: 4rem;
  }

  #nav.alt {
    padding-right: 4rem !important;
  }

  #nav ul li.nav-lang {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #fffbe8;
  color: #333;
  padding: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ============================================================
   Modern Polish — Glassmorphism & Staggered Headers
   ============================================================ */

/* Frosted glass effect for sticky nav */
#nav.alt {
  background-color: rgba(255, 252, 247, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Staggered load animations for Header */
#header.alt h1 {
  animation: fadeInDown 1.2s ease forwards;
}

#header.alt p {
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.4s forwards;
}

#header.alt .actions {
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.8s forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Language Switch Transition
   ============================================================ */

/* The fade class is applied to the main content during language switch */
.lang-changing {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#main,
#header {
  transition: opacity 0.4s ease-in-out;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99999;
  outline: 2px solid #8a7356;
}

/* Guard against accidental horizontal scrolling */
html,
body {
  overflow-x: hidden;
}

/* ============================================================
   Typography — hero & section headings
   ============================================================ */

/* Intro lead sentence (first line in the intro block) */
.intro-lead {
  display: block;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #2d2820;
  margin: 0 0 0.65rem 0;
}

.intro-lead strong {
  font-weight: 900;
}

/* Intro paragraphs: match body typography used elsewhere */
#intro .intro-spotlight .content p {
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #5f5144;
  margin: 0 0 1.5rem 0;
}

#intro .intro-bio p {
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #5f5144;
}

#intro .intro-spotlight {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 4rem;
}

#intro .intro-spotlight .content {
  flex: 1.2;
}

#intro .intro-spotlight .image {
  flex: 0.8;
  max-width: 400px;
}

#intro .intro-spotlight .image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#intro .intro-work {
  width: 100%;
}

/* Extra breathing room before "My work is / Meine Arbeit ist" */
#intro .intro-work p.intro-section-title {
  margin-top: 5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8e9b8e; /* Sage green accent */
  position: relative;
}

#intro .intro-work p.intro-section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #ccd5cc;
  margin: 1.5rem auto 0;
}

.work-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}

.pillar {
  text-align: center;
}

.pillar-icon {
  font-size: 2.25rem;
  color: #8e9b8e;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.pillar strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: #2d2820;
}

.pillar p {
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #5f5144;
  text-align: left;
}

@media screen and (max-width: 980px) {
  #intro .intro-work {
    text-align: center;
  }
  .work-pillars {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .pillar p {
    text-align: center;
  }
}

@media screen and (max-width: 980px) {
  #intro .intro-spotlight {
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

/* Make the "headings" inside the intro block match section titles */
#intro .intro-spotlight .content p > strong {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: inherit; /* Reset from 1.05em */
  line-height: inherit;
  letter-spacing: 0;
  color: #2d2820 !important;
}

#intro .intro-spotlight .content p > strong::after {
  display: none;
}

/* Service-section "headings" (Topics, Dauer & Honorar, etc.) */
.service-split p > strong,
.price-note p > strong {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Hero title: Cormorant Garamond for an editorial feel */
#header h1 {
  /* Match the intro lead typography */
  font-family: inherit !important;
  font-weight: 800;
  font-feature-settings: normal;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: #2d2820 !important;
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(255, 255, 255, 1),
    0 1px 10px rgba(255, 255, 255, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

#header.alt h1 {
  font-size: clamp(2.95rem, 6.2vw, 4.1rem);
  font-weight: 500;
}

/* Subtitle line: match hero + intro typography */
#header p {
  font-family: inherit !important;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.8vw, 2.35rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #4a4036 !important;
  margin-top: 0.6rem !important;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(255, 255, 255, 1),
    0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Section titles */
#main header.major h2 {
  font-family: inherit;
  font-weight: 300;
  font-feature-settings:
    "kern" 1,
    "liga" 1;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #2d2820 !important;
}

/* ============================================================
   Main Content
   ============================================================ */

/* Constrain content while keeping sections full-bleed backgrounds */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

/* Larger screens: a bit wider spacing */
@media screen and (min-width: 1200px) {
  .main-content {
    max-width: 1400px;
    padding: 3rem 1.5rem;
  }
}

/* Small screens: reduce padding */
@media screen and (max-width: 480px) {
  .main-content {
    padding: 1.25rem 1rem;
  }
}

/* ============================================================
   Service Sections Polish
   ============================================================ */

/* Section background variations */
#second {
  background-color: #faf9f6; /* Very subtle warm gray/cream */
}

.service-split {
  display: flex;
  align-items: center;
  gap: 5rem;
  text-align: left;
  margin-top: 3rem;
  padding: 2rem 0;
}

.service-split .content {
  flex: 1.2;
}

.service-split .service-card {
  flex: 0.8;
}

/* Alternating layout for variety */
#second .service-split {
  flex-direction: row-reverse;
}

/* Content styling inside service sections */
.service-split .content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #5f5144;
}

.service-split .content strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #2d2820;
  letter-spacing: -0.01em;
}

/* Custom list styling */
.service-split .content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.service-split .content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-split .content ul li::before {
  content: "→"; /* More modern than a bullet */
  position: absolute;
  left: 0;
  color: #8e9b8e;
  font-weight: bold;
}

/* Price/Duration Highlight Area (Removed from service descriptions but kept for potential future use) */
.price-info {
  background: rgba(142, 155, 142, 0.08);
  border-left: 4px solid #8e9b8e;
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 12px 12px 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: #2d2820;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.02);
}

.price-info strong {
  margin: 0 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8e9b8e !important;
}

/* ============================================================
   Prices Section Grid
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  perspective: 1000px;
}

.price-card {
  background: #ffffff;
  padding: 4rem 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(142, 155, 142, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(92, 71, 46, 0.1);
  border-color: rgba(142, 155, 142, 0.3);
}

.price-card:hover::after {
  opacity: 1;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
  color: #8e9b8e;
  font-weight: 700;
  opacity: 0.9;
}

.price-card__value {
  font-family: inherit;
  font-size: 2.5rem;
  font-weight: 200;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-card__value::after {
  content: "";
  display: block;
  width: 25px;
  height: 1px;
  background: #ccd5cc;
  margin: 1.5rem 0;
}

.price-card__description {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  max-width: 90%;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
}

.price-note-container {
  margin-top: 4rem;
}

.price-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(142, 155, 142, 0.05);
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #5f5144;
  text-align: center;
  border: 1px dashed rgba(142, 155, 142, 0.3);
  position: relative;
}

.price-note::before {
  content: "i";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #8e9b8e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
  font-style: italic;
  font-weight: bold;
}

.price-note-vat {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #7a7067;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ============================================================
   About Us Section
   ============================================================ */
.about-me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: left;
}

.about-me-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5f5144;
}

.about-me-text .cta-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2820;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.about-me-text p {
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(142, 155, 142, 0.15);
  padding-top: 3rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  transition: opacity 0.3s ease;
}

.contact-card__icon {
  font-size: 1.1rem;
  color: #8e9b8e;
  margin-top: 0.2rem;
  opacity: 0.8;
}

.contact-card__body h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
  color: #8e9b8e;
}

.contact-card__body p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #5f5144;
  font-weight: 300;
}

.contact-card__body a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 155, 142, 0.2);
  transition: all 0.3s ease;
}

.contact-card__body a:hover {
  border-bottom-color: #8e9b8e;
  color: #2d2820;
}

@media screen and (max-width: 736px) {
  .about-me-text {
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Image Frame & Polish */
.service-card__photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card__photo:hover {
  transform: translateY(-5px) scale(1.02);
}

.service-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.service-card__photo:hover img {
  transform: scale(1.05);
}

@media screen and (max-width: 980px) {
  .service-split,
  #second .service-split {
    flex-direction: column !important;
    gap: 3rem;
    text-align: center;
  }

  .service-split .content ul li {
    padding-left: 0;
    text-align: center;
  }

  .service-split .content ul li::before {
    display: none;
  }

  .service-split .content p {
    text-align: center;
  }
}

/* Prevent overflow of images inside content */
.main-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Opt-out: make a particular block truly full-bleed */
.main-content.full-bleed {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Introduction section — therapist portrait
   (swap images/therapist.jpg for your own photo)
   ============================================================ */
#intro .intro-spotlight {
  display: flex;
  align-items: center; /* Center image vertically relative to text */
  gap: 4rem;
  margin-bottom: 4rem;
}

#intro .intro-spotlight .image img {
  width: 16em;
  height: 16em;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 980px) {
  #intro .intro-spotlight {
    flex-direction: column-reverse;
    align-items: center; /* Center image on mobile */
    text-align: center;
    gap: 2rem;
  }
}

@media screen and (max-width: 736px) {
  #intro .intro-spotlight .image img {
    width: 12em;
    height: 12em;
  }
}

/* ============================================================
   Services — two-column split layout
   ============================================================ */
.service-split {
  display: grid;
  /* Give text more room; keep photo column narrower */
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.75fr);
  gap: 2.5rem;
  /* Center image vertically next to text */
  align-items: center;
  text-align: left;
  margin-top: 1rem;
}

.service-split .content {
  margin: 0;
}

.service-card {
  display: block;
  padding: 0;
  border-radius: 1.5rem;
  background: transparent !important;
  border: none;
  box-shadow: 0 18px 40px rgba(92, 71, 46, 0.12);
  min-height: 0;
  overflow: hidden;
  max-width: 420px;
  justify-self: end;
  align-self: start;
}

.service-card__photo {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  /* Add border and radius back */
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Remove the tinted/white-looking base under the image */
  background: transparent;
}

.service-card__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.25rem; /* Slightly smaller than container to show border */
}

/* ============================================================
   Supervision Section Specifics
   ============================================================ */
#supervision .service-split {
  align-items: center;
}

#supervision .service-split .content {
  padding: 0; /* Vertical breathing room */
}

#supervision .service-split .content p,
#supervision .service-split .content ul {
  margin-bottom: 0;
}

#supervision .service-split .content .price-info {
  display: flex;
}

#supervision .service-split .content ul li {
  padding-left: 0;
}

#supervision .service-split .content ul li::before {
  display: none;
}

#supervision .service-card {
  max-width: 400px; /* Slightly smaller for circular shape */
  margin: 2rem auto 0;
  justify-self: center;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #ffffff; /* Background following the shape */
}

#supervision .service-card__photo {
  border-radius: 50%;
  border: none;
  box-shadow: none;
  aspect-ratio: 1 / 1;
}

#supervision .service-card__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
}

@media screen and (max-width: 980px) {
  .service-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Hide service photos on mobile/tablet for Pairs, Families, Individuals */
  #first .service-card,
  #second .service-card,
  #individual .service-card {
    display: none;
  }

  /* On mobile/tablet, keep service text inside the content width,
     and prevent the template `p.content` padding from pushing it out. */
  .service-split > p.content {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ============================================================
   Prices — three-column card grid
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-top: 1rem;
}

.price-card {
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(
    180deg,
    rgb(234 227 215 / 98%) 0%,
    rgb(227 223 215 / 96%) 100%
  );
  border: 1px solid rgba(149, 125, 96, 0.16);
  box-shadow: 0 18px 40px rgba(92, 71, 46, 0.08);
  min-height: 100%;
}

.price-card__label {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a7356;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0 0 0.5rem 0;
  font-family: inherit;
  font-weight: 700;
  font-feature-settings: normal;
  letter-spacing: 0;
  font-size: 1.45rem;
  color: #4e4031;
}

.price-card__value {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f261e;
}

.price-card__description {
  margin: 0;
  min-height: 8.5rem;
  color: #5f5144;
}

.price-note {
  max-width: none;
  width: 100%;
  margin: 1.5rem 0 0;
  color: #5f5144;
  text-align: left;
}

.price-note p {
  text-align: center;
  margin: 0;
}

@media screen and (max-width: 980px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card__description {
    min-height: 0;
  }
}

/* ============================================================
   Contact — three-column card grid
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* With only 2 cards (Location + E-mail), center them nicely on wide screens */
@media screen and (min-width: 981px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(260px, 420px));
    justify-content: center;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 1.65rem 1.5rem;
  border-radius: 1.35rem;
  background-color: rgba(240, 240, 240, 0.96);
  border: 1px solid rgba(200, 200, 200, 0.45);
  box-shadow: none;
  text-align: center;
}

.contact-card__body {
  width: 100%;
  text-align: center;
}

.contact-card__icon {
  flex: 0 0 auto;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(149, 125, 96, 0.08);
  box-shadow: inset 0 0 0 1px rgba(149, 125, 96, 0.12);
  color: #8a7356;
}

.contact-card__icon .icon {
  font-size: 1.5rem;
  line-height: 1;
}

.contact-card__icon .icon:before {
  display: block;
}

.contact-card h3 {
  margin: 0 0 0.5rem 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-feature-settings:
    "kern" 1,
    "liga" 1;
  letter-spacing: -0.015em;
  font-size: 1.62rem;
  line-height: 1.25;
  color: #4e4031;
}

.contact-card p {
  margin: 0;
  font-size: 1.14rem;
  color: #5f5144;
  line-height: 1.65;
}

.contact-card a {
  color: #5f5144;
  border-bottom: none;
}

.contact-card a:hover {
  color: #2f261e;
}

/* Make the Google Maps link clearly interactive */
.contact-card a.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(149, 125, 96, 0.22);
  color: #5a4b3a;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-card a.map-link::before {
  content: "📍";
  font-size: 1rem;
  line-height: 1;
}

.contact-card a.map-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #2f261e;
}

.cta-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 72rem;
  margin: 0 auto;
}

@media screen and (max-width: 736px) {
  .cta-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.cta-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2d2820;
  margin: 0 0 0.75rem 0;
}

.contact-intro {
  max-width: 52rem;
  margin: 0 0 1rem;
  color: #5f5144;
  text-align: left;
}

/* About/CTA text uses HTML paragraphs (data-i18n-html). Remove gaps. */
#cta .contact-intro p {
  margin: 0;
}

@media screen and (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Modal (Impressum, etc.)
   ============================================================ */
body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(48rem, calc(100% - 2rem));
  max-height: min(82vh, 52rem);
  overflow: auto;
  margin: 10vh auto;
  padding: 1.6rem 1.6rem 1.4rem 1.6rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(149, 125, 96, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  outline: none;
}

.modal__dialog h2 {
  margin: 0 0 0.85rem 0;
}

.modal__content {
  color: #4a4036;
}

.modal__content p {
  margin: 0 0 1rem 0;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(28, 22, 16, 0.82);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.modal__close:hover {
  background: rgba(28, 22, 16, 0.92);
}

.modal__close:focus-visible {
  outline: 2px solid #8a7356;
  outline-offset: 2px;
}

@media screen and (max-width: 736px) {
  .modal__dialog {
    margin: 6vh auto;
    padding: 1.25rem 1.25rem 1.1rem 1.25rem;
  }
}
