/* =====================================================================
   PIN Solarkraft Anleihe – Landingpage /anleihe
   Theme: pi · Page Builder: WPBakery · xspace GmbH, 11/2026
   Geladen nur auf der Seite /anleihe (siehe functions.php).
   Alle Selektoren sind auf body.pi-anleihe begrenzt.
   ===================================================================== */

body.pi-anleihe {
	--pia-beige: #EAE5DF;
	--pia-dark: #5E5A58;
	--pia-darker: #4E4A47;
	--pia-sand: #C8B9A6;
	--pia-sand-dark: #9D907B;
	--pia-icon: #8F8478;
	--pia-text: #3A3634;
	--pia-muted: #787370;
	--pia-line: #D9D4CC;
	--pia-white: #fff;
	--pia-max: 1200px;
	--pia-gutter: max(24px, calc((100vw - var(--pia-max)) / 2));
	--pia-py: 96px;
	--pia-top: 145px;              /* Höhe des Theme-Headers, wird per JS aktualisiert */
	--pia-ease: cubic-bezier(.22, .61, .36, 1);
	overflow-x: hidden;
}

/* Abstand unter dem fixierten Theme-Header (Seite hat keine „Top Sektion“) */
body.pi-anleihe #content { padding-top: 145px; }
@media (max-width: 1280px) { body.pi-anleihe #content { padding-top: 120px; } }
@media (max-width: 1024px) { body.pi-anleihe #content { padding-top: 100px; } }
@media (max-width: 900px)  { body.pi-anleihe #content { padding-top: 70px; } }

/* ---------- Sektionen: volle Breite, eigener Innenabstand ---------- */
body.pi-anleihe .pia-sec.vc_row {
	width: 100vw;
	max-width: none;
	margin: 0 0 0 calc(50% - 50vw) !important;
	padding: var(--pia-py) var(--pia-gutter);
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 80px;
	color: var(--pia-text);
	font-size: 18px;
	line-height: 1.65;
}
body.pi-anleihe .pia-sec.vc_row::before,
body.pi-anleihe .pia-sec.vc_row::after { display: none; }
body.pi-anleihe .pia-sec > .wpb_column { float: none; padding: 0; flex: 1 1 0; min-width: 0; width: auto; }
body.pi-anleihe .pia-sec > .wpb_column > .vc_column-inner { padding: 0 !important; }
body.pi-anleihe .pia-sec .wpb_content_element,
body.pi-anleihe .pia-sec .wpb_text_column { margin-bottom: 0 !important; }
body.pi-anleihe .pia-sec p,
body.pi-anleihe .pia-sec ul { margin: 0 0 1em; }
body.pi-anleihe .pia-sec p:last-child { margin-bottom: 0; }
body.pi-anleihe .pia-sec img { display: block; max-width: 100%; height: auto; }

body.pi-anleihe .pia-beige { background: var(--pia-beige); }
body.pi-anleihe .pia-dark  { background: var(--pia-dark); color: #fff; }
body.pi-anleihe .pia-white { background: #fff; }

/* Anker unter fixiertem Header + Leiste */
body.pi-anleihe .pia-sec[id] { scroll-margin-top: calc(var(--pia-top) + 56px); }

/* ---------- Typografie ---------- */
body.pi-anleihe .pia-sec h1,
body.pi-anleihe .pia-sec h2,
body.pi-anleihe .pia-sec h3 { color: var(--pia-text); letter-spacing: 0; margin: 0 0 24px; }
body.pi-anleihe .pia-sec h2 { font-size: 44px; line-height: 1.18; font-weight: 300; }
body.pi-anleihe .pia-sec h2 strong { font-weight: 600; }
body.pi-anleihe .pia-sec h3 { font-size: 24px; line-height: 1.3; font-weight: 600; margin-top: 32px; }
body.pi-anleihe .pia-dark h2,
body.pi-anleihe .pia-dark h3 { color: #fff; }
body.pi-anleihe .pia-dark p { color: rgba(255,255,255,.9); }

/* Kapitelzeile „01 —— DIE ANLEIHE“ */
body.pi-anleihe .pia-chap {
	display: flex; align-items: center; gap: 16px;
	font-size: 13px !important; line-height: 1 !important; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase; color: var(--pia-muted);
	margin: 0 0 24px !important;
}
body.pi-anleihe .pia-chap span { font-size: 15px; font-weight: 600; letter-spacing: 0; }
body.pi-anleihe .pia-chap::after { content: none; }
body.pi-anleihe .pia-chap span::after {
	content: ""; display: inline-block; width: 48px; height: 1px; background: currentColor;
	vertical-align: middle; margin-left: 16px;
}
body.pi-anleihe .pia-dark .pia-chap { color: var(--pia-sand); }

body.pi-anleihe .pia-kicker { font-size: 13px !important; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--pia-sand); margin-bottom: 32px !important; }
body.pi-anleihe .pia-small { font-size: 14px !important; line-height: 1.45 !important; color: var(--pia-muted); }
body.pi-anleihe .pia-source { font-size: 13px !important; line-height: 1.45 !important; color: var(--pia-muted); margin-top: 12px !important; }

/* ---------- Buttons ---------- */
body.pi-anleihe .pia-btns { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 24px !important; }
body.pi-anleihe a.pia-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 16px 28px; border: 1.5px solid transparent; border-radius: 0;
	font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none !important;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
body.pi-anleihe a.pia-btn:hover { transform: translateY(-2px); }
body.pi-anleihe a.pia-btn--dark { background: var(--pia-dark); color: #fff !important; }
body.pi-anleihe a.pia-btn--dark:hover { background: var(--pia-darker); }
body.pi-anleihe a.pia-btn--sand { background: var(--pia-sand); color: var(--pia-text) !important; }
body.pi-anleihe a.pia-btn--sand:hover { background: #BBA992; }
body.pi-anleihe a.pia-btn--outline { border-color: var(--pia-dark); color: var(--pia-dark) !important; }
body.pi-anleihe a.pia-btn--outline:hover { background: var(--pia-dark); color: #fff !important; }
body.pi-anleihe a.pia-btn--light { border-color: #fff; color: #fff !important; }
body.pi-anleihe a.pia-btn--light:hover { background: #fff; color: var(--pia-dark) !important; }

/* Risikohinweis mit Info-Icon */
body.pi-anleihe .pia-risk {
	position: relative; padding-left: 26px; font-size: 14px !important; line-height: 1.45 !important; color: var(--pia-muted);
	max-width: 520px;
}
body.pi-anleihe .pia-risk::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23787370' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- 1 · Hero (Split) ---------- */
body.pi-anleihe .pia-hero.vc_row { padding: 0; gap: 0; align-items: stretch; background: var(--pia-beige); min-height: 640px; }
body.pi-anleihe .pia-hero > .pia-hero-text { flex: 0 0 50%; display: flex; align-items: center; padding: 80px 64px 80px var(--pia-gutter); box-sizing: border-box; }
body.pi-anleihe .pia-hero > .pia-hero-img { flex: 0 0 50%; position: relative; overflow: hidden; min-height: 420px; }
body.pi-anleihe .pia-hero-img .vc_column-inner,
body.pi-anleihe .pia-hero-img .wpb_wrapper,
body.pi-anleihe .pia-hero-img .wpb_text_column,
body.pi-anleihe .pia-hero-img p { height: 100%; margin: 0 !important; }
body.pi-anleihe .pia-hero-img img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; max-width: none; }
body.pi-anleihe .pia-hero h1 { font-size: 38px; line-height: 1.15; font-weight: 600; margin: 0 0 8px; }
body.pi-anleihe .pia-big { font-size: 150px !important; line-height: 1 !important; font-weight: 300; letter-spacing: -.03em; color: var(--pia-dark); margin: 0 0 24px !important; white-space: nowrap; }
body.pi-anleihe .pia-lead { font-size: 22px !important; line-height: 1.45 !important; font-weight: 300; max-width: 480px; }

/* ---------- Anleihe-Leiste (Desktop: unter dem Header fixiert / Mobile: unten) ---------- */
body.pi-anleihe .pia-subnav-row.vc_row { padding: 0 var(--pia-gutter); background: var(--pia-dark); color: #fff; z-index: 9000; }
body.pi-anleihe .pia-subnav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-size: 15px; }
/* „Jetzt zeichnen“ in der Leiste: erscheint, sobald der Hero-Button weggescrollt ist */
body.pi-anleihe .pia-subnav a.pia-subnav__cta { flex: none; padding: 7px 18px; font-size: 14px; opacity: 0; visibility: hidden; transform: translateX(10px); transition: opacity .35s var(--pia-ease), transform .35s var(--pia-ease), visibility 0s linear .35s, background .25s ease; }
body.pi-anleihe .pia-subnav a.pia-subnav__cta { font-size: 0 !important; }
body.pi-anleihe .pia-subnav a.pia-subnav__cta::before { content: "Jetzt zeichnen"; font-size: 14px; }
body.pi-anleihe .pia-subnav-row.is-cta a.pia-subnav__cta { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Newsletter-Lasche des Themes auf dieser Seite ausblenden */
body.pi-anleihe .newsletter-box { display: none !important; }
body.pi-anleihe .pia-subnav__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 0 !important; }
body.pi-anleihe .pia-subnav__links strong { font-weight: 600; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.35); }
body.pi-anleihe .pia-subnav a { color: rgba(255,255,255,.82) !important; text-decoration: none !important; transition: color .2s; }
body.pi-anleihe .pia-subnav a:hover,
body.pi-anleihe .pia-subnav a.is-active { color: #fff !important; }
body.pi-anleihe .pia-subnav__info { display: none; }
body.pi-anleihe .pia-subnav a.pia-btn { color: var(--pia-text) !important; padding: 10px 22px; font-size: 15px; }
body.pi-anleihe .pia-subnav-row.is-fixed { position: fixed; top: var(--pia-top); left: 0; margin: 0 !important; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
body.pi-anleihe .pia-subnav-spacer { display: none; }
body.pi-anleihe .pia-subnav-row.is-fixed + .pia-subnav-spacer { display: block; }

/* ---------- 2 · Fakten ---------- */
body.pi-anleihe .pia-facts-row.vc_row { padding-top: 64px; padding-bottom: 64px; }
body.pi-anleihe ul.pia-facts { list-style: none; padding: 0; margin: 0 0 32px !important; display: grid; grid-template-columns: repeat(5, 1fr); }
body.pi-anleihe ul.pia-facts li { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.22); margin: 0; }
body.pi-anleihe ul.pia-facts li:first-child { padding-left: 0; border-left: 0; }
body.pi-anleihe ul.pia-facts img { width: 32px; height: 32px; margin-bottom: 12px; }
body.pi-anleihe ul.pia-facts span { display: block; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pia-sand); line-height: 1.35; min-height: 2.7em; }
body.pi-anleihe ul.pia-facts strong { display: block; font-size: 30px; line-height: 1.2; font-weight: 600; color: #fff; }
body.pi-anleihe .pia-meta { font-size: 15px !important; line-height: 1.5 !important; color: rgba(255,255,255,.85) !important; margin: 0 0 4px !important; }
body.pi-anleihe .pia-meta strong { color: #fff; font-weight: 700; }

/* ---------- Zwei-Spalten-Layouts ---------- */
body.pi-anleihe .pia-intro > .wpb_column:last-child { flex: 0 0 560px; }
body.pi-anleihe .pia-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.pi-anleihe .pia-photo { margin: 0; }
body.pi-anleihe .pia-photo figcaption { font-size: 14px; line-height: 1.45; color: var(--pia-muted); margin-top: 12px; }
body.pi-anleihe .pia-markt.vc_row { align-items: flex-start; }
body.pi-anleihe .pia-markt > .wpb_column:last-child { flex: 0 0 620px; }
body.pi-anleihe .pia-emittent.vc_row { align-items: center; }

/* Kennzahlen Emittent */
body.pi-anleihe .pia-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18); margin: 0 !important; }
body.pi-anleihe .pia-kpis > div { background: var(--pia-dark); padding: 36px 32px; }
body.pi-anleihe .pia-kpis strong { display: block; font-size: 60px; line-height: 1.05; font-weight: 600; color: var(--pia-sand); margin-bottom: 8px; }
body.pi-anleihe .pia-kpis span { display: block; font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.9); }

/* ---------- 3 · Referenzen ---------- */
body.pi-anleihe .pia-ref-grid { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center; margin-top: 16px; }
body.pi-anleihe .pia-map { margin: 0; text-align: center; }
body.pi-anleihe .pia-map img { width: 100%; }
body.pi-anleihe .pia-map figcaption { font-size: 13px; color: var(--pia-muted); margin-top: 12px; }
body.pi-anleihe .pia-refs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
body.pi-anleihe .pia-ref { margin: 0; }
body.pi-anleihe .pia-ref figcaption { font-size: 14px; line-height: 1.4; color: var(--pia-muted); margin-top: 10px; }
body.pi-anleihe .pia-ref figcaption strong { display: block; font-size: 17px; color: var(--pia-text); font-weight: 600; }

/* Bild-Links mit Lupe (Lightbox) */
body.pi-anleihe a.pia-lb { display: block; position: relative; overflow: hidden; cursor: zoom-in; }
body.pi-anleihe a.pia-lb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--pia-ease); }
body.pi-anleihe a.pia-lb:hover img { transform: scale(1.04); }
body.pi-anleihe a.pia-lb::after {
	content: ""; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5A58' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / 18px;
}

/* ---------- 4 · Zukunftsmarkt / Grafik ---------- */
body.pi-anleihe .pia-chart-intro { margin: 40px 0 14px !important; }
body.pi-anleihe .pia-chart { background: #fff; padding: 16px 23px 40px 9px; position: relative; }
body.pi-anleihe .pia-chart a.pia-lb { position: static; overflow: visible; }
body.pi-anleihe .pia-chart a.pia-lb img { aspect-ratio: auto; object-fit: contain; }
body.pi-anleihe .pia-chart a.pia-lb:hover img { transform: none; }
body.pi-anleihe .pia-chart a.pia-lb::after { right: 16px; bottom: 6px; background-color: transparent; }

/* ---------- 5 · Gute Gründe – Kacheln ---------- */
body.pi-anleihe ul.pia-tiles { list-style: none; padding: 0; margin: 40px 0 0 !important; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
body.pi-anleihe ul.pia-tiles li { background: var(--pia-dark); color: #fff; padding: 32px 24px; margin: 0; }
body.pi-anleihe ul.pia-tiles img { width: 36px; height: 36px; margin-bottom: 16px; }
body.pi-anleihe ul.pia-tiles strong { display: block; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
body.pi-anleihe ul.pia-tiles span { display: block; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.75); }

/* ---------- 6 · Chancen & Risiken ---------- */
body.pi-anleihe .pia-cr { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 16px 0 32px; }
body.pi-anleihe .pia-cr > div { background: #fff; padding: 36px 40px; }
body.pi-anleihe .pia-cr h3 { margin: 0 0 8px; }
body.pi-anleihe .pia-cr ul { list-style: none; padding: 0; margin: 0 !important; }
body.pi-anleihe .pia-cr li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--pia-line); margin: 0; font-size: 17px; line-height: 1.45; }
body.pi-anleihe .pia-cr li::before { content: ""; position: absolute; left: 0; top: 12px; width: 24px; height: 24px; background: no-repeat center / contain; }
body.pi-anleihe .pia-cr .pia-chancen li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F8478' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
body.pi-anleihe .pia-cr .pia-risiken li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F8478' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3L2.5 20h19z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.3'/%3E%3C/svg%3E"); }

/* ---------- WIB-Band ---------- */
body.pi-anleihe .pia-wib-row.vc_row { padding-top: 56px; padding-bottom: 56px; }
body.pi-anleihe .pia-wib { display: flex; align-items: center; gap: 32px; }
body.pi-anleihe .pia-wib img { width: 48px; height: 48px; flex: none; }
body.pi-anleihe .pia-wib > div { flex: 1; }
body.pi-anleihe .pia-wib h3 { margin: 0 0 6px; color: #fff; }
body.pi-anleihe .pia-wib p { font-size: 16px; margin: 0 !important; }

/* ---------- 7 · Kontakt ---------- */
body.pi-anleihe .pia-person { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
body.pi-anleihe .pia-person img { width: 138px; height: auto; }
body.pi-anleihe .pia-person strong { display: block; font-size: 18px; font-weight: 600; }
body.pi-anleihe .pia-kontakt .wpb_text_column p a:not(.pia-btn) { color: var(--pia-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
body.pi-anleihe .pia-kontakt .wpb_text_column p a:not(.pia-btn):hover { color: var(--pia-sand-dark) !important; }
body.pi-anleihe .pia-kontakt .pia-btns { margin: 28px 0 16px !important; }
body.pi-anleihe .pia-kontakt .pia-ask { margin-top: 32px !important; }
body.pi-anleihe .pia-person .pia-role { display: block; font-size: 16px; font-weight: 400; color: var(--pia-text); margin: 2px 0 8px; }
body.pi-anleihe .pia-person a { display: inline-block; color: var(--pia-text) !important; text-decoration: none !important; padding-left: 28px; position: relative; }
body.pi-anleihe .pia-person a + a { margin-top: 6px; }
body.pi-anleihe .pia-person a:hover { color: var(--pia-sand-dark) !important; }
body.pi-anleihe .pia-person a::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5A58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") no-repeat center / contain; }
body.pi-anleihe .pia-person a.pia-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5A58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='1.5'/%3E%3Cpath d='M3 6.5l9 6.5 9-6.5'/%3E%3C/svg%3E"); }
body.pi-anleihe .pia-form { background: var(--pia-beige); padding: 40px; }
body.pi-anleihe .pia-online { border-top: 1px solid var(--pia-line); margin-top: 24px !important; padding-top: 20px; }

/* Hilfsklassen */
body.pi-anleihe .pia-center { text-align: center; }
body.pi-anleihe #referenzen h2 { text-align: left; }
body.pi-anleihe .pia-narrow { max-width: 760px; }

/* Kontaktformular (Contact Form 7) */
body.pi-anleihe .pia-form .wpcf7 p { margin: 0 0 20px; }
body.pi-anleihe .pia-form label { display: block; font-size: 14px; line-height: 1.3; color: var(--pia-text); }
body.pi-anleihe .pia-form input[type=text],
body.pi-anleihe .pia-form input[type=email],
body.pi-anleihe .pia-form input[type=tel],
body.pi-anleihe .pia-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 13px 16px; background: #fff; border: 1px solid var(--pia-line); border-radius: 0; font: inherit; font-size: 16px; color: var(--pia-text); box-shadow: none; }
body.pi-anleihe .pia-form textarea { height: 104px; resize: vertical; }
body.pi-anleihe .pia-form input:focus,
body.pi-anleihe .pia-form textarea:focus { outline: 2px solid var(--pia-sand); outline-offset: 0; border-color: var(--pia-sand-dark); }
body.pi-anleihe .pia-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--pia-muted); }
body.pi-anleihe .pia-form .wpcf7-list-item { margin: 0; }
body.pi-anleihe .pia-form input[type=submit] { display: inline-flex; padding: 16px 28px; border: 0; border-radius: 0; background: var(--pia-dark); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .25s ease; -webkit-appearance: none; }
body.pi-anleihe .pia-form input[type=submit]:hover { background: var(--pia-darker); }
body.pi-anleihe .pia-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
body.pi-anleihe .pia-form .wpcf7-response-output { margin: 0 0 20px !important; font-size: 14px; }

/* Theme setzt Abstände an <li> – in den eigenen Listen neutralisieren */
body.pi-anleihe ul.pia-facts > li,
body.pi-anleihe ul.pia-tiles > li,
body.pi-anleihe .pia-cr li { margin: 0 !important; }

/* ---------- Disclaimer ---------- */
body.pi-anleihe .pia-disclaimer.vc_row { padding-top: 56px; padding-bottom: 56px; font-size: 15px; line-height: 1.65; }
body.pi-anleihe .pia-disclaimer h4 { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pia-text); margin: 0 0 14px; }

/* =====================================================================
   Animationen (werden per JS aktiviert: html.pia-js)
   ===================================================================== */
/* Bis das Skript läuft: Hero-Text und Fakten verbergen (kein Aufblitzen) */
html.pia-js:not(.pia-ready) body.pi-anleihe .pia-hero-text .wpb_wrapper,
html.pia-js:not(.pia-ready) body.pi-anleihe ul.pia-facts,
html.pia-js:not(.pia-ready) body.pi-anleihe .pia-facts-row .pia-meta { opacity: 0; }

html.pia-js body.pi-anleihe .pia-reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--pia-ease), transform .8s var(--pia-ease); transition-delay: var(--pia-delay, 0ms); }
html.pia-js body.pi-anleihe .pia-reveal.is-in { opacity: 1; transform: none; }

/* Blende von unten (Kacheln Gute Gründe) */
html.pia-js body.pi-anleihe .pia-wipe { clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--pia-ease); transition-delay: var(--pia-delay, 0ms); }
html.pia-js body.pi-anleihe .pia-wipe > * { transform: translateY(10px); transition: transform .7s var(--pia-ease); transition-delay: var(--pia-delay, 0ms); }
html.pia-js body.pi-anleihe .pia-wipe.is-in { clip-path: inset(0 0 0 0); }
html.pia-js body.pi-anleihe .pia-wipe.is-in > * { transform: none; }
html.pia-js body.pi-anleihe ul.pia-tiles li:hover { transform: translateY(-4px); transition: transform .3s ease; }

/* Hero beim Laden */
html.pia-js body.pi-anleihe .pia-hero-img img { animation: pia-kenburns 6s var(--pia-ease) both; }
@keyframes pia-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	html.pia-js body.pi-anleihe .pia-reveal,
	html.pia-js body.pi-anleihe .pia-wipe,
	html.pia-js body.pi-anleihe .pia-wipe > * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
	html.pia-js body.pi-anleihe .pia-hero-img img { animation: none; }
	body.pi-anleihe a.pia-lb img, body.pi-anleihe a.pia-btn { transition: none; }
}

/* =====================================================================
   Lightbox
   ===================================================================== */
.pia-lightbox { position: fixed; inset: 0; z-index: 2000000; background: rgba(26,24,23,.94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.pia-lightbox.is-open { opacity: 1; }
.pia-lightbox[hidden] { display: none; }
.pia-lightbox figure { margin: 0; max-width: min(1280px, 92vw); }
.pia-lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; cursor: zoom-out; }
.pia-lightbox figcaption { display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.8); font: 400 15px/1.4 'Fira Sans', Arial, sans-serif; margin-top: 14px; }
.pia-lightbox figcaption strong { display: block; color: #fff; font-weight: 600; }
.pia-lightbox figcaption a { color: #fff; }
.pia-lightbox figcaption > span:last-child { flex: none; white-space: nowrap; }
.pia-lightbox button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14) no-repeat center / 24px; cursor: pointer; }
.pia-lightbox button:hover { background-color: rgba(255,255,255,.26); }
.pia-lightbox .pia-lb-close { top: 16px; right: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pia-lightbox .pia-lb-prev { left: 16px; top: 50%; margin-top: -26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.pia-lightbox .pia-lb-next { right: 16px; top: 50%; margin-top: -26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.pia-lightbox.is-single .pia-lb-prev, .pia-lightbox.is-single .pia-lb-next { display: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1280px) {
	body.pi-anleihe { --pia-py: 80px; }
	body.pi-anleihe .pia-big { font-size: 120px !important; }
	body.pi-anleihe ul.pia-tiles { grid-template-columns: repeat(3, 1fr); }
	body.pi-anleihe .pia-intro > .wpb_column:last-child { flex-basis: 460px; }
	body.pi-anleihe .pia-markt > .wpb_column:last-child { flex-basis: 520px; }
}
@media (max-width: 1024px) {
	body.pi-anleihe { --pia-top: 100px; }
	body.pi-anleihe .pia-sec.vc_row { flex-direction: column; gap: 40px; }
	body.pi-anleihe .pia-sec > .wpb_column,
	body.pi-anleihe .pia-intro > .wpb_column:last-child,
	body.pi-anleihe .pia-markt > .wpb_column:last-child { flex: 1 1 auto; width: 100%; }
	body.pi-anleihe .pia-hero.vc_row { flex-direction: column-reverse; gap: 0; }
	body.pi-anleihe .pia-hero > .pia-hero-text,
	body.pi-anleihe .pia-hero > .pia-hero-img { flex: none; width: 100%; }
	body.pi-anleihe .pia-hero > .pia-hero-text { padding: 48px var(--pia-gutter); }
	body.pi-anleihe .pia-hero > .pia-hero-img { min-height: 0; aspect-ratio: 2.7 / 1; }
	body.pi-anleihe ul.pia-facts { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
	body.pi-anleihe ul.pia-facts li:nth-child(4) { padding-left: 0; border-left: 0; }
	body.pi-anleihe .pia-ref-grid { grid-template-columns: 1fr; }
	body.pi-anleihe .pia-map { max-width: 460px; margin: 0 auto; }
	body.pi-anleihe .pia-cr { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	body.pi-anleihe { --pia-py: 56px; --pia-gutter: 24px; }
	body.pi-anleihe .pia-sec.vc_row { font-size: 17px; line-height: 1.6; gap: 32px; }
	body.pi-anleihe .pia-sec h2 { font-size: 30px; }
	body.pi-anleihe .pia-sec h3 { font-size: 21px; }
	body.pi-anleihe .pia-hero h1 { font-size: 28px; }
	body.pi-anleihe .pia-big { font-size: 92px !important; }
	body.pi-anleihe .pia-lead { font-size: 18px !important; }
	body.pi-anleihe .pia-btns { flex-direction: column; }
	body.pi-anleihe .pia-btns a.pia-btn { width: 100%; box-sizing: border-box; }
	body.pi-anleihe ul.pia-facts { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	body.pi-anleihe ul.pia-facts li { padding: 0; border: 0; }
	body.pi-anleihe ul.pia-facts strong { font-size: 24px; }
	body.pi-anleihe .pia-kpis > div { padding: 20px 16px; }
	body.pi-anleihe .pia-kpis strong { font-size: 40px; }
	body.pi-anleihe .pia-kpis span { font-size: 14px; }
	/* Referenzen als wischbare Reihe */
	body.pi-anleihe .pia-refs { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 8px; scrollbar-width: none; }
	body.pi-anleihe .pia-refs::-webkit-scrollbar { display: none; }
	body.pi-anleihe .pia-ref { flex: 0 0 280px; scroll-snap-align: start; }
	body.pi-anleihe .pia-chart { padding: 10px 12px 30px 8px; }
	body.pi-anleihe ul.pia-tiles { grid-template-columns: 1fr; gap: 10px; }
	body.pi-anleihe ul.pia-tiles li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; align-items: center; padding: 16px; }
	body.pi-anleihe ul.pia-tiles img { width: 32px; height: 32px; margin: 0; grid-row: span 2; }
	body.pi-anleihe ul.pia-tiles strong { font-size: 18px; margin: 0; }
	body.pi-anleihe ul.pia-tiles span { font-size: 15px; }
	body.pi-anleihe .pia-cr > div { padding: 24px 20px; }
	body.pi-anleihe .pia-cr li { font-size: 15px; }
	body.pi-anleihe .pia-wib { flex-direction: column; align-items: flex-start; gap: 14px; }
	body.pi-anleihe .pia-wib a.pia-btn { width: 100%; box-sizing: border-box; }
	body.pi-anleihe .pia-person img { width: 85px; }
	body.pi-anleihe .pia-form { padding: 24px 16px; }
	body.pi-anleihe .pia-disclaimer.vc_row { font-size: 13px; }

	/* Anleihe-Leiste: unten fixiert */
	body.pi-anleihe .pia-subnav-row.vc_row { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; margin: 0 !important; padding: 8px 16px 8px 20px; box-shadow: 0 -4px 16px rgba(0,0,0,.2); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
	body.pi-anleihe .pia-subnav { min-height: 44px; }
	body.pi-anleihe .pia-subnav__links { display: none; }
	body.pi-anleihe .pia-subnav__info { display: block; line-height: 1.25; }
	body.pi-anleihe .pia-subnav__info strong { display: block; font-size: 14px; }
	body.pi-anleihe .pia-subnav__info span { font-size: 12px; color: var(--pia-sand); }
	body.pi-anleihe .pia-subnav a.pia-btn { padding: 9px 16px; font-size: 14px; }
	body.pi-anleihe .pia-subnav a.pia-subnav__cta { opacity: 1; visibility: visible; transform: none; }
	body.pi-anleihe .pia-subnav a.pia-subnav__cta { font-size: 14px !important; }
	body.pi-anleihe .pia-subnav a.pia-subnav__cta::before { content: none; }
	body.pi-anleihe .pia-subnav-spacer { display: none !important; }
	body.pi-anleihe { padding-bottom: 68px; }
	body.pi-anleihe .pia-sec[id] { scroll-margin-top: var(--pia-top); }
	body.pi-anleihe .go-to-top { bottom: 84px; }
}
