/*
Theme Name:   PE Immo
Theme URI:    https://www.pe-immo.at
Author:       Paumgartner | Eccli
Description:  Theme für Paumgartner | Eccli – Immobilien mit Ambiente. Off-Canvas-Menü, Startseite mit Immobilien-Kacheln. Zeigt Objekte aus immonex OpenImmo2WP / Kickstart (Beitragstyp inx_property) an.
Version:      1.7.11
Requires at least: 6.0
Requires PHP: 7.4
License:      Proprietär
Text Domain:  pe-immo
*/

/*
  Nachbau des mobilen Off-Canvas-Menüs von da-immobilien.at
  (Salient Theme, Material-Skin, unter 1000px links ausgerichtet).
  Werte am Original gemessen (Chrome, 390px und 641px Viewport).
*/
:root {
  --accent: #e3007c;          /* Hintergrund des Menüs */
  --menu-text: #ffffff;       /* Menütext */
  --text: #333333;
  --muted: #5a5a5a;
  --beige: #ebe7e2;
  /* Headlines: Kepler Medium Condensed Italic (Adobe Fonts) */
  --font-head: "kepler-std-condensed-display", "Kepler Std", Georgia, serif;
  --ease: cubic-bezier(.15, .2, .1, 1);
  --dur: .8s;

  /* 451 – 999px */
  --wrap-tf: scale(.835) translateX(465px);
  --panel-w: 360px;
  --panel-pad: 60px;
}
/* <= 450px (Smartphone) */
@media (max-width: 450px) {
  :root {
    --wrap-tf: scale(.835) translateX(93vw);
    --panel-w: 85vw;
    --panel-pad: 40px;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--accent);
  -webkit-font-smoothing: antialiased;
}
body.ocm-open { overflow: hidden; }
/* nur während der Öffnen-/Schließen-Animation: horizontale Scrollbar unterdrücken */
html:has(body.ocm-animating), body.ocm-animating { overflow-x: hidden; }

/* ---------- Hintergrund + Menü-Panel (liegen HINTER dem Content) ---------- */
#ocm-bg {
  position: fixed; inset: 0;
  background: var(--accent);
  z-index: 0;
}
#ocm {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--panel-w);
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  padding: 10vh var(--panel-pad);
  display: flex;
}
#ocm .inner-wrap {
  margin: auto 0;               /* Menü vertikal zentriert */
  width: 100%;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
#ocm .menu {
  transform: translateX(110px);
  transition: transform var(--dur) var(--ease);
}
body.ocm-open #ocm { pointer-events: auto; }
body.ocm-open #ocm .inner-wrap { opacity: 1; }
body.ocm-open #ocm .menu { transform: translateX(0); }

#ocm ul { list-style: none; margin: 0; padding: 0; }
#ocm .menu li { margin-bottom: 12px; }
#ocm .menu a {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px; line-height: 30px;
  color: var(--menu-text);
  text-decoration: none;
}
#ocm .menu a span {
  background-image: linear-gradient(to right, var(--menu-text) 0, var(--menu-text) 100%);
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: left bottom;
  transition: background-size .55s cubic-bezier(.2, .75, .5, 1);
  padding-bottom: 2px;
}

#ocm .menu a:hover span { background-size: 100% 2px; }

/* Close-X: nur 451–999px sichtbar, wie im Original */
.ocm-close {
  position: fixed; top: 50px; left: 340px; z-index: 3;
  width: 30px; height: 30px; border: 0; padding: 0;
  background: transparent; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.ocm-close i, .ocm-close i::after {
  position: absolute; left: 5px; top: 14px; width: 20px; height: 2px;
  background: var(--menu-text); content: "";
}
.ocm-close i { transform: rotate(45deg); }
.ocm-close i::after { left: 0; top: 0; transform: rotate(90deg); }
body.ocm-open .ocm-close { opacity: 1; pointer-events: auto; transition-delay: .2s; }
@media (max-width: 450px) { .ocm-close { display: none; } }

/* ---------- Content-Wrapper, der verkleinert & nach rechts geschoben wird ---------- */
.ocm-wrap {
  position: relative; z-index: 2;
  background: #fff;
  min-height: 100vh;
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
  backface-visibility: hidden;
}
.ocm-wrap-inner { backface-visibility: hidden; transition: transform var(--dur) var(--ease); }

/* "Eingefrorener" Zustand: Wrapper wird auf Viewport-Höhe fixiert,
   damit die Skalierung um die Bildschirmmitte passiert (nicht um die Seitenmitte). */
body.ocm-frozen .ocm-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; min-height: 0;
  overflow: hidden;
}
body.ocm-open .ocm-wrap { transform: var(--wrap-tf) translateZ(0); cursor: pointer; }
body.ocm-open .ocm-wrap-inner { transform: scale(1.007); }
body.ocm-open .ocm-wrap * { pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 56px; padding: 0 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: #fff; box-shadow: 0 3px 45px rgba(0, 0, 0, .15);
}
body.ocm-frozen .site-header { position: absolute; }
.logo { grid-column: 2; display: block; line-height: 0; }
.logo img { display: block; height: 24px; width: auto; max-width: 62vw; }
.desktop-nav { display: none; }
.burger {
  grid-column: 1; grid-row: 1; justify-self: start;
  width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer;
  position: relative; padding: 0;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 4px; width: 22px; height: 2px; background: #888; content: "";
}
.burger span { top: 14px; width: 16.5px; }
.burger span::before { left: 0; top: -6px; width: 22px; }
.burger span::after { left: 0; top: 6px; width: 22px; }

/* Beim Scrollen (nur Desktop, s. u.): Kopfzeile niedriger, Logo etwas kleiner (Klasse is-scrolled per menu.js) */
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: height .4s var(--ease), padding .4s var(--ease), gap .4s var(--ease); }
  .logo img { transition: height .4s var(--ease); }
}

/* Desktop: wie im Original kein Burger, normale Navigation */
@media (min-width: 1000px) {
  .site-header { height: 150px; padding-top: 10px; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 26px; }
  .logo { grid-column: 1; }
  .logo img { height: 32px; max-width: none; }
  .burger { display: none; }
  .desktop-nav { display: flex; gap: 22px; }
  .desktop-nav a { color: var(--text); text-decoration: none; font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; }

  /* Hover wie da-immobilien.at: pinker Strich wächst von der Mitte nach außen,
     aktive Seite bleibt unterstrichen */
  .desktop-nav a { position: relative; display: block; padding: 4px 0 6px; }
  .desktop-nav a .roll, .desktop-nav a .roll span { display: block; }
  .desktop-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
  }
  .desktop-nav a:hover::after, .desktop-nav a:focus-visible::after,
  .desktop-nav .current-menu-item > a::after, .desktop-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
  .desktop-nav a:focus-visible { outline: none; }
  @media (prefers-reduced-motion: no-preference) {
    .desktop-nav a::after { transition: transform .3s ease-out; }
  }
  main { padding-top: 150px !important; }
  .site-header.is-scrolled { height: 92px; padding-top: 0; gap: 14px; }
  .site-header.is-scrolled .logo img { height: 26px; }
}

/* ---------- Startseite (nach PE_Screen-Layouts.pdf) ---------- */
main { padding-top: 56px; }
h1, h2 { font-family: var(--font-head); font-weight: 500; font-style: normal; letter-spacing: 0; margin: 0; }

.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 725 / 518; object-fit: cover; object-position: 60% 20%; }
.claim { background: var(--beige); padding: 18px 30px 22px; }
.claim h1 { font-size: 46px; line-height: 1.05; }
.claim h1 em { display: block; padding-left: 28px; font-style: italic; font-size: 36px; }

.listings {
  display: grid; gap: 20px;
  padding: 32px 12px 40px; max-width: 1240px; margin: 0 auto;
}
.listing { position: relative; background: var(--beige); display: flex; flex-direction: column; }
.listing .media { position: relative; overflow: hidden; }
.listing img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.listing .body { padding: 18px 18px 36px; display: flex; flex-direction: column; flex: 1; }
.listing .loc { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.listing h2 { font-size: 42px; line-height: 1.12; margin-bottom: 22px; }
.listing dl { margin: 0 0 40px; font-size: 18px; line-height: 1.45; color: var(--muted); }
.listing dt { display: inline; font-weight: 700; }
.listing dd { display: inline; margin: 0; }
.listing dd::after { content: ""; display: block; }
.btn {
  align-self: flex-end; margin-top: auto; margin-right: 22px;
  background: var(--accent); color: #fff; text-decoration: none; text-transform: uppercase;
  font-size: 18px; letter-spacing: .02em; padding: 10px 24px; border-radius: 8px;
}
.card-link { position: absolute; inset: 0; }   /* ganze Kachel klickbar, eigener Link, damit :hover am Button nur den Button meint */
.btn { position: relative; z-index: 1; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* Strich vor "Details": wächst beim Hover zu einem Pfeil (wie da-immobilien.at), Text rückt mit */
.btn-dash {
  display: inline-block; vertical-align: middle; position: relative; top: -.08em;
  width: 16px; height: 1.5px; margin-right: 8px;
  background: currentColor;
}
.btn-dash::after {                         /* Pfeilspitze, erscheint beim Hover */
  content: ""; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translate(-6px, -50%) rotate(45deg); opacity: 0;
}
.btn:hover .btn-dash, .btn:focus-visible .btn-dash { width: 30px; }
.btn:hover .btn-dash::after, .btn:focus-visible .btn-dash::after { transform: translate(0, -50%) rotate(45deg); opacity: 1; }

/* ---------- Hover-Effekt Kacheln ---------- */
.listing h2 .dash { display: inline-block; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .listing { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
  .listing img { transition: transform 1.4s var(--ease), filter .6s ease; }
  .listing h2 .dash { transition: color .3s ease; }
  .btn { transition: transform .5s var(--ease); }
  .btn-dash { transition: width .5s var(--ease); }
  .btn-dash::after { transition: transform .5s var(--ease), opacity .3s ease; }

  .listing:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(28,28,28,.35); }
  .listing:hover img { transform: scale(1.07); filter: saturate(1.08); }
  .listing:hover h2 .dash { color: var(--accent); }
  .listing:hover .btn { transform: translateX(-4px); }
}


@media (max-width: 380px) {
  .claim h1 { font-size: 40px; }
  .claim h1 em { font-size: 31px; }
  .listing h2 { font-size: 36px; }
  .listing dl { font-size: 16px; }
}
@media (min-width: 700px) {
  .listings { grid-template-columns: repeat(2, 1fr); padding: 40px 24px 56px; gap: 24px; }
  .claim { padding: 24px 40px 28px; }
}
@media (min-width: 1000px) {
  .hero-img { aspect-ratio: auto; height: 62vh; min-height: 420px; object-position: 60% 25%; }
  .claim { text-align: center; }
  .claim h1 { font-size: 64px; }
  .claim h1 em { padding-left: 0; font-size: 48px; }
  .listings { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- WordPress-Ergänzungen ---------- */
.desktop-nav ul, #ocm ul.menu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1000px) {
  .desktop-nav ul { display: flex; gap: 22px; }
}
/* ---------- Dropdowns für Unterpunkte ---------- */
/* Desktop: weißes Panel mit pinker Kante, Einträge blenden gestaffelt ein */
@media (min-width: 1000px) {
  .desktop-nav li { position: relative; }
  .desktop-nav .menu-item-has-children > a { padding-right: 15px; }
  .desktop-nav .menu-item-has-children > a::after { right: 15px; }
  .desktop-nav .menu-item-has-children > a::before {
    content: ""; position: absolute; right: 1px; top: 50%;
    width: 5px; height: 5px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-80%) rotate(45deg);
    transition: transform .45s var(--ease), color .3s ease;
  }
  .desktop-nav .menu-item-has-children:hover > a::before,
  .desktop-nav .menu-item-has-children:focus-within > a::before,
  .desktop-nav .menu-item-has-children.is-open > a::before {
    transform: translateY(-20%) rotate(225deg); color: var(--accent);
  }

  .desktop-nav ul.sub-menu {
    position: absolute; top: 100%; left: 50%; z-index: 20;
    display: block; min-width: 230px; margin-top: 14px; padding: 14px 0;
    background: #fff;
    border-top: 2px solid var(--accent);
    box-shadow: 0 22px 44px -14px rgba(28, 28, 28, .22), 0 2px 8px rgba(28, 28, 28, .06);
    text-align: left;
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .3s ease .12s, transform .5s var(--ease) .12s, visibility 0s linear .62s;
  }
  /* Brücke über den Abstand, damit das Dropdown beim Hinüberfahren offen bleibt */
  .desktop-nav ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .desktop-nav li:hover > .sub-menu,
  .desktop-nav li:focus-within > .sub-menu,
  .desktop-nav li.is-open > .sub-menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .3s ease, transform .5s var(--ease), visibility 0s;
  }

  .desktop-nav .sub-menu li { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .4s var(--ease); }
  .desktop-nav li:hover > .sub-menu li,
  .desktop-nav li:focus-within > .sub-menu li,
  .desktop-nav li.is-open > .sub-menu li { opacity: 1; transform: none; }
  .desktop-nav .sub-menu li:nth-child(2) { transition-delay: .04s; }
  .desktop-nav .sub-menu li:nth-child(3) { transition-delay: .08s; }
  .desktop-nav .sub-menu li:nth-child(4) { transition-delay: .12s; }
  .desktop-nav .sub-menu li:nth-child(5) { transition-delay: .16s; }
  .desktop-nav .sub-menu li:nth-child(n+6) { transition-delay: .2s; }

  .desktop-nav .sub-menu a {
    padding: 9px 28px; white-space: nowrap;
    font-weight: 400; color: var(--muted);
    transition: color .3s ease, padding-left .45s var(--ease);
  }
  /* pinker Strich fährt von links ein, Text rückt nach */
  .desktop-nav .sub-menu a::after {
    left: 28px; right: auto; top: 50%; bottom: auto; width: 12px; height: 1px;
    transform: scaleX(0); transform-origin: left;
  }
  .desktop-nav .sub-menu a:hover, .desktop-nav .sub-menu a:focus-visible,
  .desktop-nav .sub-menu .current-menu-item > a { color: var(--text); padding-left: 48px; }
  .desktop-nav .sub-menu a:hover::after, .desktop-nav .sub-menu a:focus-visible::after,
  .desktop-nav .sub-menu .current-menu-item > a::after { transform: scaleX(1); }

  @media (prefers-reduced-motion: reduce) {
    .desktop-nav ul.sub-menu, .desktop-nav .sub-menu li, .desktop-nav .sub-menu a { transition: none; }
  }
}

/* Mobil (Off-Canvas): Akkordeon mit Plus/Minus-Schalter */
#ocm .menu li { position: relative; }
#ocm .menu-item-has-children > a { padding-right: 44px; }
#ocm .sub-toggle {
  position: absolute; top: 0; right: 0;
  width: 30px; height: 30px; padding: 0; border: 0;
  background: transparent; color: var(--menu-text); cursor: pointer;
  transition: transform .5s var(--ease);
}
#ocm .sub-toggle::before, #ocm .sub-toggle::after {
  content: ""; position: absolute; left: 8px; top: 14px; width: 14px; height: 2px;
  background: currentColor; transition: transform .5s var(--ease);
}
#ocm .sub-toggle::after { transform: rotate(90deg); }
#ocm .is-open > .sub-toggle { transform: rotate(180deg); }
#ocm .is-open > .sub-toggle::after { transform: rotate(0deg); }

#ocm .sub-menu {
  height: 0; overflow: hidden;
  margin-left: 2px; padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .4);
  transition: height .5s var(--ease);
}
#ocm .sub-menu li { margin: 0; padding: 4px 0; opacity: 0; transform: translateX(-10px); transition: opacity .3s ease, transform .5s var(--ease); }
#ocm .sub-menu li:first-child { margin-top: 10px; }
#ocm .sub-menu li:last-child { margin-bottom: 6px; }
#ocm .is-open > .sub-menu li { opacity: 1; transform: none; }
#ocm .is-open > .sub-menu li:nth-child(2) { transition-delay: .05s; }
#ocm .is-open > .sub-menu li:nth-child(3) { transition-delay: .1s; }
#ocm .is-open > .sub-menu li:nth-child(4) { transition-delay: .15s; }
#ocm .is-open > .sub-menu li:nth-child(n+5) { transition-delay: .2s; }
#ocm .sub-menu a { font-size: 16px; line-height: 24px; font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
  #ocm .sub-menu, #ocm .sub-menu li, #ocm .sub-toggle, #ocm .sub-toggle::before, #ocm .sub-toggle::after { transition: none; }
}

/* Admin-Leiste (eingeloggt) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}

/* Inhaltsseiten (Seiten, Beiträge, Kickstart-Listen und -Exposés) */
.content { max-width: 860px; margin: 0 auto; padding: 48px 20px 64px; line-height: 1.65; }
.content-wide { max-width: 1240px; }
.content h1 { font-size: 46px; line-height: 1.08; margin-bottom: 24px; }
.content h1::before { content: "— "; }           /* Seitentitel wie Immobilienbewertung */
@media (min-width: 1000px) { .content h1 { font-size: 64px; } }
.content h2 { font-size: 34px; line-height: 1.15; margin: 36px 0 14px; }
.content h3 { font-family: var(--font-head); font-weight: 500; font-size: 26px; margin: 28px 0 10px; }
.content a { color: var(--accent); }
.content a:not(.btn, .wp-block-button__link):hover { color: color-mix(in srgb, var(--accent) 85%, #000); } /* eine Spur dunkler */
.content img { max-width: 100%; height: auto; }
.listings-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); margin: 0; }
.pagination { display: flex; gap: 10px; justify-content: center; padding: 0 20px 56px; }
.pagination .page-numbers { padding: 6px 12px; color: var(--text); text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-radius: 6px; }

/* ---------- Immobilien-Übersicht mit Filter ---------- */
.listing-head { max-width: 1240px; margin: 0 auto; padding: 36px 12px 0; }
.listing-head h1 { font-size: 46px; line-height: 1.08; }
.listing-head h1::before { content: "— "; }
.listing-intro { padding-bottom: 0; }
.property-filter {
  max-width: 1240px; margin: 28px auto 0; padding: 0 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.property-filter__fields { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.property-filter__field { position: relative; display: block; }
.property-filter__field::after {           /* Pfeil */
  content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg);
  pointer-events: none;
}
.property-filter select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 48px; padding: 0 34px 0 14px; text-overflow: ellipsis;
  font: 500 15px/1.2 "Inter", sans-serif; color: var(--muted);
  background: var(--beige); border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.property-filter select:hover { border-color: #d9d3cc; }
.property-filter select:focus-visible { outline: none; border-color: var(--accent); }
.property-filter select.is-set { color: var(--text); font-weight: 600; background: #fff; border-color: var(--text); }
.property-filter__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.property-filter .btn { align-self: auto; margin: 0; border: 0; cursor: pointer; font-family: "Inter", sans-serif; }
.property-filter__reset { color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.property-filter__reset:hover { color: var(--accent); }
.listing-count { max-width: 1240px; margin: 28px auto -12px; padding: 0 12px; font-size: 15px; color: var(--muted); }

@media (min-width: 700px) {
  .property-filter, .listing-count { padding: 0 24px; }
  .listing-head { padding-left: 24px; padding-right: 24px; }
  .property-filter__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 1000px) {
  .listing-head { padding-top: 56px; }
  .listing-head h1 { font-size: 64px; }
  .property-filter__actions { justify-content: flex-end; }
}
@media (min-width: 1240px) {
  .property-filter__fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Leistungsseite (Template Immobilienbewertung, Muster "Immobilienbewertung") ---------- */
.service-page { font-size: 18px; line-height: 1.65; }
.service-page > * { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.service-page p { margin: 0 0 1em; }
.service-page h1, .service-page h2, .service-page h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: 0; line-height: 1.08; margin: 0; }
.service-page .wp-block-columns { gap: 20px; margin-bottom: 0; }

/* Einleitung mit Bild */
.service-page .pe-intro { padding-top: 36px; padding-bottom: 56px; gap: 32px; }
.service-page .pe-eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.pe-eyebrow { display: none; }                  /* Eyebrows ausgeblendet */
.service-page .pe-intro h1 { font-size: 46px; margin-bottom: 24px; }
.service-page .pe-intro h1::before { content: "— "; }
.service-page .pe-intro__img { margin: 0; }
.service-page .pe-intro__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* Aufruf-Band */
.service-page .pe-cta-band { max-width: none; background: var(--beige); padding-top: 52px; padding-bottom: 56px; text-align: center; }
.service-page .pe-cta-band h2 { max-width: 760px; margin: 0 auto 28px; font-size: 40px; }
.service-page .wp-block-buttons { display: flex; justify-content: center; gap: 12px; }
.service-page .pe-cta-band .wp-block-button__link,
.service-page .wp-block-button__link {        /* wie .btn: Strich wird beim Hover zum Pfeil */
  position: relative; display: inline-block;
  padding: 10px 24px 10px 48px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; text-transform: uppercase;
  font-family: "Inter", sans-serif; font-size: 18px; line-height: 1.65; letter-spacing: .02em;
}
.service-page .wp-block-button__link::before,
.service-page .wp-block-button__link::after { content: ""; position: absolute; top: 50%; }
.service-page .wp-block-button__link::before { left: 24px; width: 16px; height: 1.5px; margin-top: -1px; background: currentColor; }
.service-page .wp-block-button__link::after {
  left: 33px; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translate(-6px, -50%) rotate(45deg); opacity: 0;
}
.service-page .wp-block-button__link:hover, .service-page .wp-block-button__link:focus-visible { padding-left: 62px; }
.service-page .wp-block-button__link:hover::before, .service-page .wp-block-button__link:focus-visible::before { width: 30px; }
.service-page .wp-block-button__link:hover::after, .service-page .wp-block-button__link:focus-visible::after { left: 47px; transform: translate(0, -50%) rotate(45deg); opacity: 1; }
.service-page .wp-block-button__link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .service-page .wp-block-button__link { transition: padding-left .5s var(--ease); }
  .service-page .wp-block-button__link::before { transition: width .5s var(--ease); }
  .service-page .wp-block-button__link::after { transition: left .5s var(--ease), transform .5s var(--ease), opacity .3s ease; }
}

/* Fließtext */
.service-page .pe-text { max-width: 900px; padding-top: 64px; padding-bottom: 48px; }
.service-page .pe-text h2, .service-page .pe-services > h2 { font-size: 40px; margin-bottom: 20px; }

/* Leistungen als Kacheln */
.service-page .pe-services { padding-top: 16px; padding-bottom: 64px; }
.service-page .pe-marquee + .pe-services { padding-top: 64px; } /* Abstand zur Laufschrift darüber */
.service-page .pe-services .wp-block-column { background: var(--beige); padding: 26px 22px 30px; }
.service-page .pe-services h3 { font-size: 32px; margin-bottom: 14px; }
.service-page .pe-services h3::before { content: "— "; }
.service-page .pe-services .wp-block-column p { font-size: 17px; color: var(--muted); margin: 0; }

/* Zitat */
.service-page .pe-quote { max-width: 900px; margin: 0 auto; padding-top: 8px; padding-bottom: 72px; border: 0; text-align: center; }
.service-page .pe-quote::before { content: ""; display: block; width: 48px; height: 2px; margin: 0 auto 28px; background: var(--accent); }
.service-page .pe-quote p { font-family: var(--font-head); font-style: italic; font-size: 34px; line-height: 1.2; margin: 0; }
.service-page .pe-quote cite { display: block; margin-top: 16px; font-size: 15px; font-style: normal; color: var(--muted); }

/* Laufschrift */
.service-page .pe-marquee {
  max-width: none; margin: 0; padding: 26px 0 30px; overflow: hidden; white-space: nowrap;
  background: var(--beige); color: var(--text);
  font-family: var(--font-head); font-style: italic; font-size: 54px; line-height: 1.1;
}
.pe-marquee__track { display: inline-flex; }
.pe-marquee__item { padding-right: .5em; }
.pe-marquee__item::after { content: "—"; padding-left: .5em; }
@media (prefers-reduced-motion: no-preference) {
  .pe-marquee__track { animation: pe-marquee 40s linear infinite; }
}
@keyframes pe-marquee { to { transform: translateX(-50%); } }

@media (min-width: 700px) {
  .service-page > * { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 782px) {                   /* ab hier stellt WordPress die Spalten nebeneinander */
  .service-page .pe-intro { align-items: center; gap: 56px; }
  .service-page .pe-intro > .wp-block-column { flex: 1 1 0; }
  .service-page .pe-intro > .wp-block-column:first-child { flex: 0 0 55%; }
}
@media (min-width: 1000px) {
  .service-page .pe-intro { padding-top: 56px; padding-bottom: 80px; }
  .service-page .pe-intro h1 { font-size: 64px; }
  .service-page .pe-cta-band h2, .service-page .pe-text h2, .service-page .pe-services > h2 { font-size: 52px; }
  .service-page .pe-quote p { font-size: 46px; }
  .service-page .pe-marquee { font-size: 96px; padding: 34px 0 40px; }
}

/* ---------- Teamseite (Template Unser Team, Muster "Unser Team") ---------- */
.service-page .pe-team-intro { padding-top: 36px; padding-bottom: 40px; }
.service-page .pe-team-intro h1 { font-size: 46px; margin-bottom: 24px; }
.service-page .pe-team-intro h1::before { content: "— "; }
.service-page .pe-member { padding-top: 40px; padding-bottom: 48px; gap: 28px; }
.service-page .pe-member + .pe-member { border-top: 1px solid var(--beige); }
.service-page .pe-member__photo figure { margin: 0; }
.service-page .pe-member__photo img { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 5 / 7; object-fit: cover; object-position: top; }
.service-page .pe-member h2 { font-size: 40px; margin-bottom: 8px; }
.service-page .pe-member .pe-eyebrow { margin-bottom: 4px; }
.service-page .pe-member h3 {
  margin: 24px 0 6px; font-family: "Inter", sans-serif;
  font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.service-page .pe-member p, .service-page .pe-member li { font-size: 17px; }
.service-page .pe-member p:last-child { margin-bottom: 0; }
.service-page .pe-member ul { margin: 0; padding: 0; list-style: none; }
.service-page .pe-member li { position: relative; padding-left: 1.4em; margin-bottom: .45em; }
.service-page .pe-member li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.service-page .pe-member:last-child { padding-bottom: 80px; }
@media (min-width: 782px) {
  .service-page .pe-member { gap: 56px; }
  .service-page .pe-member > .pe-member__photo { flex: 0 0 34%; }
  .service-page .pe-member > .wp-block-column:last-child { flex: 1 1 0; }
  .service-page .pe-member__photo figure { position: sticky; top: 32px; }
}
@media (min-width: 1000px) {
  .service-page .pe-team-intro { padding-top: 56px; }
  .service-page .pe-team-intro h1 { font-size: 64px; }
  .service-page .pe-member { padding-top: 64px; padding-bottom: 72px; }
  .service-page .pe-member h2 { font-size: 52px; }
}

/* ---------- Formulare (Contact Form 7, z. B. Kontakt) ---------- */
.wpcf7 { max-width: 640px; margin-top: 8px; }
.wpcf7-form > p { margin: 0 0 18px; }
.wpcf7-form label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8c8c8c;
}
.wpcf7-form label br { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-form input:is([type=text], [type=email], [type=tel], [type=url], [type=number], [type=date]),
.wpcf7-form select,
.wpcf7-form textarea {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px/1.4 "Inter", sans-serif; color: var(--text); text-transform: none; letter-spacing: 0;
  background: var(--beige); border: 1px solid transparent; border-radius: 0;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, background .2s ease;
}
.wpcf7-form textarea { height: 180px; padding: 12px 14px; resize: vertical; }
.wpcf7-form :is(input, select, textarea):hover { border-color: #d9d3cc; }
.wpcf7-form :is(input, select, textarea):focus { outline: none; background: #fff; border-color: var(--accent); }
.wpcf7-form input[type=checkbox], .wpcf7-form input[type=radio] { accent-color: var(--accent); }
.wpcf7-list-item-label { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); }

/* Absenden-Button wie .btn: Strich wird beim Hover zum Pfeil.
   <input> kann keine ::before/::after haben – Strich und Spitze sitzen daher am umgebenden Absatz */
.wpcf7-form > p:has(> .wpcf7-submit) { position: relative; }
.wpcf7-form .wpcf7-submit {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  height: 50px; margin: 0; padding: 0 24px 0 48px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font: 400 18px/50px "Inter", sans-serif; letter-spacing: .02em; text-transform: uppercase;
}
.wpcf7-form > p:has(> .wpcf7-submit)::before,
.wpcf7-form > p:has(> .wpcf7-submit)::after { content: ""; position: absolute; top: 25px; pointer-events: none; color: #fff; }
.wpcf7-form > p:has(> .wpcf7-submit)::before { left: 24px; width: 16px; height: 1.5px; margin-top: -1px; background: currentColor; }
.wpcf7-form > p:has(> .wpcf7-submit)::after {
  left: 33px; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translate(-6px, -50%) rotate(45deg); opacity: 0;
}
.wpcf7-form .wpcf7-submit:is(:hover, :focus-visible) { padding-left: 62px; }
.wpcf7-form > p:has(> .wpcf7-submit:is(:hover, :focus-visible))::before { width: 30px; }
.wpcf7-form > p:has(> .wpcf7-submit:is(:hover, :focus-visible))::after { left: 47px; transform: translate(0, -50%) rotate(45deg); opacity: 1; }
.wpcf7-form .wpcf7-submit:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.wpcf7-form .wpcf7-submit:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .wpcf7-form .wpcf7-submit { transition: padding-left .5s var(--ease); }
  .wpcf7-form > p:has(> .wpcf7-submit)::before { transition: width .5s var(--ease); }
  .wpcf7-form > p:has(> .wpcf7-submit)::after { transition: left .5s var(--ease), transform .5s var(--ease), opacity .3s ease; }
}
.wpcf7 .wpcf7-spinner { vertical-align: middle; margin: 0 0 0 14px; background-color: var(--accent); }

/* Fehlermeldungen und Rückmeldung */
.wpcf7-form .wpcf7-not-valid { border-color: var(--accent); background: #fff; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--accent); }
.wpcf7 form .wpcf7-response-output {
  margin: 8px 0 0; padding: 14px 18px; border: 0; border-left: 3px solid var(--accent);
  background: var(--beige); font-size: 16px; color: var(--text);
}
.wpcf7 form.sent .wpcf7-response-output { border-left-color: #3a8a5c; }

/* ---------- Footer ---------- */
.site-footer {
  --footer-bg: #2b2b2b; --footer-line: rgba(255, 255, 255, .14); --footer-muted: rgba(255, 255, 255, .55);
  position: relative; background: var(--footer-bg); color: #fff;
  font-size: 15px; line-height: 1.6;
}
.site-footer::before {                     /* pinke Kante oben */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent);
}
.site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 64px 20px 28px; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }

/* Claim + Kontakt */
.site-footer__top { display: flex; flex-direction: column; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--footer-line); }
.site-footer__claim {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 46px; line-height: 1.02; letter-spacing: 0;
}
.site-footer__claim::before { content: "— "; color: var(--accent); font-style: normal; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer .site-footer__cta { align-self: flex-start; margin: 0 0 18px; padding: 7px 16px; border-radius: 6px; font-size: 13px; letter-spacing: .06em; }
.site-footer .site-footer__cta .btn-dash { width: 12px; margin-right: 7px; }
.site-footer .site-footer__cta:is(:hover, :focus-visible) .btn-dash { width: 22px; }
.site-footer .site-footer__cta .btn-dash::after { width: 6px; height: 6px; }
.site-footer__big-link { font-family: "Inter", sans-serif; font-size: 17px; line-height: 1.5; letter-spacing: .01em; }

/* Spalten */
.site-footer__grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 0; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand .logo { display: inline-block; line-height: 0; }
.site-footer__brand .logo img { display: block; height: 26px; width: auto; max-width: 100%; filter: brightness(0) invert(1); }
.site-footer__label {
  margin-bottom: 12px !important;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted);
}
.site-footer address { font-style: normal; }
.site-footer__location + .site-footer__location { margin-top: 16px; }
.site-footer__location strong { display: block; font-weight: 600; }
.site-footer__nav, .site-footer__legal { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: 4px; }
.site-footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.site-footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--footer-line); border-radius: 50%;
}
.site-footer__social svg { display: block; }
.site-footer__partners { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__partners a {                 /* weiße Kacheln, da die Logos unterschiedliche Hintergründe haben */
  display: flex; align-items: center; height: 52px; padding: 6px; background: #fff; border-radius: 4px;
  filter: grayscale(1); opacity: .5;
}
.site-footer__partners a:is(:hover, :focus-visible) { filter: none; opacity: 1; }
.site-footer__partners img { display: block; height: 40px; width: auto; max-width: 100%; }
.site-footer__partners a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-footer__social a:is(:hover, :focus-visible) { background: var(--accent); border-color: var(--accent); }
.site-footer__social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Link-Hover: pinker Strich wächst aus der Mitte, wie im Hauptmenü */
.site-footer__big-link, .site-footer__nav a, .site-footer__legal a, .site-footer__top-link { position: relative; }
.site-footer__big-link::after, .site-footer__nav a::after, .site-footer__legal a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0);
}
.site-footer__big-link:is(:hover, :focus-visible)::after,
.site-footer__nav a:is(:hover, :focus-visible)::after,
.site-footer__legal a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.site-footer__nav .current-menu-item > a::after { transform: scaleX(1); }

/* Untere Leiste */
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid var(--footer-line);
  font-size: 13px; color: var(--footer-muted);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal a:hover, .site-footer__top-link:hover { color: #fff; }
#main:focus { outline: none; }          /* Fokus nach "Nach oben" (programmatisch, kein sichtbarer Rahmen) */
.site-footer__top-link { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.site-footer__top-link span {               /* Pfeil nach oben */
  position: relative; width: 30px; height: 30px; border: 1px solid var(--footer-line); border-radius: 50%;
}
.site-footer__top-link span::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -2px 0 0 -4px;
  border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg);
}
.site-footer__top-link:hover span { background: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .site-footer__big-link::after, .site-footer__nav a::after, .site-footer__legal a::after { transition: transform .3s ease-out; }
  .site-footer__top-link, .site-footer__top-link span { transition: color .3s ease, background .3s ease, border-color .3s ease, transform .5s var(--ease); }
  .site-footer__top-link:hover span { transform: translateY(-3px); }
  .site-footer__social a { transition: background .3s ease, border-color .3s ease, transform .5s var(--ease); }
  .site-footer__social a:hover { transform: translateY(-3px); }
  .site-footer__partners a { transition: filter .3s ease, opacity .3s ease, transform .5s var(--ease); }
  .site-footer__partners a:hover { transform: translateY(-3px); }
  .content a { transition: color .2s ease; }
}

@media (min-width: 700px) {
  .site-footer__inner { padding: 80px 40px 32px; }
  .site-footer__claim { font-size: 60px; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .site-footer__top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: 64px; }
  .site-footer__claim { font-size: 84px; max-width: 9em; }
  .site-footer__contact { align-items: flex-end; text-align: right; }
  .site-footer .site-footer__cta { align-self: flex-end; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 56px 0; }
  .site-footer__brand { grid-column: auto; }
}
