/* Z3 Partner, Website. Standard: Schriften und Farben wie auf z3-forum.at (Quantico, Inter 300, Orange #ee7600) | MK Mahr Konzept, www.mahr-konzept.at */

.z3p {
	/* Standard = Z3. Unter Partner › Einstellungen › Darstellung änderbar, kommt dann als Inline-CSS dazu. */
	--z3p-akzent: #ee7600;
	--z3p-akzent-text: #fff;
	--z3p-titel: #fff;
	--z3p-text: #dcdde2;
	--z3p-grau: #b9bcc4;
	--z3p-karte: #1d1e23;
	--z3p-linie: #3a3d44;
	--z3p-schrift-titel: Quantico, Helvetica, Arial, sans-serif;
	--z3p-schrift-text: Inter, Helvetica, Arial, sans-serif;
	/* abgeleitet */
	--z3p-akzent-dunkel: color-mix(in srgb, var(--z3p-akzent) 82%, #000);
	--z3p-karte-hover: color-mix(in srgb, var(--z3p-karte) 96%, var(--z3p-titel));
	--z3p-rahmen: color-mix(in srgb, var(--z3p-linie) 88%, var(--z3p-titel));
	font-family: var(--z3p-schrift-text);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: var(--z3p-text);
	text-align: left;
}
/* so breit wie der Seitenkopf (1200 px), nicht wie die schmale Textspalte */
.z3p-raster, .z3p-detail, .z3p-logos {
	width: auto;
	max-width: min(1200px, calc(100% - 32px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.z3p *, .z3p *::before, .z3p *::after { box-sizing: border-box; }
.z3p h2, .z3p h3 { color: inherit; font-family: var(--z3p-schrift-titel); font-weight: 400; letter-spacing: 0; text-transform: none; }
.z3p b, .z3p strong { font-weight: 600; }
/* Kubio färbt Überschriften im Editor dunkel */
.z3p .z3p-karte-name, .z3p .z3p-s-name { color: var(--z3p-titel) !important; }
.z3p .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Knöpfe ---------- */
.z3p-knopf {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--z3p-akzent); color: var(--z3p-akzent-text) !important; text-decoration: none !important;
	border-radius: 4px; padding: 12px 20px; line-height: 1.2;
	font-family: var(--z3p-schrift-titel); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
	transition: background .15s;
}
.z3p-knopf:hover, .z3p-knopf:focus-visible { background: var(--z3p-akzent-dunkel); }
.z3p .z3p-knopf-rand {
	display: inline-flex; align-items: center; gap: 10px; line-height: 1.2; text-decoration: none !important;
	background: transparent; color: var(--z3p-titel) !important; border: 1px solid var(--z3p-akzent);
	border-radius: 4px; padding: 12px 24px; cursor: pointer;
	font-family: var(--z3p-schrift-titel); font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.z3p .z3p-knopf-rand:hover { background: color-mix(in srgb, var(--z3p-akzent) 15%, transparent); }
.z3p a:focus-visible, .z3p button:focus-visible, .z3p input:focus-visible { outline: 2px solid var(--z3p-akzent); outline-offset: 2px; }

/* Kubio färbt jeden <button> blau ([data-kubio] button), deshalb stehen die Plugin-Knöpfe mit .z3p davor */

/* ---------- Kacheln ---------- */
.z3p-gitter { display: grid; grid-template-columns: repeat(var(--z3p-spalten, 3), minmax(0, 1fr)); gap: 24px; }
.z3p-karte {
	position: relative; display: flex; flex-direction: column;
	background: var(--z3p-karte); border-radius: 6px; overflow: hidden;
	transition: transform .2s, background .2s;
}
.z3p-karte.z3p-klickbar:hover { background: var(--z3p-karte-hover); transform: translateY(-3px); }
.z3p-karte[hidden] { display: none; }
.z3p-karte-bild { position: relative; aspect-ratio: 12 / 5; background: #111; }
.z3p-foto { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Foto füllt seine Box immer ganz aus, auch wenn Theme oder Browser die Höhe anders rechnen (sonst dunkler Balken unten) */
.z3p-karte-bild > .z3p-foto, .z3p-d-bild > .z3p-foto, .z3p-zitat-foto > .z3p-foto, .z3p-d-events-bild > .z3p-foto, .z3p-s-foto > .z3p-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; }
.z3p-foto-leer { background: linear-gradient(135deg, #2a2c33, #15161a); }
.z3p-karte-logo {
	position: absolute; left: 16px; bottom: -18px; width: 46%; height: 62px;
	background: #fff; padding: 8px 12px; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .35); border-radius: 2px;
}
.z3p-karte-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.z3p-logo-text { color: #3a3d43; font-weight: 800; font-size: 14px; line-height: 1.1; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.z3p-abzeichen {
	position: absolute; top: 12px; right: 12px; z-index: 1;
	background: var(--z3p-akzent); color: var(--z3p-akzent-text); font-family: var(--z3p-schrift-titel); font-size: 12px; letter-spacing: 1px;
	text-transform: uppercase; padding: 6px 10px; border-radius: 3px; line-height: 1;
}
.z3p-karte-text { display: flex; flex-direction: column; flex: 1; padding: 34px 18px 18px; }
.z3p-karte-name { margin: 0; font-size: 22px; line-height: 1.25; min-height: 2.5em; } /* immer zwei Zeilen hoch, damit die Kacheln gleich aussehen */
.z3p-slogan { margin: 6px 0 0; color: var(--z3p-akzent) !important; font-family: var(--z3p-schrift-titel); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.z3p-kurztext { margin: 14px 0 0; color: var(--z3p-grau) !important; font-size: 15px; line-height: 1.6; }
.z3p-mehr { margin-top: auto; padding-top: 18px; color: var(--z3p-akzent) !important; font-family: var(--z3p-schrift-titel); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none !important; align-self: flex-start; }
.z3p-mehr::after { content: ""; position: absolute; inset: 0; } /* ganze Kachel klickbar */
.z3p-karte:hover .z3p-mehr { text-decoration: underline !important; }
.z3p-gross .z3p-karte-bild { aspect-ratio: 12 / 5; }
.z3p-gross .z3p-karte-name { font-size: 24px; }
.z3p-gross .z3p-karte-logo { height: 70px; }

/* ---------- Raster ---------- */
.z3p-raster { padding: 10px 0 30px; }
.z3p-werkzeug { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 30px; }
.z3p .z3p-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.z3p .z3p-chip {
	background: transparent; color: var(--z3p-titel); border: 1px solid var(--z3p-rahmen); border-radius: 999px;
	padding: 8px 16px; font-family: var(--z3p-schrift-text); font-weight: 400; font-size: 14px; line-height: 1.2; cursor: pointer;
}
.z3p .z3p-chip:hover { border-color: var(--z3p-grau); }
.z3p .z3p-chip[aria-pressed="true"] { background: var(--z3p-akzent); border-color: var(--z3p-akzent); color: var(--z3p-akzent-text); }
.z3p-suche { margin-left: auto; position: relative; }
.z3p-suche input {
	width: 240px; background: var(--z3p-karte); color: var(--z3p-titel); border: 1px solid var(--z3p-rahmen); border-radius: 999px;
	padding: 9px 16px 9px 38px; font: inherit; font-size: 14px;
}
.z3p-suche::before { content: ""; position: absolute; left: 15px; top: 50%; width: 11px; height: 11px; border: 2px solid var(--z3p-grau); border-radius: 50%; transform: translateY(-65%); }
.z3p-suche::after { content: ""; position: absolute; left: 27px; top: 58%; width: 6px; height: 2px; background: var(--z3p-grau); transform: rotate(45deg); }
.z3p-bereich + .z3p-bereich { margin-top: 44px; }
.z3p-bereich[hidden] { display: none; }
.z3p-bereich-titel {
	display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
	font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--z3p-akzent);
}
.z3p-bereich-titel::after { content: ""; flex: 1; height: 1px; background: var(--z3p-linie); }
.z3p-leer { color: var(--z3p-grau); padding: 20px 0; }
.z3p .z3p-mehr-laden { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; }
.z3p .z3p-mehr-laden[hidden], .z3p-leer[hidden] { display: none; }
.z3p-anzahl { margin: 0; color: var(--z3p-grau); font-size: 14px; }

/* ---------- Partnerseite (seit 1.4.0) ---------- */
.z3p-detail { padding: 0 0 40px; }
/* Kubio-Kopfbild: Partnername steht schon im Titelbild, darum die h1 der Vorlage nur fuer Screenreader und Google lassen */
body.single-z3_partner .wp-block-kubio-page-title { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.z3p-d-bild { position: relative; aspect-ratio: 3 / 1; border-radius: 6px; overflow: hidden; background: #111; }
.z3p-d-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .8)); pointer-events: none; }
.z3p-d-claim { position: absolute; z-index: 1; right: 40px; top: 50%; transform: translateY(-50%); margin: 0; max-width: 40%; text-align: right; }
.z3p-d-claim span { display: block; color: #fff; font-family: var(--z3p-schrift-titel); font-size: clamp(22px, 3vw, 36px); line-height: 1.1; text-transform: uppercase; }
.z3p-d-claim > span::after { content: ""; display: block; width: 60px; height: 3px; background: var(--z3p-akzent); margin: 14px 0 0 auto; } /* Strich unter dem Slogan, über den Schlagworten */

.z3p-d-kopf { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.z3p-d-logo {
	position: relative; z-index: 2; width: 240px; height: 180px; margin-top: -90px;
	background: #fff; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.z3p-d-logo { display: flex; align-items: center; justify-content: center; padding: 22px; }
.z3p-d-logo > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.z3p-d-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.z3p-d-logo a { transition: transform .2s; }
.z3p-d-logo a:hover { transform: scale(1.03); }
.z3p-d-name { padding-top: 22px; }
.z3p-d-name .z3p-d-titel { margin: 0 0 6px; color: var(--z3p-titel) !important; font-family: var(--z3p-schrift-titel); font-weight: 400; font-size: 38px; line-height: 1.1; text-transform: none; letter-spacing: 0; }
.z3p-d-name .z3p-slogan { margin: 0 0 10px; font-size: 16px; }
.z3p-d-name .z3p-abzeichen { position: static; display: inline-block; }
.z3p-d-bereiche { display: flex; flex-wrap: wrap; margin: 12px 0 0; color: var(--z3p-text); font-size: 15px; }
.z3p-d-bereiche span + span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--z3p-akzent); margin: 0 14px; vertical-align: 2px; }
.z3p-d-knoepfe { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; min-width: 250px; }
.z3p-d-knoepfe a { justify-content: center; }

.z3p-d-spruenge { display: flex; gap: 4px; margin-top: 30px; border-bottom: 1px solid var(--z3p-linie); overflow-x: auto; scrollbar-width: none; }
.z3p-d-spruenge::-webkit-scrollbar { display: none; }
.z3p-d-spruenge a { padding: 12px 18px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--z3p-text) !important; text-decoration: none !important; font-family: var(--z3p-schrift-titel); font-size: 15px; white-space: nowrap; }
.z3p-d-spruenge a:hover, .z3p-d-spruenge a:first-child { color: var(--z3p-akzent) !important; border-color: var(--z3p-akzent); }
.z3p-detail [id^="z3p-"] { scroll-margin-top: 140px; }

.z3p-d-haupt { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; margin-top: 28px; }
.z3p-d-links { display: flex; flex-direction: column; gap: 24px; }
.z3p-d-rechts { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.z3p-d-karte, .z3p-d-seite { background: var(--z3p-karte); border-radius: 6px; padding: 26px 28px; }
.z3p-d-karte h2, .z3p-d-seite h2 { margin: 0 0 16px; color: var(--z3p-titel); font-size: 22px; }
.z3p-d-beschreibung { color: var(--z3p-text) !important; font-size: 16px; line-height: 1.75; }
.z3p-d-beschreibung > :last-child { margin-bottom: 0; }
/* aus Word oder einer Website eingefügter Text bringt eigene Farben mit (weißer Hintergrund, schwarze Schrift) */
.z3p-d-beschreibung * { color: inherit !important; background: none !important; }
.z3p-d-beschreibung a { color: var(--z3p-akzent) !important; }

/* Social Media wie auf z3-forum.at: weiße Icons ohne Rahmen, beim Drüberfahren orange */
.z3p-social { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 16px; margin: -4px 0 4px; border-bottom: 1px solid var(--z3p-linie); }
.z3p-social a { display: grid; place-items: center; width: 40px; height: 36px; color: #fff !important; text-decoration: none !important; transition: transform .2s, color .2s; }
.z3p-social svg { width: auto; height: 24px; fill: currentColor; }
.z3p-social a:hover, .z3p-social a:focus-visible { color: var(--z3p-akzent) !important; transform: translateY(-3px) scale(1.1); }

.z3p-d-kontakt { list-style: none; margin: 0; padding: 0; }
.z3p-d-kontakt li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--z3p-linie); color: var(--z3p-titel); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.z3p-d-kontakt li:last-child { border-bottom: 0; padding-bottom: 0; }
.z3p-d-kontakt a { color: var(--z3p-titel) !important; text-decoration: none !important; }
.z3p-d-kontakt a:hover { color: var(--z3p-akzent) !important; }
.z3p-d-kontakt small { display: block; color: var(--z3p-grau); font-size: 13px; }
.z3p-icon { width: 18px; height: 18px; margin-top: 2px; fill: var(--z3p-akzent); }
.z3p-d-dabei { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--z3p-linie); color: var(--z3p-titel); font-size: 15px; }
.z3p-d-dabei small { display: block; color: var(--z3p-grau); font-size: 13px; }

.z3p-d-events { padding: 0; overflow: hidden; }
.z3p-d-events-bild { position: relative; aspect-ratio: 16 / 9; background: #111; }
.z3p-d-events-text { padding: 22px 26px 26px; }
.z3p-d-events-dabei { margin: 0 0 4px !important; color: var(--z3p-akzent) !important; font-family: var(--z3p-schrift-titel); font-size: 13px !important; letter-spacing: 1px; text-transform: uppercase; }
.z3p-d-events h3 { margin: 0 0 8px; color: var(--z3p-titel); font-size: 20px; }
.z3p-d-events p { margin: 0 0 18px; color: var(--z3p-grau); font-size: 15px; }

/* Zitat: mit Foto nebeneinander, ohne Foto mittig und größer */
.z3p-zitat { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; align-items: start; margin: 0; }
.z3p-zitat-foto { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: #111; }
.z3p-zitat blockquote { position: relative; margin: 0; padding: 0 0 0 52px; border: 0; background: none; color: var(--z3p-text); font-family: var(--z3p-schrift-text); font-size: 18px; font-style: italic; font-weight: 300; line-height: 1.65; quotes: none; }
.z3p-zitat blockquote::before { content: "\201E"; position: absolute; left: 0; top: -34px; color: var(--z3p-akzent); font: 700 80px/1 Georgia, serif; }
.z3p-zitat figcaption { margin-top: 16px; padding-left: 52px; font-size: 15px; }
.z3p-zitat figcaption b { display: block; color: var(--z3p-titel); }
.z3p-zitat figcaption span { color: var(--z3p-grau); }
.z3p-zitat.z3p-ohne-foto { grid-template-columns: 1fr; padding: 10px 30px; text-align: center; }
.z3p-ohne-foto blockquote { padding: 40px 0 0; font-size: 21px; }
.z3p-ohne-foto blockquote::before { left: 50%; transform: translateX(-50%); top: -48px; }
.z3p-ohne-foto figcaption { padding-left: 0; }

.z3p-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.z3p-zoom { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; cursor: zoom-in; background: #111; }
.z3p-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.z3p-zoom:hover img { transform: scale(1.05); }
.z3p-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.z3p-downloads a {
	display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--z3p-karte) 88%, var(--z3p-titel)); border-radius: 6px;
	padding: 12px 16px; color: var(--z3p-titel) !important; text-decoration: none !important;
}
.z3p-downloads a:hover { background: color-mix(in srgb, var(--z3p-karte) 80%, var(--z3p-titel)); }
.z3p-downloads small { display: block; color: var(--z3p-grau); font-size: 13px; }
/* Downloads in der schmalen linken Spalte */
.z3p-d-dl .z3p-downloads a { padding: 12px 14px; gap: 12px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.z3p-pdf { width: 32px; height: 38px; background: #c43d2f; color: #fff; border-radius: 3px; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }

.z3p-d-formular h2 { margin: 0 0 16px; font-size: 22px; }
.z3p-d-formular .z3p-hinweis { color: var(--z3p-grau); margin: -6px 0 20px; }
.z3p-d-formular .z3p-hinweis b { color: var(--z3p-titel); }
/* Formular wie auf der Kontaktseite */
.z3p-d-formular .z3-form label { color: var(--z3p-titel); font-size: 14px; font-weight: 500; }
.z3p-d-formular .z3-form input:not([type="submit"]):not([type="checkbox"]),
.z3p-d-formular .z3-form textarea {
	background: #0f1013; color: var(--z3p-titel); border: 1px solid var(--z3p-rahmen); border-radius: 3px;
	padding: 11px 12px; font-family: var(--z3p-schrift-text); font-size: 15px; font-weight: 300;
}
.z3p-d-formular .z3-form input:focus, .z3p-d-formular .z3-form textarea:focus { outline: 0; border-color: var(--z3p-akzent); }
.z3p-d-formular .z3-form__consent a { color: var(--z3p-akzent); text-decoration: none; }
.z3p-d-formular .z3-form__consent a:hover { text-decoration: underline; }
.z3p-d-formular .z3-form [type="submit"] {
	background: linear-gradient(90deg, color-mix(in srgb, var(--z3p-akzent) 46%, #000), var(--z3p-akzent)); color: var(--z3p-akzent-text); border: 0; border-radius: 3px;
	padding: 13px 24px; font-family: var(--z3p-schrift-titel); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
.z3p-d-formular .z3-form [type="submit"]:hover { background: var(--z3p-akzent); }
.z3p-d-formular .z3-form [type="submit"]:disabled { opacity: .6; cursor: default; }
/* Spamschutz-Feld sicherheitshalber auch hier verstecken */
.z3p-d-formular .z3-form__trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.z3p-d-formular .wpcf7-response-output { border-radius: 3px; margin: 16px 0 0 !important; }
.z3p-d-formular .wpcf7-not-valid { border-color: #ff6b5a !important; }
.z3p-d-formular .wpcf7-not-valid-tip { color: #ff8a7a; font-size: 13px; margin-top: 4px; }

.z3p-zurueck { display: inline-block; margin-top: 16px; color: var(--z3p-akzent) !important; text-decoration: none !important; font-family: var(--z3p-schrift-titel); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.z3p-zurueck:hover { text-decoration: underline !important; }
.z3p-d-weitere { margin-top: 60px; }
.z3p-d-weitere h2 { margin: 0 0 20px; color: var(--z3p-akzent); font-size: 30px; }

/* Z3-Band ganz unten, volle Breite */
/* Kubio begrenzt Inhalte auf die schmale Textspalte, das Band geht über die volle Breite */
.z3p-band { width: auto; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; margin-top: 20px; background: linear-gradient(90deg, #15161a, #24262c); border-top: 3px solid var(--z3p-akzent); }
.z3p-band-innen { max-width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0; display: flex; align-items: center; gap: 40px; }
.z3p-band-titel { margin: 0; max-width: 300px; color: #fff; font-family: var(--z3p-schrift-titel); font-size: 26px; line-height: 1.15; text-transform: uppercase; }
.z3p-band-text { flex: 1 1 300px; margin: 0; color: var(--z3p-grau); font-size: 15px; }
.z3p-band .z3p-knopf { flex: none; }


/* ---------- Partnerseite: Schlagworte, Buttons mit Icons, Technologien und Produkte (1.4.0) ---------- */
.z3p-d-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.z3p-d-tags li { color: #fff; font-family: var(--z3p-schrift-titel); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.z3p-d-tags li::before { content: "# "; color: var(--z3p-akzent); }
.z3p-d-knoepfe a { justify-content: space-between; }
.z3p-knopf .z3p-icon, .z3p-knopf-rand .z3p-icon { width: 18px; height: 18px; margin: 0; flex: none; fill: currentColor; }
.z3p-knopf-rand .z3p-icon { fill: var(--z3p-akzent); }
.z3p-knopf > span:not(.z3p-knopf-pfeil):not(.screen-reader-text), .z3p-knopf-rand > span:not(.z3p-knopf-pfeil) { flex: 1; text-align: left; }
.z3p-d-events .z3p-knopf-rand { width: 100%; }

.z3p-d-kopfzeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.z3p-d-kopfzeile h2 { margin: 0 !important; }
.z3p-d-alle { color: var(--z3p-akzent) !important; text-decoration: none !important; font-size: 14px; white-space: nowrap; }
.z3p-d-alle:hover { text-decoration: underline !important; }
.z3p-d-kachelgitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.z3p-d-kachel { position: relative; display: flex; flex-direction: column; }
.z3p-d-kachel-bild { position: relative; aspect-ratio: 6 / 5; border-radius: 4px; overflow: hidden; background: #111; margin-bottom: 14px; }
.z3p-d-kachel-bild > .z3p-foto { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transition: transform .3s; }
.z3p-d-kachel.z3p-klickbar:hover .z3p-d-kachel-bild > .z3p-foto { transform: scale(1.04); }
.z3p .z3p-d-kachel h3 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0 0 6px; color: var(--z3p-titel) !important; font-size: 17px; line-height: 1.3; }
.z3p-d-kachel h3 a { color: inherit !important; text-decoration: none !important; }
.z3p-d-kachel h3 a::after { content: ""; position: absolute; inset: 0; } /* ganze Kachel klickbar */
.z3p-d-kachel-pfeil { color: var(--z3p-akzent); flex: none; transition: transform .2s; }
.z3p-d-kachel.z3p-klickbar:hover .z3p-d-kachel-pfeil { transform: translateX(3px); }
.z3p-nobr { white-space: nowrap; }
.z3p-d-kachel p { margin: 0; color: var(--z3p-grau); font-size: 15px; line-height: 1.5; }

/* Z3-Logo links im Band */
.z3p-band-logo { flex: none; width: 140px; }
.z3p-band-logo img { display: block; width: 100%; height: auto; }

/* ---------- Slider ---------- */
.z3p-slider {
	position: relative; padding: 30px 0 10px; overflow: hidden;
	max-width: min(1200px, calc(100% - 32px)) !important; margin-left: auto !important; margin-right: auto !important;
	touch-action: pan-y;
}
.z3p-buehne { position: relative; }
.z3p-slide { position: absolute; left: 50%; top: 0; overflow: hidden; }
.z3p-slide .z3p-foto { position: absolute; inset: 0; }
.z3p-s-name { margin: 0; color: var(--z3p-titel); }
.z3p-s-kurz { margin: 0; color: var(--z3p-text) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.z3p-s-logo { background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }
.z3p-s-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* 3D-Karten wie im Kunden-PDF: Foto rechts, Logo oben links, Text unten links.
   Über die ganze Breite, die Nachbarkarten laufen am Bildschirmrand aus statt an der 1200-px-Spalte abgeschnitten zu werden. */
.z3p-slider[data-variante="karten3d"] { max-width: none !important; width: auto; }
.z3p-slider[data-variante="karten3d"] .z3p-buehne { height: 360px; perspective: 1600px; }
.z3p-slider[data-variante="karten3d"] .z3p-slide {
	width: min(600px, 84%); height: 330px; background: #fff; border-radius: 4px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .55); transform: translateX(-50%);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s; cursor: pointer;
}
.z3p-slider[data-variante="karten3d"] .z3p-slide:not(.ist-aktiv) { opacity: 0; } /* bis das JS die Nachbarn setzt */
.z3p-slider[data-variante="karten3d"] .z3p-s-foto { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; }
.z3p-slider[data-variante="karten3d"] .z3p-s-logo { position: absolute; top: 18px; left: 18px; width: 40%; height: 84px; padding: 0; background: transparent; justify-content: flex-start; }
.z3p-slider[data-variante="karten3d"] .z3p-s-logo.z3p-logo-dunkel { background: #2b2d33; padding: 8px 12px; justify-content: center; }
.z3p-slider[data-variante="karten3d"] .z3p-s-text {
	position: absolute; left: 14px; bottom: 14px; width: 58%; display: flex; flex-direction: column; gap: 8px;
	background: color-mix(in srgb, var(--z3p-karte) 95%, transparent); border: 1px solid var(--z3p-rahmen); border-radius: 6px; padding: 14px 16px;
}
.z3p-slider[data-variante="karten3d"] .z3p-s-name { font-size: 18px; }
.z3p-slider[data-variante="karten3d"] .z3p-slogan { display: none; }
.z3p-slider[data-variante="karten3d"] .z3p-s-kurz { font-size: 14px; line-height: 1.5; -webkit-line-clamp: 3; }
.z3p-slider[data-variante="karten3d"] .z3p-knopf { align-self: flex-start; padding: 8px 12px; font-size: 13px; }

/* Banner und Bühne: ein Partner groß, Überblendung */
.z3p-slider[data-variante="banner"] .z3p-buehne,
.z3p-slider[data-variante="buehne"] .z3p-buehne { height: 420px; }
.z3p-slider[data-variante="banner"] .z3p-slide,
.z3p-slider[data-variante="buehne"] .z3p-slide {
	left: 0; width: 100%; height: 100%; border-radius: 6px; background: #000;
	opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s;
}
.z3p-slider[data-variante="banner"] .ist-aktiv,
.z3p-slider[data-variante="buehne"] .ist-aktiv { opacity: 1; visibility: visible; transition: opacity .8s; }
.z3p-slider[data-variante="banner"] .z3p-s-foto::after,
.z3p-slider[data-variante="buehne"] .z3p-s-foto::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .75) 42%, rgba(0, 0, 0, .05));
}
.z3p-slider[data-variante="banner"] .z3p-s-foto,
.z3p-slider[data-variante="buehne"] .z3p-s-foto { position: absolute; inset: 0; }
.z3p-slider[data-variante="banner"] .z3p-s-logo,
.z3p-slider[data-variante="buehne"] .z3p-s-logo { position: absolute; z-index: 1; left: 84px; top: 48px; width: 200px; height: 78px; border-radius: 2px; }
.z3p-slider[data-variante="banner"] .z3p-s-logo.z3p-logo-dunkel,
.z3p-slider[data-variante="buehne"] .z3p-s-logo.z3p-logo-dunkel { background: #2b2d33; }
.z3p-slider[data-variante="banner"] .z3p-s-text,
.z3p-slider[data-variante="buehne"] .z3p-s-text {
	position: absolute; z-index: 1; left: 84px; top: 150px; width: min(480px, calc(100% - 168px));
	display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.z3p-slider[data-variante="banner"] .z3p-s-name,
.z3p-slider[data-variante="buehne"] .z3p-s-name { font-size: 34px; line-height: 1.1; color: #fff !important; }
.z3p-slider[data-variante="banner"] .z3p-s-kurz,
.z3p-slider[data-variante="buehne"] .z3p-s-kurz { font-size: 16px; line-height: 1.6; margin-bottom: 8px; color: #dcdde2 !important; } /* Text liegt auf dem abgedunkelten Foto, bleibt immer hell */

/* Bedienung */
.z3p .z3p-pfeil {
	position: absolute; top: calc(30px + 165px); transform: translateY(-50%); z-index: 30;
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid #6b6f78; background: rgba(20, 20, 26, .7);
	color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.z3p-slider[data-variante="banner"] .z3p-pfeil, .z3p-slider[data-variante="buehne"] .z3p-pfeil { top: calc(30px + 210px); }
.z3p .z3p-pfeil:hover { background: var(--z3p-akzent); border-color: var(--z3p-akzent); color: var(--z3p-akzent-text); }
.z3p .z3p-zurueck-s { left: 12px; }
.z3p .z3p-weiter-s { right: 12px; }
.z3p .z3p-s-nav .z3p-pfeil { position: static; transform: none; width: 38px; height: 38px; font-size: 20px; flex: none; }
.z3p-s-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.z3p .z3p-pause {
	width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--z3p-rahmen); background: transparent;
	color: var(--z3p-titel); font-size: 11px; cursor: pointer; flex: none; padding: 0;
}
.z3p .z3p-pause[hidden] { display: none; }
.z3p .z3p-pause:hover { border-color: var(--z3p-akzent); }
.z3p-s-punkte { display: flex; gap: 12px; }
.z3p .z3p-s-punkte button { position: relative; width: 44px; height: 5px; border: 0; padding: 0; background: var(--z3p-titel); border-radius: 1px; cursor: pointer; }
.z3p .z3p-s-punkte button::after { content: ""; position: absolute; inset: -12px -2px; } /* größere Klickfläche */
.z3p .z3p-s-punkte [aria-current="true"] { background: var(--z3p-akzent); }
.z3p-s-logos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.z3p .z3p-s-logos button {
	width: 120px; height: 50px; background: #fff; border: 0; border-radius: 3px; padding: 6px 10px;
	opacity: .45; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s;
}
.z3p .z3p-s-logos button:hover { opacity: .8; }
.z3p .z3p-s-logos button.z3p-logo-dunkel { background: #2b2d33; }
.z3p .z3p-s-logos [aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--z3p-akzent); }
.z3p-s-logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.z3p-s-logos .z3p-logo-text { font-size: 10px; }

/* ---------- Logo-Leiste: dunkel, weiße Logo-Kacheln, Ränder blenden aus ---------- */
.z3p-logos { background: #0d0e11; border-top: 1px solid #23252b; border-bottom: 1px solid #23252b; padding: 34px 0 10px; overflow: hidden; }
.z3p-l-titel { margin: 0 0 22px; text-align: center; color: var(--z3p-akzent) !important; font-size: 18px !important; letter-spacing: 3px !important; text-transform: uppercase !important; }
.z3p-l-spur { overflow: hidden; padding-bottom: 28px; }
.z3p-l-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; padding: 0 20px; }
.z3p-laufband .z3p-l-spur { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.z3p-laufband .z3p-l-reihe { flex-wrap: nowrap; width: max-content; gap: 0; padding: 0; animation: z3p-lauf var(--z3p-dauer, 40s) linear infinite; }
.z3p-laufband .z3p-l-logo { margin: 0 10px; }
.z3p-laufband:hover .z3p-l-reihe, .z3p-laufband:focus-within .z3p-l-reihe { animation-play-state: paused; }
@keyframes z3p-lauf { to { transform: translateX(-50%); } }
.z3p-l-logo {
	position: relative; flex: none; width: 210px; height: 96px; padding: 16px 22px;
	display: flex; align-items: center; justify-content: center; text-decoration: none !important;
	background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: transform .2s, box-shadow .2s;
}
a.z3p-l-logo:hover, a.z3p-l-logo:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--z3p-akzent), 0 8px 20px rgba(0, 0, 0, .5); }
.z3p-l-logo.z3p-logo-dunkel { background: #2b2d33; }
.z3p-l-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.z3p-l-ziel { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; color: var(--z3p-akzent); font-family: var(--z3p-schrift-titel); font-size: 12px; letter-spacing: 1px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
a.z3p-l-logo:hover .z3p-l-ziel, a.z3p-l-logo:focus-visible .z3p-l-ziel { opacity: 1; }

/* helle Logos auf dunklem Kasten */
.z3p .z3p-karte-logo.z3p-logo-dunkel, .z3p .z3p-d-logo.z3p-logo-dunkel { background: #2b2d33; }

/* Großansicht der Galerie (dialog hängt an body, deshalb ohne .z3p davor) */
dialog.z3p-gross-bild { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
dialog.z3p-gross-bild::backdrop { background: rgba(0, 0, 0, .88); }
dialog.z3p-gross-bild img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
dialog.z3p-gross-bild button {
	position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; padding: 0;
	border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- Handy und Tablet ---------- */
@media (max-width: 1000px) {
	.z3p-d-haupt { grid-template-columns: 1fr; }
	/* untereinander: Kontakt, dann Inhalt, dann Downloads und Anfrage, die Z3-Karte zuletzt */
	.z3p-d-links { display: contents; }
	.z3p-d-dl, .z3p-d-anfrage { order: 1; }
	.z3p-d-events { order: 2; }
	.z3p-d-kopf { grid-template-columns: 200px minmax(0, 1fr); }
	.z3p-d-logo { width: 200px; height: 150px; }
	.z3p-d-knoepfe { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; padding-top: 0; }
	.z3p-d-claim { display: none; }
	.z3p-band-innen { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 800px) {
	.z3p-gitter { grid-template-columns: repeat(min(var(--z3p-spalten, 3), 2), minmax(0, 1fr)); }
	.z3p-suche { margin-left: 0; flex: 1 1 100%; }
	.z3p-suche input { width: 100%; }
	/* Chips in einer Zeile zum Wischen */
	.z3p .z3p-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
	.z3p .z3p-chips::-webkit-scrollbar { display: none; }
	.z3p .z3p-chip { white-space: nowrap; }
	.z3p-d-bild { aspect-ratio: 12 / 5; }
	.z3p-d-kopf { grid-template-columns: 1fr; gap: 0; }
	.z3p-d-logo { width: 170px; height: 120px; margin: -60px 0 0 16px; padding: 14px; }
	.z3p-d-name { padding-top: 16px; }
	.z3p-d-name .z3p-d-titel { font-size: 30px; }
	.z3p-d-knoepfe { padding-top: 18px; min-width: 0; }
	.z3p-d-knoepfe a { flex: 1 1 220px; }
	.z3p-d-karte, .z3p-d-seite { padding: 22px 20px; }
	.z3p-zitat { grid-template-columns: 1fr; gap: 20px; }
	.z3p-zitat-foto { width: 150px; }
	.z3p-zitat.z3p-ohne-foto { padding: 10px 0; }
	.z3p-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.z3p-d-kachelgitter { grid-template-columns: 1fr; gap: 22px; }
	.z3p-d-kachel { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 14px; }
	.z3p-d-kachel-bild { grid-row: span 2; margin-bottom: 0; }
	.z3p-band-logo { width: 110px; }
}
@media (max-width: 700px) {
	.z3p .z3p-pfeil { display: none; }
	.z3p-slider[data-variante="karten3d"] .z3p-buehne { height: 400px; }
	.z3p-slider[data-variante="karten3d"] .z3p-slide { width: 86%; height: 380px; }
	.z3p-slider[data-variante="karten3d"] .z3p-s-foto { width: 100%; height: 44%; bottom: auto; }
	.z3p-slider[data-variante="karten3d"] .z3p-s-logo { top: auto; bottom: calc(56% - 10px); left: 12px; width: 150px; height: 56px; background: #fff; padding: 6px 10px; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 1; }
	.z3p-slider[data-variante="karten3d"] .z3p-s-text { left: 0; right: 0; bottom: 0; width: auto; top: 44%; border: 0; border-radius: 0; padding-top: 38px; }
	.z3p-slider[data-variante="banner"] .z3p-buehne, .z3p-slider[data-variante="buehne"] .z3p-buehne { height: 440px; }
	.z3p-slider[data-variante="banner"] .z3p-s-logo, .z3p-slider[data-variante="buehne"] .z3p-s-logo { left: 20px; top: 24px; width: 150px; height: 60px; }
	.z3p-slider[data-variante="banner"] .z3p-s-text, .z3p-slider[data-variante="buehne"] .z3p-s-text { left: 20px; top: 110px; width: calc(100% - 40px); }
	.z3p-slider[data-variante="banner"] .z3p-s-name, .z3p-slider[data-variante="buehne"] .z3p-s-name { font-size: 26px; }
	.z3p-slider[data-variante="banner"] .z3p-s-foto::after, .z3p-slider[data-variante="buehne"] .z3p-s-foto::after { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.92) 45%); }
	.z3p .z3p-s-logos button { width: 90px; height: 40px; }
	/* Punkte schmaler, damit auch viele Partner in eine Zeile passen */
	.z3p-s-nav { gap: 12px; padding: 0 12px; }
	.z3p-s-punkte { gap: 6px; flex-wrap: wrap; justify-content: center; }
	.z3p .z3p-s-punkte button { width: 22px; }
	.z3p-l-logo { width: 160px; height: 76px; padding: 12px 16px; }
}
@media (max-width: 560px) {
	.z3p-gitter { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.z3p-karte, .z3p-zoom img, .z3p-slide { transition: none !important; }
	.z3p-karte.z3p-klickbar:hover { transform: none; }
	/* Laufband langsamer statt Stillstand, anhalten mit Maus oder Tab */
	.z3p-laufband .z3p-l-reihe { animation-duration: calc(var(--z3p-dauer, 40s) * 2.5); }
	.z3p-l-logo, .z3p-social a, .z3p-d-logo a { transition: none; }
}
