/*
Theme Name:   LUNA Child
Theme URI:    https://luna-fh.de
Description:  Child-Theme für LUNA Familien- und Jugendhilfe. Enthält die theme.json mit Farbpalette, Schriftskala und Abständen sowie eigene Anpassungen.
Author:       LUNA Familien- und Jugendhilfe
Author URI:   https://luna-fh.de
Template:     kadence
Version:      1.0.2
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  luna-child
*/

/* ============================================================
   DIESE DATEI ERSETZT DIE BISHERIGE style.css VOLLSTÄNDIG.
   Alte Datei überschreiben, nicht ergänzen.

   Ergänzend im Customizer einstellen:
   Allgemein > Layout > Inhaltsbreite auf ca. 860 Pixel
   ============================================================ */


/* ------------------------------------------------------------
   Grundlagen
   ------------------------------------------------------------ */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Silbentrennung nur auf schmalen Displays, wo sie wirklich hilft */
@media (max-width: 600px) {
	p, li {
		hyphens: auto;
		-webkit-hyphens: auto;
	}
}


/* ------------------------------------------------------------
   Schriftgrößen — überschreibt die Kadence-Standardwerte
   ------------------------------------------------------------ */

.entry-content h1,
h1.entry-title {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	margin-bottom: 1rem !important;
}

.entry-content h2 {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem) !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.015em !important;
	margin-top: 3rem !important;
	margin-bottom: 0.75rem !important;
}

.entry-content h3 {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1.0625rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	margin-bottom: 0.5rem !important;
}

.entry-content p,
.entry-content li {
	font-size: 1.0625rem !important;
	line-height: 1.75 !important;
}

.entry-content .has-large-font-size {
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem) !important;
	line-height: 1.6 !important;
}

.entry-content .has-small-font-size {
	font-size: 0.9375rem !important;
}

/* Überschrift in Karten nicht mit riesigem Abstand nach oben */
.wp-block-group h2,
.wp-block-column h2 {
	margin-top: 0 !important;
}

.entry-content > h1:first-child,
.entry-content > h2:first-child {
	margin-top: 0 !important;
}


/* ------------------------------------------------------------
   Farben — Kadence-Palette überstimmen
   ------------------------------------------------------------ */

.entry-content .has-text-muted-color,
.entry-content .has-text-muted-color a:not(.wp-block-button__link) {
	color: #5a6570 !important;
}

.entry-content .has-accent-color {
	color: #1a72b8 !important;
}

.entry-content .has-base-soft-background-color {
	background-color: #f6f7f5 !important;
}

.entry-content .has-accent-soft-background-color {
	background-color: #eaf2f9 !important;
}

.entry-content .has-line-border-color {
	border-color: #e2e5e0 !important;
}


/* ------------------------------------------------------------
   Textlinks im Inhalt
   ------------------------------------------------------------ */

.entry-content a:not(.wp-block-button__link) {
	color: #1a72b8;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

.entry-content a:not(.wp-block-button__link):hover {
	text-decoration: none;
}


/* ------------------------------------------------------------
   Spalten und Karten
   ------------------------------------------------------------ */

.wp-block-columns .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns .wp-block-column > .wp-block-group {
	width: 100%;
	flex: 1;
}

.wp-block-group.has-border-color {
	transition: border-color 200ms ease;
}

.wp-block-group.has-border-color:hover {
	border-color: #1a72b8;
}

/* Etwas mehr Luft zwischen den Spalten */
.entry-content .wp-block-columns {
	gap: 2rem;
}


/* ------------------------------------------------------------
   Abstände zwischen den Abschnitten
   ------------------------------------------------------------ */

.entry-content > .wp-block-columns,
.entry-content > .wp-block-group {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}


/* ------------------------------------------------------------
   Sanftes Einblenden beim Scrollen
   CSS-Klasse "reveal" am Block setzen:
   Blockeinstellungen > Erweitert > Zusätzliche CSS-Klasse
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {

	.reveal {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 600ms ease, transform 600ms ease;
	}

	.reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

.no-js .reveal,
.reveal.is-visible {
	opacity: 1;
	transform: none;
}


/* ------------------------------------------------------------
   Hero-Bereich (Cover-Block)
   ------------------------------------------------------------ */

.wp-block-cover h1 {
	margin-top: 0 !important;
	color: #ffffff !important;
}

.wp-block-cover .wp-block-cover__inner-container > * {
	max-width: 46ch;
}


/* ------------------------------------------------------------
   Barrierefreiheit
   ------------------------------------------------------------ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid #1a72b8;
	outline-offset: 3px;
	border-radius: 3px;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: #ffffff;
	color: #1c2124;
	border-radius: 6px;
}


/* ------------------------------------------------------------
   Druckansicht
   ------------------------------------------------------------ */

@media print {

	.wp-block-buttons,
	nav,
	footer {
		display: none;
	}

	body {
		font-size: 11pt;
		color: #000;
	}
}
.wp-block-cover h1 {
	font-size: clamp(2rem, 1.3rem + 2.8vw, 2.9rem) !important;
	line-height: 1.15 !important;
}
.wp-block-cover {
	border-radius: 8px;
	overflow: hidden;
}

.wp-block-cover h1 {
	font-size: clamp(2rem, 1.3rem + 2.8vw, 2.9rem) !important;
	line-height: 1.15 !important;
}
.wp-block-cover__inner-container > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100%;
}

.wp-block-cover__inner-container > h1 {
	max-width: 18ch;
}

.wp-block-cover__inner-container > p {
	max-width: 44ch;
}
luna-footer {
	display: grid;
	grid-template-columns: 1.1fr 1.2fr 0.8fr;
	gap: 3rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 3.5rem 1.5rem 2.5rem;
	color: #ffffff;
	text-align: left;
}

@media (max-width: 900px) {
	.luna-footer {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
}

@media (max-width: 600px) {
	.luna-footer {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 2.5rem 1.25rem 2rem;
	}
}

/* --- LUNA Footer --- */

.footer-widget-area .luna-footer,
.footer-widget-area .luna-footer p,
.footer-widget-area .luna-footer li,
.footer-widget-area .luna-footer span {
	color: rgba(255,255,255,0.88) !important;
	text-align: left !important;
}

.footer-widget-area .luna-footer a {
	color: #ffffff !important;
	text-decoration: none !important;
}

.footer-widget-area .luna-footer a:hover {
	text-decoration: underline !important;
}

.footer-widget-area .luna-footer ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.footer-widget-area .luna-footer li {
	margin-bottom: 0.55rem !important;
	font-size: 0.9375rem !important;
	line-height: 1.6 !important;
}

.footer-widget-area .luna-footer__brand {
	font-family: var(--wp--preset--font-family--heading), Georgia, serif !important;
	font-size: 1.125rem !important;
	color: #ffffff !important;
	margin: 0 0 0.9rem !important;
}

.footer-widget-area .luna-footer__head {
	font-size: 0.75rem !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: rgba(255,255,255,0.62) !important;
	margin: 0 0 0.9rem !important;
}

.footer-widget-area .luna-footer__head--spaced {
	margin-top: 1.75rem !important;
}

.footer-widget-area .luna-footer__text {
	font-size: 0.9375rem !important;
	line-height: 1.7 !important;
	margin: 0 0 1.25rem !important;
}

.footer-widget-area .luna-footer__note {
	font-size: 0.8125rem !important;
	line-height: 1.6 !important;
	margin: 1.75rem 0 0 !important;
	padding-top: 1rem !important;
	border-top: 1px solid rgba(255,255,255,0.15) !important;
	color: rgba(255,255,255,0.62) !important;
}

.footer-widget-area .luna-footer__contact li {
	display: flex !important;
	align-items: center !important;
	gap: 0.7rem !important;
}

.footer-widget-area .luna-footer__icon {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	color: rgba(255,255,255,0.55) !important;
}

.footer-widget-area .luna-footer__nav--legal {
	margin-top: 1.75rem !important;
	padding-top: 1rem !important;
	border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.site-bottom-footer-wrap,
.site-bottom-footer-wrap p,
.site-bottom-footer-wrap a,
.site-bottom-footer-inner-wrap,
.site-bottom-footer-inner-wrap p,
.site-bottom-footer-inner-wrap a {
	color: rgba(255,255,255,0.6) !important;
	font-size: 0.8125rem !important;
}

.site-bottom-footer-wrap a:hover,
.site-bottom-footer-inner-wrap a:hover {
	color: #ffffff !important;
}
.footer-widget-area .luna-footer__offices {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 1.5rem !important;
	margin-bottom: 1.25rem !important;
}

.footer-widget-area .luna-footer__offices p {
	margin: 0 !important;
}

@media (max-width: 500px) {
	.footer-widget-area .luna-footer__offices {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}
}