/* ===== Design Tokens ===== */
:root {
  --color-bg: #1f2029;
  --color-panel: #2d2c35;
  --color-footer: #1b1a17;
  --color-accent: #7a6248;
  --color-paper: #f7f4ef;
  --color-stone: #8c8577;
  --color-line: #3a3a44;
  --color-line-light: #ded9cf;
  --color-white: #ffffff;

  --font-serif: "Fraunces", serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1312px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.serif-light {
  font-family: var(--font-serif);
  font-weight: 300;
  font-optical-sizing: auto;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 8px;
  padding-right: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-accent);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-line svg { width: 16px; height: 16px; transition: transform 0.2s ease; pointer-events: none; }
.btn-line:hover { color: var(--color-paper); border-bottom-color: var(--color-paper); }
.btn-line:hover svg { transform: translateX(4px); }

.btn-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--color-accent);
  padding: 8px 58px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-paper);
  background: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-box:hover { background: rgba(122, 98, 72, 0.2); }
.btn-box svg { width: 24px; height: 24px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { background: var(--color-bg); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; overflow: visible; }
.site-header .logo { align-self: flex-start; margin-top: 36px; overflow: visible; transition: margin-top 0.3s ease; }
.site-header .logo img { height: 90px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .logo { margin-top: 16px; }
.site-header.scrolled .logo img { height: 44px; }
.site-nav { display: flex; align-items: center; gap: 48px; font-size: 16px; font-weight: 500; transition: gap 0.3s ease; }
.site-header.scrolled .site-nav { gap: 32px; }
.site-nav a { white-space: nowrap; position: relative; }
.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #F7F4EF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::before { transform: scaleX(1); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #F7F4EF;
}
.nav-toggle { display: none; background: none; border: none; color: var(--color-paper); font-size: 28px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.hero > .wrap { width: 100%; }
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  max-width: 620px;
}
.hero-title {
  font-size: 84px;
  line-height: 1.05;
  color: var(--color-paper);
  margin: 0 0 24px;
  width: 860px;
  max-width: none;
}
.hero-title em { font-style: italic; font-family: "Fraunces", serif; }
.hero-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-paper);
  max-width: 480px;
  margin: 0 0 32px;
}
.scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 100px;
  writing-mode: vertical-rl;
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.1em;
  z-index: 2;
  opacity: 0.8;
}
.hero-tick {
  position: absolute;
  right: 45px;
  bottom: 60px;
  width: 17px;
  transform: rotate(90deg);
  z-index: 2;
  opacity: 0.8;
}

/* ===== Services strip (overlaps bottom-right of hero) ===== */
.services-strip {
  position: absolute;
  left: 52.4%;
  right: 0;
  bottom: -50px;
  height: 100px;
  z-index: 2;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.services-strip a {
  flex: none;
  text-align: center;
  padding: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(16px, 2.6vw, 36px);
  line-height: 88px;
  white-space: nowrap;
  color: var(--color-paper);
}
.services-strip-divider {
  flex: none;
  width: 1px;
  height: 50px;
  background: #FFFFFF;
}

/* ===== Credo ===== */
.credo {
  padding: 154px 24px 140px;
  text-align: center;
}
.credo-quote {
  font-size: 38px;
  line-height: 52px;
  max-width: 920px;
  margin: 27px auto 32px;
  color: var(--color-paper);
}
.credo-line {
  width: 280px;
  height: 1px;
  background: #FFFFFF;
  margin: 0 auto 32px;
  opacity: 0.5;
}
.credo-author {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-stone);
}

/* ===== Section shared ===== */
.section {
  padding: 100px 24px;
}
#blog {
  padding-top: 102px;
  padding-bottom: 97px;
  margin-bottom: 104px;
  background: var(--color-panel);
}
.section-head {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}
.section-title {
  font-size: 42px;
  line-height: 1.2;
  max-width: 700px;
  margin: 0;
  color: var(--color-paper);
}

/* ===== Services (Leistungen) ===== */
.services-section { background: var(--color-bg); margin-top: -150px; padding-left: 0; padding-right: 0; padding-bottom: 2px; }
.panel-section { padding-left: 0; padding-right: 0; padding-bottom: 8px; }
.services-section .wrap, .panel-section .wrap { max-width: 1312px; margin: 0; padding: 0 64px 0 0; }
.services-section .section-head { padding-left: 40px; }
.video-row {
  position: relative;
  z-index: 0;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding: 40px;
}
.video-row::before {
  content: "";
  position: absolute;
  top: -119px;
  left: 0;
  right: 55px;
  height: calc(100% - 7px);
  background: var(--color-panel);
  z-index: -1;
}
.panel-section .video-row::before { display: none; }
.video-placeholder {
  position: relative;
  width: 360px;
  height: 578px;
  flex-shrink: 0;
  background: #d4ccbf;
  overflow: hidden;
}
.video-placeholder > img:not(.video-play) { width: 100%; height: 100%; object-fit: cover; }
.services-section .video-placeholder { margin-top: -40px; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.video-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.video-text { flex: 1; min-width: 320px; max-width: 575px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.services-section .video-text { margin-top: -140px; }
.video-text h3 { font-size: 30px; line-height: 40px; font-weight: 300; margin: 0; color: var(--color-paper); }
.video-text p { color: var(--color-stone); font-size: 17px; line-height: 1.6; margin: 0; }
.services-section .video-text p { width: 625px; max-width: none; }

.accordion-list {
  border-bottom: 1px solid var(--color-line-light);
  border-top: none;
  margin-top: 66px;
  margin-left: max(24px, calc((100vw - 1312px) / 2 + 24px));
  width: calc(100vw - 2 * max(24px, calc((100vw - 1312px) / 2 + 24px)));
}
.panel-section .accordion-list {
  margin-top: 66px;
  /* .panel-section .wrap is right-shifted with its own left padding (mirrored
     desktop layout); compensate so this list still centers on the same
     goldene-Schnitt content edges as the first (Leistungen) toggle list. */
  margin-left: calc(max(24px, calc((100vw - 1312px) / 2 + 24px)) - 100vw + 1248px);
}
.accordion-item {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--color-line-light);
  padding: 32px 0;
}
.accordion-number {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 32px;
}
.accordion-body { flex: 1; }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 24px;
}
.accordion-header h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 37px;
  color: var(--color-accent);
  margin: 0;
}
.accordion-header .chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s ease; }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-panel { max-height: 260px; }
.accordion-panel p {
  margin: 20px 0 0;
  color: var(--color-stone);
  font-size: 16px;
  line-height: 1.65;
  max-width: 900px;
}

/* ===== Housekeeping / dark panel section ===== */
.panel-section { background: var(--color-bg); }
.panel-section .section-title { text-align: right; margin-left: auto; }
.panel-section .video-row { justify-content: flex-end; }
.panel-section .video-text { text-align: right; align-items: flex-end; }
.panel-section .section-head { text-align: right; }
.panel-section .eyebrow { margin-left: auto; }
.panel-section .video-placeholder { background: var(--color-accent); }

/* Mirror of the Leistungen treatment: bleed to the right edge instead of the left */
.panel-section .wrap { margin-left: auto; margin-right: 0; padding: 0 0 0 64px; }
.panel-section .section-head { padding-left: 0; padding-right: 40px; }
.panel-section .video-row::before { display: block; left: 55px; right: 0; height: 569px; }
.panel-section .video-placeholder { margin-top: -40px; }
.panel-section .video-text { margin-top: -179px; }
.panel-section .video-text p { width: 625px; max-width: none; }

/* ===== About ===== */
.about-section {
  display: flex;
  gap: 96px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-portrait {
  position: relative;
  width: 420px;
  flex-shrink: 0;
}
.about-portrait::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 86px;
  width: 448px;
  height: 450px;
  background: var(--color-accent);
  z-index: 0;
}
.about-portrait img { position: relative; z-index: 1; width: 100%; height: 480px; object-fit: cover; }
.about-content { flex: 1; min-width: 320px; }
.about-content h2 { font-size: 64px; font-weight: 300; margin: 0 0 16px; color: var(--color-white); }
.about-content > p { font-size: 17px; line-height: 1.6; color: var(--color-white); max-width: 506px; margin: 0 0 48px; }
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline-item {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--color-line-light);
  padding-top: 20px;
}
.timeline-year { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); width: 56px; flex-shrink: 0; }
.timeline-text { font-size: 15px; line-height: 1.55; color: var(--color-white); }

/* ===== Blog section (home) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.blog-pagination {
  display: none;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 48px;
}
.blog-pagination-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-line-light);
  color: var(--color-paper);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.blog-pagination-btn svg { width: 16px; height: 16px; }
.blog-pagination-btn:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.blog-pagination-btn:disabled { opacity: 0.3; cursor: default; }
.blog-card { display: flex; flex-direction: column; gap: 16px; }
.blog-card-image { background: #d9d4c9; height: 260px; overflow: hidden; }
.blog-card-image--placeholder {
  background: #6b6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-image--placeholder span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--color-stone); }
.blog-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
  color: var(--color-paper);
  min-height: calc(22px * 1.35 * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.blog-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-stone);
  margin: 0;
  min-height: calc(15px * 1.55 * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.blog-card .btn-line { margin-top: -12px; }
.blog-card.no-meta .btn-line { border-bottom: none; }
.blog-card.no-meta h3 { margin-top: 5px; }

/* ===== Contact ===== */
.contact-section {
  position: relative;
  padding-top: 90px;
  padding-left: 0;
  padding-right: 0;
  margin-top: 154px;
  min-height: calc(39.1173cqw + 129.46px);
}
.contact-section::before {
  content: "";
  position: absolute;
  left: 65.2%;
  right: 0;
  top: -44px;
  bottom: 0;
  background: var(--color-panel);
  z-index: 0;
}
.contact-inner {
  position: static;
  z-index: 1;
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-form-col { flex: 1; min-width: 320px; max-width: 560px; position: relative; top: -54px; }
.contact-title { text-align: center; }
.contact-title .eyebrow, .contact-title h2, .contact-title p { text-align: center; }
.contact-heading { font-size: 46px; font-weight: 300; margin: 0 0 16px; color: var(--color-white); }
.contact-sub { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.65); margin: 0 0 40px; max-width: 480px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid transparent;
  outline: none;
  color: #1f2029;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
}
.contact-form input[type="text"]:focus, .contact-form input[type="email"]:focus, .contact-form textarea:focus {
  border: 1px solid var(--color-accent);
  outline: none;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9a9a9a; }
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
}
.contact-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}
.contact-consent a { color: var(--color-accent); text-decoration: underline; }
.contact-form button { align-self: flex-start; margin-top: 8px; }
.contact-image {
  position: absolute;
  z-index: 1;
  top: 40px;
  right: 40px;
  left: calc(65.2% - 84px);
  aspect-ratio: 532 / 598;
}
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.form-note { font-size: 13px; color: var(--color-stone); margin-top: 12px; display: none; }
.form-note.show { display: block; }
.form-note.error { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer);
  padding: 40px 24px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-stone);
}
.footer-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-stone);
}
.footer-links a:hover { color: var(--color-paper); }

/* ===== Blog listing / detail pages ===== */
.page-header {
  padding: 180px 24px 60px;
  text-align: left;
}
.page-header .eyebrow { }
.page-header h1 { font-size: 56px; font-weight: 300; margin: 0; color: var(--color-paper); }
.page-header p { color: var(--color-stone); font-size: 17px; max-width: 640px; margin-top: 16px; }

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 24px 140px;
  max-width: var(--container);
  margin: 0 auto;
}

.post-page { padding: 160px 24px 120px; max-width: 760px; margin: 0 auto; }
.post-hero-image { width: 100%; height: 360px; object-fit: cover; margin-bottom: 32px; background: #d9d4c9; }
.post-hero-image--placeholder {
  background: #6b6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-hero-image--placeholder span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.post-title { font-size: 48px; font-weight: 300; line-height: 1.2; margin: 0 0 32px; color: var(--color-paper); }
.post-body p { font-size: 17px; line-height: 1.75; color: rgba(247,244,239,0.85); margin: 0 0 24px; }
.post-body h2 { font-size: 26px; font-weight: 400; margin: 40px 0 16px; color: var(--color-paper); font-family: var(--font-serif); }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--color-accent); font-size: 14px; }

.legal-header { padding-bottom: 90px; }
.legal-body { padding-bottom: 120px; }
.legal-body p { font-size: 17px; line-height: 1.75; color: rgba(247,244,239,0.85); margin: 0 0 24px; }
.legal-body h2 { font-size: 26px; font-weight: 400; margin: 40px 0 16px; color: var(--color-paper); font-family: var(--font-serif); }
.back-link:hover { text-decoration: underline; }
.back-link--bottom { margin: 16px 0 0; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-portrait { display: none; }
  .blog-grid, .blog-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-portrait { display: none; }
}

@media (max-width: 860px) {
  .site-nav { position: fixed; top: 90px; left: 0; right: 0; background: var(--color-bg); flex-direction: column; align-items: flex-start; padding: 24px; gap: 24px; transform: translateY(-120%); transition: transform 0.25s ease; border-bottom: 1px solid var(--color-line); }
  .site-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .hero-title { font-size: 52px; width: auto; max-width: 100%; }
  .credo-quote { font-size: 26px; }
  .section-title, .panel-section .section-title { text-align: left; margin-left: 0; }
  .panel-section .section-head, .panel-section .video-text, .panel-section .video-row { text-align: left; align-items: flex-start; justify-content: flex-start; }
  .blog-grid, .blog-listing-grid { grid-template-columns: 1fr; }
  .contact-inner { flex-direction: column-reverse; }
  .post-title { font-size: 32px; }
  .services-strip { position: static; left: auto; }
  .services-strip a { font-size: 20px; padding: 16px 8px; }
}

@media (max-width: 600px) {
  .hero-accent-corner { width: 140px; height: 100px; }
  .scroll-hint, .hero-tick { display: none; }
}

/* Rich text from Sanity (posts + legal pages): lists, quotes, h3/h4, bold, links */
.post-body h3, .legal-body h3 { font-size: 21px; font-weight: 400; margin: 32px 0 12px; color: var(--color-paper); font-family: var(--font-serif); }
.post-body h4, .legal-body h4 { font-size: 17px; font-weight: 500; margin: 24px 0 10px; color: var(--color-paper); }
.post-body ul, .post-body ol, .legal-body ul, .legal-body ol { font-size: 17px; line-height: 1.75; color: rgba(247,244,239,0.85); margin: 0 0 24px; padding-left: 1.4em; }
.post-body li, .legal-body li { margin: 0 0 6px; }
.post-body blockquote, .legal-body blockquote { font-family: var(--font-serif); font-size: 21px; line-height: 1.55; font-style: italic; color: var(--color-paper); margin: 0 0 24px; padding-left: 20px; border-left: 2px solid rgba(247,244,239,0.35); }
.post-body strong, .legal-body strong { font-weight: 500; color: var(--color-paper); }
.post-body a, .legal-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Mobile header + hero rebuild ===== */
@media (max-width: 720px) {
  html { scroll-padding-top: 92px; }
  .hero-break { display: none; }
  .site-header {
    height: 72px;
    background: var(--color-bg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
  .site-header .logo { align-self: center; margin-top: 0; }
  .site-header .logo img { height: 34px; }
  .site-header.scrolled .logo { margin-top: 0; }
  .site-header.scrolled .logo img { height: 34px; }
  .nav-toggle {
    display: block;
    color: var(--color-white);
    font-size: 24px;
    line-height: 1;
    padding: 4px;
  }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 28px;
    font-size: 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header.scrolled .site-nav { gap: 28px; }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    padding-top: 72px;
  }
  .hero > .wrap { order: 1; width: 100%; padding: 0 24px; }
  .hero-content {
    padding-top: 43px;
    padding-bottom: 47px;
    max-width: none;
  }
  .hero-bg {
    order: 2;
    position: relative;
    inset: auto;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: calc(62vh * 0.9);
    min-height: 288px;
    overflow: hidden;
  }
  .hero-bg img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62vh;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
  }
  .hero .eyebrow { font-size: 12px; }
  .hero-title { font-size: 38px; line-height: 1.12; margin-bottom: 16px; width: auto; }
  .hero-text { font-size: 17px; max-width: none; margin-bottom: 24px; }

  .services-strip {
    order: 3;
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: auto;
    padding: 22px 12px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .services-strip a {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    font-size: clamp(15px, 5vw, 22px);
    padding: 0 6px;
    white-space: nowrap;
  }
  .services-strip-divider { height: 32px; }

  .credo { padding-top: 51px; padding-bottom: 34px; }
  .credo-quote { line-height: 45px; }

  .services-section {
    margin-top: 0;
    background: var(--color-bg);
    padding-top: 0;
    padding-bottom: 48px;
  }
  .services-section .wrap, .panel-section .wrap {
    max-width: none;
    margin: 0 auto;
    padding: 0 24px;
  }
  .services-panel {
    background: var(--color-panel);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 46px 24px 0;
  }
  .services-section .section-head { padding-left: 0; margin-bottom: 35px; }
  .video-row::before { display: none; }
  .services-section .video-row {
    padding: 0;
    margin-bottom: 48px;
    gap: 40px;
  }
  .services-section .video-placeholder {
    margin-top: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 578;
  }
  .services-section .video-text { margin-top: 0; padding-bottom: 47px; width: 100%; max-width: none; min-width: 0; }
  .services-section .video-text p, .panel-section .video-text p { width: auto; max-width: 100%; }
  .services-section .video-text h3 { width: 100%; }
  .panel-section .video-text { width: 100%; max-width: none; min-width: 0; margin-top: 0; padding-bottom: 47px; }
  .panel-section .video-text h3 { width: 100%; }
  .panel-section .section-head { padding-left: 0; padding-right: 0; margin-bottom: 35px; }
  .panel-section .video-row::before { display: none; }
  .panel-section .video-row {
    padding: 0;
    margin-bottom: 48px;
    gap: 40px;
  }
  .panel-section {
    margin-top: 0;
    background: var(--color-bg);
    padding-top: 0;
    padding-bottom: 42px;
  }
  .accordion-item { padding-top: 17px; }
  .panel-section .video-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 578;
    margin-top: 0;
    order: 1;
  }
  .panel-section .video-text { order: 2; }
  .accordion-list {
    margin-left: 0;
    width: 100%;
  }
  .panel-section .accordion-list { margin-top: 51px; margin-left: 0; width: 100%; }
  .services-section .accordion-list { margin-top: 52px; }

  #ueber-mich { padding-left: 0; padding-right: 0; padding-top: 8px; padding-bottom: 45px; }
  #blog { padding-left: 0; padding-right: 0; padding-top: 47px; padding-bottom: 36px; margin-bottom: 44px; }
  #blog .section-head { margin-bottom: 40px; }
  .blog-card h3 { min-height: 0; }
  .blog-card p { min-height: 0; }
  .blog-card .btn-line { margin-top: -2px; }
  .blog-grid { gap: 36px; }
  .blog-pagination { justify-content: center; margin-top: 36px; }
  .about-section { display: block; padding: 0 24px; gap: 0; }
  .about-portrait {
    display: block;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 7px;
    height: calc(62vh * 0.9);
    min-height: 288px;
    overflow: hidden;
  }
  .about-portrait::before { display: none; }
  .about-portrait img {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    /* 62vh is the tuned size; the second value guarantees the image still
       reaches the bottom of the mask on short phones (it left a gap there) */
    height: max(62vh, calc(100% + 50px));
    min-height: 320px;
    object-fit: cover;
    object-position: center;
  }
  .about-content .eyebrow { margin-bottom: 16px; }
  .about-content > p { margin-bottom: 41px; }

  .contact-section {
    padding-top: 0px;
    padding-bottom: 7px;
    min-height: 0;
    margin-top: 7px;
  }
  .contact-section::before { display: none; }
  .contact-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .contact-form-col {
    position: static;
    top: 0;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .contact-title, .contact-title .eyebrow, .contact-title h2, .contact-title p {
    text-align: left;
  }
  .contact-form { margin-bottom: 40px; }
  .contact-image {
    position: static;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: auto;
    right: auto;
    top: auto;
    aspect-ratio: auto;
    height: calc(62vh * 0.9);
    min-height: 288px;
    overflow: hidden;
  }

  .legal-header { padding-top: 91px; padding-bottom: 26px; }
  .legal-header h1 { font-size: 38px; line-height: 1.12; }
  .legal-header .eyebrow { margin-bottom: 6px; }
  .legal-body p { margin-bottom: 7px; }
  .legal-body h2 { margin-top: 23px; }
  .legal-body { padding-bottom: 26px; }
  .post-page { padding: 104px 24px 26px; }
  .post-body p { margin-bottom: 7px; }
  .post-body h2 { margin-top: 23px; }
}

/* Mobile: all main headings share the hero headline size; toggle headlines stay inside the screen */
@media (max-width: 720px) {
  .section-title, .about-content h2, .contact-heading, .post-title, .page-header h1, .legal-header h1 {
    font-size: 38px;
    line-height: 1.12;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .about-content { padding-top: 33px; }
  /* "Service" must stay whole: no automatic hyphenation here (a break at the real hyphen is still fine) */
  [data-sanity="hausmeisterSectionTitle"] { hyphens: manual; overflow-wrap: normal; }
  .accordion-header h3 {
    font-size: 22px;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .accordion-header { min-width: 0; gap: 16px; }
}
