:root {
  color-scheme: light;
  --ink: #1a667a;
  --muted: #466a74;
  --paper: #f5f8f4;
  --surface: #ffffff;
  --mist: #e4eeee;
  --pine: #1a667a;
  --pine-dark: #104d60;
  --clay: #d9e100;
  --gold: #d9e100;
  --line: rgba(26, 102, 122, 0.18);
  --shadow: 0 22px 60px rgba(16, 77, 96, 0.16);
  --radius: 8px;
  --container: 1160px;
  --page-padding: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--container));
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 34px rgba(16, 77, 96, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease, top 180ms ease;
}

.site-header.is-scrolled {
  top: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(16, 77, 96, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 176px;
}

.brand img {
  width: 174px;
  height: auto;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--pine);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 82svh;
  max-height: 860px;
  padding: 132px var(--page-padding) 72px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(16, 77, 96, 0.88) 0%, rgba(16, 77, 96, 0.70) 42%, rgba(16, 77, 96, 0.22) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  background: linear-gradient(0deg, rgba(16, 77, 96, 0.48), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.hero-content > * {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d9e100;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 740;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.hero-copy {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 160ms ease, border 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--pine);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--pine-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button-secondary {
  background: var(--clay);
  color: #ffffff;
}

.button-secondary:hover {
  background: #b7bf00;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  min-height: 112px;
  padding: 22px var(--page-padding);
  background: var(--paper);
}

.signal-strip strong {
  display: block;
  color: var(--pine);
  font-size: 2rem;
  line-height: 1;
}

.signal-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 96px var(--page-padding);
}

.section-heading,
.intro-grid,
.service-layout,
.process-grid,
.ai-tool,
.market-layout,
.project-grid,
.partner-grid,
.news-grid {
  width: min(100%, var(--container));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 42px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 780px;
}

.intro-section {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 52px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.lead {
  color: var(--muted);
  font-size: inherit;
  line-height: inherit;
}

.services-section {
  background: var(--paper);
}

.service-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tabs {
  display: grid;
  gap: 10px;
}

.tab,
.filter-button,
.market-filter {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, border 160ms ease;
}

.tab {
  padding: 12px 14px;
}

.tab:hover,
.tab.is-active,
.filter-button:hover,
.filter-button.is-active,
.market-filter:hover,
.market-filter.is-active {
  border-color: var(--pine);
  background: var(--pine);
  color: #ffffff;
}

.service-panels {
  min-height: 388px;
}

.service-panel {
  min-height: 388px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 77, 96, 0.08);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 6px;
  background: rgba(217, 225, 0, 0.18);
  color: var(--clay);
  font-weight: 800;
}

.service-panel p {
  max-width: 700px;
  color: var(--muted);
}

.service-panel ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  position: relative;
  padding-left: 22px;
}

.service-panel li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.process-section {
  background: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-step {
  min-height: 226px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.process-step span {
  display: block;
  margin-bottom: 48px;
  color: var(--clay);
  font-weight: 800;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.ai-section {
  background: var(--paper);
}

.ai-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  gap: 24px;
  align-items: start;
}

.ai-form,
.ai-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 77, 96, 0.08);
}

.ai-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.ai-result {
  position: sticky;
  top: 112px;
  padding: 30px;
  overflow: hidden;
}

.ai-result::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--pine), var(--gold), var(--clay));
  content: "";
}

.result-kicker {
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-ring {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--pine) calc(var(--score, 72) * 1%), #dbe9e5 0);
  color: var(--pine);
  font-size: 2rem;
  font-weight: 850;
  line-height: 0.82;
  text-align: center;
}

.score-total {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.metric-grid div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbfb;
}

.metric-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-grid strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.ai-result p:not(.result-kicker) {
  color: var(--muted);
}

.offmarket-section {
  background: var(--ink);
  color: #ffffff;
}

.offmarket-section .section-heading h2 {
  color: #ffffff;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.market-intro {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.market-intro p {
  color: rgba(255, 255, 255, 0.75);
}

.market-stats {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.market-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.market-stats strong,
.market-stats span {
  display: block;
}

.market-stats strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.market-stats span {
  color: rgba(255, 255, 255, 0.66);
}

.market-content {
  display: grid;
  gap: 18px;
}

.market-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-filter {
  padding: 10px 15px;
  text-align: center;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.market-card {
  display: flex;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  flex-direction: column;
}

.market-card p:not(.project-code) {
  color: var(--muted);
}

.market-card dl {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
}

.market-card dl div {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.market-card dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.market-card dd {
  margin: 0;
  font-weight: 800;
}

button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.projects-section {
  background: #eaf3ef;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, var(--container));
  margin: 0 auto 24px;
}

.filter-button {
  padding: 10px 15px;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(26, 102, 122, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 77, 96, 0.08);
  flex-direction: column;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--pine-dark);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.035);
}

.project-body {
  display: flex;
  padding: 24px;
  flex: 1;
  flex-direction: column;
}

.project-code {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 800;
}

.project-body p:not(.project-code) {
  color: var(--muted);
}

.project-body dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.project-body dl div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-body dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.project-body dd {
  margin: 0;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--pine);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 96px max(var(--page-padding), calc((100% - var(--container)) / 2));
  background: var(--ink);
  color: #ffffff;
}

.feature-copy p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.78);
}

.feature-gallery {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 14px;
}

.feature-gallery img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: var(--radius);
  object-fit: cover;
}

.feature-gallery .gallery-large {
  grid-row: span 2;
}

.partners-section {
  background: var(--paper);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.partner-grid img {
  width: 100%;
  height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  object-fit: contain;
}

.partner-grid img[alt="Marthaler"],
.partner-grid img[alt="Müller Specht"],
.partner-grid img[src="assets/bild1-5f33d1.png"],
.partner-grid img[src="assets/logo-4f62dc.png"] {
  filter: grayscale(1) contrast(1.15);
}

.news-section {
  background: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.news-item img {
  width: 100%;
  height: 100%;
  min-height: 142px;
  border-radius: 6px;
  object-fit: cover;
}

.news-item p {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.84rem;
  font-weight: 800;
}

.news-item .news-date {
  display: block;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 96px max(var(--page-padding), calc((100% - var(--container)) / 2));
  background:
    linear-gradient(120deg, rgba(26, 102, 122, 0.94), rgba(16, 77, 96, 0.94)),
    url("assets/chupferwis-exterior.jpg") center / cover no-repeat;
  color: #ffffff;
}

.contact-copy h2 {
  max-width: 560px;
}

address {
  display: grid;
  gap: 7px;
  margin-top: 32px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

address strong {
  color: #ffffff;
}

address a {
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-row label {
  flex: 1 1 230px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 102, 122, 0.24);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border 140ms ease, box-shadow 140ms ease;
}

input,
select {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  min-height: 148px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(26, 102, 122, 0.16);
}

.form-status {
  min-height: 25px;
  margin: 0;
  color: var(--pine);
  font-weight: 700;
}

.form-status a {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(var(--page-padding), calc((100% - var(--container)) / 2));
  background: #104d60;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .site-nav {
    position: fixed;
    top: 98px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .service-layout,
  .ai-tool,
  .market-layout,
  .feature-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .ai-result {
    position: static;
  }

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

  .tab {
    text-align: center;
  }

  .project-grid,
  .market-grid,
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page-padding: 18px;
  }

  .site-header {
    width: calc(100% - 24px);
    min-height: 66px;
    padding: 10px;
  }

  .brand {
    min-width: 150px;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    min-height: 80svh;
    padding-top: 112px;
    padding-bottom: 48px;
    background-position: 58% center;
  }

  h1 {
    font-size: 2.85rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-heading,
  .intro-grid,
  .process-grid,
  .news-grid,
  .market-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 30px;
  }

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

  .service-panel {
    min-height: auto;
    padding: 24px;
  }

  .feature-band,
  .contact-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .feature-gallery {
    grid-template-columns: 1fr;
  }

  .feature-gallery .gallery-large {
    grid-row: auto;
  }

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

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

  .news-item {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .hero-actions,
  .filter-bar,
  .market-filters,
  .site-footer div {
    flex-direction: column;
  }

  .button,
  .filter-button,
  .market-filter {
    width: 100%;
  }

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

  .project-body dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .signal-strip div {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

.hero { background-image: linear-gradient(90deg, rgba(16, 77, 96, 0.88) 0%, rgba(16, 77, 96, 0.70) 42%, rgba(16, 77, 96, 0.22) 100%), url("assets/hero.jpg"); }
.contact-section { background-image: linear-gradient(120deg, rgba(26, 102, 122, 0.94), rgba(16, 77, 96, 0.94)), url("assets/chupferwis-exterior.jpg"); }

.article-header .brand {
  min-width: 176px;
}

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

.article-site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
  transition: background 160ms ease, color 160ms ease;
}

.article-site-nav a:hover,
.article-site-nav a.is-active {
  background: var(--pine);
  color: #ffffff;
}

.article-hero {
  min-height: 58svh;
  max-height: 680px;
  padding: 154px var(--page-padding) 72px;
  background-position: center;
}

.article-hero .hero-content {
  align-self: end;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 32px 48px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 96px var(--page-padding);
}

.article-copy > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-copy h2 {
  margin-top: 48px;
  margin-bottom: 18px;
  font-size: 2rem;
}

.article-aside {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
}

.article-aside p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-copy {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.article-gallery {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: 1fr;
  align-self: stretch;
  gap: 18px;
  width: auto;
  margin: 0;
  padding: 0;
}

.article-gallery img,
.article-gallery img:first-child,
.article-gallery img.article-gallery-image-standard {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-media-column {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-content: start;
  gap: 24px;
}

.article-media-column .article-aside,
.article-media-column .article-gallery {
  grid-column: auto;
  grid-row: auto;
}

.article-cta {
  padding: 72px max(var(--page-padding), calc((100% - 980px) / 2));
  background: var(--paper);
}

.article-cta > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-cta h2 {
  max-width: 600px;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .article-site-nav a {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .article-header .brand,
  .article-header .brand img {
    min-width: 0;
    width: 132px;
  }

  .article-hero {
    min-height: 62svh;
    padding-top: 120px;
  }

  .article-content,
  .article-gallery {
    grid-template-columns: 1fr;
  }

  .article-content {
    gap: 28px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .article-aside,
  .article-gallery {
    grid-column: auto;
    grid-row: auto;
  }

  .article-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .article-media-column {
    grid-column: auto;
    grid-row: auto;
  }

  .article-copy h2 {
    font-size: 1.7rem;
  }

  .article-gallery {
    padding-bottom: 0;
  }

  .article-gallery img,
  .article-gallery img:first-child,
  .article-gallery img.article-gallery-image-standard {
    height: 260px;
  }
}

.offmarket-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offmarket-action {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.offmarket-action:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.offmarket-action h3 { margin-top: 10px; color: #ffffff; }
.offmarket-action p { color: rgba(255, 255, 255, 0.76); }
.offmarket-action .text-link { color: #d9e100; }

.offmarket-form-section { background: var(--paper); }
.offmarket-form-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.2fr); gap: 52px; width: min(100%, var(--container)); margin: 0 auto; align-items: start; }
.offmarket-form-intro { padding-top: 16px; }
.offmarket-form-intro h2 { max-width: 460px; }
.offmarket-form-intro p:not(.eyebrow) { color: var(--muted); }
.offmarket-form-intro ul { display: grid; gap: 11px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); }
.offmarket-form-intro li { padding-left: 23px; position: relative; }
.offmarket-form-intro li::before { content: "✓"; position: absolute; left: 0; color: var(--pine); font-weight: 800; }
.offmarket-form-card { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; box-shadow: var(--shadow); }
.offmarket-form-card .form-heading { margin-bottom: 4px; }
.offmarket-form-card .form-heading h2 { font-size: 1.7rem; }
.privacy-check { grid-template-columns: auto 1fr; align-items: start; font-size: .86rem; line-height: 1.45; }
.privacy-check input { width: 16px; height: 16px; margin-top: 2px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

@media (max-width: 760px) {
  .offmarket-actions,
  .offmarket-form-layout { grid-template-columns: 1fr; }
  .offmarket-form-layout { gap: 30px; }
  .offmarket-form-card { padding: 22px; }
}

.deals-section { background: #ffffff; }
.deals-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 52px; width: min(100%, var(--container)); margin: 0 auto 38px; align-items: end; }
.deals-heading h2 { max-width: 680px; }
.deals-heading > p { margin: 0; color: var(--muted); }
.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: min(100%, var(--container)); margin: 0 auto; }
.deal-card { display: flex; flex-direction: column; min-height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.deal-card h3 { margin-top: 14px; }
.deal-card > p:not(.project-code) { color: var(--muted); }
.deal-status { width: fit-content; padding: 4px 9px; border-radius: 999px; background: rgba(15, 77, 70, .1); color: var(--pine); font-size: .76rem; font-weight: 800; }
.deal-card dl { display: grid; gap: 9px; margin: auto 0 0; padding-top: 18px; }
.deal-card dl div { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; border-top: 1px solid var(--line); }
.deal-card dt { color: var(--muted); font-size: .82rem; }
.deal-card dd { margin: 0; font-weight: 800; text-align: right; }

@media (max-width: 760px) {
  .deals-heading,
  .deal-grid { grid-template-columns: 1fr; }
  .deals-heading { gap: 18px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


.finance-documents { margin-top: 28px; padding: 20px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .7); }
.finance-documents h3 { margin-bottom: 8px; font-size: 1.06rem; }
.finance-documents p { margin-bottom: 12px; font-size: .92rem; }
.finance-documents ul { margin-top: 0; gap: 8px; font-size: .9rem; }

.finance-checklist-button { margin-top: 8px; color: var(--pine); font-weight: 800; }
.finance-checklist-button:disabled { opacity: .6; cursor: wait; }
.finance-checklist-status { margin: 8px 0 0 !important; color: var(--muted); font-size: .82rem !important; }

.finance-checklist-actions { display: grid; gap: 8px; margin-top: 8px; }

.form-privacy { margin: -4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.form-privacy a, .privacy-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-content { padding-bottom: 96px; }
.legal-content .article-copy { max-width: 800px; }
.legal-content .article-copy h2 { margin-top: 36px; font-size: 1.5rem; }

.cookie-banner{position:fixed;z-index:100;right:20px;bottom:20px;left:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.55fr) auto;gap:24px;align-items:center;max-width:1180px;margin:0 auto;padding:24px;border:1px solid rgba(255,255,255,.26);border-radius:var(--radius);background:#172026;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.32)}.cookie-banner h2{font-size:1.35rem}.cookie-banner p{margin:0;color:rgba(255,255,255,.75);font-size:.9rem}.cookie-banner a{color:#d9e100;text-decoration:underline}.cookie-options{display:grid;grid-template-columns:auto 1fr;gap:7px 10px;color:rgba(255,255,255,.78);font-size:.82rem}.cookie-options label{display:contents;color:#fff;font-size:.9rem}.cookie-options input{accent-color:var(--gold)}.cookie-actions{display:grid;gap:8px}.cookie-actions .button{white-space:nowrap}.cookie-settings-link{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}@media(max-width:860px){.cookie-banner{grid-template-columns:1fr;gap:16px}.cookie-actions{grid-template-columns:1fr 1fr}.cookie-actions .button:first-child{grid-column:1/-1}}@media(max-width:520px){.cookie-banner{right:12px;bottom:12px;left:12px;padding:18px}.cookie-actions{grid-template-columns:1fr}}

.cookie-banner strong { color: #ffffff; }
.reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:min(100%,var(--container));margin:0 auto}.reference-case{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.reference-case img{width:100%;aspect-ratio:3/2;object-fit:cover}.reference-case>div{padding:22px}.reference-case dl{display:grid;gap:10px;margin:20px 0 0}.reference-case dl div{padding-top:10px;border-top:1px solid var(--line)}.reference-case dt{color:var(--muted);font-size:.8rem}.reference-case dd{margin:3px 0 0;font-weight:650}.reference-cta{display:flex;justify-content:space-between;gap:28px;align-items:end;background:var(--pine);color:#fff}.reference-cta h2{max-width:700px;color:#fff}.reference-cta .eyebrow{color:#d9e100}@media(max-width:760px){.reference-grid{grid-template-columns:1fr}.reference-cta{align-items:flex-start;flex-direction:column}}
.reference-voice{background:#fff}.reference-voice-inner{width:min(100%,820px);margin:0 auto;padding:36px 42px;border-left:4px solid var(--gold);background:var(--paper)}.reference-voice blockquote{margin:14px 0 18px;font-size:1.42rem;font-weight:680;line-height:1.35}.reference-voice-meta{margin:0;color:var(--muted);font-size:.9rem}@media(max-width:760px){.reference-voice-inner{padding:28px 24px}.reference-voice blockquote{font-size:1.2rem}}
.reference-voice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:min(100%,var(--container));margin:0 auto}.reference-voice-grid .reference-voice-inner{width:auto;margin:0}@media(max-width:760px){.reference-voice-grid{grid-template-columns:1fr}}
.reference-cta-actions{display:flex;flex-wrap:wrap;gap:10px}.reference-cta-actions .button-secondary{background:#fff;color:var(--pine)}

.privacy-check { align-items: start; column-gap: 10px; }
.privacy-check span { display: block; min-width: 0; }
.privacy-check a { display: inline; }

.cookie-banner{border-color:rgba(217,225,0,.40);background:linear-gradient(135deg,#172026 0%,#104d60 100%);gap:28px}.cookie-copy .eyebrow{color:#d9e100}.cookie-banner h2{margin:4px 0 9px;font-size:1.5rem}.cookie-options{display:grid;gap:10px;padding:15px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(255,255,255,.07);color:#fff}.cookie-options-title{color:#d9e100!important;font-size:.73rem!important;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.cookie-option{display:grid!important;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;color:#fff!important;font-size:.9rem!important;line-height:1.3}.cookie-option input{width:18px;height:18px;margin:1px 0 0;accent-color:#d9e100}.cookie-option strong,.cookie-option small{display:block}.cookie-option strong{font-size:.91rem}.cookie-option small{margin-top:3px;color:rgba(255,255,255,.66);font-size:.78rem;line-height:1.35}.cookie-actions .button{min-height:42px}.cookie-settings-link{color:inherit;font-size:.82rem;opacity:.86}.cookie-settings-link:hover{opacity:1;color:var(--gold)}

@media (max-width: 520px) {
  .cookie-actions { grid-template-columns: 1fr; gap: 10px; }
  .cookie-actions .button,
  .cookie-actions .button:first-child { grid-column: auto; width: 100%; min-height: 46px; justify-content: center; }
}

@media (max-width: 380px) {
  .cookie-banner { right: 8px; bottom: 8px; left: 8px; gap: 13px; padding: 15px; }
  .cookie-banner h2 { font-size: 1.22rem; }
  .cookie-banner p { font-size: .82rem; }
  .cookie-options { gap: 8px; padding: 12px; }
  .cookie-option { gap: 8px; }
  .cookie-option small { font-size: .74rem; }
  .cookie-actions { gap: 8px; }
  .cookie-actions .button { min-height: 42px; padding: 10px 12px; font-size: .88rem; }
}

/* Einheitliche Auswahlkarten für Google Analytics und Marketing */
.cookie-options { grid-template-columns: minmax(0, 1fr); }
.cookie-option { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(0,0,0,.12); }
.cookie-option:hover { border-color: rgba(242,194,123,.52); background: rgba(255,255,255,.06); }
.cookie-option input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border: 2px solid rgba(255,255,255,.72); border-radius: 4px; background: transparent; cursor: pointer; }
.cookie-option input[type="checkbox"]:checked { border-color: var(--gold); background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b3e39' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='m3 8 3 3 7-7'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 15px; }
.cookie-option input[type="checkbox"]:focus-visible { outline: 3px solid rgba(242,194,123,.55); outline-offset: 2px; }
.cookie-option span { min-width: 0; }
.cookie-option strong { margin-top: 1px; }

.cookie-banner p { color: rgba(255,255,255,.9); }
.cookie-options { border-color: rgba(255,255,255,.28); background: rgba(0,0,0,.18); }
.cookie-option { border-color: rgba(255,255,255,.24); background: rgba(0,0,0,.2); }
.cookie-option small { color: rgba(255,255,255,.84); }
.cookie-option strong { color: #ffffff; }
.cookie-options-title { color: #eff47a !important; }
.cookie-banner a { color: #eff47a; }

@media (prefers-color-scheme: dark) {
  .cookie-banner { border-color: rgba(217,225,0,.48); background: linear-gradient(135deg,#104d60 0%,#104d60 100%); box-shadow: 0 24px 68px rgba(0,0,0,.55); }
  .cookie-options { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.32); }
  .cookie-option { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.28); }
  .cookie-option:hover { background: rgba(255,255,255,.1); border-color: #eff47a; }
  .cookie-actions .button-ghost { border-color: rgba(255,255,255,.48); color: #fff; }
  .cookie-actions .button-secondary { background: #f6f2eb; color: #092f2b; }
}

@media (prefers-color-scheme: dark) {
  .site-footer { border-top-color: rgba(255,255,255,.18); }
  .site-footer p { color: rgba(255,255,255,.74); }
  .site-footer a,
  .site-footer .cookie-settings-link { color: rgba(255,255,255,.88); }
  .site-footer a:hover,
  .site-footer .cookie-settings-link:hover { color: #eff47a; }
}

/* Neu gestaltete Cookie-Einstellungen */
.cookie-banner{grid-template-columns:minmax(0,1fr) minmax(300px,.7fr);max-width:980px;padding:0;gap:0;overflow:hidden;border:1px solid rgba(217,225,0,.40);border-radius:12px;background:#104d60;box-shadow:0 28px 76px rgba(0,0,0,.5)}
.cookie-copy{padding:30px;background:linear-gradient(145deg,#1a667a,#104d60)}.cookie-kicker{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#d9e100;font-size:.75rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.cookie-kicker span{font-size:1.25rem;line-height:0}.cookie-banner h2{margin:0 0 10px;font-size:1.65rem;letter-spacing:-.02em}.cookie-banner p{color:rgba(255,255,255,.84);line-height:1.55}.cookie-current{margin-top:15px!important;padding:10px 12px;border-left:2px solid #d9e100;background:rgba(255,255,255,.06);font-size:.8rem!important}.cookie-privacy-link{display:inline-flex;gap:7px;margin-top:17px;color:#eff47a!important;font-size:.86rem;font-weight:750;text-decoration:none!important}.cookie-privacy-link:hover{text-decoration:underline!important}
.cookie-options{grid-template-columns:1fr;gap:9px;padding:25px;background:#fff;color:var(--ink);border:0;border-radius:0}.cookie-options-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:3px}.cookie-options-head p{color:var(--ink)!important;font-size:.88rem!important;font-weight:800}.cookie-options-head span{color:var(--muted);font-size:.72rem}.cookie-option{grid-template-columns:minmax(0,1fr) 42px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:8px;background:#faf9f7;color:var(--ink)!important}.cookie-option:hover{border-color:rgba(26,102,122,.38);background:#fff}.cookie-option-copy strong{color:var(--ink);font-size:.9rem}.cookie-option-copy small{color:var(--muted);font-size:.76rem;line-height:1.42}.cookie-option input{position:absolute;opacity:0;pointer-events:none}.cookie-switch{position:relative;display:block;width:38px;height:22px;border-radius:999px;background:#c9d1d0;transition:background .18s ease}.cookie-switch::after{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.24);content:"";transition:transform .18s ease}.cookie-option input:checked+.cookie-switch{background:var(--pine)}.cookie-option input:checked+.cookie-switch::after{transform:translateX(16px)}.cookie-option:has(input:focus-visible){outline:3px solid rgba(26,102,122,.28);outline-offset:2px}
.cookie-actions{grid-column:1/-1;grid-template-columns:1fr 1fr 1fr;gap:0;padding:14px 18px;border-top:1px solid rgba(255,255,255,.12);background:#104d60}.cookie-actions .button{min-height:42px;border-radius:6px}.cookie-actions .button-ghost{color:#fff;border-color:rgba(255,255,255,.36)}
@media(max-width:760px){.cookie-banner{grid-template-columns:1fr;right:12px;bottom:12px;left:12px}.cookie-copy,.cookie-options{padding:22px}.cookie-actions{grid-template-columns:1fr;gap:8px;padding:14px}.cookie-actions .button{width:100%}}

.site-footer .cookie-settings-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .cookie-settings-link:hover { color: inherit; }
@media (prefers-color-scheme: dark) { .site-footer .cookie-settings-link:hover { color: #eff47a; } }

@media (max-width: 460px) {
  .site-footer { gap: 14px; padding-top: 24px; padding-bottom: 24px; }
  .site-footer div { gap: 11px; }
  .site-footer a,
  .site-footer .cookie-settings-link { width: fit-content; min-height: 24px; }
}


/* Corporate Design: SPECHT IMMOBILIEN – Petrol #1A667A, Hellgrün #D9E100 */
:root {
  --ink: #1a667a;
  --muted: #466a74;
  --paper: #f5f8f4;
  --mist: #e4eeee;
  --pine: #1a667a;
  --pine-dark: #104d60;
  --clay: #d9e100;
  --gold: #d9e100;
  --line: rgba(26, 102, 122, 0.18);
  --shadow: 0 22px 60px rgba(16, 77, 96, 0.16);
}
.eyebrow, .project-code, .news-item p, .result-kicker, .process-step span { color: #6d7500; }
.hero .eyebrow, .offmarket-action .text-link, .reference-cta .eyebrow { color: #d9e100; }
.service-number { background: rgba(217, 225, 0, 0.2); color: #627000; }
.service-panel li::before { background: #d9e100; }
.ai-result::before { background: linear-gradient(90deg, #1a667a 0 68%, #d9e100 68% 100%); }
.site-footer { background: #104d60; }
.contact-section { background-image: linear-gradient(120deg, rgba(26, 102, 122, 0.94), rgba(16, 77, 96, 0.94)), url("assets/chupferwis-exterior.jpg"); }

/* Kontrast auf der dunklen Offmarket-Fläche */
.offmarket-section .eyebrow { color: #d9e100; }

/* Kontrastprüfung: Hellgrün wird nur auf dunklen Flächen eingesetzt. */
.button-secondary { color: #104d60; }
.button-secondary:hover { color: #104d60; }

/* Kontrast- und Fokusprüfung für Navigation und Schaltflächen */
.site-nav a:focus-visible,
.article-site-nav a:focus-visible,
.button:focus-visible,
.filter-button:focus-visible,
.market-filter:focus-visible,
.text-link:focus-visible,
button.text-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #1a667a;
}
.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

/* Hellgrüne Kennzeichnungen auf dunklen Flächen */
.offmarket-action .project-code,
.feature-band .eyebrow,
.contact-section .eyebrow {
  color: #d9e100;
}

/* Kontrastprüfung für Kontakt- und Anfrageformulare */
.contact-form label,
.offmarket-form-card label {
  color: #365d68;
}
.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea,
.offmarket-form-card input:not([type="checkbox"]),
.offmarket-form-card select,
.offmarket-form-card textarea {
  border-color: #4c8494;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.offmarket-form-card input::placeholder,
.offmarket-form-card textarea::placeholder {
  color: #466a74;
  opacity: 1;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.offmarket-form-card input:focus,
.offmarket-form-card select:focus,
.offmarket-form-card textarea:focus {
  border-color: #1a667a;
  box-shadow: 0 0 0 3px rgba(26, 102, 122, 0.26);
}

/* Lesbarkeit von Formularhinweisen und Datenschutztexten */
.form-privacy,
.privacy-check,
.finance-checklist-status {
  color: #365d68;
  font-size: 0.86rem;
  line-height: 1.55;
}
.form-privacy a,
.privacy-check a {
  color: #1a667a;
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.form-privacy a:focus-visible,
.privacy-check a:focus-visible,
.legal-content a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #1a667a;
}
.legal-content .article-copy > p {
  color: #365d68;
  line-height: 1.7;
}

/* Lesbarkeit der Cookie-Einstellungen und Zustimmungsoptionen */
.cookie-copy > p,
.cookie-current {
  color: rgba(255, 255, 255, 0.92) !important;
}
.cookie-options-head span {
  color: #365d68;
  font-size: 0.8rem;
}
.cookie-option-copy strong {
  font-size: 0.95rem;
}
.cookie-option-copy small {
  color: #365d68;
  font-size: 0.82rem;
  line-height: 1.5;
}
.cookie-switch {
  background: #5e8792;
}
.cookie-option:has(input:focus-visible) {
  outline: 3px solid #1a667a;
  outline-offset: 3px;
}
.cookie-privacy-link:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #1a667a;
}

/* Kontrastprüfung der Fusszeile und Footer-Links */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.86);
}
.site-footer p {
  color: rgba(255, 255, 255, 0.86);
}
.site-footer a,
.site-footer .cookie-settings-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration-thickness: 2px;
}
.site-footer a:hover,
.site-footer .cookie-settings-link:hover {
  color: #d9e100;
}
.site-footer a:focus-visible,
.site-footer .cookie-settings-link:focus-visible {
  outline: 2px solid #d9e100;
  outline-offset: 3px;
  box-shadow: none;
}

/* Kontrastprüfung für Überschriften und Fliesstexte */
.market-intro p,
.market-stats span {
  color: rgba(255, 255, 255, 0.86);
}
.feature-copy p:not(.eyebrow),
.offmarket-action p,
.article-meta {
  color: rgba(255, 255, 255, 0.88);
}
.market-intro h3,
.market-stats strong,
.offmarket-action h3,
.feature-copy h2,
.contact-copy h2 {
  color: #ffffff;
}

/* Vollständige Navigation auf Referenz- und Beitragsseiten */
.article-site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .article-header {
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .article-header .article-site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }
  .article-site-nav a {
    justify-content: center;
    min-height: 36px;
    padding: 7px 4px;
    font-size: 0.72rem;
    text-align: center;
  }
  .article-hero {
    padding-top: 194px;
  }
}

/* Mobile Kopfbereiche und Hero-Texte auf Unterseiten */
@media (max-width: 760px) {
  .article-hero {
    min-height: max(62svh, 540px);
    max-height: none;
    padding: 194px var(--page-padding) 52px;
  }
  .article-hero .hero-content > * {
    max-width: 100%;
  }
  .article-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.05rem, 9vw, 2.6rem);
    line-height: 1.04;
  }
  .article-hero .hero-copy {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.55;
  }
  .article-hero .eyebrow {
    margin-bottom: 10px;
    font-size: 0.76rem;
  }
}
@media (max-width: 380px) {
  .article-header .article-site-nav {
    gap: 3px;
  }
  .article-site-nav a {
    min-height: 34px;
    padding: 6px 3px;
    font-size: 0.69rem;
  }
  .article-hero {
    min-height: max(64svh, 530px);
    padding-top: 188px;
  }
}

/* Mobile Formularbereiche auf allen Unterseiten */
@media (max-width: 760px) {
  .contact-form,
  .offmarket-form-card {
    gap: 14px;
    padding: 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 14px;
  }
  .form-row label {
    flex-basis: auto;
  }
  .contact-form input:not([type="checkbox"]),
  .contact-form select,
  .contact-form textarea,
  .offmarket-form-card input:not([type="checkbox"]),
  .offmarket-form-card select,
  .offmarket-form-card textarea {
    min-height: 52px;
    font-size: 16px;
  }
  .contact-form textarea,
  .offmarket-form-card textarea {
    min-height: 132px;
  }
  .contact-form .button,
  .offmarket-form-card .button {
    width: 100%;
  }
  .privacy-check {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .privacy-check input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
  }
  .finance-checklist-button {
    width: 100%;
    min-height: 44px;
    line-height: 1.45;
  }
}
@media (max-width: 380px) {
  .contact-form,
  .offmarket-form-card {
    padding: 18px;
  }
}

/* Mobile Projekt-, Referenz- und News-Karten */
@media (max-width: 760px) {
  .project-grid,
  .reference-grid,
  .news-grid {
    gap: 16px;
  }
  .project-image {
    aspect-ratio: 3 / 2;
  }
  .project-body,
  .reference-case > div {
    padding: 20px;
  }
  .news-item {
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }
  .news-item img {
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .news-item h3 {
    margin-bottom: 8px;
    font-size: 1.22rem;
    line-height: 1.28;
  }
  .project-card .text-link,
  .reference-case .text-link,
  .news-item .text-link {
    min-height: 44px;
    padding: 10px 0;
  }
}
@media (max-width: 380px) {
  .project-body,
  .reference-case > div,
  .news-item {
    padding: 16px;
  }
}

/* Hamburger-Menü für die vollständige Navigation auf mobilen Unterseiten */
.article-nav-toggle {
  display: none;
}
@media (max-width: 760px) {
  .article-header {
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px;
  }
  .article-nav-toggle {
    display: block;
    margin-left: auto;
  }
  .article-header .article-site-nav {
    position: fixed;
    top: 90px;
    right: 12px;
    left: 12px;
    display: none;
    width: auto;
    max-height: calc(100svh - 108px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .article-header .article-site-nav.is-open {
    display: flex;
  }
  .article-site-nav a {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.94rem;
  }
  .article-hero {
    min-height: max(62svh, 500px);
    padding-top: 120px;
  }
}

/* Tastatur- und Touch-Bedienung des mobilen Unterseiten-Menüs */
.article-nav-toggle {
  touch-action: manipulation;
}
.article-nav-toggle:focus-visible {
  outline: 2px solid #d9e100;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #1a667a;
}
@media (max-width: 760px) {
  .article-header .article-site-nav {
    overscroll-behavior: contain;
  }
}

/* Bedienbarkeit des mobilen Hauptmenüs auf der Startseite */
.nav-toggle {
  touch-action: manipulation;
}
.nav-toggle:focus-visible {
  outline: 2px solid #d9e100;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #1a667a;
}
@media (max-width: 1020px) {
  .site-nav {
    max-height: calc(100svh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav a {
    min-height: 48px;
  }
}

/* Einheitliche News-Bildausschnitte auf mobilen Geräten */
@media (max-width: 760px) {
  .news-item img {
    height: max(170px, min(250px, calc((100vw - 68px) * 0.5625)));
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
  }
}

/* Unbeschnittene Referenzbilder auf mobilen Geräten */
@media (max-width: 760px) {
  .project-image,
  .reference-case img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
  }
}

/* Ausgewogene Bildausschnitte der Offmarket-Teaser auf Mobilgeräten */
@media (max-width: 760px) {
  .offmarket-hero {
    min-height: max(58svh, 470px);
    background-position: center center;
  }
}

/* Kontakt-Chat mit persönlicher Weiterleitung */
.contact-chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.contact-chat-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 18px; border: 0; border-radius: 999px; background: #1a667a; color: #fff; box-shadow: 0 14px 34px rgba(16,77,96,.28); font: inherit; font-weight: 800; cursor: pointer; }
.contact-chat-toggle:hover { background: #104d60; }
.contact-chat-toggle-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #d9e100; color: #d9e100; box-shadow: 0 0 0 3px rgba(217,225,0,.22); font-size: 0; }
.contact-chat-panel { position: absolute; right: 0; bottom: 64px; display: none; width: min(390px, calc(100vw - 40px)); max-height: min(680px, calc(100svh - 104px)); overflow-y: auto; border: 1px solid rgba(26,102,122,.22); border-radius: 14px; background: #fff; box-shadow: 0 26px 70px rgba(16,77,96,.26); }
.contact-chat-panel.is-open { display: block; }
.contact-chat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 18px; border-bottom: 4px solid #d9e100; background: #1a667a; color: #fff; }
.contact-chat-header p { margin: 0 0 4px; color: #d9e100; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-chat-header h2 { margin: 0; color: #fff; font-size: 1.35rem; line-height: 1.15; }
.contact-chat-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.contact-chat-messages { display: grid; gap: 12px; padding: 18px 18px 8px; }
.contact-chat-message { max-width: 92%; padding: 12px 14px; border-radius: 10px 10px 10px 2px; background: #edf5f3; color: #365d68; font-size: .92rem; line-height: 1.5; }
.contact-chat-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px 14px; }
.contact-chat-topics button { min-height: 34px; padding: 7px 10px; border: 1px solid rgba(26,102,122,.28); border-radius: 999px; background: #fff; color: #1a667a; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.contact-chat-topics button:hover { border-color: #1a667a; background: #f5f8f4; }
.contact-chat-form { display: grid; gap: 12px; padding: 0 18px 20px; }
.contact-chat-form label { display: grid; gap: 6px; color: #365d68; font-size: .84rem; font-weight: 750; }
.contact-chat-form label span { color: #466a74; font-weight: 500; }
.contact-chat-form input, .contact-chat-form textarea { border-color: #4c8494; font-size: 16px; }
.contact-chat-form textarea { min-height: 100px; }
.contact-chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-chat-form .button { width: 100%; }
.contact-chat-status { min-height: 22px; margin: 0; color: #1a667a; font-size: .84rem; font-weight: 700; }
.contact-chat-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.contact-chat-toggle:focus-visible, .contact-chat-close:focus-visible, .contact-chat-topics button:focus-visible { outline: 2px solid #d9e100; outline-offset: 3px; }
@media (max-width: 760px) { .contact-chat { right: 12px; bottom: 12px; } .contact-chat-panel { right: 0; bottom: 62px; width: min(390px, calc(100vw - 24px)); } }
@media (max-width: 420px) { .contact-chat-toggle { min-height: 48px; padding: 11px 15px; } .contact-chat-header, .contact-chat-form { padding-right: 16px; padding-left: 16px; } .contact-chat-messages, .contact-chat-topics { padding-right: 16px; padding-left: 16px; } .contact-chat-fields { grid-template-columns: 1fr; } }

/* Download der Unternehmensbroschüre */
.brochure-download { display: flex; align-items: end; justify-content: space-between; gap: 28px; width: min(100%, var(--container)); margin: 42px auto 0; padding: 24px 26px; border: 1px solid var(--line); border-left: 4px solid #d9e100; border-radius: var(--radius); background: #f5f8f4; }
.brochure-download .eyebrow { margin-bottom: 8px; }
.brochure-download h3 { margin-bottom: 7px; color: #1a667a; }
.brochure-download p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #365d68; }
.brochure-download .button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) { .brochure-download { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 30px; padding: 20px; } .brochure-download .button { width: 100%; white-space: normal; } }

/* Weiterführender Link im Bereich Aktuelles */
.news-more { display: flex; justify-content: center; width: min(100%, var(--container)); margin: 28px auto 0; }
.news-more .button { min-width: 250px; }
@media (max-width: 460px) { .news-more .button { width: 100%; } }

/* Mobile Darstellung des Links zu allen Beiträgen */
@media (max-width: 760px) {
  .news-more { margin-top: 24px; padding: 0 2px; }
  .news-more .button { display: inline-flex; width: min(100%, 360px); min-height: 52px; justify-content: center; white-space: normal; text-align: center; }
}

/* Mobile Feinanpassung für den Broschüren-Download */
@media (max-width: 420px) {
  .brochure-download { gap: 16px; padding: 18px; }
  .brochure-download h3 { font-size: 1.18rem; line-height: 1.28; }
  .brochure-download p:not(.eyebrow) { font-size: .94rem; line-height: 1.55; }
  .brochure-download .button { min-height: 54px; padding-right: 14px; padding-left: 14px; text-align: center; }
}

/* Mobile Feinanpassung des Kontakt-Chats */
@media (max-width: 420px) {
  .contact-chat { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .contact-chat-panel { bottom: 58px; width: calc(100vw - 24px); max-height: calc(100svh - 84px); border-radius: 12px; }
  .contact-chat-header { gap: 12px; padding: 16px 16px 14px; }
  .contact-chat-header h2 { font-size: 1.22rem; }
  .contact-chat-close { width: 34px; height: 34px; flex: 0 0 34px; }
  .contact-chat-messages { gap: 10px; padding: 14px 16px 6px; }
  .contact-chat-message { max-width: 100%; padding: 11px 12px; font-size: .9rem; }
  .contact-chat-topics { gap: 7px; padding: 8px 16px 12px; }
  .contact-chat-topics button { min-height: 38px; padding: 7px 9px; }
  .contact-chat-form { gap: 11px; padding: 0 16px 16px; }
  .contact-chat-form textarea { min-height: 90px; }
}


/* Kompakte Cookie-Einstellungen */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 0, .5);
  border-radius: 10px;
  background: #104d60;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
}
.cookie-copy { padding: 20px 20px 16px; background: transparent; }
.cookie-kicker { margin: 0 0 5px; color: #d9e100; font-size: .7rem; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.cookie-banner h2 { margin: 0 0 6px; color: #fff; font-size: 1.28rem; line-height: 1.18; letter-spacing: -.015em; }
.cookie-banner .cookie-copy > p:not(.cookie-kicker) { margin: 0; color: rgba(255,255,255,.84) !important; font-size: .82rem; line-height: 1.45; }
.cookie-privacy-link { margin-top: 10px; color: #eff47a !important; font-size: .78rem; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.cookie-option { display: grid !important; grid-template-columns: minmax(0, 1fr) 38px; grid-column: 1 / -1; align-items: center; gap: 12px; margin: 0 20px 16px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(255,255,255,.07); color: #fff !important; }
.cookie-option-copy strong { display: block; color: #fff; font-size: .84rem; line-height: 1.2; }
.cookie-option-copy small { display: block; margin-top: 2px; color: rgba(255,255,255,.76); font-size: .74rem; line-height: 1.35; }
.cookie-option input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-switch { width: 36px; height: 21px; background: #7397a0; }
.cookie-switch::after { width: 15px; height: 15px; }
.cookie-option input:checked + .cookie-switch { background: #d9e100; }
.cookie-option input:checked + .cookie-switch::after { transform: translateX(15px); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.08); }
.cookie-actions .button { min-height: 39px; padding: 8px 10px; border-radius: 6px; font-size: .78rem; white-space: normal; }
.cookie-actions .button-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 520px) {
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .cookie-copy { padding: 18px 18px 14px; }
  .cookie-option { margin: 0 18px 14px; }
  .cookie-actions { padding: 11px 18px 14px; }
}

/* Kontrast der sekundären Cookie-Aktion */
.cookie-actions .button-ghost,
.cookie-actions .button-ghost:hover,
.cookie-actions .button-ghost:focus-visible {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.58);
}
.cookie-actions .button-ghost:hover,
.cookie-actions .button-ghost:focus-visible {
  background: rgba(255,255,255,.14);
}

/* GEO: fachliche Nachweise, Leistungsbereiche und FAQ */
.section-answer {
  max-width: 780px;
  grid-column: 2;
  margin: -24px 0 0;
  color: var(--muted);
}
.authority-section { background: #ffffff; }
.authority-grid,
.faq-list {
  width: min(100%, var(--container));
  margin: 0 auto;
}
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.authority-grid article,
.faq-list article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.authority-grid h3,
.faq-list h3 { margin-top: 0; }
.authority-grid dl { margin: 24px 0 0; }
.authority-grid dl div {
  display: grid;
  grid-template-columns: minmax(120px, .6fr) minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.authority-grid dt { color: var(--muted); }
.authority-grid dd { margin: 0; font-weight: 700; }
.authority-grid table { width: 100%; margin-top: 24px; border-collapse: collapse; text-align: left; }
.authority-grid caption { margin-bottom: 10px; color: var(--muted); font-weight: 700; text-align: left; }
.authority-grid th,
.authority-grid td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.authority-grid th { color: var(--ink); }
.faq-section { background: var(--paper); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-list article { min-height: 100%; }
.answer-first { color: var(--muted); }
@media (max-width: 760px) {
  .section-answer { grid-column: auto; margin: -24px 0 34px; }
  .authority-grid,
  .faq-list { grid-template-columns: 1fr; }
}

/* Regionale Landingpages */
.local-landing-hero {
  min-height: 64svh;
  background: linear-gradient(125deg, #104d60 0%, #1a667a 62%, #466a74 100%);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
}
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.local-intro { align-items: start; }
.local-aside dl { display: grid; gap: 0; margin: 24px 0 0; }
.local-aside dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.local-aside dt { color: var(--muted); }
.local-aside dd { margin: 0; font-weight: 700; }
.local-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.local-list li { padding: 14px 16px; border-left: 3px solid var(--clay); background: var(--paper); }
.local-facts-section { background: #ffffff; }
.local-facts { width: min(100%, var(--container)); margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.local-facts table { width: 100%; border-collapse: collapse; text-align: left; }
.local-facts caption { margin-bottom: 12px; color: var(--muted); font-weight: 700; text-align: left; }
.local-facts th, .local-facts td { padding: 13px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.local-facts th { width: 31%; color: var(--ink); }
.local-crosslink { background: var(--paper); text-align: center; }
.local-crosslink .section-heading { margin-bottom: 26px; text-align: left; }
.local-crosslink .section-answer { text-align: left; }
@media (max-width: 760px) {
  .local-aside dl div { grid-template-columns: 1fr; gap: 2px; }
  .local-facts { padding: 18px; }
  .local-facts th, .local-facts td { display: block; width: 100%; padding: 8px 0; }
}
.local-page-links { margin: 22px 0 0; color: var(--muted); }
.local-page-links a { color: var(--pine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Profil in der fachlichen Einordnung */
.profile-summary {
  display: grid;
  grid-template-columns: minmax(150px, .58fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 24px 0;
}
.profile-portrait {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}
.profile-copy > p { margin-top: 0; color: var(--ink); }
.profile-copy ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}
.profile-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}
.profile-copy li::before {
  position: absolute;
  top: .63em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}
.profile-download { width: fit-content; }
@media (max-width: 640px) {
  .profile-summary { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 320px; }
  .profile-portrait img { min-height: 360px; }
}

/* Lesbarkeit der Antwort im Offmarket-Bereich */
.offmarket-section .section-answer {
  color: rgba(255, 255, 255, 0.92);
}

/* Eingebettete, kontrastreiche Kontakt-Antwort */
.contact-copy .section-answer {
  display: block;
  max-width: 560px;
  margin: 18px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(16, 77, 96, 0.46);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.55;
}

/* Kontrast der Beschriftungen im Kontaktformular */
.contact-form label {
  color: #104d60;
  font-size: 0.94rem;
  font-weight: 800;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #466a74;
  opacity: 1;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  border-color: rgba(16, 77, 96, 0.42);
}

/* Deutliche Tastaturfokusse im Kontaktformular */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  border-color: #104d60;
  outline: 3px solid #104d60;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(217, 225, 0, 0.72);
}
.contact-form button:focus-visible,
.contact-form .form-privacy a:focus-visible {
  outline: 3px solid #d9e100;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #104d60;
}

/* Feldbezogene Fehlermeldungen im Kontaktformular */
.contact-form [aria-invalid="true"] {
  border-color: #9b2434;
  background: #fff8f8;
}
.contact-form [aria-invalid="true"]:focus-visible {
  outline-color: #9b2434;
  box-shadow: 0 0 0 6px rgba(155, 36, 52, 0.18);
}
.field-error {
  display: block;
  margin-top: 2px;
  color: #9b2434;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}
.form-status.is-error {
  padding: 10px 12px;
  border-left: 4px solid #9b2434;
  background: #fff1f2;
  color: #7d1827;
}

/* Mobile Navigation: ausreichend grosse Ziele, Kontrast und Fallback ohne JavaScript */
@media (max-width: 1020px) {
  body:not(.js-ready) .site-nav {
    display: flex;
  }

  .site-nav {
    max-height: calc(100svh - 114px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-color: rgba(16, 77, 96, 0.28);
  }

  .site-nav a {
    min-height: 52px;
    justify-content: flex-start;
    padding: 14px 16px;
    border: 1px solid transparent;
    color: #104d60;
    font-weight: 750;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: #104d60;
    color: #ffffff;
  }

  .site-nav a:focus-visible {
    outline: 3px solid #d9e100;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 3px #104d60;
  }

  .nav-toggle {
    min-width: 48px;
    min-height: 48px;
  }

  .nav-toggle:focus-visible {
    outline: 3px solid #104d60;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(217, 225, 0, 0.72);
  }
}

/* Separater Bereich für digitale Services */
.online-services-section {
  background: var(--paper);
}
.online-services-section .offmarket-action {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 77, 96, 0.06);
}
.online-services-section .offmarket-action:hover {
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(16, 77, 96, 0.12);
}
.online-services-section .offmarket-action h3 {
  color: var(--ink);
}
.online-services-section .offmarket-action p {
  color: var(--muted);
}
.online-services-section .offmarket-action .text-link {
  color: var(--pine);
}

.online-services-section .offmarket-actions {
  width: min(100%, var(--container));
  margin: 0 auto;
}

/* Einheitliche Ausrichtung der Online-Service-Formularseiten */
.offmarket-form-layout {
  gap: clamp(32px, 5vw, 52px);
}
.offmarket-form-intro {
  padding-top: 0;
}
.offmarket-form-card .form-heading {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.offmarket-form-card .form-heading h2 {
  max-width: 620px;
  margin: 0;
  line-height: 1.16;
}
.offmarket-form-card .form-heading .answer-first {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .offmarket-form-card .form-heading {
    padding-bottom: 14px;
  }
}

/* Lange Fachbegriffe in der linken Informationsspalte umbrechen sauber */
.offmarket-form-intro h2 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Lange Überschriften auf mobilen Geräten */
h1,
h2,
h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.2rem, 9vw, 2.85rem);
  }

  h2 {
    font-size: clamp(1.65rem, 7vw, 1.9rem);
    line-height: 1.12;
  }

  h3 {
    font-size: clamp(1.12rem, 5.2vw, 1.28rem);
    line-height: 1.28;
  }

  .section-heading h2,
  .article-copy h2,
  .offmarket-form-intro h2,
  .offmarket-form-card .form-heading h2 {
    text-wrap: balance;
  }
}

/* Lesbarkeit längerer Fliesstexte auf mobilen Geräten */
@media (max-width: 760px) {
  main p,
  main li,
  main dd {
    overflow-wrap: break-word;
  }

  .intro-grid,
  .article-copy > p,
  .offmarket-form-intro p:not(.eyebrow),
  .local-intro p,
  .market-intro p,
  .offmarket-action p,
  .project-body p:not(.project-code),
  .news-item div > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.72;
  }

  .article-copy > p,
  .offmarket-form-intro p:not(.eyebrow),
  .local-intro p {
    margin-bottom: 22px;
  }
}

/* Tabellen und Listen auf mobilen Geräten */
@media (max-width: 760px) {
  .authority-grid table,
  .authority-grid tbody,
  .authority-grid tr,
  .authority-grid td {
    display: block;
    width: 100%;
  }

  .authority-grid thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .authority-grid tr {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .authority-grid td {
    padding: 0;
    border: 0;
  }

  .authority-grid td:first-child {
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 800;
  }

  .article-copy ul,
  .article-copy ol,
  .offmarket-form-intro ul,
  .finance-documents ul {
    padding-left: 1.25rem;
  }

  .article-copy li + li,
  .offmarket-form-intro li + li,
  .finance-documents li + li {
    margin-top: 0;
  }
}

/* Mehr Abstand zwischen Überschrift und Einleitung auf Online-Service-Detailseiten */
.offmarket-form-intro h2 + .answer-first {
  margin-top: 18px;
}
.offmarket-form-card .form-heading h2 + .answer-first {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .offmarket-form-intro h2 + .answer-first {
    margin-top: 16px;
  }
}

/* Grosszügige Feldabstände auf mobilen Geräten */
@media (max-width: 760px) {
  .contact-form,
  .offmarket-form-card {
    gap: 20px;
  }

  .contact-form .form-row,
  .offmarket-form-card .form-row {
    gap: 18px;
  }

  .contact-form .form-row label,
  .offmarket-form-card .form-row label {
    flex-basis: 100%;
  }

  .contact-form label,
  .offmarket-form-card label {
    gap: 9px;
  }
}

/* Lesbarkeit und Ausrichtung im Referenz-CTA */
.reference-cta > div:first-child {
  text-align: center;
}
.reference-cta .eyebrow {
  text-align: center;
}
.reference-cta .answer-first {
  color: rgba(255, 255, 255, 0.92);
}

/* Zentrierte Aktionen im Referenz-Balken */
.reference-cta {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.reference-cta-actions {
  justify-content: center;
}

/* Referenz-Balken im zweispaltigen Layout */
.reference-cta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.reference-cta > div:first-child {
  flex: 1 1 auto;
  text-align: left;
}
.reference-cta .eyebrow {
  text-align: left;
}
.reference-cta-actions {
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .reference-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .reference-cta-actions {
    justify-content: flex-start;
  }
}

/* Gleich hohe Schaltflächen im Referenz-Balken */
.reference-cta-actions {
  align-items: stretch;
}
.reference-cta-actions .button {
  min-height: 52px;
}
@media (min-width: 761px) {
  .reference-cta-actions .button {
    white-space: nowrap;
  }
}

/* Ausgewogene Abstände der Aktionen im Referenz-Balken */
.reference-cta-actions {
  gap: 14px;
}
@media (max-width: 760px) {
  .reference-cta-actions {
    gap: 12px;
  }
}

/* Gewünschten Bezug in der Referenz-Überschrift zusammenhalten */
.reference-cta .no-break {
  white-space: nowrap;
}

/* Farblich gegliederte FAQ-Bereiche */
.faq-list article {
  border-top-width: 4px;
}
.faq-list article:nth-child(3n + 1) {
  border-top-color: #1a667a;
  background: #ffffff;
}
.faq-list article:nth-child(3n + 2) {
  border-top-color: #6f8f98;
  background: #eaf2f2;
}
.faq-list article:nth-child(3n) {
  border-top-color: #a7b000;
  background: #f7f9e8;
}

/* Mobile Lesbarkeit der FAQ-Inhalte */
@media (max-width: 760px) {
  .faq-list {
    gap: 14px;
  }

  .faq-list article {
    padding: 22px 20px;
  }

  .faq-list h3 {
    margin-bottom: 12px;
    font-size: 1.14rem;
    line-height: 1.32;
  }

  .faq-list .answer-first {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Farbige Trennung zwischen Artikel-CTA und FAQ */
.article-cta + .faq-section {
  background: #e4eeee;
}

/* Ausgewogener Übergang vom Beratungsgespräch zur FAQ */
.article-cta + .faq-section {
  padding-top: 72px;
}
@media (max-width: 760px) {
  .article-cta + .faq-section {
    padding-top: 56px;
  }
}

/* Einheitliche Innenabstände der FAQ-Kacheln */
.faq-list article {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list h3,
.faq-list .answer-first {
  margin: 0;
}
@media (max-width: 760px) {
  .faq-list article {
    gap: 14px;
  }
  .faq-list h3 {
    margin-bottom: 0;
  }
}

/* Referenz-Balken am Raster der Beispielstimmen ausrichten */
.reference-cta {
  padding-right: max(var(--page-padding), calc((100% - var(--container)) / 2));
  padding-left: max(var(--page-padding), calc((100% - var(--container)) / 2));
}

/* Farbige FAQ-Abgrenzung auf Online-Service-Detailseiten */
.online-service-detail .faq-section {
  background: #e4eeee;
}

/* Über-uns-Seite */
.about-hero {
  background: linear-gradient(125deg, #104d60 0%, #1a667a 62%, #466a74 100%);
}
.about-profile-section { background: #ffffff; }
.about-profile-grid,
.about-timeline,
.about-expertise-grid,
.about-qualification,
.about-cv {
  width: min(100%, var(--container));
  margin: 0 auto;
}
.about-profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.about-portrait { overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.about-portrait img { width: 100%; min-height: 480px; object-fit: cover; object-position: 50% 30%; }
.about-profile-copy h2 { max-width: 680px; }
.about-profile-copy > p:not(.eyebrow) { color: var(--muted); }
.about-facts { display: grid; gap: 0; margin: 30px 0 0; }
.about-facts div { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 1fr); gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.about-facts dt { color: var(--muted); }
.about-facts dd { margin: 0; font-weight: 700; }
.about-experience-section { background: var(--paper); }
.about-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-timeline article,
.about-expertise-grid article { min-height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.about-timeline span { display: block; margin-bottom: 32px; color: #6d7500; font-weight: 800; }
.about-timeline h3,
.about-expertise-grid h3 { margin-top: 0; }
.about-timeline p,
.about-expertise-grid p { margin-bottom: 0; color: var(--muted); }
.about-expertise-section { background: #ffffff; }
.about-expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.about-qualification-section { background: var(--paper); }
.about-qualification { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.about-qualification dl { display: grid; gap: 0; margin: 0; }
.about-qualification dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.about-qualification dt { margin-bottom: 4px; color: #6d7500; font-weight: 800; }
.about-qualification dd { margin: 0; color: var(--muted); }
.about-cv-section { background: #ffffff; }
.about-cv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.about-cv h2 { max-width: 650px; }
.about-cv .answer-first { max-width: 720px; margin-bottom: 0; }
.about-cta { background: #104d60; color: #ffffff; }
.about-cta h2 { color: #ffffff; }
.about-cta .answer-first { color: rgba(255, 255, 255, .9); }
@media (max-width: 760px) {
  .about-profile-grid,
  .about-timeline,
  .about-expertise-grid,
  .about-qualification { grid-template-columns: 1fr; }
  .about-profile-grid,
  .about-qualification { gap: 32px; }
  .about-portrait { max-width: 420px; }
  .about-portrait img { min-height: 390px; }
  .about-facts div { grid-template-columns: 1fr; gap: 3px; }
  .about-cv { padding: 24px; }
}

/* Hochauflösendes Portrait mit passendem Bildrahmen */
.about-portrait {
  aspect-ratio: 11 / 14;
}
.about-portrait img {
  height: 100%;
  min-height: 0;
}
@media (max-width: 760px) {
  .about-portrait img {
    min-height: 0;
  }
}

/* Wortmarke im Über-uns-Titel zusammenhalten */
.about-company-name {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.72rem, 8.1vw, 5rem);
}
.about-title-subline {
  display: block;
}

/* Kompakte Über-uns-Titel auf mobilen Geräten */
@media (max-width: 760px) {
  .about-company-name {
    font-size: clamp(1.45rem, 7.2vw, 2.35rem);
    line-height: 1.08;
  }

  .about-title-subline {
    margin-top: 8px;
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.12;
  }
}

/* Mobile Abstände im Portrait- und Profilbereich */
@media (max-width: 760px) {
  .about-profile-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .about-profile-grid {
    gap: 24px;
  }

  .about-profile-copy h2 {
    margin-bottom: 16px;
  }

  .about-facts {
    margin-top: 24px;
  }

  .about-facts div {
    padding: 10px 0;
  }
}

/* Mobile Faktenliste im Profilbereich */
@media (max-width: 760px) {
  .about-facts dt {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .about-facts dd {
    line-height: 1.5;
  }

  .about-facts div:last-child {
    border-bottom: 1px solid var(--line);
  }
}

/* Eigenständige Farbfläche für den Abschluss der Über-uns-Seite */
.about-cta {
  background: linear-gradient(120deg, #1a667a 0%, #2a7e91 100%);
}
.about-cta .button-primary {
  background: #ffffff;
  color: #104d60;
}
.about-cta .button-primary:hover {
  background: #f5f8f4;
  color: #104d60;
}

/* Mehr Abstand zwischen Profilüberschrift und Einleitung */
.about-profile-copy h2 + .answer-first {
  margin-top: 20px;
}

/* Abschluss-Balken der Über-uns-Seite im FAQ-Farbton */
.about-cta {
  background: #e4eeee;
  color: var(--ink);
}
.about-cta h2 {
  color: var(--ink);
}
.about-cta .answer-first {
  color: var(--muted);
}
.about-cta .button-primary {
  background: var(--pine);
  color: #ffffff;
}
.about-cta .button-primary:hover {
  background: var(--pine-dark);
  color: #ffffff;
}

/* Kontrast im Abschluss-Balken der Über-uns-Seite */
.about-cta .answer-first {
  color: #104d60;
  font-weight: 600;
  line-height: 1.65;
}

/* Über-uns-Hero wie auf der Startseite */
.about-hero {
  background-image: linear-gradient(90deg, rgba(16, 77, 96, 0.88) 0%, rgba(16, 77, 96, 0.70) 42%, rgba(16, 77, 96, 0.22) 100%), url("assets/hero.jpg");
  background-position: center;
}

/* Zusätzliche Lesbarkeit des Über-uns-Titels auf dem Bildmotiv */
.about-hero h1,
.about-hero .hero-copy {
  text-shadow: 0 2px 18px rgba(5, 35, 43, 0.5);
}

/* Titel der Online-Service-Kacheln im Ton der KI-Einschätzung */
.online-services-section .offmarket-action h3 {
  color: #6d7500;
}

/* Überschriftenkennzeichnung der Online-Service-Kacheln im KI-Farbton */
.online-services-section .offmarket-action .project-code {
  color: #6d7500;
}

/* Kacheltitel im selben Petrolton wie die zugehörigen Links */
.online-services-section .offmarket-action h3 {
  color: var(--pine);
}

/* Einleitung direkt unter dem Referenz-Titel */
.projects-section > .section-heading > .answer-first {
  grid-column: 2;
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .projects-section > .section-heading > .answer-first {
    grid-column: auto;
    margin-top: 8px;
  }
}

/* Mehr Abstand zwischen CV-Überschrift und Einleitung */
.about-cv h2 + .answer-first {
  margin-top: 20px;
}

/* Ruhigere Schrift im Kontaktformular */
.contact-form label {
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-weight: 400;
}

/* Mobile Schriftgrössen im Kontaktformular */
@media (max-width: 760px) {
  .contact-form label {
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .contact-form .form-privacy {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .contact-form .form-status {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Verlässliche mobile Navigation und klarere Titelabstände */
@media (max-width: 1020px) {
  .site-header:not(.article-header) .nav-toggle {
    position: relative;
    z-index: 31;
    display: grid !important;
    flex: 0 0 48px;
    place-content: center;
    min-width: 48px;
    min-height: 48px;
    border: 2px solid #1a667a;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 77, 96, 0.16);
  }

  .site-header:not(.article-header) .nav-toggle span {
    width: 22px;
    height: 3px;
    margin: 4px auto;
    background: #104d60;
  }

  .site-header:not(.article-header) .site-nav {
    z-index: 30;
  }
}

@media (max-width: 760px) {
  .article-nav-toggle {
    position: relative;
    z-index: 31;
    display: grid !important;
    place-content: center;
    min-width: 48px;
    min-height: 48px;
    border: 2px solid #1a667a;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 77, 96, 0.16);
  }

  .article-nav-toggle span {
    width: 22px;
    height: 3px;
    margin: 4px auto;
    background: #104d60;
  }

  .section-heading h2 + .section-answer {
    margin: 14px 0 34px;
  }

  .section-heading h2 + .answer-first,
  .article-copy h2 + .answer-first,
  .article-aside h3 + .answer-first {
    margin-top: 14px;
  }
}

/* Korrektur horizontaler Überläufe auf Mobilgeräten */
@media (max-width: 760px) {
  .form-row {
    flex-wrap: nowrap;
  }

  .form-row label {
    flex: 0 0 auto !important;
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip div {
    min-width: 0;
    padding: 18px var(--page-padding);
  }

  .signal-strip strong,
  .signal-strip span {
    overflow-wrap: anywhere;
  }

  .signal-strip span {
    font-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  main * {
    min-width: 0;
  }

  .news-item,
  .feature-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-item > *,
  .feature-band > * {
    min-width: 0;
  }
}

/* Kompaktes, zentriertes Schliessen-Symbol im mobilen Menü */
@media (max-width: 1020px) {
  .site-header:not(.article-header) .nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 4px auto;
  }

  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 760px) {
  .article-nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 4px auto;
  }

  .article-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .article-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Kleineres Kreuz im geöffneten mobilen Menü */
@media (max-width: 1020px) {
  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    width: 14px;
    transform-origin: center;
  }
}
@media (max-width: 760px) {
  .article-nav-toggle[aria-expanded="true"] span:nth-child(1),
  .article-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    width: 14px;
    transform-origin: center;
  }
}

/* Explizites Schliessen-Symbol für geöffnete mobile Menüs */
@media (max-width: 1020px) {
  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"] span {
    opacity: 0 !important;
  }

  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"]::before,
  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"]::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #104d60;
    content: "";
  }

  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"]::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .site-header:not(.article-header) .nav-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

@media (max-width: 760px) {
  .article-nav-toggle[aria-expanded="true"] span {
    opacity: 0 !important;
  }

  .article-nav-toggle[aria-expanded="true"]::before,
  .article-nav-toggle[aria-expanded="true"]::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #104d60;
    content: "";
  }

  .article-nav-toggle[aria-expanded="true"]::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .article-nav-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}
