/* =============================================
   Gieselmann Global Advisory — Stylesheet
   ============================================= */

:root {
  --navy: #0b1f3a;
  --navy-light: #123058;
  --navy-dark: #071527;
  --gold: #c9a24b;
  --gold-light: #e8c874;
  --gold-dark: #806420; /* barrierefrei: >= 4.5:1 auf hellen Flächen */
  --bg: #f8f6f1;
  --bg-alt: #f1ede3;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #5c6577;
  --border: #e4ded0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.16);
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--bg);
  scrollbar-width: thin;
}

/* Bildlaufleiste (Webkit: Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 8px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

/* ---------- Arabic / RTL ---------- */
html[lang="ar"] body {
  font-family: 'Cairo', 'Poppins', Arial, sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: 'Cairo', Arial, sans-serif;
}

html[dir="rtl"] .checklist li,
html[dir="rtl"] .field-tags li,
html[dir="rtl"] .contact-details li {
  text-align: right;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-head.light .eyebrow { color: var(--gold); }
.section-head.light h2 { color: var(--white); }

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 246, 241, 0.0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 22px 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 68px;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}

.site-header.scrolled .main-nav a {
  color: var(--navy);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.has-dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 10;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--navy) !important;
  font-size: 0.88rem;
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-menu a::after {
  content: none;
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
}

.site-header.scrolled .lang-switch {
  border-inline-start-color: var(--border);
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.site-header.scrolled .lang-btn {
  color: var(--navy);
  border-color: var(--border);
}

.lang-btn:hover {
  border-color: var(--gold);
}

.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.nav-cta {
  padding: 11px 24px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .nav-toggle span {
  background: var(--navy);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 190px;
  padding-bottom: 60px;
}

.hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vw;
  max-height: 640px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  filter: invert(75%) sepia(64%) saturate(1000%) hue-rotate(5deg) brightness(100%) contrast(96%);
}

html[lang="de"] .hero-skyline,
html[lang="en"] .hero-skyline {
  transform: scaleX(-1);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 39, 0.85) 0%, rgba(7, 21, 39, 0.55) 45%, rgba(7, 21, 39, 0.25) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

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

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 560px;
  text-align: justify;
  margin-bottom: 34px;
}

/* ================= ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.25), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 250px;
}

.about-card img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.about-card p {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
}

.card-1 {
  bottom: -22px;
  left: -22px;
  border-left: 4px solid var(--gold);
}

.card-2 {
  top: -22px;
  right: -22px;
  border-left: 4px solid var(--gold);
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.checklist {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
}

.checklist img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Abwechselnde Abschnittsfarbe auf Unterseiten */
.page-content--alt {
  background: var(--bg-alt);
}

/* ================= SERVICES ================= */
.services {
  background: var(--bg-alt);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.image-with-note {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
}

.service-card-image-wrap {
  margin-bottom: 26px;
}

/* Breites Bildformat in den Leistungskacheln, ohne Verzerrung */
.service-card-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.services > .container > h2 {
  margin-bottom: 40px;
}

.page-lead-image-wrap {
  margin-bottom: 48px;
}

.page-content > .container > .image-with-note + [data-i18n$=".body"] {
  margin-top: 56px;
}

.service-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: var(--radius);
}

.ai-image-note {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 3px 6px;
  border: 1px solid rgba(201, 162, 75, 0.8);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 0.55rem;
  line-height: 1.15;
  text-align: start;
}

.service-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon img {
  width: 34px;
  height: 34px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.96rem;
  min-height: 4.95em;
}

.text-justify {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Adressen, Kontaktblöcke u. Ä. innerhalb von Blocksatz-Texten */
.text-justify .text-left {
  text-align: left;
}

/* Überschriften nie im Blocksatz (Grundsatz) */
.text-justify h2,
.text-justify h3,
.text-justify h4 {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.field-name {
  font-family: var(--font-heading);
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 1.3rem;
}

.field-tags {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.field-tags li {
  background: var(--bg-alt);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.services-grid .field-tags {
  align-items: center;
  width: 100%;
}

.services-grid .field-tags li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  height: 42px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
}

/* ================= FIELD PAGES ================= */
.page-hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 80px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  overflow: hidden;
}

.page-hero .eyebrow {
  color: var(--gold);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.page-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 32px;
}

.page-hero-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.page-hero-meta span::before {
  content: ' · ';
}

.page-lead-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-bottom: 0;
}

.page-about-title {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 18px;
}

.page-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.page-about p {
  color: var(--text-muted);
}

.page-about p + p {
  margin-top: 16px;
}

.page-services {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--border);
}

.page-services h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.page-cta {
  margin-top: 56px;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  text-align: center;
}

.page-cta h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}

.page-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 26px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.blog-filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.blog-filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.blog-category-heading {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 56px 0 24px;
}

.blog-category-heading:first-of-type {
  margin-top: 8px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-tag {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-meta span {
  position: relative;
  padding-left: 12px;
}

.blog-meta span::before {
  content: '·';
  position: absolute;
  left: 0;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-body {
  max-width: 760px;
}

/* Blogartikel: Einleitung und Schlussabsätze auf Bildbreite */
[data-i18n^="blogPosts."][data-i18n$=".body"] > .article-body:first-child,
[data-i18n^="blogPosts."][data-i18n$=".body"] > .article-body:last-child {
  max-width: none;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.article-body p + p {
  margin-top: 16px;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 34px 0 12px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin: 14px 0 16px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body li::marker {
  color: var(--gold-dark);
}

.article-body a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.article-series-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 760px;
  margin-top: 64px;
  padding: 22px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.article-series-nav a {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.article-series-nav a:hover {
  color: var(--gold-dark);
}

.article-series-next:only-child {
  margin-left: auto;
}

@media (max-width: 768px) {
  .page-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .page-hero {
    padding-top: 130px;
  }

  .page-lead-image {
    aspect-ratio: 3 / 2;
  }

  .page-lead-image-wrap {
    margin-bottom: 32px;
  }

  .page-cta {
    padding: 32px 24px;
  }
}

/* ================= PROCESS ================= */
.process {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
}

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

.process-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform var(--transition), background var(--transition);
}

.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.process-step h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.process-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.process-step {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---- Ablauf-Unterseiten (dunkles Farbschema wie .process) ---- */
.process-detail {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
}

.process-detail .page-back {
  color: var(--gold);
}

.process-detail .process-step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold);
  margin: 8px 0 20px;
}

.process-detail .article-body,
.process-detail .article-body p {
  color: rgba(255, 255, 255, 0.8);
}

.process-detail .article-series-nav {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.process-detail .article-series-nav a {
  color: var(--gold);
}

.process-detail .article-series-nav a:hover {
  color: var(--white);
}

.process-detail .page-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.process-detail .page-cta h2 {
  color: var(--white);
}

.process-detail .page-cta p {
  color: rgba(255, 255, 255, 0.75);
}

/* ================= WHY US ================= */
.why-us {
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.why-item {
  text-align: center;
  padding: 20px;
}

.why-item img {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ================= FAQ ================= */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--gold-dark);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ================= CTA ================= */
.cta {
  background: var(--gold);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta h2 {
  color: var(--navy-dark);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--navy-dark);
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta .btn-primary {
  background: var(--navy);
  color: var(--white);
}

/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-details li {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-details a {
  color: var(--gold-dark);
  font-weight: 600;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 240px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.map-placeholder a {
  color: var(--gold);
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
  border-color: var(--gold);
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #c0392b;
}

.error-message {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 14px;
}

.form-privacy {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-privacy a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #e7f6ec;
  color: #1e7e42;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success.is-error {
  background: #fdecea;
  color: #c0392b;
}

/* Honeypot-Feld: fuer Menschen unsichtbar, aber nicht display:none,
   damit Spam-Bots es trotzdem ausfuellen */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-checkbox-label a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.form-group-checkbox.invalid .form-checkbox-label {
  color: #c0392b;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 300px;
  height: auto;
  margin-top: -13px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-links ul {
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-contact a:hover {
  color: var(--gold);
}

/* Rechtliche Links unterhalb der Hauptspalten */
.footer-contact h4.footer-sub-heading {
  margin-top: 26px;
}

.footer-legal {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal ul {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-legal li:nth-child(1) {
  grid-column: 2;
}

.footer-legal li:nth-child(2) {
  grid-column: 3;
}

.footer-legal li:nth-child(3) {
  grid-column: 4;
}

.footer-legal a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.82rem;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .footer-legal li {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80%);
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 26px;
    width: 100%;
    padding: 0 40px;
  }

  .main-nav a {
    color: var(--white) !important;
    font-size: 1.1rem;
  }

  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 14px 0 0 18px;
    margin-top: 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    padding: 0;
  }

  .dropdown-menu a:hover {
    background: none;
    color: var(--white) !important;
  }

  .lang-switch {
    border-inline-start: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-inline-start: 0;
    padding-top: 22px;
    justify-content: center;
  }

  .lang-btn {
    color: var(--white);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid,
  .process-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .card-1,
  .card-2 {
    max-width: 200px;
    padding: 14px 16px;
  }

  .card-1 {
    left: -10px;
    bottom: -16px;
  }

  .card-2 {
    right: -10px;
    top: -16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-legal li {
    grid-column: auto;
  }
}

/* Zusammengesetzte Begriffe in Überschriften nicht am Bindestrich umbrechen */
.nowrap {
  white-space: nowrap;
}

/* ================= REGIONEN-SEITEN ================= */
.service-card .card-more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ================= ANSPRECHPARTNER ================= */
.contact-persons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 540px));
  gap: 30px;
  margin: 32px 0 56px;
}

.contact-persons--center {
  justify-content: center;
}

/* ---- Referenz-Karte (Startseite) ---- */
.reference-card {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reference-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.reference-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* Zwei Referenz-Kacheln: Digital und Education */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.reference-grid .reference-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  margin: 0;
}

.reference-facts {
  margin: 6px 0 20px;
}

.reference-facts > div + div {
  margin-top: 12px;
}

.reference-facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.reference-facts dd {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.reference-grid .reference-card a {
  margin-bottom: 20px;
}

/* Offenlegung klein am Fuß jeder Referenz-Kachel */
.reference-grid .reference-disclosure {
  align-self: stretch;
  margin: 0;
  padding-top: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Bildleiste in der Digital-Kachel */
.reference-gallery {
  align-self: stretch;
  display: flex;
  gap: 12px;
  list-style: none;
  margin: auto 0 20px;
  padding: 0 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-alt);
}

.reference-gallery li {
  flex: 0 0 36%;
  scroll-snap-align: start;
}

.reference-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
}

.reference-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition);
}

.reference-shot:hover img {
  transform: scale(1.03);
}

.reference-shot:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

.reference-gallery::-webkit-scrollbar { height: 8px; }
.reference-gallery::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 999px; }
.reference-gallery::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 999px; }

/* Vergrößerte Ansicht */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px 72px;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(7, 21, 39, 0.92);
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(7, 21, 39, 0.6);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

html[dir="rtl"] .lightbox-prev { left: auto; right: 12px; }
html[dir="rtl"] .lightbox-next { right: auto; left: 12px; }
html[dir="rtl"] .lightbox-close { right: auto; left: 20px; }

@media (max-width: 600px) {
  .lightbox { padding: 72px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

/* Einzelne Referenz-Kachel, z. B. auf den Geschäftsfeldseiten */
.reference-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

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

.reference-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--gold-dark);
}

.contact-person {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}

.contact-person-avatar {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-person h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.contact-person-role {
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-person ul {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.contact-person a {
  color: var(--gold-dark);
}


/* ---- Karte Ansprechpartner (Deutschland + Nordwesten) ---- */
.region-map {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius);
  padding: 36px;
  margin: 24px 0 26px;
}

.region-map figure {
  margin: 0;
}

.region-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.region-map-overview figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.map-land {
  fill: var(--navy-light);
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.map-focus {
  fill: rgba(232, 200, 116, 0.18);
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.map-frame {
  fill: none;
  stroke: rgba(232, 200, 116, 0.45);
  stroke-width: 1.5;
}

.map-sea {
  fill: rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: italic;
}

.map-flag circle {
  fill: var(--gold);
}

.map-flag line {
  stroke: var(--white);
  stroke-width: 1.6;
}

.map-flag path {
  fill: var(--gold);
  transition: fill var(--transition);
}

.map-flag text {
  fill: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--navy-dark);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-flag:hover path,
.map-flag:focus path {
  fill: var(--gold);
}

.map-flag:hover text,
.map-flag:focus text {
  fill: var(--gold);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .region-map {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .region-map-overview {
    display: none;
  }

  .map-flag text {
    font-size: 15px;
  }
}

.contact-person-photo {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid var(--gold);
}

@media (max-width: 480px) {
  .contact-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-person ul {
    justify-items: center;
  }
}

.faq-answer a {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ---- Hero mit Linienzeichnung (Regionen-Seiten, z. B. Westerstede) ---- */
.page-hero--art {
  padding-bottom: clamp(150px, 24vw, 360px);
}

.page-hero-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  /* gleiche Einfärbung wie die Skyline der Startseite (.hero-skyline) */
  opacity: 0.8;
  filter: invert(75%) sepia(64%) saturate(1000%) hue-rotate(5deg) brightness(100%) contrast(96%);
}

.page-hero--art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 39, 0.85) 0%, rgba(7, 21, 39, 0.55) 45%, rgba(7, 21, 39, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-hero--art .container {
  position: relative;
  z-index: 2;
}

/* ---- Interne Verlinkung: Blog-Bereich auf Regionen-Seiten, Regionen-Box im Blog ---- */
.region-blog {
  padding-top: 0;
}

.region-blog .section-head {
  margin-bottom: 36px;
}

.region-box {
  max-width: 760px;
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.region-box h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.region-box p {
  margin-bottom: 14px;
}

.region-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.region-box a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.region-box a:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Wechsellayout Text/Bild (z. B. Digital Service) ---- */
.feature-rows {
  display: grid;
  gap: 56px;
  margin: 8px 0 48px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.feature-row--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row--reverse .feature-text {
  order: 2;
}

.feature-image {
  margin: 0;
}

.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.feature-note {
  max-width: 760px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.page-services--inline {
  max-width: 760px;
}

.page-services--inline .field-tags {
  flex-direction: row;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* auf Mobil immer Bild über dem Text */
  .feature-row .feature-image {
    order: -1;
  }

  .feature-row--reverse .feature-text {
    order: 0;
  }
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

/* Bilder, die nicht beschnitten werden dürfen (z. B. quadratische Grafiken) */
.feature-image--contain img {
  object-fit: contain;
  background: var(--white);
  padding: 12px;
}

.feature-image figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
  font-style: italic;
}

/* ================= BARRIEREFREIHEIT ================= */
/* Sichtbarer Tastaturfokus auf allen Bedienelementen */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

main :focus-visible,
.page-content :focus-visible {
  outline-color: var(--gold-dark);
}

main:focus {
  outline: none;
}

/* Sprunglink: erst bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  border-radius: 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* Nur für Screenreader */
.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;
}

/* Systemeinstellung "Bewegung reduzieren" respektieren */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

/* ---- Anzeige-Einstellungen (Seite Barrierefreiheit) ---- */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }

html.a11y-contrast {
  --text: #000000;
  --text-muted: #1a1a1a;
  --gold-dark: #5a4410;
  --border: #4a4a4a;
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
}

html.a11y-contrast .page-hero::before,
html.a11y-contrast .hero::before {
  background: rgba(4, 12, 24, 0.9);
}

html.a11y-contrast .page-hero-sub,
html.a11y-contrast .hero-sub,
html.a11y-contrast .site-footer,
html.a11y-contrast .site-footer a,
html.a11y-contrast .process-step p {
  color: #ffffff;
}

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-motion .reveal {
  opacity: 1;
  transform: none;
}

html.a11y-links main a:not(.btn),
html.a11y-links .site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Einstellungsbereich */
.a11y-settings {
  max-width: 760px;
  margin-bottom: 48px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.a11y-settings fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.a11y-settings legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.a11y-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.a11y-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.a11y-options input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}

.a11y-status {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-outline-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.main-nav a {
  white-space: nowrap;
}

.a11y-settings h2 {
  margin-bottom: 8px;
}

.a11y-settings > p:first-of-type {
  margin-bottom: 22px;
}

/* ---- Call to Action ---- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-hero .hero-actions {
  margin-top: 26px;
}

.cta-band .page-cta {
  margin-top: 0;
}

.page-cta .cta-buttons .btn-outline {
  color: var(--white);
}

/* Umriss-Buttons im Hero lesbar über den Linienzeichnungen */
.hero-actions .btn-outline {
  background: rgba(7, 21, 39, 0.75);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---- Bilder und Grafiken in Blogartikeln ---- */
.article-figure {
  margin: 30px 0 34px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
  font-style: italic;
}

/* ---- Ablauf mit Call to Action (Regionen-Seiten) ---- */
.process-cta {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.process-cta p {
  max-width: 620px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.process-cta .cta-buttons .btn-outline {
  color: var(--white);
}

/* ---- Blauer CTA-Streifen zwischen Textabschnitten (Regionen-Seiten) ---- */
.cta-strip {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  padding: 44px 0;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 32px;
  text-align: center;
}

.cta-strip p {
  margin: 0;
  max-width: 620px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.45;
}

/* CTA-Streifen innerhalb von Blogartikeln: nicht randlos, sondern als abgesetzte Karte */
.cta-strip--inline {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 48px 0;
}

/* Blogartikel sind aus mehreren Blöcken zusammengesetzt (Absatz, Bildzeilen, CTA-Karte) –
   gleichmäßiger Abstand zwischen allen Blöcken, damit Überschriften nicht am vorherigen
   Absatz kleben. Das einzelne .article-body-Segment selbst bleibt innen eng (H2 ohne
   eigenen oberen Rand), der Abstand kommt bewusst vom Elternblock. */
[data-i18n^="blogPosts."] > * + * {
  margin-top: 48px;
}

[data-i18n^="blogPosts."] > .feature-rows {
  margin-top: 48px;
}

/* Abschnitt nach einem CTA-Streifen: etwas weniger Abstand oben */
.cta-follow {
  padding-top: 72px;
}

/* Abschnitt vor einem CTA-Streifen: weniger Abstand unten */
section.page-content:has(+ .cta-strip) {
  padding-bottom: 72px;
}

/* Blog-Bereich direkt nach einem CTA-Streifen braucht wieder Abstand oben */
.cta-strip + .region-blog {
  padding-top: 72px;
}

/* ---- Barrierefreiheit: Symbol in der Navigation + Pop-up ---- */
.a11y-switch {
  display: flex;
  align-items: center;
}

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.a11y-toggle:hover,
.a11y-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.15);
}

.site-header.scrolled .a11y-toggle {
  color: var(--navy);
  border-color: var(--border);
}

.a11y-dialog {
  width: min(440px, calc(100vw - 32px));
  margin: auto;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(7, 21, 39, 0.35);
}

.a11y-dialog::backdrop {
  background: rgba(7, 21, 39, 0.6);
}

.a11y-dialog-form {
  padding: 26px 28px 22px;
}

.a11y-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.a11y-dialog-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.a11y-dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-dialog fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.a11y-dialog legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.a11y-options--stack {
  flex-direction: column;
  gap: 10px;
}

.a11y-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.a11y-dialog-more {
  color: var(--gold-dark);
  text-decoration: underline;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .a11y-switch {
    justify-content: center;
    padding-top: 12px;
  }
}

/* Einleitung der Regionen-Seiten: volle Breite über beide Spalten */
.article-body.region-intro {
  max-width: none;
  margin-bottom: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.region-intro p {
  font-size: 1.05rem;
}

/* Project enquiry update: retain navy/gold brand and improve readability. */
/* Fließtext im gesamten Projekt im Blocksatz; Überschriften und zentrierte Bereiche ausgenommen */
main p, main li, main dd { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main :where(.section-head, .cta, .cta-inner, .page-cta, .process-cta, .cta-strip, .cta-strip-inner, .why-us, .why-item, .map-placeholder, .form-success, .region-map, .field-tags) :is(p, li) { text-align: inherit; }
[data-i18n^="conversion."] p { max-width: 78ch; line-height: 1.75; }
/* Hero: Textblock endet vor der (gespiegelten) Skyline, die bei ca. 56 % der Fensterbreite beginnt.
   Eyebrow und Einleitung nutzen dieselbe Breite, beide im Blocksatz. */
@media (min-width: 900px) { .hero-content { max-width: min(600px, calc(52vw - max((100vw - 1180px) / 2, 0px) - 24px)); } }
.hero-content .eyebrow, .hero-content .hero-sub { display: block; max-width: none; text-align: justify; hyphens: auto; }
.hero-content .eyebrow { text-align-last: justify; }
/* Headline zweizeilig; Schriftgröße folgt der Breite des Textblocks, damit beide Zeilen vor der Skyline enden. */
.hero-content { container-type: inline-size; }
.hero-content h1 .hero-line { display: block; white-space: nowrap; color: inherit; }
.hero .hero-content h1 { font-size: clamp(1.5rem, 6.4cqi, 3.4rem); }
@media (max-width: 600px) { .hero-content .eyebrow { text-align-last: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.project-secondary { color: #e5ce8c; text-decoration: underline; text-underline-offset: 4px; }
.project-trust { font-size: .9rem; color: #e2d7bd; margin-top: 24px; }
.project-person { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.project-person img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.project-person h3 { margin-top: 0; }
.project-budget { font-size: 1.35rem; font-weight: 600; }
.support-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 28px 0; }
.support-card { padding: 28px; border: 1px solid #b89a55; border-radius: 12px; background: #fff; color: #172234; }
.support-price { font-size: 1.8rem; font-weight: 700; }
.support-price span { display: block; font-size: .9rem; font-weight: 400; }
.support-card .btn { margin-top: 12px; }
.reference-disclosure { font-size: .9rem; border-top: 1px solid #aa8e4a; padding-top: 16px; margin-top: 20px; }
.project-faq { padding: 20px 0; border-bottom: 1px solid #d7cfbf; }
.project-faq summary { font-weight: 600; cursor: pointer; padding: 4px 0; }
.project-faq summary:focus-visible { outline: 3px solid #9e7f36; outline-offset: 6px; }
.project-form-hint { margin-bottom: 12px; color: #4b5360; font-size: .95rem; }
.process > .container > h2 { color: var(--white); margin-bottom: 28px; }
.process > .container > p { color: rgba(255,255,255,.85); margin-top: 24px; max-width: none; }
[data-i18n^="conversion."] .page-content h2 { margin-bottom: 24px; }
[data-i18n^="conversion."] .page-content p { margin-bottom: 18px; }
[data-i18n^="conversion."] .page-content h3 { margin-top: 28px; margin-bottom: 12px; }
[data-i18n^="conversion."] .support-card h3 { margin-top: 0; }
[data-i18n^="conversion."] .reference-card h3 { margin-top: 0; }
[data-i18n^="conversion."] .reference-grid .reference-disclosure { max-width: none; margin-bottom: 0; }
[data-i18n^="conversion."] .reference-card a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
[data-i18n^="conversion."] .cta .container { max-width: 820px; }
.contact-grid .contact-form { grid-column: 1; grid-row: 1; }
.contact-grid .contact-info { grid-column: 2; grid-row: 1; }
@media (max-width: 800px) { .support-grid { grid-template-columns: 1fr; } .project-person { grid-template-columns: 1fr; } .contact-grid .contact-form,.contact-grid .contact-info { grid-column: auto; grid-row: auto; } .contact-grid { display:flex; flex-direction:column; } .contact-form { order:0; } .contact-info { order:1; } .hero { padding-top:140px; padding-bottom:60px; } .hero h1 { font-size:clamp(2rem,8vw,3.5rem); } }

.hero-skyline { opacity: .35; }
/* Unterhalb des Textblocks Platz für die flachen Skyline-Teile (Palmen, Gebäude: ca. 32 % der Skyline-Höhe),
   damit CTA, Referenzlink und Vertrauenszeile nicht in der Skyline stehen. */
.hero { padding-bottom: calc(min(50vw, 640px) * 0.32 + 32px); }
.contact-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
.contact-grid > *, .form-row > *, .form-group { min-width: 0; }
.form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-width: 0; max-width: 100%; }
.contact-details a { overflow-wrap: anywhere; }
.form-group-checkbox input { width: auto; }
@media (max-width: 980px) { .contact-grid { display: flex; flex-direction: column; } .contact-grid .contact-form { order: 0; } .contact-grid .contact-info { order: 1; } }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0,1fr); } .contact-form { padding: 24px; } }

.hero h1 { color: var(--gold-light); }
.support-card { display: flex; flex-direction: column; }
.support-card .btn { margin-top: auto; align-self: flex-start; }
