/*
Theme Name: Tiefenbach Modern
Description: Bereinigtes Stylesheet für Tiefenbach Modern.
Version: 3.27.1
Text Domain: tiefenbach-modern
*/

* {
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--orange);
  font: 600 10px/1.2 var(--body);
  letter-spacing: .18em;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px,2vw,34px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  position: relative;
}

.primary-menu>li:hover>a:after, .primary-menu>li:focus-within>a:after, .primary-menu>.current-menu-item>a:after, .primary-menu>.current-menu-ancestor>a:after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,rgba(88,17,122,.34),rgba(88,17,122,0) 52%),linear-gradient(0deg,rgba(88,17,122,.48),rgba(245,130,18,0) 54%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: '';
  width: 45px;
  border-top: 4px solid var(--orange);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(190px,.65fr) 2fr;
}

.intro .eyebrow {
  color: var(--purple);
}

.intro-copy {
  max-width: 900px;
  margin: 0;
  color: var(--text);
}

.text-link:after {
  content: '→';
  font-size: 18px;
}

.split-row:nth-child(even) .split-media {
  order: 2;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg,#e7dbea,#fff0e3);
}

.split-media:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(88,17,122,.45),rgba(245,130,18,.4));
  opacity: 0;
  transition: opacity .5s;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.75,.2,1),filter .5s;
}

.split-row:hover .split-media img {
  transform: scale(1.065);
  filter: saturate(.85);
}

.split-row:hover .split-media:after {
  opacity: .72;
}

.split-content p {
  margin: 0;
  max-width: 600px;
}

.split-content .text-link {
  align-self: flex-start;
}

.content-page-header {
  width: 100%;
  max-width: none;
  margin-top: 86px;
  padding-top: clamp(90px,12vw,180px);
  padding-bottom: clamp(65px,8vw,120px);
  background: linear-gradient(125deg,#f4eaf8,#fff0e3);
  color: var(--purple);
}

.content-page h1 {
  margin: 0;
  font: 600 clamp(48px,7vw,96px)/.95 var(--display);
}

.content-page h2, .content-page h3 {
  color: var(--purple);
  font-family: var(--display);
}

.brand>a {
  height: 100%;
  display: flex;
  align-items: center;
}

.brand .custom-logo-link {
  height: 100%;
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  padding: 11px 16px;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 2px solid var(--orange);
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.sub-menu a {
  display: block;
  padding: 12px 20px;
  border-left: 3px solid transparent;
  transition: color .2s,background .2s,border-color .2s;
  font-size: 16px;
  font-weight: 600;
  color: var(--purple);
}

.page-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,rgba(88,17,122,.32),rgba(88,17,122,0) 58%);
}

.primary-menu>li>a {
  display: block;
  font: 700 13px/1 var(--body);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 30px 0 27px;
  color: #fff;
  font-size: 16px;
  letter-spacing: .055em;
  padding-inline: 10px;
  transition: color .2s,background-color .2s;
}

.primary-menu>.current-menu-item>a, .primary-menu>.current-menu-ancestor>a {
  color: #fff3e8;
}

.project-cta.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.project-cta:hover, .project-cta:focus-visible {
  background: #ffad59;
  color: var(--purple);
}

.menu-item-has-children>.sub-menu {
  pointer-events: none;
}

.menu-item-has-children:hover>.sub-menu, .menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.menu-item-has-children.submenu-open>.sub-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  pointer-events: none;
}

.split-content .text-link:hover, .text-link:hover {
  background: #ffad59;
  color: var(--purple);
  transform: translateY(-3px);
}

.intro, .split-sections {
  width: 100%;
}

.content-surface>.content-page, .home-normal-content>.content-page {
  width: min(92%, 1440px) !important;
  max-width: 1440px !important;
  margin-inline: auto!important;
  padding: clamp(34px,4vw,58px) clamp(34px,5vw,72px)!important;
  background: #fff!important;
  box-shadow: 0 14px 45px rgba(88,17,122,.08)!important;
}

.content-surface>.content-page:not(:empty)+.page-feature-sections {
  margin-top: 0;
}

.content-surface>.content-page+.page-feature-sections {
  padding-top: 0;
}

.page-feature-sections>.wrap>.service-panel-wrap:first-child {
  margin-top: 0;
}

.content-page>.service-panel-wrap {
  width: min(var(--content),calc(100vw - (2 * var(--space))))!important;
  max-width: none!important;
  margin-left: 50%!important;
  margin-right: 0!important;
  transform: translateX(-50%);
  margin-top: clamp(14px,2vw,26px);
}

.content-page>:last-child {
  margin-bottom: 0;
}

.content-surface>.content-page {
  padding-bottom: clamp(18px,2vw,30px);
  width: min(1120px,calc(100% - clamp(48px,12vw,220px)));
  margin-inline: auto;
  padding-inline: clamp(34px,5vw,72px);
  background: #fff;
  box-shadow: 0 14px 45px rgba(88,17,122,.08);
}

.content-surface>.content-page:empty {
  display: none;
}

.content-surface>.content-page .service-panel-wrap {
  width: calc(100% + clamp(30px,6vw,90px));
  max-width: none;
  margin-inline: calc(clamp(15px,3vw,45px) * -1);
}

.primary-menu>li>a, .primary-menu>.current-menu-item>a, .primary-menu>.current-menu-ancestor>a {
  background: transparent!important;
  box-shadow: none!important;
  border-radius: 0;
}

.primary-menu>li>a:hover, .primary-menu>li>a:focus-visible {
  color: var(--orange);
  background: transparent!important;
  box-shadow: none!important;
}

.primary-menu>li>a:after {
  content: '';
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s;
  height: 4px;
  margin-top: 10px;
  display: none!important;
}

.sub-menu {
  position: absolute;
  top: calc(100% - 5px);
  left: -20px;
  z-index: 5;
  min-width: 260px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 18px 45px rgba(88,17,122,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: .22s ease;
  border-top: 3px solid var(--orange);
}

.sub-menu a:hover, .sub-menu a:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  background: #fff;
  border-left-color: transparent;
}

.page-feature-sections .split-row:last-child {
  margin-bottom: 0;
}

.content-surface {
  background: transparent!important;
  position: relative;
  z-index: 2;
  box-shadow: 0 -18px 45px rgba(88,17,122,.09);
}

.content-surface .content-page {
  position: relative;
  z-index: auto;
  background: transparent;
  box-shadow: none;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 42px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(190px,.65fr) 2fr;
}

.page-intro .eyebrow {
  color: var(--purple);
}

.page-intro-copy {
  max-width: 900px;
  margin: 0;
  color: var(--text);
}

.hero {
  display: flex;
  align-items: flex-end;
  background: #e9e5e2 center/cover no-repeat;
  color: #fff;
  position: sticky;
  top: 108px;
  z-index: 0;
  min-height: calc(100svh - 108px);
  width: 100%;
  background-size: cover!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
}

@media(max-width:780px) {
  .page-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-intro {
    padding-block: 46px 22px;
  }

  .page-intro+.content-page {
    padding-top: 20px;
  }
}

.page-hero {
  background: #ece5ef center/cover no-repeat;
  position: sticky;
  top: 108px;
  z-index: 0;
  height: 60svh;
  min-height: 430px;
  max-height: 720px;
  width: 100%;
  background-size: cover!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
}

.hero:before, .page-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--content),100%);
  margin: auto;
  padding: 120px var(--space) clamp(65px,9vw,125px);
  padding-bottom: clamp(48px,6vw,85px);
}

.hero h1 {
  margin: 0;
  font: 700 clamp(48px,7.8vw,118px)/.92 var(--display);
  letter-spacing: -.025em;
  text-shadow: 0 3px 18px rgba(88,17,122,.18);
  max-width: 820px;
  font-size: clamp(30px,4.7vw,68px);
  line-height: 1.02;
  text-transform: none;
}

.content-page p, .content-page li {
  font-size: 18px;
  line-height: 1.75;
  max-width: none;
}

.content-page a:not(.wp-block-button__link):not(.text-link) {
  display: inline;
  padding: 2px 3px;
  color: var(--purple);
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat;
  text-decoration: none;
  transition: color .2s, background-color .2s, box-shadow .2s;
}

.content-page a:not(.wp-block-button__link):not(.text-link):hover, .content-page a:not(.wp-block-button__link):not(.text-link):focus-visible {
  color: var(--purple);
  background-size: 100% 3px;
  box-shadow: none;
}

/* Seiten-Aktionslink im freien Seiteninhalt */
.seiten-aktion {
  display: inline-block;
  padding: 2px 3px;
  color: var(--purple);
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat;
  text-decoration: none;
  transition: background-size .2s ease;
}

.seiten-aktion:hover, .seiten-aktion:focus-visible {
  color: var(--purple);
  background-size: 100% 3px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 4;
  clear: both;
  width: 100%;
  max-width: 100%;
  padding: 34px var(--space) 16px;
  color: var(--muted);
  background: #f3f1f3;
  border-top: 4px solid var(--orange);
  box-shadow: 0 -8px 28px rgba(88,17,122,.04);
}

.footer-grid {
  margin: auto;
  display: grid;
  justify-content: center;
  width: min(1120px,100%);
  grid-template-columns: 1.15fr 1fr .85fr;
  gap: clamp(28px,4vw,58px);
  align-items: start;
}

.footer-column {
  min-width: 0;
  padding: 0;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column a {
  transition: color .2s,background-color .2s;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--purple);
  background: #ffe1c7;
}

.footer-label {
  color: var(--purple);
  margin: 0 0 12px;
  font: 600 22px/1.1 var(--display);
}

.footer-column p,
.footer-column li {
  font-size: 14px;
}

.footer-column p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.footer-column li {
  margin-bottom: 3px;
  line-height: 1.4;
}

.social-links {
  display: flex;
  margin-top: 12px;
  gap: 8px;
}

.social-links a {
  display: grid;
  place-items: center;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-weight: 800;
  width: 32px;
  height: 32px;
}

.social-links a:hover {
  color: #fff;
  background: var(--purple);
}

.footer-bottom {
  margin: 24px auto 0;
  border-top: 1px solid rgba(88,17,122,.18);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px,100%);
  padding-top: 12px;
  align-items: center;
  font-size: 12px;
}

.footer-bottom span {
  margin: 0;
}

.footer-bottom a:hover {
  color: var(--orange);
}

@media(max-width:950px) {
  .footer-grid {
    grid-template-columns: repeat(3,1fr);
    gap: 26px;
  }
}

@media(max-width:720px) {
  .site-footer {
    padding-top: 28px;
  }

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

  .footer-bottom {
    margin-top: 20px;
  }
}

@media(max-width:620px) {
  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}

@media(max-width:520px) {
  .footer-grid {
    gap: 22px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

.mobile-submenu-toggle {
  display: none;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-main {
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

main {
  width: 100%;
  max-width: 100%;
}

.content-surface, .page-intro {
  width: 100%;
  max-width: 100%;
}

.page-feature-sections {
  width: 100%;
  max-width: 100%;
}

.wrap {
  width: min(var(--content),100%);
  margin: auto;
  padding-inline: var(--space);
  max-width: 100%;
}

.split-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
  margin-bottom: clamp(45px,7vw,100px);
  background: #fff;
  box-shadow: 0 18px 60px rgba(88,17,122,.08);
  max-width: 100%;
}

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

/* Kleine Galerie-Vorschaubilder; Vergrößerung über die WordPress-Lightbox */
.content-page .wp-block-gallery {
  width: min(760px,100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(135px,1fr));
  gap: 12px;
}

.content-page .wp-block-gallery .wp-block-image {
  width: auto!important;
  margin: 0!important;
  overflow: hidden;
}

.content-page .wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
}

.content-page .wp-block-gallery .wp-block-image:hover img,
.content-page .wp-block-gallery .wp-block-image:focus-within img {
  transform: scale(1.07);
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 8px 22px rgba(88,17,122,.22);
}

@media(max-width:620px) {
  .content-page .wp-block-gallery {
    grid-template-columns: repeat(auto-fit,minmax(105px,1fr));
    gap: 8px;
  }

  .content-page .wp-block-gallery .wp-block-image img {
    height: 115px;
  }
}

iframe {
  max-width: 100%;
  height: auto;
}

video, svg {
  max-width: 100%;
  height: auto;
}

.project-cta {
  position: fixed;
  z-index: 99;
  right: 0;
  top: 52%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateX(105%);
  opacity: 0;
  box-shadow: -8px 12px 28px rgba(88,17,122,.18);
  transition: transform .6s cubic-bezier(.2,.75,.2,1),opacity .4s,background .2s;
  max-width: 64px;
}

/*
 * Tiefenbach Modern - bereinigtes Stylesheet
 * Sicher ueberschriebene Deklarationen wurden entfernt.
 * Letzte Bereinigung: 2026-08-14
 */
:root {
  --purple: #58117a;
  --orange: #f58212;
  --paper: #fefbfc;
  --soft: #f1f1f1;
  --text: #454545;
  --muted: #666060;
  --white: #fff;
  --line: rgba(88,17,122,.16);
  --space: clamp(24px,5vw,76px);
  --content: 1420px;
  --body: "Source Sans 3","Segoe UI",Arial,sans-serif;
  --display: "Source Sans 3","Arial Narrow","Helvetica Neue",Arial,sans-serif;
}

@supports not (overflow:clip) {
  html, body {
    overflow-x: hidden;
  }
}

.intro h2 {
  margin: 0 0 30px;
  color: var(--purple);
  font: 600 clamp(42px,5.7vw,86px)/.98 var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
  font-size: clamp(40px,5vw,72px);
}

@media(max-width:620px) {
  .brand small {
    display: none;
  }

  .split-content {
    padding: 36px 26px;
  }

  .project-cta {
    position: fixed;
    top: 246px;
    bottom: auto;
    left: 0;
    right: auto;
    justify-content: center;
    padding: 9px 6px;
    max-width: none;
    width: auto;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: translateX(-105%);
  }

  .project-cta.is-visible {
    transform: translateX(0);
  }

  body {
    padding-top: 96px!important;
  }

  .site-header {
    position: fixed!important;
    top: 0;
    right: 0;
    left: 0;
  }

  .hero,
  .page-hero {
    top: 96px!important;
  }

  .header-social {
    position: absolute!important;
    top: 100%!important;
    right: 0!important;
    left: auto!important;
    width: 46px;
    height: 138px;
  }

  .home-normal-content>.content-page {
    width: 100%!important;
    box-shadow: none!important;
  }

  .content-surface>.content-page:not(:empty) {
    margin-block: 22px!important;
  }

  .home-normal-content {
    padding-block: 22px;
  }

  .page-feature-sections>.wrap>.service-panel-wrap:first-child {
    margin-top: 0;
  }

  .content-surface>.content-page {
    width: 100%!important;
    box-shadow: none!important;
    padding-bottom: 16px;
    padding-inline: 22px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 17px;
  }

  .admin-bar .site-header nav {
    top: 134px!important;
    max-height: calc(100dvh - 134px)!important;
  }

  .custom-logo {
    max-width: 68vw;
    max-height: 74px;
  }

  .site-header nav {
    top: 88px!important;
    max-height: calc(100dvh - 88px)!important;
    inset: 88px 0 0;
  }

  .hero {
    top: 88px;
    min-height: calc(100svh - 88px);
  }

  .page-hero {
    top: 88px;
    width: 100%;
    height: 42svh;
    min-height: 280px;
  }

  .hero-inner {
    padding-inline: 22px;
  }

  .hero h1 {
    font-size: clamp(30px,11vw,50px);
  }

  .page-intro {
    width: 100%;
  }

  .content-page {
    width: 100%;
  }

  .page-feature-sections {
    width: 100%;
  }

  .page-intro-grid {
    display: block;
  }

  .page-intro .eyebrow {
    margin-bottom: 22px;
  }

  .page-intro h2 {
    font-size: clamp(34px,10vw,48px);
  }

  .content-page p {
    font-size: 17px;
  }

  .content-page li {
    font-size: 17px;
  }

  .split-row {
    display: block;
    min-height: 0;
    margin-bottom: 34px;
  }

  .split-media {
    min-height: 260px;
  }

  .split-content h3 {
    font-size: clamp(30px,9vw,42px);
  }

  .service-panel-wrap {
    padding-inline: 20px;
    margin-inline: 0;
  }

  .service-panel {
    padding: 24px 20px;
  }

}

.page-intro h2 {
  margin: 0 0 28px;
  color: var(--purple);
  font: 600 clamp(40px,5.4vw,82px)/.98 var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
  font-size: clamp(38px,4.7vw,64px);
}

.split-content h3 {
  margin: 12px 0 20px;
  color: var(--purple);
  font: 600 clamp(34px,4vw,62px)/1 var(--display);
  font-size: clamp(30px,3.3vw,48px);
  font-weight: 600;
}

.intro-copy, .page-intro-copy {
  font-size: clamp(19px,1.7vw,26px);
  line-height: 1.5;
}

.intro {
  position: relative;
  z-index: 2;
  background: var(--paper);
  box-shadow: 0 -18px 45px rgba(88,17,122,.09);
  padding: clamp(60px,7vw,105px) 0;
}

.intro-grid, .page-intro-grid {
  gap: clamp(32px,6vw,92px);
}

.page-intro {
  position: relative;
  z-index: 3;
  padding: clamp(70px,10vw,145px) 0;
  background: var(--paper);
  padding-top: clamp(38px,4.5vw,68px);
  padding-bottom: clamp(16px,2vw,28px);
}

.page-intro+.content-page {
  padding-top: clamp(16px,2vw,28px);
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px,4.5vw,65px);
}

.service-panel-wrap {
  margin: clamp(38px,6vw,82px) 0;
  padding-block: clamp(28px,3.5vw,50px);
  padding: 0;
  background: transparent;
  max-width: 100%;
  margin-block: clamp(20px,2.8vw,38px);
}

.service-panel {
  margin: auto;
  border-top: 6px solid var(--orange);
  border-top-width: 4px;
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  width: min(860px,100%);
  padding: clamp(22px,3vw,36px);
  box-shadow: 0 10px 32px rgba(88,17,122,.07);
}

.service-panel h2 {
  margin: 0 0 30px;
  color: var(--purple);
  font: 600 clamp(32px,4vw,58px)/1 var(--display);
  margin-bottom: 16px;
  font-size: clamp(25px,2.6vw,36px);
  font-weight: 600;
}

.service-list li {
  position: relative;
  padding: 14px 10px 14px 28px;
  border-bottom: 1px solid var(--line);
  padding-block: 8px;
  font-size: 16px;
  line-height: 1.45;
}

.service-list li:before {
  content: '';
  position: absolute;
  left: 2px;
  background: var(--orange);
  transform: rotate(45deg);
  top: 17px;
  width: 7px;
  height: 7px;
}

.content-page {
  margin: auto;
  padding: clamp(70px,9vw,130px) var(--space);
  width: min(1180px,100%);
  background: var(--paper);
  position: relative;
  z-index: 2;
  box-shadow: 0 -18px 45px rgba(88,17,122,.09);
  font-size: 18px;
  max-width: 100%;
  padding-top: clamp(30px,4vw,58px);
  padding-bottom: clamp(34px,4.5vw,64px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .22s,transform .22s;
  padding: 10px 17px;
}

.split-sections>.wrap {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(26px,3vw,46px);
  display: block!important;
}

.split-sections .split-row {
  box-shadow: 0 12px 38px rgba(88,17,122,.07);
  display: grid!important;
  grid-template-columns: 1.05fr .95fr;
  grid-column: auto!important;
  width: 100%;
  min-height: 430px;
  height: auto;
  margin-bottom: clamp(28px,4vw,54px);
}

.split-sections .split-row:nth-child(3) {
  display: grid!important;
  grid-template-columns: 1.05fr .95fr;
  grid-column: auto!important;
  width: 100%;
  min-height: 430px;
  height: auto;
  margin-bottom: clamp(28px,4vw,54px);
}

.split-sections .split-row:nth-child(4) {
  display: grid!important;
  grid-template-columns: 1.05fr .95fr;
  grid-column: auto!important;
  width: 100%;
  min-height: 430px;
  height: auto;
  margin-bottom: clamp(28px,4vw,54px);
}

.split-sections .split-row:nth-child(3) .split-media {
  height: auto;
  min-height: 430px;
}

@media(min-width:951px) and (max-width:1400px) {
  .site-header {
    padding-inline: 22px;
    gap: 20px;
  }

  .brand {
    flex-basis: 335px;
  }

  .custom-logo {
    max-width: 335px;
    max-height: 92px;
  }

  .primary-menu {
    gap: 13px;
  }

  .primary-menu>li>a {
    padding-inline: 2px;
    font-size: 12px;
    letter-spacing: .045em;
  }
}

.split-sections .split-row:nth-child(4) .split-media {
  height: auto;
  min-height: 430px;
}

.split-sections .split-row:nth-child(3) .split-content, .split-sections .split-row:nth-child(4) .split-content {
  min-height: 430px;
  padding: clamp(34px,4.5vw,65px);
}

.split-sections .split-row:nth-child(3) .split-content h3, .split-sections .split-row:nth-child(4) .split-content h3 {
  font-size: clamp(30px,3.3vw,48px);
}

.page-feature-sections .split-row {
  margin-bottom: clamp(34px,5vw,66px);
  box-shadow: 0 12px 38px rgba(88,17,122,.07);
  height: 480px;
  min-height: 480px;
  max-height: 480px;
  overflow: hidden;
}

.page-feature-sections .split-media {
  height: 100%;
  min-height: 0;
}

.page-feature-sections .split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-feature-sections .split-content {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.page-hero-title {
  position: absolute;
  z-index: 2;
  left: var(--space);
  bottom: clamp(28px,4vw,58px);
  margin: 0;
  padding: 5px 14px;
  max-width: min(900px,90vw);
  border-left: 6px solid var(--orange);
  background: rgba(255,255,255,.68);
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(28px,3.5vw,52px);
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  white-space: normal;
  backdrop-filter: blur(5px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.7 var(--body);
  font-size: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-top: 0!important;
}

.site-header {
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  transition: box-shadow .25s;
  backdrop-filter: blur(12px);
  padding: 8px var(--space);
  background: var(--purple);
  border-bottom: 5px solid var(--orange);
  box-shadow: 0 8px 30px rgba(88,17,122,.2);
  width: 100%;
  max-width: 100%;
  position: sticky;
  top: 0;
  height: 118px;
  min-height: 118px;
  padding-block: 8px;
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  flex: 0 1 390px;
  font: 800 clamp(20px,2.2vw,34px)/1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: clamp(24px,2.5vw,39px);
  flex-basis: 550px;
  overflow: visible;
}

.custom-logo {
  width: auto;
  max-width: min(540px,46vw);
  display: block;
  max-height: 96px;
  margin: 0;
  object-fit: contain;
}

.hero, .page-hero {
  margin-top: 0!important;
}

@media(max-width:782px) {
  .admin-bar .site-header nav {
    top: 142px!important;
    max-height: calc(100dvh - 142px)!important;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .hero,
  .admin-bar .page-hero {
    top: 142px!important;
  }
}

.content-surface>.content-page:not(:empty) {
  margin-top: clamp(28px,4vw,58px)!important;
  margin-bottom: clamp(28px,4vw,58px)!important;
  margin-block: clamp(18px,2.4vw,34px)!important;
}

.home-normal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  background: transparent;
  padding-top: clamp(28px,4vw,58px);
  padding-bottom: clamp(28px,4vw,58px);
  padding-block: clamp(18px,2.4vw,34px)!important;
}

.page-feature-sections {
  position: relative;
  padding: 20px 0 clamp(75px,10vw,145px);
  z-index: auto;
  padding-bottom: clamp(58px,7vw,105px);
  background: var(--paper)!important;
}

.split-sections {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(58px,7vw,105px);
  background: var(--paper)!important;
}

.page-feature-sections .split-row+.split-row {
  margin-top: 0!important;
}

.split-sections .split-row+.split-row {
  margin-top: 0!important;
}

/* Social-Media-Leiste im Header */
.header-social {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 101;
  width: 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  transform: translateX(110%);
  animation: header-social-slide-in .55s .7s cubic-bezier(.2,.75,.2,1) forwards;
}

.header-social a {
  flex: 1;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: inherit;
  transition: background-color .2s, color .2s;
}

.header-social a:hover, .header-social a:focus-visible {
  background: #fff;
  color: var(--purple);
}

.header-social svg {
  width: 22px;
  height: 22px;
}

.header-social a:first-child path {
  fill: currentColor;
}

.header-social a:not(:first-child) rect, .header-social a:not(:first-child) circle, .header-social a:not(:first-child) path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-social .header-social-dot {
  fill: currentColor!important;
  stroke: none!important;
}

@keyframes header-social-slide-in {
  to {
      transform: translateX(0);
    }
}

@media(min-width:951px) {
  .page-feature-sections .split-row, .split-sections .split-row {
    display: grid!important;
  }

  .page-feature-sections .split-media {
    max-height: none!important;
    align-self: stretch!important;
    overflow: hidden!important;
  }

  .page-feature-sections .split-row {
    height: auto!important;
    min-height: 430px!important;
    max-height: none!important;
    overflow: visible!important;
    align-items: stretch!important;
    grid-template-columns: 44% 56%!important;
  }

  .split-sections .split-media {
    max-height: none!important;
    align-self: stretch!important;
    overflow: hidden!important;
  }

  .split-sections .split-row {
    height: auto!important;
    min-height: 430px!important;
    max-height: none!important;
    overflow: visible!important;
    align-items: stretch!important;
    grid-template-columns: 44% 56%!important;
  }

  .page-feature-sections .split-media img {
    display: block!important;
    object-position: center!important;
    max-height: none!important;
  }

  .page-feature-sections .split-row:nth-child(even) .split-media {
    order: initial!important;
  }

  .split-sections .split-media img {
    display: block!important;
    object-position: center!important;
    max-height: none!important;
  }

  .split-sections .split-row:nth-child(even) .split-media {
    order: initial!important;
  }

  .page-feature-sections .split-content {
    overflow-y: auto!important;
    height: auto!important;
    max-height: none!important;
    overflow: visible!important;
  }

  .page-feature-sections .split-row:nth-of-type(even) {
    grid-template-columns: 56% 44%!important;
  }

  .split-sections .split-content {
    height: auto!important;
    max-height: none!important;
    overflow: visible!important;
  }

  .split-sections .split-row:nth-of-type(even) {
    grid-template-columns: 56% 44%!important;
  }

  .split-content p {
    max-width: none!important;
  }

  .page-feature-sections .split-row:nth-of-type(even) .split-media, .split-sections .split-row:nth-of-type(even) .split-media {
    order: 2!important;
  }

  .page-feature-sections .split-media, .split-sections .split-media {
    position: relative!important;
    height: auto!important;
    min-height: 430px!important;
  }

  .page-feature-sections .split-media img, .split-sections .split-media img {
    position: absolute!important;
    inset: 0!important;
    width: 100%!important;
    height: 100%!important;
    min-height: 0!important;
    object-fit: cover!important;
  }

  .page-feature-sections .split-content, .split-sections .split-content {
    width: auto!important;
    min-height: 430px!important;
  }

  .site-header nav {
    margin-right: 56px;
  }
	



}

@media(max-width:950px) {
  .submenu-open>.sub-menu {
    display: block;
  }

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

  .menu-item-has-children>.sub-menu {
    pointer-events: auto;
  }

  .home-normal-content>.content-page {
    width: calc(100% - 40px)!important;
    padding: 30px 26px!important;
  }

  .content-page>.service-panel-wrap {
    width: 100%!important;
    margin-inline: 0!important;
    transform: none;
  }

  .content-surface>.content-page {
    width: calc(100% - 40px)!important;
    padding: 30px 26px!important;
    padding-inline: 28px;
  }

  .content-surface>.content-page .service-panel-wrap {
    width: 100%;
    margin-inline: 0;
  }

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

  .brand {
    min-width: 0!important;
    flex: 1 1 auto!important;
  }

  .menu-toggle {
    display: block!important;
    position: relative;
    z-index: 1002;
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 2px solid var(--orange);
    background: #fff;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .primary-menu {
    display: block!important;
    width: 100%!important;
    margin: 0!important;
    padding: 14px 18px!important;
  }

  .primary-menu>li {
    border-bottom-color: rgba(255,255,255,.18);
    display: block!important;
    position: relative!important;
    width: 100%!important;
    border-bottom: 1px solid rgba(88,17,122,.14);
  }

  .menu-open .site-header nav {
    visibility: visible!important;
    opacity: 1!important;
    pointer-events: auto!important;
    transform: none;
    display: block;
  }

  .mobile-submenu-toggle[aria-expanded="true"] {
    background: var(--orange);
    color: #fff;
  }

  .primary-menu>li>a {
    display: block!important;
    width: 100%!important;
    padding: 16px 54px 16px 4px!important;
    color: var(--purple)!important;
    font-size: 17px!important;
    white-space: normal!important;
    padding-right: 58px;
  }

  .sub-menu {
    display: none!important;
    position: static!important;
    width: 100%!important;
    min-width: 0!important;
    margin: 0 0 10px!important;
    padding: 4px 0 8px 14px!important;
    background: #fff!important;
    border: 0!important;
    box-shadow: none!important;
    opacity: 1!important;
    visibility: visible!important;
    transform: none!important;
    pointer-events: auto!important;
  }

  .mobile-submenu-toggle {
    display: grid!important;
    position: absolute;
    right: 0;
    top: 7px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(88,17,122,.25);
    background: #fff;
    color: var(--purple);
    font-size: 23px;
    cursor: pointer;
    line-height: 1;
  }

  .menu-item-has-children:hover>.sub-menu {
    display: none!important;
    position: static!important;
    width: 100%!important;
    min-width: 0!important;
    margin: 0 0 10px!important;
    padding: 4px 0 8px 14px!important;
    background: #fff!important;
    border: 0!important;
    box-shadow: none!important;
    opacity: 1!important;
    visibility: visible!important;
    transform: none!important;
    pointer-events: auto!important;
  }

  .menu-item-has-children:focus-within>.sub-menu {
    display: none!important;
    position: static!important;
    width: 100%!important;
    min-width: 0!important;
    margin: 0 0 10px!important;
    padding: 4px 0 8px 14px!important;
    background: #fff!important;
    border: 0!important;
    box-shadow: none!important;
    opacity: 1!important;
    visibility: visible!important;
    transform: none!important;
    pointer-events: auto!important;
  }

  .menu-item-has-children.mobile-submenu-open>.sub-menu {
    display: block!important;
  }

  .sub-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--purple);
    font-size: 16px;
    white-space: normal;
  }

  .menu-open {
    overflow: hidden;
  }

  .wrap {
    max-width: 100%;
    padding-inline: 24px;
  }

  .content-page {
    max-width: 100%;
    padding-inline: 24px;
  }

  .split-row {
    grid-template-columns: 1fr!important;
  }

  .split-row:nth-child(even) .split-media {
    order: 0;
  }

  .split-media {
    min-height: clamp(280px,62vw,430px);
  }

  .split-content {
    padding: 34px 26px;
  }

  .service-panel {
    max-width: 100%;
  }

  .split-sections>.wrap {
    display: block;
  }

  .split-sections .split-row:nth-child(3) {
    display: grid;
    grid-column: auto;
    margin-bottom: 34px;
  }

  .split-sections .split-row:nth-child(4) {
    display: grid;
    grid-column: auto;
    margin-bottom: 34px;
  }

  .split-sections .split-row:nth-child(3) .split-media {
    height: auto;
  }

  .split-sections .split-row:nth-child(4) .split-media {
    height: auto;
  }

  .split-sections .split-row {
    display: grid;
    grid-column: auto;
    margin-bottom: 34px;
    grid-template-columns: 1fr!important;
    min-height: 0;
  }

  .split-sections .split-row:nth-child(3), .split-sections .split-row:nth-child(4) {
    grid-template-columns: 1fr!important;
    min-height: 0;
  }

  .split-sections .split-row:nth-child(3) .split-media, .split-sections .split-row:nth-child(4) .split-media {
    min-height: clamp(280px,62vw,430px);
  }

  .split-sections .split-row:nth-child(3) .split-content {
    min-height: 0;
    padding: 34px 26px;
  }

  .page-feature-sections .split-row {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .split-sections .split-row:nth-child(4) .split-content {
    min-height: 0;
    padding: 34px 26px;
  }

  .page-feature-sections .split-media {
    height: clamp(270px,62vw,420px);
  }

  .page-feature-sections .split-content {
    height: auto;
    overflow: visible;
  }

  body {
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 0;
  }

  .site-header {
    padding-block: 8px;
    padding-inline: 16px!important;
    gap: 12px!important;
    height: 96px;
    min-height: 96px;
  }

  .content-surface>.content-page:not(:empty) {
    margin-block: 20px!important;
  }

  .page-feature-sections .split-media img {
    position: static!important;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
  }

  .home-normal-content {
    padding-block: 20px!important;
  }

  .custom-logo {
    max-width: calc(100vw - 120px)!important;
    max-height: 76px!important;
  }

  .split-sections .split-media img {
    position: static!important;
    width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
  }

  .site-header nav {
    overflow: auto;
    position: fixed!important;
    z-index: 1001;
    left: 0!important;
    right: 0!important;
    top: 96px!important;
    bottom: auto!important;
    width: 100%!important;
    max-width: none!important;
    max-height: calc(100dvh - 96px)!important;
    overflow-y: auto!important;
    overflow-x: hidden!important;
    margin: 0!important;
    padding: 0!important;
    background: #fff!important;
    border-bottom: 4px solid var(--orange);
    box-shadow: 0 18px 45px rgba(88,17,122,.22);
    display: block!important;
    visibility: hidden!important;
    opacity: 0!important;
    pointer-events: none!important;
    transform: translateY(-10px);
    transition: opacity .2s,transform .2s,visibility .2s;
    inset: 96px 0 0;
  }

  .hero {
    top: 104px;
    min-height: calc(100svh - 104px);
    background-position: center!important;
    margin-top: 0!important;
  }

  .page-hero {
    top: 104px;
    height: 52svh;
    min-height: 360px;
    background-position: center!important;
    margin-top: 0!important;
  }

  .header-social {
    right: 68px;
    width: 46px;
  }
}

/* Mobil nur die Positionen anpassen; Menuefunktion unveraendert lassen */
@media(max-width:950px) {
  .header-social {
    position: absolute!important;
    top: 0!important;
    right: 0!important;
    left: auto!important;
    width: 36px;
    height: 96px;
  }

  .menu-toggle {
    position: fixed!important;
    right: 16px;
    top: 106px;
    top: 102px;
    bottom: auto!important;
    left: auto!important;
    box-shadow: 0 5px 16px rgba(88,17,122,.2);
    min-width: 104px;
    min-height: 30px;
    padding: 5px 16px;
    font-size: 14px;
    line-height: 1;
    color: var(--purple);
    background: rgba(255,255,255,.96);
    border: 0;
    border-bottom: 2px solid var(--orange);
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(88,17,122,.12);
    z-index: 1003;
  }

  .menu-toggle::after {
    content: none;
  }

  .site-header nav {
    inset: 148px 0 auto!important;
    top: 148px!important;
    right: 0!important;
    bottom: auto!important;
    left: 0!important;
    height: auto!important;
    max-height: calc(100dvh - 148px)!important;
  }
}

@media(max-width:782px) {
  .admin-bar .menu-toggle {
    top: 152px;
    top: 148px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .header-social {
    transform: none;
    animation: none;
  }
}

/* Firmenchronik */
.company-timeline {
  position: relative;
  width: min(960px,100%);
  margin: 0 auto;
  padding: 10px 0 10px 148px;
}

.company-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 105px;
  width: 3px;
  content: "";
  background: linear-gradient(var(--orange),rgba(245,130,18,.28));
}

.timeline-event {
  position: relative;
  margin: 0 0 34px;
  padding: 25px 30px;
  border: 1px solid rgba(88,17,122,.10);
  border-left: 4px solid var(--orange);
  background: #fff;
  box-shadow: 0 10px 28px rgba(88,17,122,.07);
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.timeline-event::before {
  position: absolute;
  top: 31px;
  left: -54px;
  width: 15px;
  height: 15px;
  content: "";
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.timeline-year {
  position: absolute;
  top: 23px;
  right: calc(100% + 60px);
  min-width: 82px;
  color: var(--purple);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.timeline-content h2 {
  margin: 0 0 10px;
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(22px,2.3vw,31px);
  font-weight: 600;
  line-height: 1.15;
}

.timeline-content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.timeline-content p + p {
  margin-top: 12px;
}

.timeline-points {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-points li {
  position: relative;
  padding-left: 19px;
  line-height: 1.55;
}

.timeline-points li::before {
  position: absolute;
  top: .62em;
  left: 2px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--orange);
  transform: rotate(45deg);
}

.timeline-event--today {
  border-left-color: var(--purple);
  background: linear-gradient(135deg,#fff,#f7f0fa);
}

.timeline-event--today::before {
  background: var(--purple);
  box-shadow: 0 0 0 2px var(--purple);
}

@media(max-width:720px) {
  .company-timeline {
    padding: 0 0 0 22px;
  }

  .company-timeline::before {
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 2px;
  }

  .timeline-event {
    margin-bottom: 24px;
    padding: 20px 18px;
  }

  .timeline-event::before {
    top: 24px;
    left: -27px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .timeline-year {
    position: static;
    display: block;
    min-width: 0;
    margin-bottom: 9px;
    font-size: 22px;
    text-align: left;
  }

  .timeline-content h2 {
    font-size: 23px;
  }

  .timeline-content p,
  .timeline-points li {
    font-size: 16px;
  }
}

/* ==========================================================
   Referenzprojekte
   Galerie-Klasse im WordPress-Block: projekt-bilder
   ========================================================== */

/* Projektueberschriften auf der Seite "Projekte" erhalten
   automatisch den senkrechten orangefarbenen Akzent. */
.page-id-500 .content-page > h2.wp-block-heading {
  margin: clamp(48px,6vw,76px) 0 22px !important;
  padding: 8px 0 8px 20px !important;
  border-left: 5px solid var(--orange) !important;
  color: var(--purple) !important;
  font-family: var(--display);
  font-size: clamp(23px,2.4vw,34px) !important;
  font-weight: 600 !important;
  line-height: 1.1;
}

/* Das erste Projekt beginnt ohne uebermaessigen Abstand. */
.page-id-500 .content-page > h2.wp-block-heading:first-child {
  margin-top: 12px !important;
}

/* Ein grosses Hauptbild links, drei ergaenzende Bilder rechts. */
.content-page .wp-block-gallery.projekt-bilder,
.content-page figure.wp-block-gallery.projekt-bilder {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  grid-template-rows: repeat(2,minmax(190px,230px)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 28px 0 64px !important;
}

.content-page .projekt-bilder > .wp-block-image {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
}

.content-page .projekt-bilder > .wp-block-image:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

.content-page .projekt-bilder > .wp-block-image:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1;
}

.content-page .projekt-bilder > .wp-block-image:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.content-page .projekt-bilder > .wp-block-image:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.content-page .projekt-bilder > .wp-block-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .4s ease,filter .4s ease;
}

.content-page .projekt-bilder > .wp-block-image:hover img,
.content-page .projekt-bilder > .wp-block-image:focus-within img {
  transform: scale(1.045);
  filter: brightness(1.04) saturate(1.08);
}

@media(max-width:720px) {
  .page-id-500 .content-page > h2.wp-block-heading {
    margin-top: 42px !important;
    padding-left: 15px !important;
    border-left-width: 4px !important;
    font-size: clamp(22px,6.5vw,30px) !important;
  }

  .content-page .wp-block-gallery.projekt-bilder,
  .content-page figure.wp-block-gallery.projekt-bilder {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    grid-template-rows: 250px 125px !important;
    gap: 8px !important;
    margin-bottom: 44px !important;
  }

  .content-page .projekt-bilder > .wp-block-image:first-child {
    grid-column: 1 / 4;
    grid-row: 1;
  }

  .content-page .projekt-bilder > .wp-block-image:nth-child(2),
  .content-page .projekt-bilder > .wp-block-image:nth-child(3),
  .content-page .projekt-bilder > .wp-block-image:nth-child(4) {
    grid-column: auto;
    grid-row: 2;
  }
}

/* ==========================================================
   Anpassungen 3.26.9: Hero-Ueberschriften und Dropdown-Breite
   ========================================================== */

/* Unterseiten: Typografie und Darstellung exakt wie im
   Startseiten-Hero; kein heller Kasten und keine Unschärfe. */
.page-hero-title {
  left: var(--space);
  bottom: clamp(78px,9vw,125px);
  width: min(820px,calc(100% - (2 * var(--space))));
  max-width: 820px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(28px,4.1vw,58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-shadow: 0 3px 18px rgba(88,17,122,.18);
  backdrop-filter: none;
}

.page-hero-title::before {
  display: block;
  width: max-content;
  margin-bottom: 18px;
  padding-left: 57px;
  content: "Tiefenbach Bau";
  background: linear-gradient(var(--orange),var(--orange)) 0 center / 45px 4px no-repeat;
  color: #fff;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: none;
}

/* Desktop-Dropdowns wachsen mit dem laengsten Menuepunkt. */
@media(min-width:951px) {
  .sub-menu {
    width: max-content;
    min-width: 260px;
    max-width: min(440px,calc(100vw - 32px));
  }

  .sub-menu a {
    white-space: nowrap;
  }
}

@media(max-width:950px) {
  .page-hero-title {
    left: 24px;
    bottom: clamp(64px,10vw,96px);
    width: calc(100% - 48px);
    padding: 0;
    font-size: clamp(28px,7.6vw,42px);
  }
}

@media(max-width:620px) {
  .page-hero-title::before {
    margin-bottom: 18px;
    font-size: 11px;
  }
}
