/* Projektdetailseiten (Mischa 09.11.), Aufbau nach Push Refresh /work/crowdstreet: links fest stehend, rechts Bilder und Texte */
body.pd-seite { background: #f4f4f5; }
body.pd-seite .kontakt { display: none; } /* Kontaktleiste verdeckt sonst die Knöpfe links unten */
.pd { position: relative; display: grid; grid-template-columns: minmax(340px, 31%) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.pd-links { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 34px 30px; overflow-y: auto; background: #f4f4f5; color: #0a0a0b; scrollbar-width: thin; }
.pd-logo { display: inline-flex; align-self: flex-start; }
.pd-logo img { height: 24px; width: auto; }
.pd-kicker { margin: 52px 0 0; font-size: 13px; color: #6d6f76; }
.pd-links h1 { margin: 10px 0 0; font-size: clamp(30px, 14px + 1.5vw, 40px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; }
.pd-teaser { margin: 16px 0 0; font-size: 15.5px; line-height: 1.55; color: #4c4e55; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.pd-tags li { padding: 5px 10px; border-radius: 4px; background: #fff; border: 1px solid #e3e4e7; font-size: 12.5px; font-weight: 500; }
.pd-merkmale { margin-top: 30px; border-top: 1px solid #e3e4e7; }
.pd-zwisch { margin: 18px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #6d6f76; }
.pd-akk { border-bottom: 1px solid #e3e4e7; }
.pd-akk summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 0; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.pd-akk summary::-webkit-details-marker { display: none; }
.pd-plus { position: relative; flex: none; width: 12px; height: 12px; margin-top: 4px; }
.pd-plus::before, .pd-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: #0a0a0b; transition: transform 220ms ease; }
.pd-plus::after { transform: rotate(90deg); }
.pd-akk[open] .pd-plus::after { transform: rotate(0deg); }
.pd-akk p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #4c4e55; }
.pd-akk p + p { color: #6d6f76; font-size: 13.5px; }
.pd-stack { margin: 16px 0 0; font-size: 12.5px; color: #6d6f76; }
.pd-knoepfe { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-knoepfe .kn { width: 100%; justify-content: space-between; padding-left: 16px; }
.pd-live { gap: 10px; padding-right: 14px; }
.pd-raus { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-zu { position: fixed; top: 18px; right: 22px; z-index: 40; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0a0a0b; box-shadow: 0 4px 20px rgba(0, 0, 0, .14); transition: transform 200ms ease; }
.pd-zu:hover { transform: rotate(90deg); }
.pd-zu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* rechte Spalte */
.pd-rechts { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; background: #fff; }
.pd-bild { margin: 0; overflow: hidden; background: #ececee; }
.pd-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-voll img { aspect-ratio: 762 / 540; }
.pd-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-paar > * { aspect-ratio: 508 / 540; }
.pd-flaeche { margin: 0; display: grid; place-items: center; padding: 7% 9%; background: var(--pf, #ececee); overflow: hidden; }
.pd-flaeche img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .45); }
.pd-paar .pd-flaeche, .pd-flaeche-handy { align-items: start; padding: 9% 22% 0; }
.pd-paar .pd-flaeche img, .pd-flaeche-handy img { border-radius: 22px 22px 0 0; }
.pd-text { max-width: 760px; padding: 64px 8% 52px; }
.pd-text h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.pd-text p { margin: 14px 0 0; font-size: 16px; line-height: 1.62; color: #4c4e55; }
.pd-ende { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 48px 8% 20px; }
.pd-ende p { margin: 0; font-size: 18px; font-weight: 500; }
/* Wechsel: Seite gleitet beim Schließen nach unten weg (projekt-wechsel.js) */
.pd { transition: transform 520ms cubic-bezier(.6, 0, .3, 1); }
.pd.pd-weg { transform: translateY(100vh); }
@media (max-width: 960px) {
  .pd { grid-template-columns: 1fr; }
  .pd-links { position: static; height: auto; overflow: visible; padding: 22px 16px 28px; }
  .pd-kicker { margin-top: 32px; }
  .pd-knoepfe { grid-template-columns: 1fr; }
  .pd-zu { top: 14px; right: 14px; }
  .pd-paar { gap: 6px; }
  .pd-rechts { gap: 6px; }
  .pd-text { padding: 40px 16px 32px; }
  .pd-ende { padding: 32px 16px 12px; }
}
@media (prefers-reduced-motion: reduce) { .pd { transition: none; } }
.pd-knoepfe .kn { white-space: nowrap; font-size: 14px; }
.pd-live { border: 1px solid #0a0a0b !important; color: #0a0a0b !important; height: 46px !important; padding: 0 14px 0 16px !important; background: #fff; }
.pd-live:hover { background: #0a0a0b !important; color: #fff !important; }
@media (max-width: 1180px) and (min-width: 961px) { .pd-knoepfe { grid-template-columns: 1fr; } }
/* Farben fest (Mischa 09.11.): sonst färbt w.js beim Footer die ganze Seite dunkel, die linke Spalte bekommt weiße Schrift auf Hellgrau */
.pd { --bg: #ffffff; --fg: #0a0a0b; --fg-2: rgba(10, 10, 11, 0.62); --linie: rgba(10, 10, 11, 0.1); --karte: #f4f4f5; color: var(--fg); }
body.pd-seite .fuss { --bg: rgb(11, 11, 12); --fg: rgb(245, 245, 246); --fg-2: rgba(245, 245, 246, 0.62); --linie: rgba(245, 245, 246, 0.1); --karte: rgb(28, 28, 31); background: var(--bg); color: var(--fg); position: relative; z-index: 2; }
/* als Ebene über der Übersicht (projekt-wechsel.js): Footer und Kontaktleiste weglassen, die Ebene endet mit „Mehr Projekte“ */
.pd-eingebettet .fuss, .pd-eingebettet .kontakt, .pd-eingebettet .ansehen-kreis { display: none !important; }
/* Systemkette mit unseren Linien-Icons (Mischa 09.11.): Teile nebeneinander, gepunktete Verbindung, ein Punkt läuft von Teil zu Teil */
.pd-system { padding-bottom: 0; }
.pd-kette { --abst: 44px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--abst); margin: 34px 0 0; padding: 0 8% 64px; list-style: none; }
.pd-kette li { position: relative; }
.pd-teil { display: flex; flex-direction: column; color: var(--fg); }
.pd-kette-bild { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; margin-bottom: 14px; border-radius: 8px; border: 1px solid var(--linie); background: #fff; transition: background-color 160ms ease, border-color 160ms ease; }
.pd-teil:hover .pd-kette-bild { background: var(--karte); border-color: rgba(10, 10, 11, .22); }
.pd-kette-bild svg { width: 62%; height: auto; overflow: visible; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pd-kette-bild svg * { vector-effect: non-scaling-stroke; }
.pd-kette-bild .fein { stroke: rgba(10, 10, 11, .42); }
.pd-kette-bild .voll { fill: var(--fg); stroke: none; }
.pd-kette-txt b { display: block; font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; }
.pd-kette-txt > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: #6d6f76; text-wrap: pretty; }
.pd-kette li:not(:last-child) .pd-kette-bild::after { content: ""; position: absolute; top: 50%; left: calc(100% + 9px); width: calc(var(--abst) - 18px); border-top: 2px dotted rgba(10, 10, 11, .3); }
.pd-kette li:not(:last-child) .pd-kette-bild::before { content: ""; position: absolute; top: calc(50% - 3px); left: calc(100% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--fg); opacity: 0; animation: pd-fluss 3.2s linear infinite; animation-delay: calc(var(--i) * .8s); }
@keyframes pd-fluss { 0% { opacity: 0; transform: translateX(0); } 3%, 21% { opacity: 1; } 25%, 100% { opacity: 0; transform: translateX(calc(var(--abst) - 24px)); } }
@keyframes pd-fluss-runter { 0% { opacity: 0; transform: translateY(0); } 3%, 21% { opacity: 1; } 25%, 100% { opacity: 0; transform: translateY(calc(var(--abst) - 20px)); } }
@media (prefers-reduced-motion: reduce) { .pd-kette-bild::before { display: none; } }
/* Merkmale: Desktop links in der festen Spalte, Handy nach dem ersten Bild (wie Push Refresh) */
.pd-merkmale-mobil { display: none; }
@media (max-width: 960px) {
  .pd-merkmale-gross { display: none; }
  .pd-merkmale-mobil { display: block; margin: 0; padding: 4px 16px 26px; background: #f4f4f5; border-top: 0; }
  .pd-knoepfe { padding-top: 22px; }
  .pd-kette { --abst: 30px; grid-template-columns: minmax(0, 1fr); padding: 0 16px 44px; margin-top: 26px; }
  .pd-teil { flex-direction: row; align-items: center; gap: 18px; }
  .pd-kette-bild { flex: none; width: 118px; margin-bottom: 0; }
  .pd-kette li:not(:last-child) .pd-kette-bild::after { top: calc(100% + 7px); left: 50%; width: 0; height: calc(var(--abst) - 14px); border-top: 0; border-left: 2px dotted rgba(10, 10, 11, .3); }
  .pd-kette li:not(:last-child) .pd-kette-bild::before { top: calc(100% + 5px); left: calc(50% - 4px); animation-name: pd-fluss-runter; }
}
@media (max-width: 1280px) and (min-width: 961px) { .pd-kette[style*="--n:4"] { --abst: 30px; } .pd-kette-txt b { font-size: 15.5px; } }
/* Video als Bildfläche (BauplanMaster NRW-Karte) und Google-Zeile statt „Mehr Projekte“ (Mischa 09.11.) */
.pd-flaeche video { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .45); background: #fff; }
.pd-google { gap: 10px; font-size: 15px; color: var(--fg); }
.pd-google .g-logo, .pd-google .g-sterne svg { opacity: 1; }
.pd-google-link { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--linie); color: #6d6f76; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; transition: color 160ms ease; }
.pd-google:hover .pd-google-link { color: var(--fg); }
@media (max-width: 960px) { .pd-ende { flex-direction: column; align-items: flex-start; } .pd-google { flex-wrap: wrap; } }
/* Tablet-Video im Paar (Implantat-Kostenrechner): hochkant mit dunklem Rahmen wie ein Tablet */
.pd-tablet-f { padding: 6% 10%; }
.pd-tablet { display: block; height: 100%; width: auto; max-width: 100%; border: 9px solid #111; border-radius: 24px; background: #fff; box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .45); }
.pd-paar .pd-tablet-f { place-items: center; overflow: hidden; }
/* Hinweis „In Fertigstellung“ statt technischer Merkmale (Mischa 09.11.), auch mobil gleich im ersten Abschnitt */
.pd-bald { margin-top: 30px; padding: 22px 24px 24px; border-radius: 8px; background: #0a0a0b; color: #fff; }
.pd-bald-label { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.pd-bald-label i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pd-bald-puls 1.8s ease-in-out infinite; }
.pd-bald-satz { margin: 12px 0 0; font-size: 19px; font-weight: 500; line-height: 1.32; letter-spacing: -0.015em; text-wrap: balance; }
.pd-bald-balken { display: block; height: 2px; margin-top: 20px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.pd-bald-balken b { display: block; width: 88%; height: 100%; background: #fff; transform-origin: left; animation: pd-bald-fuellen 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pd-bald-puls { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pd-bald-fuellen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pd-bald-label i, .pd-bald-balken b { animation: none; } }
@media (max-width: 960px) { .pd-bald { margin-top: 24px; } }
/* einzelnes Element ohne Mockup, schlicht eingesetzt (Selma: Podcast-Player) */
.pd-element { margin: 0; padding: 24px 8% 40px; }
.pd-element img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .pd-element { padding: 12px 16px 28px; } }

/* Badges mobil wischbar in einer Zeile (Mischa 10.11.) */
@media (max-width: 719.98px) {
  .pd-links { min-width: 0; max-width: 100%; }
  .pd-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; min-width: 0; }
  .pd-tags::-webkit-scrollbar { display: none; }
  .pd-tags li { flex: none; white-space: nowrap; }
}
