/*
Theme Name: Glaeser-ITService
Author: Glaeser-ITService
Description: Block-Theme für Glaeser-ITService. Dunkler Kopfbereich, helle Inhaltsbereiche, Schriften lokal eingebunden.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glaeser-itservice
*/

/* Abstände zwischen den großen Bereichen: jeder Bereich bringt seinen eigenen Innenabstand mit */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks .gi-main > .wp-block-group { margin-block-start: 0; }
.gi-section { padding-block: 88px; }
.gi-section > h2 { margin-block: 0 40px; }

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Kopfbereich */
.gi-header__inner {
	padding-block: 14px;
	border-bottom: 1px solid #2c3340;
	gap: 12px 32px;
}
.gi-header a { color: #fff; text-decoration: none; }
.gi-header a:hover { text-decoration: underline; }
.gi-header .wp-block-site-title { margin: 0; }
.gi-header .wp-block-site-title a { display: inline-flex; align-items: center; min-height: 44px; }
.gi-header .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	margin-right: 12px;
	background: var(--wp--preset--color--accent);
}
.gi-header .wp-block-navigation { font-size: 16px; font-weight: 500; }
.gi-header .wp-block-navigation .wp-block-navigation__container { gap: 4px 28px; }
.gi-header .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; }

/* Einstieg */
.gi-hero { padding-block: 96px 104px; }
.gi-hero .gi-hero__cols { gap: 48px 64px; margin: 0; }
.gi-hero h1 { margin: 0; letter-spacing: -0.02em; }
.gi-hero .gi-hero__lead { max-width: 540px; margin-block: 24px 0; font-size: 19px; color: #b8c0cc; }
.gi-hero .wp-block-buttons { margin-block-start: 32px; gap: 12px; }
.gi-hero .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff;
	border: 1px solid #5b6676;
	padding: 12px 24px;
}
.gi-hero-links { border-top: 1px solid #2c3340; }
.gi-hero-links > .gi-hero-link {
	position: relative;
	margin: 0;
	padding: 22px 40px 22px 0;
	border-bottom: 1px solid #2c3340;
}
.gi-hero-link > p { margin: 0; font-size: 15px; color: #b8c0cc; }
.gi-hero-link > p:first-child {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	line-height: 1.3;
}
.gi-hero-link a { color: #fff; text-decoration: none; }
.gi-hero-link a::after { content: ""; position: absolute; inset: 0; }
.gi-hero-link::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translateY(-50%) rotate(45deg);
}
.gi-hero-link:hover a { text-decoration: underline; }

/* Leistungen */
.gi-service.wp-block-columns {
	gap: 24px 64px;
	margin-block: 0;
	padding-block: 32px 16px;
	border-top: 1px solid var(--wp--preset--color--line);
}
.gi-service h3 { margin: 0 0 12px; }
.gi-service p { margin: 0; color: var(--wp--preset--color--muted); }
ul.gi-checklist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	column-gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.gi-checklist li { padding: 14px 0; border-bottom: 1px solid #e5e7eb; font-weight: 500; }

/* Für wen und Kontakt: Karten */
.gi-cards.wp-block-columns { gap: 24px; margin: 0; }
.gi-card { height: 100%; padding: 32px; background: #fff; }
.gi-card > * { margin-block: 0 12px; }
.gi-card > *:last-child { margin-block-end: 0; }
.gi-card p { color: var(--wp--preset--color--muted); }
.gi-card--privat::before,
.gi-card--firma::before {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--gi-icon) center / contain no-repeat;
	mask: var(--gi-icon) center / contain no-repeat;
}
.gi-card--privat { --gi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7v9H4zM10 20v-6h4v6'/%3E%3C/svg%3E"); }
.gi-card--firma { --gi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V5h10v15M14 10h6v10M2 20h20M8 9h2M8 13h2M8 17h2'/%3E%3C/svg%3E"); }

/* Ablauf */
.gi-steps.wp-block-columns { gap: 32px 40px; margin: 0; }
.gi-step { padding-top: 20px; border-top: 3px solid var(--wp--preset--color--contrast); }
.gi-step > * { margin-block: 0 8px; }
.gi-step h3 { font-family: var(--wp--preset--font-family--body); font-size: 20px; letter-spacing: 0; }
.gi-step p { color: var(--wp--preset--color--muted); }
.gi-step p.gi-step__num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--contrast);
}

/* Kontakt */
.gi-contact.wp-block-columns { gap: 40px 64px; margin: 0; }
.gi-contact h2 { margin: 0 0 20px; }
.gi-contact p { color: var(--wp--preset--color--muted); }
.gi-contact p.gi-contact-item { margin-block: 20px 0; font-size: 14px; }
.gi-contact-item strong {
	display: block;
	font-size: 20px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

/* Unterseiten und Beiträge */
.gi-page { padding-block: 64px 88px; }
.gi-page .wp-block-post-title { margin-block: 0 32px; font-size: var(--wp--preset--font-size--xx-large); }

/* Fußbereich */
.gi-footer { font-size: 15px; color: #b8c0cc; }
.gi-footer__inner { padding-block: 16px; gap: 4px 32px; }
.gi-footer p { margin: 0; }
.gi-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.gi-footer a:hover { text-decoration: underline; }
.gi-footer .gi-footer__links a + a { margin-left: 28px; }

@media (max-width: 781px) {
	.gi-section { padding-block: 56px; }
	.gi-hero { padding-block: 56px 64px; }
}
