/* Gemeinsame Grundlage aller Skin-Vorlagen: Landingpage, Hero-Grundlayout, Programm-Übersicht,
   Rechts-Footer und Overlays. Farben/Schriften über --sk-* (BCC_Skins::css_vars), Vorlagen überschreiben Details. */

/* Landingpage-Modus: Theme-Titel ausblenden (Hero trägt die h1), Abstände straffen.
   !important nötig: Block-Themes (z. B. Twenty Twenty-Five) setzen diese Abstände als Inline-Style. */
body.bcc-skin h1.wp-block-post-title { display: none; }
body.bcc-landing main.wp-block-group { margin-top: 0 !important; }
body.bcc-landing main > .wp-block-group:first-child { padding-top: 2.5rem !important; }
body.bcc-skin .entry-content { margin-top: 0; }
body.bcc-skin .entry-content > *, body.bcc-skin .wp-block-post-content > * { max-width: 1120px; }
body.bcc-skin .bcc-hero-line { display: block; }

/* Logo-Leiste */
.bcc-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	max-width: 1120px; margin: 0 auto; padding: .9rem 1.5rem;
}
.bcc-topbar img { height: 56px; width: auto; display: block; }
.bcc-topbar-cta {
	font-family: var(--sk-font-head); font-weight: 500; font-size: .95rem; text-decoration: none;
	color: #fff; background: var(--sk-primary); border-radius: 8px; padding: .7rem 1.3rem;
}
.bcc-topbar-cta:hover { background: color-mix(in srgb, var(--sk-primary) 80%, black); }

/* Abschnitte */
body.bcc-skin .bcc-eyebrow {
	font-family: var(--sk-font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--sk-primary); margin: 0 0 .4rem;
}
body.bcc-skin .bcc-programs h2,
body.bcc-skin .bcc-howto h2 {
	font-family: var(--sk-font-head); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--bcc-skin-ink, #141414); margin: 0 0 1.5rem;
}
.bcc-prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3.5rem; }
.bcc-prog {
	border: 1px solid var(--bcc-skin-line, #e3e5f0); border-radius: 18px; overflow: hidden; background: #fff;
	display: flex; flex-direction: column; box-shadow: 0 8px 30px color-mix(in srgb, var(--sk-primary) 8%, transparent);
}
/* Kartenvorschau in den Farben des Programms */
.bcc-prog-visual {
	position: relative; aspect-ratio: 1.586 / 1; margin: 1.5rem 1.5rem 0; border-radius: 14px;
	background: var(--prog-bg, var(--sk-primary)); color: var(--prog-fg, #fff);
	box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.bcc-prog-chip {
	position: absolute; left: 8%; top: 36%; width: 14%; aspect-ratio: 1.3 / 1; border-radius: 5px;
	background: linear-gradient(135deg, #e9d59b, #b9974a);
}
.bcc-prog-visual-name {
	position: absolute; left: 8%; bottom: 10%; font-family: var(--sk-font-head); font-size: 1.05rem; letter-spacing: .06em;
	text-transform: uppercase;
}
.bcc-prog-visual::after {
	content: ""; position: absolute; right: 8%; bottom: 10%; width: 18%; height: 3px; border-radius: 3px;
	background: var(--prog-accent, #fff);
}
.bcc-prog-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.bcc-prog-body h3 { font-family: var(--sk-font-head); font-weight: 500; font-size: 1.35rem; color: var(--bcc-skin-ink, #141414); margin: 0; }
.bcc-prog-body p { margin: 0; line-height: 1.55; }
.bcc-prog-meta { font-size: .85rem; color: #6b6f80; }
.bcc-prog-cta {
	margin-top: auto; align-self: flex-start; background: var(--sk-primary); color: #fff; text-decoration: none;
	font-family: var(--sk-font-head); font-weight: 400; border-radius: 8px; padding: .8rem 1.3rem;
}
.bcc-prog-cta:hover { background: color-mix(in srgb, var(--sk-primary) 80%, black); }

.bcc-howto { background: var(--bcc-skin-soft, color-mix(in srgb, var(--sk-primary) 5%, white)); border-radius: 20px; padding: 2.5rem 2.5rem 2rem; margin-bottom: 2rem; }
.bcc-howto-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.bcc-howto-num {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(180deg, var(--sk-primary), var(--sk-secondary)); color: #fff; font-family: var(--sk-font-head); font-weight: 500;
}
.bcc-howto-steps h3 { font-family: var(--sk-font-head); font-weight: 500; font-size: 1.1rem; color: var(--bcc-skin-ink, #141414); margin: .8rem 0 .3rem; }
.bcc-howto-steps p { margin: 0; line-height: 1.55; font-size: .95rem; }


/* Rechts-Footer */
.bcc-legal-footer { font-size: .82rem; line-height: 1.6; padding: 3rem 1.5rem 2rem; }
.bcc-legal-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 2rem; }
.bcc-legal-footer p { margin: 0 0 .35rem; }
.bcc-legal-company { font-weight: 700; font-size: .95rem; }
.bcc-legal-head { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-top: .6rem !important; }
.bcc-legal-links { list-style: none; margin: 0; padding: 0; }
.bcc-legal-links li { margin: .2rem 0; }
.bcc-legal-supervision, .bcc-legal-copy { grid-column: 1 / -1; margin: 0; opacity: .75; }
@media (max-width: 760px) { .bcc-legal-inner { grid-template-columns: 1fr; gap: 1rem; } }

/* Rechts-Overlays (<dialog>); ohne JS über #anker + :target */
.bcc-legal-dialog { max-width: 680px; width: calc(100% - 2rem); max-height: 85vh; padding: 0; border: 0; border-radius: 14px; overflow: auto; }
.bcc-legal-dialog-wide { max-width: 900px; }
.bcc-legal-dialog::backdrop { background: rgba(5, 13, 31, .7); }
.bcc-legal-dialog-inner { position: relative; padding: 2rem 2rem 1.5rem; font-size: .9rem; line-height: 1.6; }
.bcc-legal-dialog h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.bcc-legal-dialog h3 { margin: 1.2rem 0 .3rem; font-size: .95rem; }
.bcc-legal-dialog p { margin: 0 0 .5rem; }
.bcc-legal-close { position: absolute; top: .75rem; right: 1rem; font-size: 1.6rem; line-height: 1; text-decoration: none; }
.bcc-legal-pdf { width: 100%; height: 60vh; border: 1px solid rgba(128, 128, 128, .3); border-radius: 8px; margin-top: .5rem; }
.bcc-legal-dialog:target { display: block; position: fixed; inset: 5vh 0 auto; margin: auto; z-index: 1000; }
.bcc-legal-missing { color: #d63638; font-weight: 700; }

/* Marketing-Intro unter dem Hero (optional je Programm, ab 1.3.0). */
.bcc-promo { padding: 2.5rem 1.5rem; }
.bcc-promo-inner { max-width: 1000px; margin: 0 auto; padding: 1.75rem 2rem; border-left: 5px solid var(--sk-primary, #3c32fa); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--sk-primary, #3c32fa) 8%, transparent); }
.bcc-promo-title { margin: 0 0 .6rem; font-family: var(--sk-font-head, inherit); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.bcc-promo-text { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; max-width: 62ch; }
.bcc-promo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Vier Punkte als 2 × 2 statt 3 + 1 (ein einzelner Punkt in der zweiten Zeile wirkt verloren). */
@media (min-width: 641px) { .bcc-promo-points:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bcc-promo-points li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.bcc-promo-points li::before { content: "✓"; position: absolute; left: 0; color: var(--sk-primary, #3c32fa); font-weight: 800; }

/* Hero mit Programmlogo und Kartenbild (ab 1.3.0). */
.bcc-hero-logo { display: block; height: clamp(96px, 14vw, 150px); width: auto; margin: 0 auto 1.25rem; }
.bcc-hero--card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; align-items: center; max-width: 1100px; margin-left: auto; margin-right: auto; }
.bcc-hero--card .bcc-hero-text { text-align: left; }
.bcc-hero--card .bcc-hero-logo { margin-left: 0; }
.bcc-hero--card .bcc-hero-lead { margin-left: 0; }
.bcc-hero-card img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; border-radius: 18px; transform: rotate(-6deg); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); transition: transform .4s ease; }
.bcc-hero-card img:hover { transform: rotate(-2deg) translateY(-4px); }
@media (max-width: 820px) {
	.bcc-hero--card { grid-template-columns: 1fr; gap: 1.5rem; }
	.bcc-hero--card .bcc-hero-text { text-align: center; }
	.bcc-hero--card .bcc-hero-logo, .bcc-hero--card .bcc-hero-lead { margin-left: auto; margin-right: auto; }
	.bcc-hero-card img { max-width: 320px; transform: rotate(-4deg); }
}

/* Keep artwork contained and application actions visible in every skin. */
.bcc-hero-text, .bcc-hero-card { min-width: 0; }
.bcc-hero-logo { max-width: 100%; object-fit: contain; }
/* Lead bündig mit Überschrift und Buttons (sport.css zentriert ihn sonst per margin: 0 auto). */
@media (min-width: 821px) { body.bcc-skin .bcc-hero--card .bcc-hero-lead { margin-left: 0; margin-right: 0; } }
.bcc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; position: relative; z-index: 1; }
body.bcc-skin .bcc-preparation-link { color: inherit; text-decoration: underline; }
@media (max-width: 820px) { .bcc-hero-actions { justify-content: center; } .bcc-hero-card img { width: 85%; } }
@media (max-width: 640px) { .bcc-hero-logo { height: auto; max-height: 110px; width: auto; } body.bcc-skin .bcc-hero-actions .bcc-btn { padding: .85rem 1.25rem; } }
@media (max-width: 640px) {
 .bcc-promo { padding: 1.25rem 0; }
 .bcc-promo-inner { padding: 1.1rem; }
 .bcc-promo-points { grid-template-columns: 1fr; }
}

/* Seiten nach dem Absenden: schmaler Kopf statt Hero, damit das Ergebnis sofort sichtbar ist. */
.bcc-compact-brand { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem .5rem; }
.bcc-compact-brand img { display: block; height: 72px; width: auto; max-width: 60%; object-fit: contain; }
.bcc-compact-brand span { font-weight: 700; font-size: 1.25rem; }
@media (max-width: 640px) { .bcc-compact-brand img { height: 56px; } }
