/*
Theme Name: InnoGFIP
Theme URI: https://innogfip.de
Author: InnoGFIP GmbH
Description: Block-Theme nach dem Corporate-Identity-&-Design-Handbuch der InnoGFIP GmbH (Version 1.0, November 2026). Marineblau trägt, Petrol verbindet.
Version: 1.1.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: innogfip
*/

/* Gestaltungsregeln, die theme.json allein nicht abbilden kann.
   Farben, Schriften und Größen kommen ausschließlich aus theme.json. */

:root {
	--ig-gutter: clamp(24px, 5vw, 64px);
	--ig-section: clamp(72px, 8vw, 96px);
}

/* ---------- Header ---------- */
.ig-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--paper);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .ig-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ig-header { top: 0; position: relative; } }

.ig-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.ig-header .wp-block-navigation {
	font-size: 16px;
	gap: 32px;
}
.ig-header .wp-block-navigation a:hover { text-decoration: underline; }

/* ---------- Logo ---------- */
.ig-logo { display: inline-flex; line-height: 0; }
.ig-logo img { display: block; height: auto; max-width: 100%; }
.ig-logo--header img { width: 200px; }
@media (max-width: 600px) { .ig-logo--header img { width: 168px; } } /* Mindestbreite 160 px */
.ig-logo--footer img { width: 200px; }

/* ---------- Abschnitte ---------- */
.ig-section {
	padding-top: var(--ig-section);
	padding-bottom: var(--ig-section);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.ig-section + .ig-section:not([class*="is-style-section"]) {
	border-top: 1px solid var(--wp--preset--color--line);
}
.ig-hero { padding-top: clamp(72px, 11vw, 144px); }

/* Fließtext: maximal 65–75 Zeichen je Zeile – linksbündig an der Inhaltskante.
   Der Container-Versatz wird nachgerechnet, damit der schmalere Absatz
   nicht in der Mitte steht (Handbuch: klare linke Ausrichtung). */
.ig-section { --ig-content: 1200px; }
.ig-section.ig-article { --ig-content: 760px; }
.is-layout-constrained > p:not(.has-text-align-center) {
	max-width: 70ch;
	margin-left: max(0px, calc((100% - var(--ig-content, 760px)) / 2)) !important;
	margin-right: auto !important;
}
.has-text-align-center { margin-inline: auto; }

/* Keine Lücken zwischen Header, Inhalt und Footer */
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* ---------- Eyebrow / Kapitelauszeichnung ---------- */
/* Kleine Texte bleiben marineblau. */
.is-style-eyebrow {
	font-size: 13px !important;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Lead ---------- */
.is-style-lead {
	font-size: clamp(19px, 1.6vw, 22px) !important;
	line-height: 1.5 !important;
}

/* ---------- Karten ---------- */
.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: clamp(24px, 3vw, 36px);
	height: 100%;
}
.is-style-section-navy .is-style-card {
	background: transparent;
	border-color: rgba(246, 244, 239, 0.22);
}
.is-style-card > :first-child { margin-top: 0; }

/* Akzentlinie – Petrol als verbindendes Element (ca. 5 % der Fläche) */
.is-style-accent-top { position: relative; padding-top: 28px; }
.is-style-accent-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--wp--preset--color--petrol);
}

/* Spalten gleich hoch für Karten */
.wp-block-columns.ig-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.ig-equal > .wp-block-column > .is-style-card { flex: 1; }

/* ---------- Markenportfolio ---------- */
.ig-brand-name {
	font-family: var(--wp--preset--font-family--display) !important;
	font-weight: 400 !important;
	font-size: 32px !important;
	line-height: 1.2;
	margin-bottom: 8px !important;
}
.ig-brand-name a { text-decoration: none; color: inherit; }
.ig-brand-name a:hover { text-decoration: underline; }
.ig-sender {
	font-size: 14px !important;
	opacity: 0.8;
	margin-top: auto !important;
	padding-top: 16px;
}

/* ---------- Liste mit Linien ---------- */
.is-style-lined {
	list-style: none;
	padding-left: 0 !important;
}
.is-style-lined li {
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}
.is-style-lined li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---------- Platzhalter für echte Porträts / Arbeitssituationen ---------- */
.ig-placeholder {
	background: var(--wp--preset--color--line);
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	border-radius: 4px;
	font-size: 14px;
}

/* ---------- Textlink & Aktionszeile ---------- */
.ig-textlink a {
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.ig-textlink a::after { content: " →"; }
.ig-textlink a:hover { border-bottom-color: transparent; }
.ig-cta-row { gap: 16px 32px !important; margin-top: 40px !important; }
.ig-cta-row > * { margin: 0 !important; }

/* ---------- Zwischenüberschrift ---------- */
.ig-subhead {
	font-size: 15px !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: clamp(56px, 7vw, 80px) !important;
	margin-bottom: 32px !important;
}

/* ---------- Tätigkeitsbereiche (Unternehmen) ---------- */
.ig-feature {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 40px;
	margin-top: 40px !important;
}
.ig-feature__label {
	font-size: 15px !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px !important;
}
.ig-feature__title {
	font-family: var(--wp--preset--font-family--display) !important;
	font-weight: 400 !important;
	font-size: clamp(24px, 2.4vw, 30px) !important;
	line-height: 1.25 !important;
	margin-top: 0 !important;
}

/* ---------- Arbeitsschritte ---------- */
.ig-step-no {
	font-family: var(--wp--preset--font-family--display);
	font-size: 40px !important;
	line-height: 1;
	color: var(--wp--preset--color--petrol);
	margin-bottom: 16px !important;
}

/* ---------- Grundsätze ---------- */
.ig-principles li { padding: 20px 0; }
.ig-principles strong { color: var(--wp--preset--color--navy); }

/* ---------- Markenseite ---------- */
.ig-jumplinks {
	list-style: none;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 40px !important;
	font-weight: 700;
}
.ig-jumplinks a { text-decoration: none; border-bottom: 1px solid currentColor; }
.ig-jumplinks a::before { content: "↓ "; color: var(--wp--preset--color--petrol); }
.ig-brand__name {
	font-size: clamp(40px, 5vw, 56px) !important;
	margin-bottom: 8px !important;
}
.ig-brand__claim {
	font-family: var(--wp--preset--font-family--display) !important;
	font-weight: 400 !important;
	font-size: clamp(22px, 2.2vw, 28px) !important;
	margin-top: 0 !important;
	margin-bottom: 24px !important;
}
.ig-card-label {
	font-size: 13px !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px !important;
}
.ig-card-label:not(:first-child) { margin-top: 32px !important; }
.is-style-card .is-style-lined { margin-top: 0; }
.ig-brand + .ig-brand:not([class*="is-style-section"]) { border-top: 0; }

/* ---------- Formular ---------- */
.ig-form form { display: grid; gap: 20px; }
.ig-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .ig-form__row { grid-template-columns: 1fr; } }
.ig-form__field { display: grid; gap: 6px; }
.ig-form label { font-size: 15px; font-weight: 700; color: var(--wp--preset--color--navy); }
.ig-form__req { color: var(--wp--preset--color--navy); }
.ig-form__opt { font-weight: 400; color: var(--wp--preset--color--ink); }
.ig-form input[type="text"],
.ig-form input[type="email"],
.ig-form select,
.ig-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 17px;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 1px solid #A9AFA9;
	border-radius: 3px;
	padding: 12px 14px;
}
.ig-form select { appearance: auto; }
.ig-form textarea { resize: vertical; min-height: 160px; }
.ig-form input:focus, .ig-form select:focus, .ig-form textarea:focus {
	border-color: var(--wp--preset--color--navy);
	outline: 2px solid var(--wp--preset--color--petrol);
	outline-offset: 1px;
}
.ig-form [aria-invalid="true"] { border-color: #A3341F; }
.ig-form__error { color: #A3341F; font-size: 15px; margin: 0; }
.ig-form__hint, .ig-form__privacy, .ig-form__required-note { font-size: 15px !important; line-height: 1.5; margin: 0; }
.ig-form__hint { margin-top: 4px; }
.ig-form__alert, .ig-form__success {
	border-left: 3px solid var(--wp--preset--color--petrol);
	background: var(--wp--preset--color--mist);
	padding: 16px 20px;
	margin-bottom: 24px;
}
.ig-form__alert { border-left-color: #A3341F; }
.ig-form__alert p, .ig-form__success p { margin: 0; }
.ig-form__success p { font-size: 18px; color: var(--wp--preset--color--navy); }
.ig-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ig-form button { cursor: pointer; }

/* ---------- Footer ---------- */
.ig-footer a { text-decoration: none; }
.ig-footer a:hover { text-decoration: underline; }
.ig-footer h2, .ig-footer h3 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.ig-footer ul { list-style: none; padding: 0; margin: 0; }
.ig-footer li { margin: 0 0 8px; }
.ig-footer__bottom {
	border-top: 1px solid rgba(246, 244, 239, 0.18);
	padding-top: 24px;
	font-size: 14px;
	opacity: 0.8;
}

/* ---------- Beiträge ---------- */
.wp-block-post-template.is-layout-grid > li { border-top: 1px solid var(--wp--preset--color--line); padding-top: 24px; }

/* ---------- Bedienbarkeit ---------- */
:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--petrol);
	outline-offset: 4px;
}
.skip-link:focus { background: var(--wp--preset--color--navy); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ---------- Textseiten (Impressum, Datenschutz, Beiträge) ---------- */
/* Georgia nur für die Einstiegsüberschrift; Zwischenüberschriften in Arial (Handbuch S. 07). */
.ig-article .wp-block-post-content h2 {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	margin-top: 48px;
	margin-bottom: 8px;
}
.ig-article .wp-block-post-content h3 {
	font-size: 18px;
	margin-top: 32px;
	margin-bottom: 4px;
}
.ig-article .wp-block-post-content h2 + p,
.ig-article .wp-block-post-content h3 + p { margin-top: 0; }
