/* ==========================================================================
   DerFrosch – Theme-Styles (ergänzt theme.json)
   ========================================================================== */

:root {
	--frosch-navy: var(--wp--preset--color--navy, #001525);
	--frosch-gold: var(--wp--preset--color--gold, #bda600);
	--frosch-header-h: clamp(80px, 9vw, 136px);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }

/* Fokus sichtbar halten (Barrierefreiheit) */
:where(a, button, summary, input):focus-visible {
	outline: 3px solid var(--frosch-gold);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; }
.site-header.is-overlay {
	position: absolute;
	inset-inline: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
}
.site-header.is-solid { background: var(--frosch-navy); }

.site-header__inner {
	padding-left: 0 !important;
	padding-right: clamp(1rem, 3vw, 2.5rem) !important;
	align-items: flex-start;
}
.frosch-logo { display: block; line-height: 0; flex: 0 0 auto; }
.frosch-logo img { width: var(--frosch-header-h); height: var(--frosch-header-h); display: block; }

.frosch-nav { padding-top: clamp(1.25rem, 2.6vw, 2.2rem); }
.frosch-nav .wp-block-navigation-item__content { color: #fff; text-decoration: none; padding: 0.25rem 0; }
.frosch-nav .wp-block-navigation__container { gap: clamp(1rem, 2.4vw, 2.25rem); }
.frosch-nav .wp-block-navigation-item__content:hover,
.frosch-nav .current-menu-item > .wp-block-navigation-item__content,
.frosch-nav [aria-current="page"] { color: var(--frosch-gold); }
.frosch-nav .wp-block-navigation__responsive-container-open { color: #fff; }
.frosch-nav .wp-block-navigation__responsive-container-open svg,
.frosch-nav .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.frosch-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem clamp(1.25rem, 6vw, 3rem);
}
.frosch-nav .is-menu-open .wp-block-navigation__container { gap: 1.25rem; }
.frosch-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; }

/* Seitenränder für volle Sektionen innerhalb des Seiteninhalts */
.wp-block-post-content > .alignfull.has-global-padding,
.wp-block-post-content > .wp-block-cover.alignfull {
	padding-left: var(--wp--style--root--padding-left, 1.25rem);
	padding-right: var(--wp--style--root--padding-right, 1.25rem);
}

/* --------------------------------------------------------------------------
   Hero (Cover-Block mit Klasse .frosch-hero)
   -------------------------------------------------------------------------- */
.frosch-hero.wp-block-cover {
	min-height: min(92vh, 900px);
	align-items: flex-end;
	padding-top: calc(var(--frosch-header-h) + 2rem);
	padding-bottom: clamp(2.5rem, 7vw, 5.5rem);
}
.frosch-hero .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(0, 21, 37, 0.55) 0%, rgba(0, 21, 37, 0.1) 35%, rgba(0, 21, 37, 0.85) 100%) !important;
	opacity: 1 !important;
}
.frosch-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.frosch-hero .wp-block-cover__inner-container > * { max-width: var(--wp--style--global--wide-size); }
.frosch-hero h1 { color: #fff; margin: 0; text-wrap: balance; }
.frosch-hero .frosch-hero__kicker { color: var(--frosch-gold); font-weight: 900; font-size: clamp(1.1rem, 2vw, 1.5rem); margin: 0 0 0.5rem; }
.frosch-hero p { color: rgba(255, 255, 255, 0.92); }
.frosch-hero--short.wp-block-cover { min-height: min(70vh, 680px); }

/* Info-Box „DerFrosch Aktuell“ im Hero */
.frosch-aktuell {
	background: rgba(0, 21, 37, 0.92);
	border: 3px solid var(--frosch-gold);
	color: #fff;
	padding: 1.25rem 1.5rem 1.5rem !important;
	max-width: 22rem;
	margin-left: auto !important;
	margin-right: 0 !important;
}
.frosch-aktuell p { margin: 0; color: #fff; }
.frosch-aktuell .frosch-aktuell__label { color: var(--frosch-gold); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.frosch-aktuell .frosch-aktuell__title { font-weight: 900; font-size: 1.5rem; line-height: 1.1; margin-top: 0.35rem; }
.frosch-aktuell figure { margin: 0 0 1rem; }

/* --------------------------------------------------------------------------
   Typografische Bausteine
   -------------------------------------------------------------------------- */
.is-style-frosch-kicker {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase;
	color: var(--frosch-gold) !important;
	margin-bottom: 0.75rem;
}
.frosch-numhead { text-transform: uppercase; }
.frosch-numhead mark { background: transparent; }

.has-navy-background-color h1,
.has-navy-background-color h2,
.has-navy-background-color h3,
.has-navy-background-color h4 { color: #fff; }
.has-navy-background-color,
.has-navy-background-color p,
.has-navy-background-color li { color: rgba(255, 255, 255, 0.86); }
.has-navy-background-color a:where(:not(.wp-element-button)) { color: var(--frosch-gold); }

.frosch-lead { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; font-weight: 300; color: var(--wp--preset--color--ink); }
.has-navy-background-color .frosch-lead { color: #fff; }

/* Plus-Liste */
.is-style-frosch-plus { list-style: none; padding-left: 0 !important; }
.is-style-frosch-plus li { position: relative; padding-left: 1.6em; margin-bottom: 0.35em; }
.is-style-frosch-plus li::before {
	content: "+";
	position: absolute;
	left: 0;
	top: -0.05em;
	color: var(--frosch-gold);
	font-weight: 900;
	font-size: 1.25em;
}
.frosch-leistungen.is-style-frosch-plus { columns: 2; column-gap: 2rem; }
.frosch-leistungen.is-style-frosch-plus li { break-inside: avoid; font-weight: 700; color: var(--wp--preset--color--ink); }
@media (max-width: 600px) { .frosch-leistungen.is-style-frosch-plus { columns: 1; } }

/* Pfeil-Link (Button-Stil) */
.wp-block-button.is-style-frosch-arrow .wp-block-button__link {
	background: transparent;
	color: var(--frosch-gold);
	padding: 0.4rem 0;
	font-weight: 700;
}
.wp-block-button.is-style-frosch-arrow .wp-block-button__link::before {
	content: "⟶";
	display: inline-block;
	margin-right: 0.6em;
	transition: transform 0.2s ease;
}
.wp-block-button.is-style-frosch-arrow .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--ink); }
.has-navy-background-color .wp-block-button.is-style-frosch-arrow .wp-block-button__link:hover { color: #fff; }
.wp-block-button.is-style-frosch-arrow .wp-block-button__link:hover::before { transform: translateX(4px); }

/* Umrandeter Button auf dunklem Grund */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--frosch-gold);
	color: var(--frosch-gold);
	background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--frosch-gold); color: var(--frosch-navy); }

/* --------------------------------------------------------------------------
   Karten (Leistungen, Argumente)
   -------------------------------------------------------------------------- */
.is-style-frosch-card {
	background: #fff;
	border-top: 5px solid var(--frosch-gold);
	padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	box-shadow: 0 18px 40px -24px rgba(0, 21, 37, 0.35);
	height: 100%;
	display: flex;
	flex-direction: column;
}
.is-style-frosch-card > :last-child { margin-top: auto; padding-top: 1rem; }
.is-style-frosch-card h3 { text-transform: uppercase; }
.has-navy-background-color .is-style-frosch-card,
.has-navy-background-color .is-style-frosch-card p { color: var(--wp--preset--color--body); }
.has-navy-background-color .is-style-frosch-card h3 { color: var(--wp--preset--color--ink); }
.frosch-card__kicker { color: var(--frosch-gold) !important; font-weight: 900; margin: 0 !important; }
.wp-block-columns.frosch-cards > .wp-block-column { display: flex; }
.wp-block-columns.frosch-cards > .wp-block-column > * { flex: 1; }

/* Argumente */
.frosch-argument h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; }
.frosch-argument h3::before { content: "+ "; color: var(--frosch-gold); font-weight: 900; }

/* Bild mit Goldrahmen-Akzent */
.frosch-frame img { box-shadow: 18px 18px 0 0 var(--frosch-gold); }

/* --------------------------------------------------------------------------
   Call-to-Action
   -------------------------------------------------------------------------- */
.frosch-cta { border-top: 6px solid var(--frosch-gold); }
.frosch-cta h2 { text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Wiki-Artikel (Details-Block)
   -------------------------------------------------------------------------- */
.frosch-wiki.wp-block-details {
	border-top: 3px solid var(--frosch-gold);
	border-bottom: 3px solid var(--frosch-gold);
	padding: 0;
}
.frosch-wiki.wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	padding: 1.5rem 3rem 1.5rem 0;
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(1.2rem, 2.4vw, 1.75rem);
	color: var(--wp--preset--color--ink);
	position: relative;
}
.frosch-wiki.wp-block-details > summary::-webkit-details-marker { display: none; }
.frosch-wiki.wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 0.9rem;
	height: 0.9rem;
	border-right: 3px solid var(--frosch-gold);
	border-bottom: 3px solid var(--frosch-gold);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}
.frosch-wiki.wp-block-details[open] > summary::after { transform: translateY(-20%) rotate(-135deg); }
.frosch-wiki.wp-block-details > :not(summary) { max-width: 760px; }
.frosch-wiki h3 { font-size: 1.5rem; margin-top: 2.25rem; }
.frosch-wiki h4 { margin-top: 1.5rem; }
.frosch-wiki .frosch-quellen { font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Referenzen
   -------------------------------------------------------------------------- */
.ref-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.ref-filter button {
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 2px solid var(--frosch-navy);
	background: transparent;
	color: var(--frosch-navy);
	padding: 0.5rem 1rem;
	cursor: pointer;
}
.ref-filter button[aria-pressed="true"],
.ref-filter button:hover { background: var(--frosch-navy); color: #fff; }

.ref-grid.wp-block-group {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	grid-auto-flow: dense;
	gap: 1rem !important;
}
.ref-grid > * { margin: 0 !important; }
.ref-card.wp-block-group {
	position: relative;
	aspect-ratio: 5 / 4;
	background: var(--frosch-navy);
	overflow: hidden;
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.1rem 1.25rem !important;
	gap: 0 !important;
}
.ref-card.ref-card--text.wp-block-group {
	border-left: 5px solid var(--frosch-gold);
	aspect-ratio: auto;
	min-height: 7.5rem;
	background: var(--wp--preset--color--navy-light);
}
.ref-grid .ref-card--image { grid-row: span 2; }
.ref-card .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
}
.ref-card .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.ref-card:hover .wp-block-image img { transform: scale(1.04); }
.ref-card .wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 21, 37, 0) 45%, rgba(0, 21, 37, 0.88) 100%);
}
.ref-card h3,
.ref-card p { position: relative; z-index: 1; margin: 0 !important; }
.ref-card h3 { color: #fff !important; font-size: 1.3rem !important; text-transform: none; }
.ref-card p { color: rgba(255, 255, 255, 0.85) !important; font-size: 0.875rem; }
.ref-card p .ref-cat { color: var(--frosch-gold); }
.ref-card[hidden] { display: none !important; }
@media (max-width: 600px) {
	.ref-grid.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem !important; }
	.ref-card.wp-block-group { aspect-ratio: 1 / 1; padding: 0.75rem !important; }
	.ref-card.ref-card--text.wp-block-group { aspect-ratio: auto; min-height: 6rem; }
	.ref-grid .ref-card--image { grid-row: auto; }
	.ref-card h3 { font-size: 1rem !important; }
	.ref-card p { font-size: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.frosch-awards { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.frosch-awards img { height: 64px; width: auto; }
.frosch-adresse { border-left: 5px solid var(--frosch-gold); padding-left: 1.25rem !important; }

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 0 !important; }
.frosch-footer-logo { width: 220px; height: auto; display: block; margin-bottom: 1rem; }
.site-footer__bar p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.site-footer__bar a { color: #fff; text-decoration: none; }
.site-footer__bar a:hover { color: var(--frosch-gold); }
.site-footer__legal a + a { margin-left: 1.5rem; }

/* --------------------------------------------------------------------------
   Textseiten (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.site-main--text h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.25rem; text-transform: none; }
.site-main--text h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; }
.site-main--text .wp-block-post-title { text-transform: uppercase; }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
