/*
 * dieargentur – Grundstile, Kopfzeile, Fußzeile, Streifenleiste, Textseiten.
 * Werte: tokens.css (aus Figma). Abschnitte und Elemente des Onepagers: Plugin „ARGE Elements“.
 */

/* ── Grundlagen ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-height) + var(--wp-admin--admin-bar--height, 32px)); }
body {
	margin: 0;
	background: var(--color-bg-default);
	color: var(--color-text-primary);
	font-family: var(--font-sans);
	font-size: var(--body-size);
	font-weight: var(--body-weight);
	line-height: var(--body-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, figure, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-underline-position: from-font; }
:focus-visible { outline: 2px solid var(--color-brand-cyan); outline-offset: 3px; }
::selection { background: var(--color-brand-magenta); color: var(--arge-white); }

.is-dark { background-color: var(--color-bg-default); color: var(--color-text-primary); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; padding: 12px 16px; background: var(--arge-white); color: var(--arge-aubergine-900); }
.skip-link:focus { left: 0; }

/* Die drei farbigen Schrägstriche der Absenderzeilen */
.arge-schraegstriche i { font-style: normal; }
.arge-schraegstriche i:nth-child(1) { color: var(--color-brand-cyan); }
.arge-schraegstriche i:nth-child(2) { color: var(--color-brand-orange); }
.arge-schraegstriche i:nth-child(3) { color: var(--color-brand-magenta); }

/* ── Kopfzeile (bleibt stehen) ───────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: var(--header-height);
	padding-inline: var(--inline);
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: clamp(132px, 11.125vw, 178px); height: auto; }
.site-header__rechts { display: flex; align-items: center; gap: 25px; }
.site-nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
	display: block; padding-block: 14px;
	font-size: var(--nav-size); font-weight: var(--nav-weight); line-height: var(--nav-lh); letter-spacing: var(--nav-ls);
	text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: color .2s ease-out;
}
.site-nav__list a:hover, .site-nav__list .is-current > a, .site-nav__list .current-menu-item > a[href*="/"]:not([href*="#"]) { color: var(--color-text-accent-cyan); }
.site-header__kontakt { display: block; flex: none; color: var(--color-brand-orange); line-height: 0; transition: color .2s ease-out; }
.site-header__kontakt:hover { color: var(--color-text-accent-cyan); }
.site-header__kontakt svg { width: 32px; height: 30px; }
.site-header__toggle { display: none; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.site-header__toggle-striche, .site-header__toggle-striche::before, .site-header__toggle-striche::after {
	content: ""; display: block; width: 24px; height: 2px; margin-inline: auto; background: currentColor; transition: transform .2s ease-out, opacity .2s ease-out;
}
.site-header__toggle-striche { position: relative; }
.site-header__toggle-striche::before { position: absolute; top: -8px; }
.site-header__toggle-striche::after { position: absolute; top: 8px; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-striche { background: transparent; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-striche::before { transform: translateY(8px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-striche::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 899.98px) {
	.site-header__rechts { gap: 16px; }
	.site-header__toggle { display: block; }
	.site-nav {
		position: absolute; inset: 100% 0 auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
		padding: 8px var(--inline) 32px; background: var(--color-bg-default); border-top: 1px solid var(--color-border-default);
		transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s;
	}
	.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { padding-block: 14px; font-size: 16px; border-bottom: 1px solid var(--color-border-default); }
}

/* ── Inhalt ──────────────────────────────────────────────────────────── */
.site-main { display: block; }

/* Textseiten (Impressum, Datenschutz) */
.textseite { padding: calc(var(--header-height) + var(--section-padding)) var(--inline) var(--section-padding); }
.textseite__titel { max-width: 855px; margin-bottom: 40px; font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); text-wrap: balance; hyphens: auto; }
.textseite__inhalt { max-width: 855px; }
.textseite__inhalt > * + * { margin-top: 1em; }
/* Im Page Builder gespeicherte Textseite: Der Text steckt in Zeile › Spalte › Textblock von WPBakery. Deren eigene
   Abstände fallen weg, der Text läuft wie auf jeder Textseite (:where hält die Regel so schwach wie die darüber). */
.textseite__inhalt .vc_row { margin-inline: 0; }
.textseite__inhalt .vc_column_container { float: none; width: auto; min-height: 0; padding: 0; }
.textseite__inhalt .vc_column_container > .vc_column-inner { padding: 0; }
.textseite__inhalt .wpb_content_element { margin-bottom: 0; }
.textseite__inhalt :where(.wpb_wrapper) > * + *, .textseite__inhalt :where(.vc_row) + .vc_row { margin-top: 1em; }
.textseite__inhalt h2 { margin-top: 2em; font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); }
.textseite__inhalt h3 { margin-top: 1.6em; font-size: var(--h3-size); font-weight: 400; line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
.textseite__inhalt h2:first-child, .textseite__inhalt h3:first-child { margin-top: 0; }
.textseite__inhalt ul, .textseite__inhalt ol { padding-left: 1.25em; }
.textseite__inhalt a { text-decoration-color: var(--color-brand-magenta); text-decoration-thickness: 2px; text-underline-offset: .15em; overflow-wrap: anywhere; }
.textseite__inhalt a:hover { color: var(--color-text-accent-magenta); }
/* Offene Angaben in eckigen Klammern (inc/platzhalter.php): als Kästchen, damit keine übersehen wird */
.platzhalter { padding: .15em .5em; border: 1px dashed var(--color-brand-magenta); background: var(--color-bg-subtle); color: var(--color-text-accent-magenta); font-family: var(--font-mono); font-size: .8125em; line-height: 1.9; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.arge-inhalt--unterseite { padding-top: var(--header-height); }

/* ── Fußzeile ────────────────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--color-border-default); font-size: var(--small-size); line-height: var(--small-lh); scroll-margin-top: 0; }
.site-footer__oben { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--col-gap); padding: 100px var(--inline); }
.site-footer__logo img { width: 212px; height: auto; }
.site-footer__agentur { display: flex; flex-direction: column; gap: 20px; }
.site-footer__adresse { color: var(--color-text-secondary); }
.site-footer__adresse > * { display: block; }
.site-footer__name { font-weight: 700; }
.site-footer__agentur--cyan .site-footer__name { color: var(--color-text-accent-cyan); }
.site-footer__agentur--orange .site-footer__name { color: var(--color-text-accent-orange); }
.site-footer__agentur--magenta .site-footer__name { color: var(--color-text-accent-magenta); }
.site-footer__kontakt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.site-footer__kontakt a { overflow-wrap: anywhere; }
.site-footer__kontakt a:hover { color: var(--color-text-accent-cyan); }
.site-footer__telefon { text-decoration: none; }
.site-footer__unten {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
	margin-inline: 0; padding: 35px var(--inline) 50px; border-top: 1px solid var(--color-brand-orange);
	font-family: var(--font-mono); font-size: var(--label-size); line-height: var(--label-lh); letter-spacing: var(--label-ls); text-transform: uppercase;
	color: var(--color-text-secondary);
}
.site-footer__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-footer__list a:hover { color: var(--color-text-primary); }

@media (max-width: 1099.98px) {
	.site-footer__oben { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 72px; }
	.site-footer__logo { grid-column: 1 / -1; }
}
@media (max-width: 699.98px) {
	.site-footer__oben { grid-template-columns: minmax(0, 1fr); padding-block: 56px; }
	.site-footer__logo img { width: 170px; }
}

/* ── Streifenleiste (steht am unteren Fensterrand) ───────────────────── */
.streifenleiste { position: fixed; inset: auto 0 0; z-index: 90; height: var(--stripe-bar-height); pointer-events: none; }
.streifenleiste svg { display: block; width: 100%; height: 100%; max-width: none; }
@media (max-width: 699.98px) { .streifenleiste { height: 8px; } }
@media print { .site-header, .streifenleiste { position: static; } }
