/* Seyringer Immobilien — Startseite */

:root {
  --color-ink: #111827;
  --color-ink-soft: #374151;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-muted: #f5f1eb;
  --color-dark: #111827;
  --color-dark-2: #1f2937;
  --color-accent: #0B0B0B;
  --color-accent-dark: #1A1A1A;
  --color-cream: #fbf7ef;
  --shadow-soft: 0 24px 70px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --section-space: clamp(72px, 9vw, 128px);
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.9rem);
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

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

.section {
  padding: var(--section-space) 0;
}

.section-muted {
  background: var(--color-bg-muted);
}

.section-dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--color-ink);
  border-radius: 999px;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--color-dark);
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-cta) {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after {
  width: 100%;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--color-dark);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  padding: 11px;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--color-ink);
  border-radius: 999px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--color-accent);
  color: #111827;
  box-shadow: 0 16px 38px rgba(11, 11, 11, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d6b46f;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-card .button-secondary {
  color: var(--color-ink);
  border-color: var(--color-line);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 11vw, 150px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 820;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.hero-lead {
  margin-top: 28px;
  max-width: 760px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-card {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.hero-card::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.14) 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, rgba(255, 255, 255, 0.14) 49% 51%, transparent 52%);
}

.hero-card h2 {
  max-width: 360px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 26px;
}

.card-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #111827;
  background: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 820;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
}

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

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(11, 11, 11, 0.10);
}

/* Content */

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

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

.section-heading-centered {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 48px;
}

.section-heading-centered p {
  margin-inline: auto;
}

.text-block {
  color: var(--color-ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
}

.text-block p + p {
  margin-top: 20px;
}

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

.feature-card {
  min-height: 320px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.72);
}

.feature-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--color-accent-dark);
  font-weight: 860;
  letter-spacing: 0.08em;
}

.feature-card h3,
.trust-card h3,
.process-step h3 {
  margin-bottom: 16px;
}

.feature-card p,
.trust-card p,
.process-step p {
  color: var(--color-muted);
}

/* Region */

.region-section {
  background: #ffffff;
}

.region-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.region-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--color-cream);
  border: 1px solid #eadfcd;
  box-shadow: var(--shadow-card);
}

.region-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 223, 205, 0.9);
}

.region-item span {
  font-weight: 840;
  letter-spacing: -0.02em;
}

.region-item strong {
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: right;
}

/* Why */

.why-section {
  padding-bottom: clamp(76px, 9vw, 118px);
}

.why-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.trust-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  min-height: 220px;
}

.trust-card p {
  color: rgba(255, 255, 255, 0.72);
}

.stats-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--color-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.stat {
  padding: 30px 24px;
  border-right: 1px solid var(--color-line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent-dark);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  display: block;
  color: var(--color-muted);
  font-weight: 650;
}

/* Process */

.process-section {
  background: #ffffff;
}

.process-step {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-line);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.process-step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-accent);
  font-weight: 840;
}

/* Contact */

.contact-section {
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--color-dark);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.contact-card p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-actions {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.contact-mail {
  color: rgba(255, 255, 255, 0.78);
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 4px;
}

/* Footer */

.site-footer {
  padding: 42px 0;
  background: #ffffff;
  border-top: 1px solid var(--color-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-links a,
.footer-legal a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-ink);
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus */

:focus-visible {
  outline: 3px solid rgba(11, 11, 11, 0.75);
  outline-offset: 4px;
}

/* Responsive */

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

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-line);
  }

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

  .main-nav a {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--color-bg-muted);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid,
  .two-column,
  .region-grid,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-items: start;
  }

  .footer-grid {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .cards-grid,
  .trust-grid,
  .process-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .region-item {
    flex-direction: column;
    gap: 6px;
  }

  .region-item strong {
    text-align: left;
  }
}

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

  .header-inner {
    min-height: 74px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding: 72px 0;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button,
  .contact-actions .button {
    width: 100%;
  }

  .feature-card,
  .trust-card,
  .process-step {
    padding: 26px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Subpages */

.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 10vw, 132px) 0;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  pointer-events: none;
}

.subpage-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.subpage-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6.7vw, 6rem);
}

.profile-summary-card {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.summary-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-list li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-list span {
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 780;
}

.summary-list strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.35;
}

.profile-cards-wrap {
  margin-top: clamp(42px, 6vw, 74px);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--color-cream);
  border: 1px solid #eadfcd;
  box-shadow: var(--shadow-card);
}

.split-panel-text {
  color: var(--color-ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
}

.process-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid-four .process-step {
  min-height: 270px;
}

@media (max-width: 1100px) {
  .process-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 820px) {
  .process-grid-four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .subpage-hero {
    padding: 70px 0;
  }

  .profile-summary-card,
  .split-panel {
    padding: 26px;
  }
}

/* Subpages */

.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 10vw, 138px) 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.profile-summary h2 {
  max-width: 420px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.profile-list {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-cream);
  border: 1px solid #eadfcd;
  box-shadow: var(--shadow-card);
}

.profile-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(11, 11, 11, 0.14);
}

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

.profile-row span {
  color: var(--color-muted);
  font-weight: 760;
}

.profile-row strong {
  color: var(--color-ink);
  font-weight: 820;
  letter-spacing: -0.02em;
}

.compact-dark-section .text-block,
.compact-dark-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

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

.overview-card {
  min-height: 170px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.72);
  box-shadow: var(--shadow-card);
}

.overview-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 860;
}

.overview-card strong {
  display: block;
  color: var(--color-ink);
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

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

@media (max-width: 820px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Company page */

.company-statement-section {
  background: #ffffff;
}

.company-statement {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--color-dark);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.company-statement .eyebrow {
  color: var(--color-accent);
}

.company-statement-text {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
}

.company-statement-text p + p {
  margin-top: 20px;
}

.company-overview-grid .overview-card {
  min-height: 210px;
}

@media (max-width: 980px) {
  .company-statement {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .company-statement {
    padding: 26px;
  }
}


/* References */

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

.reference-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.84);
  box-shadow: var(--shadow-card);
}

.reference-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d1d5db;
}

.reference-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.reference-card:hover .reference-card-image img,
.reference-card:focus-within .reference-card-image img {
  transform: scale(1.035);
}

.reference-card-body {
  padding: 26px;
}

.reference-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reference-card h3 {
  margin-bottom: 12px;
}

.reference-card p {
  color: var(--color-muted);
}

.reference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.reference-meta span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--color-ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.reference-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.reference-note {
  color: var(--color-muted);
  font-size: 0.98rem;
}

@media (max-width: 1100px) {
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .reference-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Version 7 — layout stability and responsive refinement
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

main,
section,
.container,
.header-inner,
.hero-grid,
.subpage-hero-grid,
.page-hero-grid,
.two-column,
.region-grid,
.profile-grid,
.split-panel,
.company-statement,
.contact-card,
.reference-card,
.feature-card,
.trust-card,
.process-step,
.overview-card,
.profile-summary-card {
  min-width: 0;
}

h1,
h2,
h3,
p,
li,
a,
span,
strong {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

img {
  height: auto;
}

.site-header {
  isolation: isolate;
}

.header-inner {
  min-height: 82px;
}

.brand {
  flex: 0 1 auto;
  max-width: min(360px, 43vw);
}

.brand-text {
  min-width: 0;
}

.brand-text strong,
.brand-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  flex: 0 0 auto;
  gap: clamp(12px, 1.35vw, 20px);
  font-size: clamp(0.86rem, 0.92vw, 0.94rem);
  white-space: nowrap;
}

.nav-cta {
  padding-inline: clamp(14px, 1.45vw, 18px);
}

.button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.hero,
.subpage-hero,
.page-hero {
  overflow: hidden;
}

.hero-grid,
.subpage-hero-grid,
.page-hero-grid {
  align-items: center;
}

.hero-content,
.subpage-hero-content,
.page-hero-content {
  min-width: 0;
}

.hero h1,
.subpage-hero h1,
.page-hero h1 {
  max-width: 100%;
}

.hero-lead,
.hero-copy,
.section-heading p,
.text-block,
.split-panel-text,
.company-statement-text {
  max-width: 100%;
}

.hero-card,
.profile-summary-card {
  overflow: hidden;
}

.hero-card::before {
  opacity: 0.55;
  z-index: 0;
}

.hero-card > *,
.profile-summary-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  padding-right: 32px;
}

.cards-grid,
.trust-grid,
.process-grid,
.reference-grid,
.overview-grid,
.stats-grid,
.process-grid-four {
  min-width: 0;
}

.feature-card,
.trust-card,
.process-step,
.overview-card,
.reference-card {
  min-width: 0;
}

.reference-card-image img {
  min-width: 100%;
}

.reference-card-body,
.feature-card,
.trust-card,
.process-step,
.overview-card,
.stat,
.profile-row,
.region-item,
.contact-card,
.split-panel,
.company-statement {
  overflow-wrap: break-word;
}

.reference-meta span,
.card-label,
.reference-kicker {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}

.region-item,
.profile-row {
  min-width: 0;
}

.contact-card {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
}

.contact-actions {
  min-width: 0;
}

.contact-mail {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto) minmax(0, auto);
}

.footer-links,
.footer-legal {
  min-width: 0;
}

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

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-line);
    white-space: normal;
    font-size: 0.96rem;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }

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

  .main-nav a {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--color-bg-muted);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 1100px) {
  .cards-grid,
  .trust-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--color-line);
  }

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

  .contact-actions {
    justify-items: start;
  }
}

@media (max-width: 980px) {
  .brand {
    max-width: min(420px, calc(100vw - 110px));
  }

  .hero-grid,
  .two-column,
  .region-grid,
  .subpage-hero-grid,
  .page-hero-grid,
  .profile-grid,
  .split-panel,
  .company-statement {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .subpage-hero-grid,
  .page-hero-grid {
    align-items: start;
  }

  .hero-card h2 {
    padding-right: 0;
  }

  .hero-card::before {
    width: 58px;
    height: 58px;
    opacity: 0.35;
  }

  .footer-grid {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .cards-grid,
  .trust-grid,
  .process-grid,
  .reference-grid,
  .overview-grid,
  .stats-grid,
  .process-grid-four {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(1),
  .stat:nth-child(2),
  .stat:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .feature-card,
  .trust-card,
  .process-step,
  .overview-card {
    min-height: auto;
  }

  .region-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .region-item strong {
    text-align: left;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  :root {
    --section-space: clamp(58px, 14vw, 82px);
    --radius-lg: 22px;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    min-height: 74px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
    max-width: calc(100vw - 94px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 40px;
  }

  .brand-text strong {
    font-size: 0.94rem;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .main-nav {
    left: 14px;
    right: 14px;
    max-height: calc(100vh - 92px);
  }

  .hero,
  .subpage-hero,
  .page-hero {
    padding: 64px 0;
  }

  h1,
  .subpage-hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.78rem, 9vw, 2.55rem);
    letter-spacing: -0.04em;
  }

  h3 {
    font-size: clamp(1.18rem, 5vw, 1.42rem);
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 1.15rem;
  }

  .hero-copy,
  .section-heading p,
  .text-block,
  .split-panel-text,
  .company-statement-text,
  .contact-card p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button,
  .contact-actions .button {
    width: 100%;
    padding-inline: 18px;
  }

  .hero-card,
  .profile-summary-card,
  .split-panel,
  .company-statement,
  .contact-card,
  .feature-card,
  .trust-card,
  .process-step,
  .overview-card,
  .reference-card-body {
    padding: 24px;
  }

  .hero-card::before {
    display: none;
  }

  .section-heading-centered {
    margin-bottom: 34px;
  }

  .reference-grid,
  .cards-grid,
  .trust-grid,
  .process-grid,
  .overview-grid {
    gap: 16px;
  }

  .footer-links,
  .footer-legal {
    gap: 12px 16px;
  }
}

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

  h1,
  .subpage-hero h1,
  .page-hero h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .hero-card,
  .profile-summary-card,
  .split-panel,
  .company-statement,
  .contact-card,
  .feature-card,
  .trust-card,
  .process-step,
  .overview-card,
  .reference-card-body {
    padding: 20px;
  }

  .reference-meta span {
    width: 100%;
    justify-content: center;
  }
}


/* CI Refresh V8 — reduziert, kontrastreich, investment-orientiert */

:root {
  --color-ink: #0B0B0B;
  --color-ink-soft: #1A1A1A;
  --color-muted: #777777;
  --color-line: #E4E1DA;
  --color-bg: #FFFFFF;
  --color-bg-muted: #F7F5F0;
  --color-dark: #0B0B0B;
  --color-dark-2: #1A1A1A;
  --color-accent: #0B0B0B;
  --color-accent-dark: #1A1A1A;
  --color-cream: #F7F5F0;
  --shadow-soft: none;
  --shadow-card: none;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --section-space: clamp(78px, 9vw, 138px);
}

html, body {
  overflow-x: hidden;
}

body {
  background: #FFFFFF;
  color: var(--color-ink);
}

h1, h2, h3 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.05rem, 8.4vw, 7.6rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4.75rem);
  line-height: 0.98;
}

p, li, a, strong, small, span {
  overflow-wrap: anywhere;
}

.section-muted {
  background: var(--color-bg-muted);
}

.section-dark {
  background: #0B0B0B;
  color: #FFFFFF;
}

.section-dark::before,
.hero::before,
.subpage-hero::before {
  opacity: 0.55;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 86px 86px;
}

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: none;
}

.header-inner {
  min-height: 82px;
}

.brand {
  gap: 16px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: #0B0B0B;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 860;
  letter-spacing: -0.04em;
}

.brand-text strong {
  font-size: 0.93rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.main-nav {
  gap: 20px;
  color: #151515;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav a:not(.nav-cta)::after {
  bottom: -10px;
  height: 1px;
  background: #0B0B0B;
}

.nav-cta {
  border-radius: 0;
  background: #0B0B0B;
  color: #FFFFFF;
  box-shadow: none;
  padding: 13px 17px;
}

.nav-toggle {
  border-radius: 0;
  border-color: var(--color-ink);
}

.button {
  border-radius: 0;
  min-height: 52px;
  padding: 15px 22px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

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

.button-primary {
  background: #0B0B0B;
  color: #FFFFFF;
  border: 1px solid #0B0B0B;
  box-shadow: none;
}

.section-dark .button-primary,
.hero .button-primary,
.subpage-hero .button-primary,
.contact-card .button-primary {
  background: #FFFFFF;
  color: #0B0B0B;
  border-color: #FFFFFF;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1A1A1A;
  border-color: #1A1A1A;
  color: #FFFFFF;
}

.section-dark .button-primary:hover,
.hero .button-primary:hover,
.subpage-hero .button-primary:hover,
.contact-card .button-primary:hover,
.section-dark .button-primary:focus-visible,
.hero .button-primary:focus-visible,
.subpage-hero .button-primary:focus-visible,
.contact-card .button-primary:focus-visible {
  background: #F7F5F0;
  color: #0B0B0B;
}

.button-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.58);
}

.contact-card .button-secondary,
.section:not(.section-dark) .button-secondary {
  color: #0B0B0B;
  border-color: #0B0B0B;
}

.eyebrow {
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.hero,
.subpage-hero {
  padding: clamp(96px, 12vw, 168px) 0;
}

.hero-grid,
.subpage-hero-grid {
  align-items: start;
}

.hero-lead,
.hero-copy {
  max-width: 780px;
}

.hero-card,
.profile-summary-card {
  border-radius: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card::before {
  display: none;
}

.card-label,
.reference-kicker {
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid rgba(184,154,94,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.check-list li::before {
  border-radius: 0;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  box-shadow: none;
}

.feature-card,
.trust-card,
.process-step,
.reference-card,
.region-panel,
.split-panel,
.company-statement,
.contact-card {
  border-radius: 0;
  box-shadow: none;
}

.feature-card,
.process-step,
.reference-card {
  border: 1px solid var(--color-line);
}

.feature-card {
  min-height: 300px;
}

.feature-number,
.stat strong {
  color: var(--color-accent-dark);
}

.region-panel,
.split-panel {
  background: #F7F5F0;
  border: 1px solid var(--color-line);
}

.region-item {
  border-radius: 0;
  border-color: var(--color-line);
  background: rgba(255,255,255,0.72);
}

.why-section,
.compact-dark-section {
  background: #0B0B0B;
}

.trust-card {
  background: transparent;
  border-color: rgba(255,255,255,0.24);
}

.stats-grid {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--color-line);
}

.reference-card-image {
  aspect-ratio: 16 / 11;
  background: #0B0B0B;
}

.reference-card-image img {
  filter: grayscale(18%) contrast(1.05) saturate(0.92);
}

.reference-card:hover .reference-card-image img,
.reference-card:focus-within .reference-card-image img {
  transform: scale(1.025);
}

.reference-meta span {
  border-radius: 0;
  background: #F7F5F0;
  color: #1A1A1A;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.contact-card {
  background: #0B0B0B;
  color: #FFFFFF;
}

.contact-card p:not(.eyebrow),
.contact-mail {
  color: rgba(255,255,255,0.72);
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: #FFFFFF;
}

.footer-links,
.footer-legal {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 14px;
    font-size: 0.74rem;
  }
}

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

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 0;
    background: #FFFFFF;
    box-shadow: none;
    border: 1px solid var(--color-line);
    font-size: 0.78rem;
  }

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

  .main-nav a {
    padding: 14px 12px;
    border-radius: 0;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: #F7F5F0;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .subpage-hero-grid,
  .two-column,
  .region-grid,
  .split-panel,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .profile-summary-card {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .cards-grid,
  .trust-grid,
  .process-grid,
  .reference-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: clamp(64px, 12vw, 92px) 0;
  }

  .hero,
  .subpage-hero {
    padding: 76px 0;
  }
}

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

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .brand-text small {
    display: none;
  }

  .feature-card,
  .trust-card,
  .process-step,
  .reference-card-body,
  .hero-card,
  .profile-summary-card {
    padding: 24px;
  }

  .reference-card-image {
    aspect-ratio: 4 / 3;
  }
}


/* Final CI integration — v10 */
:root {
  --color-ink: #0B0B0B;
  --color-ink-soft: #2B2B2B;
  --color-muted: #777777;
  --color-line: #E4E1DA;
  --color-bg: #FFFFFF;
  --color-bg-muted: #F7F5F0;
  --color-dark: #0B0B0B;
  --color-dark-2: #1A1A1A;
  --color-accent: #0B0B0B;
  --color-accent-dark: #1A1A1A;
  --color-cream: #F7F5F0;
  --shadow-soft: 0 26px 70px rgba(11, 11, 11, 0.10);
  --shadow-card: 0 18px 45px rgba(11, 11, 11, 0.07);
}

body {
  color: var(--color-ink);
  background: var(--color-bg);
}

.section-dark {
  background: linear-gradient(135deg, #0B0B0B 0%, #1A1A1A 100%) !important;
  color: #FFFFFF;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 225, 218, 0.82);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(11, 11, 11, 0.08);
}

.header-inner {
  min-height: 88px;
}

.brand {
  gap: 0;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(188px, 20vw, 268px);
  height: auto;
}

.brand-logo-light {
  display: none;
}

.footer-brand .brand-logo-dark {
  display: none;
}

.footer-brand .brand-logo-light {
  display: block;
  width: clamp(190px, 22vw, 280px);
}

.brand-mark,
.brand-text {
  display: none !important;
}

.nav-cta,
.button-primary {
  background: #0B0B0B !important;
  color: #FFFFFF !important;
  border-color: #0B0B0B !important;
  box-shadow: none !important;
}

.button-secondary,
.button-outline {
  border-color: currentColor;
  box-shadow: none !important;
}

.feature-number,
.card-label,
.eyebrow,
.link-arrow,
.stat-value {
  color: #0B0B0B !important;
}

.section-dark .feature-number,
.section-dark .card-label,
.section-dark .eyebrow,
.section-dark .link-arrow,
.section-dark .stat-value {
  color: #FFFFFF !important;
}

.feature-card,
.reference-card,
.profile-card,
.process-card,
.region-card,
.contact-card,
.info-card,
.hero-card {
  border-color: var(--color-line) !important;
  box-shadow: none !important;
}

.hero-card,
.contact-panel,
.cta-box {
  background: rgba(255,255,255,0.96);
  color: #0B0B0B;
}

.hero-card .card-label,
.hero-card h2,
.hero-card li {
  color: #0B0B0B !important;
}

.site-footer {
  background: #0B0B0B !important;
  color: #FFFFFF;
}

.site-footer a,
.site-footer p,
.site-footer small {
  color: rgba(255,255,255,0.78);
}

.site-footer strong {
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid #0B0B0B !important;
  outline-offset: 4px;
}

.site-footer :focus-visible,
.section-dark :focus-visible {
  outline-color: #FFFFFF !important;
}

@media (max-width: 980px) {
  .brand-logo {
    width: 210px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 76px;
  }
  .brand-logo {
    width: 174px;
  }
  .footer-brand .brand-logo-light {
    width: 210px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 154px;
  }
}


/* Version 11 Feinschliff: Header-Logo, Hero-Headline, Startseitentext */
.brand-logo {
  width: clamp(218px, 22vw, 310px) !important;
}

.footer-brand .brand-logo-light {
  width: clamp(210px, 23vw, 300px) !important;
}

.hero h1 {
  font-size: clamp(2.85rem, 6.2vw, 5.7rem) !important;
  line-height: 0.99;
  max-width: 900px;
}

@media (max-width: 980px) {
  .brand-logo {
    width: 236px !important;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: 198px !important;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.2rem) !important;
    line-height: 1.04;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 176px !important;
  }
}


/* Hero property image v13 */
.hero.hero-property {
  position: relative;
  overflow: hidden;
  background: #0B0B0B;
  isolation: isolate;
}

.hero.hero-property .hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.hero.hero-property::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.58) 46%, rgba(11, 11, 11, 0.70) 100%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.10) 0%, rgba(11, 11, 11, 0.06) 40%, rgba(11, 11, 11, 0.36) 100%);
  mask-image: none;
}

.hero.hero-property .hero-grid,
.hero.hero-property .hero-content,
.hero.hero-property .hero-card,
.hero.hero-property .container {
  position: relative;
  z-index: 2;
}

.hero.hero-property .eyebrow,
.hero.hero-property h1,
.hero.hero-property .hero-lead,
.hero.hero-property .hero-copy {
  color: #FFFFFF;
}

.hero.hero-property .hero-lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.90);
}

.hero.hero-property .hero-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero.hero-property .hero-card h2,
.hero.hero-property .hero-card li,
.hero.hero-property .hero-card .card-label {
  color: #FFFFFF;
}

.hero.hero-property .button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero.hero-property .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .hero.hero-property .hero-bg-image {
    object-position: 62% center;
  }

  .hero.hero-property::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0.78) 0%, rgba(11, 11, 11, 0.56) 48%, rgba(11, 11, 11, 0.74) 100%);
  }
}
/* End hero property image v13 */


/* V19 – Startseite: Hero ohne Ankaufsprofil-Box, Karte in Ankaufsprofil-Sektion */
.hero.hero-property .hero-grid {
  grid-template-columns: minmax(0, 780px);
}

.hero.hero-property .hero-content {
  max-width: 780px;
}

.ankaufsprofil-map-section {
  position: relative;
  overflow: hidden;
  background: #0B0B0B;
  color: #FFFFFF;
}

.ankaufsprofil-map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.84) 0%, rgba(11, 11, 11, 0.62) 42%, rgba(11, 11, 11, 0.48) 100%),
    url('ankaufsregion-karte.png') center center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.ankaufsprofil-map-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 48%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.ankaufsprofil-map-section .container {
  position: relative;
  z-index: 1;
}

.ankaufsprofil-map-section .section-heading {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.ankaufsprofil-map-section .section-heading p {
  margin-left: 0;
  margin-right: 0;
  color: rgba(255, 255, 255, 0.84);
}

.ankaufsprofil-map-section .eyebrow {
  color: #FFFFFF;
}

.ankaufsprofil-map-section h2,
.ankaufsprofil-map-section h3 {
  color: #FFFFFF;
}

.ankaufsprofil-map-section .cards-grid {
  margin-top: 54px;
}

.ankaufsprofil-map-section .feature-card {
  background: rgba(11, 11, 11, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ankaufsprofil-map-section .feature-number {
  color: rgba(255, 255, 255, 0.58);
}

.ankaufsprofil-map-section .feature-card p {
  color: rgba(255, 255, 255, 0.74);
}

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

  .ankaufsprofil-map-section::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0.90) 0%, rgba(11, 11, 11, 0.80) 54%, rgba(11, 11, 11, 0.68) 100%),
      url('ankaufsregion-karte.png') center center / cover no-repeat;
  }

  .ankaufsprofil-map-section .section-heading {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .ankaufsprofil-map-section::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0.94) 0%, rgba(11, 11, 11, 0.86) 58%, rgba(11, 11, 11, 0.78) 100%),
      url('ankaufsregion-karte.png') center center / cover no-repeat;
  }

  .ankaufsprofil-map-section .cards-grid {
    margin-top: 38px;
  }
}

/* V22 – Lesbarkeit Ankaufsprofil & Typografie-Abstände */
.ankaufsprofil-map-section .eyebrow {
  color: #FFFFFF !important;
}

.section-heading h2,
.section-heading h3,
.feature-card h3,
.trust-card h3,
.process-step h3,
.reference-card h3,
.region-item strong {
  line-height: 1.12;
}

.section-heading h2 + p,
.section-heading h3 + p {
  margin-top: clamp(20px, 2.1vw, 30px);
}

.feature-card h3 + p,
.trust-card h3 + p,
.process-step h3 + p,
.reference-card h3 + .reference-meta,
.reference-card h3 + p {
  margin-top: 18px;
}

.subpage-hero h1 + p,
.hero h1 + p {
  margin-top: clamp(28px, 3vw, 38px);
}

/* V23 - Hintergrundbild fuer "Warum Seyringer Immobilien?" */
.why-section {
  position: relative;
  overflow: hidden;
  background: #0B0B0B !important;
}

.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.90) 0%, rgba(11, 11, 11, 0.72) 42%, rgba(11, 11, 11, 0.38) 100%),
    url('deal-handshake-background.png') center center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.why-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.why-section > .container {
  position: relative;
  z-index: 1;
}

.why-section .section-heading h2,
.why-section .section-heading p,
.why-section .eyebrow,
.why-section .trust-card h3,
.why-section .trust-card p {
  color: #FFFFFF !important;
}

.why-section .section-heading p,
.why-section .trust-card p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.why-section .trust-card {
  background: rgba(11, 11, 11, 0.34) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .why-section::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.78) 52%, rgba(11, 11, 11, 0.62) 100%),
      url('deal-handshake-background.png') center center / cover no-repeat;
  }
}


/* V24 – Unterseiten: Kurzprofil-Karten im Header entfernt */
.subpage-hero-grid.subpage-hero-grid-wide {
  grid-template-columns: minmax(0, 920px);
}

.subpage-hero-grid.subpage-hero-grid-wide .subpage-hero-content {
  max-width: 920px;
}

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


/* v25: One-page navigation */
main section[id] {
  scroll-margin-top: 112px;
}

.main-nav a.is-active:not(.nav-cta)::after,
.main-nav a[aria-current="location"]:not(.nav-cta)::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  main section[id] {
    scroll-margin-top: 88px;
  }

  .main-nav a.is-active:not(.nav-cta),
  .main-nav a[aria-current="location"]:not(.nav-cta) {
    opacity: 0.62;
  }
}


/* v26: permanente, angeheftete Hauptnavigation */
:root {
  --fixed-header-height: 88px;
}

body {
  padding-top: var(--fixed-header-height);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

main section[id] {
  scroll-margin-top: calc(var(--fixed-header-height) + 24px);
}

@media (max-width: 1060px) {
  :root {
    --fixed-header-height: 88px;
  }

  .main-nav {
    max-height: calc(100vh - var(--fixed-header-height) - 20px);
    overflow-y: auto;
  }
}

/* v27: dynamischer Premium-Header nach Vorbild seyringer.at */
:root {
  --header-expanded-height: 116px;
  --header-compact-height: 74px;
  --fixed-header-height: var(--header-compact-height);
}

/* Auf der Startseite liegt der großzuegige Header ueber dem Hero. */
body.home-page {
  padding-top: 0;
}

/* Rechtliche Seiten behalten einen klaren, hellen Kopfbereich. */
body.legal-page {
  padding-top: var(--header-compact-height);
}

.site-header {
  height: var(--header-expanded-height);
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.48) 0%, rgba(11, 11, 11, 0.13) 68%, rgba(11, 11, 11, 0) 100%);
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    height 360ms cubic-bezier(.2,.7,.2,1),
    background-color 300ms ease,
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    backdrop-filter 300ms ease;
}

.header-inner {
  min-height: 100%;
  height: 100%;
  transition: min-height 360ms cubic-bezier(.2,.7,.2,1), height 360ms cubic-bezier(.2,.7,.2,1);
}

.brand-logo {
  width: clamp(238px, 22vw, 318px) !important;
  transition: width 360ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease;
}

/* Am Seitenanfang: freigestelltes weisses Logo auf dem Hero. */
.home-page .site-header:not(.is-scrolled) .brand-logo-dark {
  display: none;
}

.home-page .site-header:not(.is-scrolled) .brand-logo-light {
  display: block;
}

.home-page .site-header:not(.is-scrolled) .main-nav {
  color: #FFFFFF;
}

.home-page .site-header:not(.is-scrolled) .main-nav a:not(.nav-cta)::after {
  background: #FFFFFF;
}

.home-page .site-header:not(.is-scrolled) .nav-cta {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
}

.home-page .site-header:not(.is-scrolled) .nav-cta:hover,
.home-page .site-header:not(.is-scrolled) .nav-cta:focus-visible {
  background: #FFFFFF !important;
  color: #0B0B0B !important;
}

/* Kompakter Zustand nach dem Scrollen. */
.site-header.is-scrolled,
.legal-page .site-header {
  height: var(--header-compact-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(228, 225, 218, 0.92);
  box-shadow: 0 8px 28px rgba(11, 11, 11, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled .brand-logo,
.legal-page .site-header .brand-logo {
  width: clamp(184px, 17vw, 226px) !important;
}

.site-header.is-scrolled .brand-logo-dark,
.legal-page .site-header .brand-logo-dark {
  display: block;
}

.site-header.is-scrolled .brand-logo-light,
.legal-page .site-header .brand-logo-light {
  display: none;
}

.site-header.is-scrolled .main-nav,
.legal-page .site-header .main-nav {
  color: #2B2B2B;
}

main section[id] {
  scroll-margin-top: calc(var(--header-compact-height) + 24px);
}

/* Der Hero reicht hinter den transparenten Header und bleibt visuell ruhig. */
.home-page .hero.hero-property {
  min-height: max(720px, 100svh);
  padding-top: calc(var(--header-expanded-height) + clamp(70px, 8vw, 120px));
}

@media (max-width: 1060px) {
  :root {
    --header-expanded-height: 94px;
    --header-compact-height: 72px;
  }

  .home-page .site-header:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.62) 0%, rgba(11, 11, 11, 0.18) 72%, rgba(11, 11, 11, 0) 100%);
  }

  .home-page .site-header:not(.is-scrolled) .nav-toggle {
    background: rgba(11, 11, 11, 0.20);
    border-color: rgba(255, 255, 255, 0.54);
  }

  .home-page .site-header:not(.is-scrolled) .nav-toggle-line {
    background: #FFFFFF;
  }

  .main-nav {
    max-height: calc(100vh - var(--header-compact-height) - 16px);
  }
}

@media (max-width: 720px) {
  :root {
    --header-expanded-height: 84px;
    --header-compact-height: 68px;
  }

  .brand-logo {
    width: 198px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 166px !important;
  }

  .home-page .hero.hero-property {
    min-height: 760px;
    padding-top: calc(var(--header-expanded-height) + 64px);
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 176px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 148px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-inner,
  .brand-logo {
    transition: none !important;
  }
}

@media (max-width: 1060px) {
  .home-page .site-header:not(.is-scrolled) .main-nav.is-open {
    color: #2B2B2B;
  }

  .home-page .site-header:not(.is-scrolled) .main-nav.is-open .nav-cta {
    background: #0B0B0B !important;
    color: #FFFFFF !important;
    border-color: #0B0B0B !important;
  }
}

/* v28: Header-Logo kompakter und Ankaufsprofil ohne Kartenmotiv */
:root {
  --header-expanded-height: 104px;
  --header-compact-height: 76px;
}

.brand-logo {
  width: clamp(218px, 22vw, 310px) !important;
}

.site-header.is-scrolled .brand-logo,
.legal-page .site-header .brand-logo {
  width: clamp(204px, 20vw, 286px) !important;
}

/* Ruhige, monochrome CI-Flaeche statt Oesterreichkarte. */
.ankaufsprofil-map-section {
  background: #1A1A1A;
}

.ankaufsprofil-map-section::before {
  background: none;
  opacity: 0;
}

.ankaufsprofil-map-section::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 52%, rgba(11,11,11,0.16) 100%);
}

.ankaufsprofil-map-section .feature-card {
  background: rgba(11, 11, 11, 0.22);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 1060px) {
  :root {
    --header-expanded-height: 90px;
    --header-compact-height: 72px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-expanded-height: 82px;
    --header-compact-height: 68px;
  }

  .brand-logo {
    width: 198px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 188px !important;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 176px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 168px !important;
  }
}

/* v29: kleineres Header-Logo, mobile Typografie und sichtbarer Handschlag */
.brand-logo {
  width: clamp(153px, 15.4vw, 217px) !important;
}

.site-header.is-scrolled .brand-logo,
.legal-page .site-header .brand-logo {
  width: clamp(143px, 14vw, 200px) !important;
}

/* Lange Begriffe duerfen auf kleinen Displays sauber umbrechen. */
.section-heading h1,
.section-heading h2,
.section-heading h3 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 1060px) {
  :root {
    --header-expanded-height: 82px;
    --header-compact-height: 70px;
  }
}

@media (max-width: 820px) {
  #unternehmen .section-heading h2 {
    font-size: clamp(1.82rem, 8.8vw, 2.55rem);
    line-height: 1.06;
  }

  /* Der Bildfokus liegt mobil bewusst auf den Haenden. */
  .why-section::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0.68) 0%, rgba(11, 11, 11, 0.58) 48%, rgba(11, 11, 11, 0.70) 100%),
      url('deal-handshake-background.png') 76% center / auto 100% no-repeat;
  }

  .why-section::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.14) 100%);
  }
}

@media (max-width: 720px) {
  :root {
    --header-expanded-height: 76px;
    --header-compact-height: 66px;
  }

  .brand-logo {
    width: 139px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 132px !important;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 123px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 118px !important;
  }

  #unternehmen .section-heading h2 {
    font-size: 1.72rem;
  }
}

/* v30: ruhiger Header, bessere Kontraste im Ankaufsprofil und nochmals kompakteres Logo */
.site-header,
.site-header.is-scrolled,
.legal-page .site-header {
  border-bottom: 0 !important;
  border-bottom-color: transparent !important;
}

.ankaufsprofil-map-section .feature-number {
  color: #FFFFFF !important;
}

.brand-logo {
  width: clamp(138px, 13.86vw, 195px) !important;
}

.site-header.is-scrolled .brand-logo,
.legal-page .site-header .brand-logo {
  width: clamp(129px, 12.6vw, 180px) !important;
}

@media (max-width: 720px) {
  .brand-logo {
    width: 125px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 119px !important;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 111px !important;
  }

  .site-header.is-scrolled .brand-logo,
  .legal-page .site-header .brand-logo {
    width: 106px !important;
  }
}

/* v32 — mobile reference disclosure */
.reference-actions[data-reference-actions] {
  display: none;
}

@media (max-width: 700px) {
  .reference-grid.is-collapsible .reference-card:nth-child(n + 4) {
    display: none;
  }

  .reference-grid.is-collapsible.is-expanded .reference-card:nth-child(n + 4) {
    display: block;
  }

  .reference-actions[data-reference-actions].is-collapsible {
    display: flex;
  }

  .reference-toggle {
    width: 100%;
    max-width: 340px;
  }
}
