/*
Theme Name: Sophia Brunnbauer
Theme URI: https://tierchiropraktik-brunnbauer.de
Author: Sophia Brunnbauer
Description: Tierärztliche Pferdechiropraktik – Sophia Brunnbauer. Video background, glassmorphism design.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sophia-brunnbauer
Tags: one-page, video-background, nature, horse, glassmorphism
*/

/* ── CUSTOM PROPERTIES ─────────────────────────────────────────── */
:root {
  --green:       #3e6e20;
  --green-dim:   rgba(62, 110, 32, 0.2);
  --bg:          #878880;
  --text:        #1a1e14;
  --text-muted:  #6a6e60;
  --surface:     rgba(252, 251, 248, 0.86);
  --surf-border: rgba(62, 110, 32, 0.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── VIDEO BACKGROUND ──────────────────────────────────────────── */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

/* ── EDGE FOG OVERLAY ──────────────────────────────────────────── */
#scene-fog {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,  rgba(135, 136, 128, 0.96) 0%, transparent 22%),
    linear-gradient(to left,   rgba(135, 136, 128, 0.96) 0%, transparent 22%),
    linear-gradient(to bottom, rgba(135, 136, 128, 0.96) 0%, transparent 18%),
    linear-gradient(to top,    rgba(135, 136, 128, 0.98) 0%, transparent 18%);
}

/* ── NAVIGATION ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(30, 34, 24, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.35s;
}

#nav.scrolled {
  background: rgba(30, 34, 24, 0.92);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.nav-brand span {
  font-weight: 300;
  opacity: 0.8;
}

.nav-brand-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 20px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.22s, border-color 0.22s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.nav-social:hover {
  color: #fff;
}

.nav-social .icon-instagram {
  width: 19px;
  height: 19px;
}

/* Mobile menu toggle — hidden on desktop, shown via media query below */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile-only CTA inside the dropdown menu (hidden on desktop, see below) */
.nav-links-cta {
  display: none;
}

/* ── MAIN WRAPPER ──────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 10;
}

/* ── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5% 0;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 0.92;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.22);
}

.hero-title em {
  font-style: italic;
  color: rgba(220, 240, 200, 0.95);
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1.2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,  100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  55%        { opacity: 1;   transform: translateX(-50%) translateY(7px); }
}

.hero-scroll-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), transparent);
}

/* ── SECTIONS WRAPPER ──────────────────────────────────────────── */
#sections {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 5% 8rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── GLASSMORPHISM CARD ────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--surf-border);
  border-radius: 2px;
  padding: 4rem 5.5%;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TYPOGRAPHY HELPERS ────────────────────────────────────────── */
.eyebrow {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.section-title em {
  font-style: italic;
  color: var(--green);
}

.body-text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 640px;
  text-wrap: pretty;
}

.divider {
  width: 38px;
  height: 1px;
  background: var(--green);
  margin: 1.4rem 0;
}

/* ── ÜBER MICH ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.portrait-box {
  aspect-ratio: 3 / 4;
  background: #e0ddd4;
  border: 1px solid var(--surf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(62, 110, 32, 0.05) 6px,
    rgba(62, 110, 32, 0.05) 12px
  );
}

.portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.portrait-label {
  font-size: 0.62rem;
  color: rgba(62, 110, 32, 0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.credentials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cred {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cred-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── LEISTUNGEN ────────────────────────────────────────────────── */
.services-media {
  position: relative;
  aspect-ratio: 21 / 9;
  margin: 2.4rem 0 0;
  background: #e0ddd4;
  border: 1px solid var(--surf-border);
  overflow: hidden;
}

.services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 2rem 1.2rem;
  background: linear-gradient(to top, rgba(26, 31, 23, 0.62), transparent);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 2.4rem;
}

.service-item {
  background: rgba(62, 110, 32, 0.04);
  border: 1px solid var(--surf-border);
  padding: 2.4rem 2rem;
  transition: background 0.28s, border-color 0.28s;
}

.service-item:hover {
  background: rgba(62, 110, 32, 0.09);
  border-color: rgba(62, 110, 32, 0.42);
}

.svc-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: rgba(62, 110, 32, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.svc-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.svc-desc {
  font-size: 0.85rem;
  line-height: 1.72;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.svc-list li {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.svc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(62, 110, 32, 0.5);
  font-size: 0.75rem;
}

.svc-optional {
  font-style: normal;
  color: rgba(62, 110, 32, 0.6);
  font-size: 0.78rem;
}

/* ── FÜR WEN ───────────────────────────────────────────────────── */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.8rem;
}

.whom-item {
  border-top: 1px solid var(--green-dim);
  padding-top: 1.2rem;
}

.whom-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.whom-desc {
  font-size: 0.8rem;
  line-height: 1.72;
  color: var(--text-muted);
}

/* ── GALERIE ───────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 250px 250px;
  gap: 3px;
  margin-top: 2.8rem;
}

.g-item {
  background: #dddbd2;
  border: 1px solid rgba(62, 110, 32, 0.12);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.32s;
}

.g-item:hover {
  border-color: rgba(62, 110, 32, 0.5);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.g-item:hover img {
  transform: scale(1.04);
}

.g-span2 {
  grid-column: span 2;
}

/* Caption overlay — fades in on hover */
.g-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.9rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(20, 24, 16, 0.72) 0%, transparent 100%);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.g-item:hover .g-label {
  opacity: 1;
  transform: translateY(0);
}

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 5%;
  background: rgba(20, 24, 16, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.lightbox-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 88vw);
  max-height: 100%;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-caption {
  margin-top: 1.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-family: var(--serif);
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-close {
  top: 1.6rem;
  right: 1.6rem;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.6rem;
}

.lightbox-next {
  right: 1.6rem;
}

/* ── TESTIMONIALS ──────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 2.8rem;
}

.testi-item {
  border: 1px solid var(--surf-border);
  padding: 2.2rem;
  background: rgba(252, 251, 248, 0.92);
  transition: border-color 0.28s;
}

.testi-item:hover {
  border-color: rgba(62, 110, 32, 0.38);
}

.testi-stars {
  color: var(--green);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}

.testi-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: rgba(26, 30, 20, 0.72);
  margin-bottom: 1.3rem;
}

.testi-name {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── KONTAKT ───────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.ci-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.ci-value {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  transition: background 0.22s ease, color 0.22s ease;
}

.social-link:hover {
  background: var(--green);
  color: #fff;
}

.social-link .icon-instagram {
  width: 18px;
  height: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Honeypot — off-screen for humans, present in the DOM for bots to fill. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.form-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: rgba(62, 110, 32, 0.04);
  border: 1px solid rgba(62, 110, 32, 0.2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.87rem;
  padding: 0.75rem 1rem;
  border-radius: 1px;
  outline: none;
  width: 100%;
  transition: border-color 0.22s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--green);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(106, 110, 96, 0.45);
}

.form-textarea {
  resize: vertical;
  min-height: 115px;
}

.form-btn {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.24s, color 0.24s;
}

.form-btn:hover {
  background: var(--green);
  color: #fff;
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── FORM FEEDBACK ─────────────────────────────────────────────── */
.form-notice {
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 1px;
  display: none;
}

.form-notice.success {
  background: rgba(62, 110, 32, 0.08);
  border: 1px solid rgba(62, 110, 32, 0.3);
  color: var(--green);
  display: block;
}

.form-notice.error {
  background: rgba(180, 50, 30, 0.06);
  border: 1px solid rgba(180, 50, 30, 0.25);
  color: #8b2a1a;
  display: block;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 34, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.07em;
}

footer strong {
  color: rgba(255, 255, 255, 0.9);
}

footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-media {
    aspect-ratio: 16 / 9;
  }

  .services-grid,
  .for-whom-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Video is 16:9; on portrait viewports the 80%/80% box becomes
     portrait-shaped, forcing object-fit:cover to zoom in hard and
     crop the horse out. Re-shape the box closer to the video's own
     ratio so the full scene stays recognisable. */
  #bg-video {
    width: 145vw;
    height: 81.5vw;
  }

  /* ── MOBILE NAV ──────────────────────────────────────────────── */
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    padding: 0.5rem 6% 1.4rem;
    background: rgba(30, 34, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:first-child {
    border-top: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 0.2rem;
    font-size: 0.8rem;
  }

  .nav-links-cta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    border-top: 0;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  .nav-links-cta .nav-social {
    display: inline-flex;
    padding: 0;
  }

  .nav-links-cta .nav-cta {
    display: inline-block;
    padding: 0.7rem 1.6rem;
  }
}

@media (max-width: 520px) {
  .services-grid,
  .for-whom-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .services-media {
    aspect-ratio: 4 / 3;
  }

  .services-media figcaption {
    padding: 1.2rem 1.4rem 1rem;
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .g-span2 {
    grid-column: span 1;
  }

  .lightbox {
    padding: 5.5rem 3.5rem 3rem;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.9rem;
    right: 0.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Sections carry a lot of vertical breathing room (4rem top/bottom);
     on a long single-page mobile layout that adds up fast — trim it. */
  .card {
    padding: 2.6rem 6%;
  }
}

/* ── HERO TAGLINE ──────────────────────────────────────────────── */
.hero-tagline {
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.55rem;
  letter-spacing: 0.04em;
}

/* ── ABOUT STRENGTHS ───────────────────────────────────────────── */
.about-strengths {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--surf-border);
}

.about-strengths-heading {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}

.strength-item {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
  align-items: baseline;
}

.strength-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.strength-label::after {
  content: ' —';
  font-weight: 300;
  color: var(--green);
}

.strength-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── INDIKATIONEN ──────────────────────────────────────────────── */
.indications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2rem;
}

.indication-col {
  background: rgba(62, 110, 32, 0.04);
  border: 1px solid var(--surf-border);
  padding: 1.8rem 1.6rem;
}

.indication-heading {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--surf-border);
}

.indication-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.indication-list li {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.indication-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.6;
}

/* ── PROCESS STEPS ─────────────────────────────────────────────── */
.process-steps {
  margin-bottom: 2.4rem;
  padding: 1.6rem 2rem;
  background: rgba(62, 110, 32, 0.04);
  border: 1px solid var(--surf-border);
}

.process-heading {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(62, 110, 32, 0.25);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.process-step strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ── PRICING BOX ───────────────────────────────────────────────── */
.pricing-box {
  margin-bottom: 2.8rem;
  padding: 1.8rem 2rem;
  border: 1px solid var(--surf-border);
  background: rgba(252, 251, 248, 0.5);
}

.pricing-heading {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.pricing-note {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 640px;
}

.pricing-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.pricing-item {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.pricing-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-label::after {
  content: ':';
}

.pricing-desc {
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-cta {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  color: var(--green);
  margin-top: 0.4rem;
}

/* ── RESPONSIVE — NEW COMPONENTS ───────────────────────────────── */
@media (max-width: 820px) {
  .indications-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Placed after .strength-item/.pricing-item so these equal-specificity
   overrides win the cascade: on narrow screens the fixed nowrap label
   crowds the description into a thin, heavily-wrapped column — stack
   label above text instead and let it wrap naturally. */
@media (max-width: 520px) {
  .strength-item,
  .pricing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .strength-label,
  .pricing-label {
    white-space: normal;
  }
}

/* ── ACCESSIBILITY: SKIP LINK ──────────────────────────────────── */
/* Visually hidden until it receives keyboard focus, then slides in.
   Lets keyboard/screen-reader users jump straight past the nav to the
   main content. Invisible to mouse/touch users — no visual change. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.7rem 1.2rem;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0 0 2px 0;
  transform: translateY(-130%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* ── ACCESSIBILITY: VISIBLE KEYBOARD FOCUS ─────────────────────── */
/* `:focus-visible` targets keyboard navigation only — mouse/touch
   interaction stays exactly as before, so the look & feel is unchanged. */

/* Interactive elements sitting on the light glass cards */
.form-btn:focus-visible,
.g-item:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Form fields had their focus ring removed via `outline:none` above —
   restore a clearly visible indicator for keyboard users. */
.form-input:focus-visible,
.form-textarea:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

/* Interactive elements on dark surfaces (nav, footer, lightbox) get a
   light outline so the indicator stays legible against the dark glass. */
.nav-brand:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.nav-social:focus-visible,
.nav-toggle:focus-visible,
footer a:focus-visible,
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── ACCESSIBILITY: REDUCED MOTION ─────────────────────────────── */
/* Honour the OS-level "reduce motion" preference: near-instant
   transitions, no looping animations, no smooth scroll. Only affects
   users who have explicitly requested reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Cards are JS-revealed by fading/sliding up — make sure they are
     simply present even before/without the reveal animation. */
  .card {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-scroll {
    animation: none !important;
  }

  .g-item:hover img {
    transform: none !important;
  }
}
