/* =========================================================================
   Icehouse – Sektions-/Pattern-Styles (Entwurf D)
   Nutzt die CD-Variablen aus style.css (:root). Greifen für die Block-Patterns
   (Core-Blöcke mit .ih-* Klassen) im Editor und im Frontend.
   ========================================================================= */

/* --- Buttons (Core-Button mit CD-Look) --- */
.ih-section .wp-block-button__link,
.ih-hero .wp-block-button__link {
	font-family: var(--ih-font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .82rem;
	padding: .92em 1.65em;
	border-radius: 4px;
	background: var(--ih-red);
	color: #fff;
	border: 2px solid var(--ih-red);
	transition: .2s;
}
.ih-hero .wp-block-button__link:hover { background: var(--ih-red-dark); border-color: var(--ih-red-dark); }
.wp-block-button.ih-ghost .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.wp-block-button.ih-ghost .wp-block-button__link:hover { border-color: #fff; background: #fff; color: var(--ih-black); }
.wp-block-button.ih-ghost-dark .wp-block-button__link { background: transparent; border-color: var(--ih-black); color: var(--ih-black); }
.wp-block-button.ih-ghost-dark .wp-block-button__link:hover { background: var(--ih-black); color: #fff; }

/* --- HERO --- */
.ih-hero {
	position: relative;
	overflow: hidden;
	background: var(--ih-black);
	color: #fff;
	padding: 108px 0 96px;
	border-top: 6px solid var(--ih-red);
}
.ih-hero::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -40px;
	width: 620px;
	height: 620px;
	background: url('assets/images/signet-red-white.png') no-repeat right bottom;
	background-size: contain;
	opacity: .06;
	pointer-events: none;
	z-index: 0;
}
.ih-hero > * { position: relative; z-index: 1; }
.ih-eyebrow {
	font-family: var(--ih-font-display);
	font-weight: 700;
	font-size: .78rem !important;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #fff;
}
.ih-eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--ih-green); vertical-align: middle; margin-right: 12px; }
.ih-hero-title {
	font-family: var(--ih-font-display) !important;
	font-weight: 900 !important;
	font-size: clamp(2.9rem, 8.4vw, 6.6rem) !important;
	line-height: .95 !important;
	letter-spacing: -.02em;
	color: #fff !important;
	text-transform: uppercase;
	max-width: 16ch;
	margin: .35em 0 0;
}
.ih-hero-title { display: block; }
.ih-hero-title::after { content: ""; display: block; width: 140px; height: 8px; background: var(--ih-red); margin-top: .2em; }
.ih-lead { max-width: 52ch; font-size: 1.18rem; color: #c8ccd2; margin: 1.4em 0 1.8em; }

/* --- Generische Sektion --- */
.ih-section { padding: 92px 0; }
.ih-section.is-dark { background: var(--ih-black); color: #fff; }
.ih-section.is-grey { background: var(--ih-bg); }
.ih-kicker { font-family: var(--ih-font-display); font-weight: 700; font-size: .78rem !important; letter-spacing: .18em; text-transform: uppercase; color: var(--ih-red); }

/* --- MARQUEE (Disziplinen-Laufband) --- */
.ih-marquee { background: var(--ih-red); color: #fff; overflow: hidden; white-space: nowrap; padding: 13px 0; }
.ih-marquee p { margin: 0; display: inline-block; animation: ih-scroll 24s linear infinite; font-family: var(--ih-font-display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .08em; }
@keyframes ih-scroll { to { transform: translateX(-50%); } }

/* --- STATS --- */
.ih-stats .wp-block-column { padding: 34px 26px; border-right: 1px solid var(--ih-line); }
.ih-stats .wp-block-column:last-child { border-right: none; }
.ih-stats .ih-stat-num { font-family: var(--ih-font-display) !important; font-weight: 900 !important; font-size: 3.3rem !important; line-height: 1 !important; color: var(--ih-black) !important; margin: 0; }
.ih-stats .ih-stat-num.is-red { color: var(--ih-red) !important; }
.ih-stats .ih-stat-num.is-green { color: var(--ih-green) !important; }
.ih-stats .ih-stat-label { color: var(--ih-gray); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: .4em 0 0; }

/* --- NEWS-CARDS --- */
.ih-card { background: #fff; border: 1px solid var(--ih-line); border-radius: 9px; overflow: hidden; }
.ih-card .ih-card-media { background: var(--ih-black); min-height: 150px; }
.ih-card .ih-cat { display: inline-block; background: var(--ih-red); color: #fff; font-family: var(--ih-font-display); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; margin: 0 0 10px; }
.ih-card .ih-card-title { font-family: var(--ih-font-body) !important; font-weight: 700 !important; text-transform: none !important; font-size: 1.16rem !important; line-height: 1.28; margin: 0; }
.ih-card-body { padding: 20px 20px 24px; }
.ih-card-body > * + * { margin-top: 12px; }
.ih-card-date { color: var(--ih-gray); font-size: .82rem; margin: 0; }
.ih-section > .ih-kicker { margin-bottom: 8px; }
.ih-section > .wp-block-heading { margin-bottom: 36px; }
.ih-newsletter .wp-block-buttons { justify-content: center; }

/* --- SPLIT-CTA --- */
.ih-panel { border-radius: 10px; padding: 48px 42px; color: #fff; }
.ih-panel.is-red { background: var(--ih-red); }
.ih-panel.is-green { background: var(--ih-green); color: #10210a; }
.ih-panel .ih-panel-title { color: inherit !important; font-size: 2rem !important; margin: 0 0 .4em; }

/* --- NEWSLETTER --- */
.ih-newsletter { background: var(--ih-black); color: #fff; text-align: center; padding: 92px 0; }
.ih-newsletter .ih-nl-title { color: #fff !important; font-size: clamp(2.2rem,6vw,4.2rem) !important; }
.ih-newsletter .ih-lead, .ih-newsletter p { color: #c8ccd2; }

/* Button-Varianten je Sektion */
.ih-marquee p { max-width: none; }
.ih-panel .wp-block-button__link { background: #fff; color: var(--ih-black); border-color: #fff; }
.ih-panel .wp-block-button__link:hover { background: var(--ih-black); color: #fff; border-color: var(--ih-black); }
.ih-newsletter .wp-block-button__link {
	background: var(--ih-red); color: #fff; border: 2px solid var(--ih-red);
	font-family: var(--ih-font-display); font-weight: 700; text-transform: uppercase;
	letter-spacing: .06em; padding: .92em 1.65em; border-radius: 4px;
}
.ih-newsletter .wp-block-button__link:hover { background: var(--ih-red-dark); border-color: var(--ih-red-dark); }
.ih-section .wp-block-button.ih-ghost-dark .wp-block-button__link { background: transparent; border-color: var(--ih-black); color: var(--ih-black); }
.ih-section .wp-block-button.ih-ghost-dark .wp-block-button__link:hover { background: var(--ih-black); color: #fff; }
.ih-section .ih-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 42px; }

@media (max-width: 880px) {
	.ih-stats .wp-block-column { border-right: none; border-bottom: 1px solid var(--ih-line); }
}

/* --- FOOTER (CD) --- */
.ih-footer { background: #0a0a0c; color: #fff; border-top: 4px solid var(--ih-red); padding: 64px 24px 30px; }
.ih-foot-inner { max-width: 1200px; margin: 0 auto; }
.ih-foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.ih-foot-logo { height: 42px; width: auto; margin-bottom: 14px; display: block; }
.ih-foot-brand p { color: #8b9097; font-size: .9rem; max-width: 30ch; margin: 0; }
.ih-foot-col h4 { font-family: var(--ih-font-display); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8b9097; margin: 0 0 16px; }
.ih-foot-col a { display: block; color: #c2c7cd; padding: 5px 0; font-size: .92rem; text-decoration: none; }
.ih-foot-col a:hover { color: var(--ih-red); }
.ih-foot-social { display: flex; gap: 12px; margin-top: 18px; }
.ih-foot-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #c2c7cd; padding: 0; }
.ih-foot-social a:hover { border-color: var(--ih-red); color: var(--ih-red); }
.ih-foot-social svg { width: 18px; height: 18px; }
.ih-foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7e848b; font-size: .83rem; }
.ih-foot-bottom a { color: #7e848b; }
.ih-foot-bottom a:hover { color: var(--ih-red); }
@media (max-width: 880px) { .ih-foot-grid { grid-template-columns: 1fr 1fr; } }

/* --- UNTERSEITEN: Seitenkopf --- */
.ih-pagehero { position: relative; background: var(--ih-black); color: #fff; padding: 84px 0 70px; border-top: 6px solid var(--ih-red); }
.ih-pagehero-eyebrow { font-family: var(--ih-font-display); font-weight: 700; font-size: .78rem !important; letter-spacing: .2em; text-transform: uppercase; color: var(--ih-red); }
.ih-pagehero-title { font-family: var(--ih-font-display) !important; font-weight: 900 !important; font-size: clamp(2.6rem,7vw,5rem) !important; line-height: .95 !important; color: #fff !important; text-transform: uppercase; margin: .25em 0 0; }
.ih-pagehero-sub { color: #c8ccd2; max-width: 52ch; font-size: 1.12rem; margin: .9em 0 0; }

/* --- Text + Bild --- */
.ih-text-media { align-items: center; }
.ih-media-box { background: linear-gradient(135deg,#15263a,#0c1726); border-radius: 10px; aspect-ratio: 4/3; min-height: 240px; }
.ih-text-media h2 { margin-top: 0; }

/* --- Trainingszeiten --- */
.ih-train { background: #fff; border: 1px solid var(--ih-line); border-radius: 9px; padding: 26px 24px; height: 100%; }
.ih-train .ih-train-day { font-family: var(--ih-font-display) !important; font-weight: 800 !important; text-transform: uppercase; font-size: 1.1rem !important; color: var(--ih-black) !important; margin: 0; }
.ih-train .ih-train-time { color: var(--ih-red); font-weight: 700; margin: 8px 0 0; }
.ih-train .ih-train-place { color: var(--ih-gray); font-size: .9rem; margin: 6px 0 0; }

/* --- Ansprechpartner --- */
.ih-contact-card { background: var(--ih-bg); border-left: 4px solid var(--ih-green); border-radius: 0; padding: 28px 30px; max-width: 520px; }
.ih-contact-card .ih-contact-name { font-family: var(--ih-font-display) !important; font-weight: 800 !important; text-transform: uppercase; font-size: 1.25rem !important; margin: 0; }
.ih-contact-card .ih-contact-role { color: var(--ih-gray); margin: 4px 0 12px; }
.ih-contact-card .ih-contact-mail { color: var(--ih-red); font-weight: 600; margin: 0; }

/* --- Abschluss-CTA --- */
.ih-cta { background: var(--ih-red); color: #fff; text-align: center; padding: 72px 24px; }
.ih-cta .ih-cta-title { color: #fff !important; font-size: clamp(2rem,5vw,3.4rem) !important; margin: 0 0 .5em; }
.ih-cta .wp-block-button__link { background: #fff; color: var(--ih-black); border: 2px solid #fff; font-family: var(--ih-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .92em 1.7em; border-radius: 4px; }
.ih-cta .wp-block-button__link:hover { background: var(--ih-black); color: #fff; }
.ih-cta .wp-block-buttons { justify-content: center; }

/* --- Über uns: Vorstand/Team-Grid --- */
.ih-team-card { text-align: center; }
.ih-team-photo { width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg,#15263a,#0c1726); margin: 0 auto 14px; }
.ih-team-name { font-family: var(--ih-font-display) !important; font-weight: 800 !important; text-transform: uppercase; font-size: 1.05rem !important; color: var(--ih-black) !important; margin: 0; }
.ih-team-role { color: var(--ih-gray); font-size: .9rem; margin: 4px 0 0; }
