/* coobic – ergänzende Styles (Farben/Schriften kommen aus theme.json) */

/* Kopfzeile bleibt beim Scrollen sichtbar */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
.wp-site-blocks > * + * { margin-block-start: 0; }

.site-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.site-header .wp-block-navigation a { color: var(--wp--preset--color--text); text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--petrol-dark); }
.site-header .site-logo-img { margin: 0; }
.site-header .site-logo-img img { display: block; height: auto; }

/* Dachzeile über Überschriften */
.is-style-eyebrow,
.eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--petrol-dark);
}
.has-ink-background-color .is-style-eyebrow,
.has-ink-background-color .eyebrow { color: var(--wp--preset--color--sky); }

/* Abschnitts-Kopf: Dachzeile dicht an der Überschrift */
.section-head { gap: 8px !important; }
.section-head > * { margin: 0 !important; }

/* Karten */
.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 22px;
}
.has-ink-background-color .is-style-card,
.is-style-card.is-dark {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.is-style-card > * { margin-block: 0; }
.is-style-card > * + * { margin-block-start: 12px; }

.cards { gap: 16px !important; }
.cards > * { flex: 1 1 300px; min-width: 0; }
.cards > .card-max { max-width: 640px; }

.card-head { justify-content: space-between !important; align-items: center !important; min-height: 48px; }
.card-head > * { margin: 0 !important; }
.card-logo img { height: 48px; width: auto; display: block; }
.card-logo { margin: 0; }
.brand-word { font-family: var(--wp--preset--font-family--alata); font-size: 26px; letter-spacing: 3px; color: var(--wp--preset--color--ink); }
.more-link a { font-weight: 600; text-decoration: none; }

.badge {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: var(--wp--preset--color--petrol-pale);
	color: #0B5A6B;
}
.badge.is-muted { background: #ECEFF1; color: var(--wp--preset--color--muted); }

/* Kennzahlen */
.stats { gap: 12px !important; }
.stats .is-style-card { padding: 16px; }
.stats .is-style-card > * + * { margin-block-start: 4px; }
.stat-number {
	font-family: var(--wp--preset--font-family--alata);
	font-size: 28px;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}
.stat-label { font-size: 14px; color: var(--wp--preset--color--muted); }

/* Zeitleiste */
ul.timeline {
	list-style: none;
	margin: 8px 0 0 6px;
	padding: 0;
	border-left: 2px solid #C5D0D5;
}
ul.timeline li { position: relative; padding: 0 0 18px 20px; color: var(--wp--preset--color--muted); font-size: 15px; }
ul.timeline li:last-child { padding-bottom: 4px; }
ul.timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--petrol);
}
ul.timeline li strong {
	display: block;
	font-family: var(--wp--preset--font-family--alata);
	font-weight: 400;
	font-size: 16px;
	color: var(--wp--preset--color--text);
}

/* Bilder */
.hero-img { margin: 0; }
.hero-img img {
	display: block;
	width: 100%;
	height: clamp(220px, 32vw, 460px);
	object-fit: cover;
	object-position: center 40%;
	border-radius: 14px;
}
.portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	border-radius: 12px;
}
.portrait { margin: 0; }

/* Hero */
.hero .wp-block-columns { gap: 32px 56px; }
.hero .wp-block-buttons > .wp-block-button { flex: 1 1 200px; }
.hero .wp-block-button__link { width: 100%; }

/* Kontakt-Buttons groß, auf dem Handy untereinander */
.contact-buttons { gap: 12px !important; }
.contact-buttons > .wp-block-button { flex: 1 1 260px; }
.contact-buttons .wp-block-button__link {
	width: 100%;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	border-radius: 12px;
}
.contact-buttons .is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--text);
}
.has-ink-background-color .contact-buttons .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: #4E6470;
	color: var(--wp--preset--color--white);
}

/* Fußzeile */
.site-footer a { color: var(--wp--preset--color--white); }
.site-footer p { margin: 0; }
.footer-links a { display: inline-block; padding: 10px 0; margin-right: 20px; }

/* Ausgeblendete Blöcke: CSS-Klasse „is-hidden“ (Block → Erweitert → Zusätzliche CSS-Klasse) */
.is-hidden { display: none !important; }

/* Rechtstexte */
.legal h2 { font-size: 22px; margin-top: 32px; }

/* Weißes Band mit Linien oben/unten */
.band { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* Dunkle Flächen: Überschriften und Kontur-Buttons hell */
.has-ink-background-color h1,
.has-ink-background-color h2,
.has-ink-background-color h3 { color: var(--wp--preset--color--white); }
.has-ink-background-color .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: #4E6470;
}
.has-ink-background-color .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--white); }
.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--text); }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--white); }

/* Logo in der Kachel: feste Höhe, auch im Editor */
.card-logo { flex: 0 1 auto; max-width: 200px; }
.card-logo img { height: 48px !important; width: auto !important; max-width: 100%; }
.card-head .badge { flex-shrink: 0; }


/* Sprachumschalter */
.site-header .lang-switch a { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.site-header .lang-switch.is-current-lang a { color: var(--wp--preset--color--petrol-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Sprungmarken nicht unter der fixierten Kopfzeile verstecken */
[id] { scroll-margin-top: 88px; }
