/* ==========================================================================
   ZERT Gutachter – Design-System
   ========================================================================== */

:root{
	--zg-primary:      #17324d;   /* dunkles Petrol-Blau – Vertrauen, Seriosität */
	--zg-primary-dark: #0e2033;
	--zg-accent:       #b8863b;   /* gedecktes Gold – hochwertig, dezent */
	--zg-accent-light: #d4a15c;
	--zg-bg:           #fbfaf7;
	--zg-bg-alt:       #f2efe8;
	--zg-text:         #2b2b2b;
	--zg-text-light:   #5c5c5c;
	--zg-heading:      #17324d;
	--zg-border:       #e2ddd1;
	--zg-white:        #ffffff;
	--zg-radius:       6px;
	--zg-shadow:       0 4px 18px rgba(23,50,77,.08);
	--zg-shadow-hover: 0 10px 28px rgba(23,50,77,.14);
	--zg-container:    1180px;
}

/* ---------- Layout-Hilfsklassen ---------- */
.zg-container{
	width: 100%;
	max-width: var(--zg-container);
	margin-inline: auto;
	padding-inline: 24px;
}
.zg-section{ padding: 72px 0; }
.zg-section--alt{ background: var(--zg-bg-alt); }
.zg-section--dark{ background: var(--zg-primary); color: #dfe7ee; }
.zg-section--dark h2, .zg-section--dark h3{ color: #fff; }
.zg-center{ text-align: center; }
.zg-eyebrow{
	display: inline-block;
	color: var(--zg-accent);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .78rem;
	font-weight: 700;
	margin-bottom: .8em;
}
.zg-lead{ font-size: 1.15rem; color: var(--zg-text-light); max-width: 720px; }
.zg-lead.zg-center{ margin-inline: auto; }

/* ---------- Buttons ---------- */
.zg-btn{
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .9em 1.8em;
	border-radius: var(--zg-radius);
	background: var(--zg-primary);
	color: #fff;
	font-weight: 700;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
	box-shadow: var(--zg-shadow);
	border: 2px solid var(--zg-primary);
}
.zg-btn:hover, .zg-btn:focus{
	background: var(--zg-primary-dark);
	border-color: var(--zg-primary-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--zg-shadow-hover);
}
.zg-btn--accent{ background: var(--zg-accent); border-color: var(--zg-accent); }
.zg-btn--accent:hover{ background: #9c7130; border-color: #9c7130; }
.zg-btn--outline{
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,.6);
	box-shadow: none;
}
.zg-btn--outline:hover{ background: rgba(255,255,255,.12); border-color: #fff; color:#fff; }

/* ---------- Header ---------- */
.zg-header{
	background: var(--zg-white);
	border-bottom: 1px solid var(--zg-border);
	position: sticky;
	top: 0;
	z-index: 999;
}
.zg-header__inner{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 14px;
}
.zg-brand{
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: Georgia, serif;
	color: var(--zg-heading);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.15;
}
.zg-brand img{ max-height: 56px; width: auto; }
.zg-brand small{
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
	font-size: .68rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--zg-text-light);
}

/* Navigation */
.zg-nav-toggle{
	display: none;
	background: var(--zg-primary);
	color: #fff;
	border: 0;
	border-radius: var(--zg-radius);
	padding: .55em .8em;
	cursor: pointer;
	font-size: 1rem;
}
.zg-primary-menu{
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.zg-primary-menu li{ position: relative; }
.zg-primary-menu a{
	display: block;
	padding: .7em .85em;
	color: var(--zg-text);
	font-weight: 600;
	font-size: .96rem;
	border-radius: var(--zg-radius);
}
.zg-primary-menu > li > a:hover,
.zg-primary-menu > li > a:focus,
.zg-primary-menu li.current-menu-item > a{
	color: var(--zg-primary);
	background: var(--zg-bg-alt);
}
.zg-primary-menu .sub-menu{
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	background: #fff;
	border: 1px solid var(--zg-border);
	border-radius: var(--zg-radius);
	box-shadow: var(--zg-shadow-hover);
	min-width: 260px;
	padding: 6px;
	list-style: none;
	margin: 0;
	z-index: 20;
}
.zg-primary-menu li:hover > .sub-menu,
.zg-primary-menu li:focus-within > .sub-menu{ display: block; }
.zg-primary-menu .sub-menu a{ font-weight: 500; }

/* ---------- Hero ---------- */
.zg-hero{
	position: relative;
	background: linear-gradient(135deg, var(--zg-primary) 0%, var(--zg-primary-dark) 100%);
	color: #fff;
	overflow: hidden;
}
.zg-hero__inner{
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
	padding-block: 88px;
}
.zg-hero h1{ color: #fff; }
.zg-hero .zg-lead{ color: #cfd9e3; }
.zg-hero__actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2em; }
.zg-hero__badges{
	display: flex;
	gap: 22px;
	margin-top: 2.6em;
	flex-wrap: wrap;
	font-size: .88rem;
	color: #cfd9e3;
}
.zg-hero__badges span{ display:flex; align-items:center; gap:.5em; }
.zg-hero__badges span::before{ content:"✓"; color: var(--zg-accent-light); font-weight:700; }
.zg-hero__media img{
	border-radius: var(--zg-radius);
	box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* ---------- Cards / Leistungen ---------- */
.zg-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 48px;
}
.zg-card{
	background: #fff;
	border: 1px solid var(--zg-border);
	border-radius: var(--zg-radius);
	padding: 32px 28px;
	box-shadow: var(--zg-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.zg-card:hover{ transform: translateY(-4px); box-shadow: var(--zg-shadow-hover); }
.zg-card__icon{
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--zg-bg-alt);
	color: var(--zg-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 18px;
}
.zg-card h3{ margin-bottom: .5em; font-size: 1.15rem; }
.zg-card p{ color: var(--zg-text-light); margin-bottom: 0; font-size: .96rem; }

/* ---------- Über mich / Vita ---------- */
.zg-about{
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 56px;
	align-items: start;
}
.zg-about__photo img{
	border-radius: var(--zg-radius);
	box-shadow: var(--zg-shadow);
}
.zg-timeline{ list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--zg-border); }
.zg-timeline li{ position: relative; padding: 0 0 22px 26px; }
.zg-timeline li::before{
	content:"";
	position: absolute; left: -7px; top: 4px;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--zg-accent);
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px var(--zg-accent);
}
.zg-timeline strong{ color: var(--zg-primary); display:block; font-size: .82rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom: 2px;}

/* ---------- Trust strip ---------- */
.zg-trust{
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	justify-content: center;
	padding-block: 36px;
	border-top: 1px solid var(--zg-border);
	border-bottom: 1px solid var(--zg-border);
	background: var(--zg-white);
}
.zg-trust img{ max-height: 64px; width: auto; filter: grayscale(15%); }

/* ---------- Kontakt ---------- */
.zg-contact{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}
.zg-contact-card{
	background: #fff;
	border: 1px solid var(--zg-border);
	border-radius: var(--zg-radius);
	padding: 30px;
	box-shadow: var(--zg-shadow);
	margin-bottom: 20px;
}
.zg-contact-card h3{ font-size: 1.05rem; margin-bottom:.4em; }
.zg-contact-card address{ font-style: normal; color: var(--zg-text-light); line-height: 1.7; }
.zg-social{ display:flex; gap:12px; margin-top: 14px; }
.zg-social a{
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--zg-bg-alt); color: var(--zg-primary);
	display:flex; align-items:center; justify-content:center;
	font-weight: 700; font-size: .82rem;
}
.zg-social a:hover{ background: var(--zg-primary); color:#fff; }

/* Formular */
.zg-form{ background:#fff; border:1px solid var(--zg-border); border-radius: var(--zg-radius); padding: 32px; box-shadow: var(--zg-shadow); }
.zg-field{ margin-bottom: 20px; }
.zg-field label{ display:block; font-weight:600; margin-bottom:.4em; font-size:.92rem; }
.zg-field input[type=text],
.zg-field input[type=email],
.zg-field textarea{
	width: 100%;
	padding: .8em .9em;
	border: 1px solid var(--zg-border);
	border-radius: var(--zg-radius);
	font-family: inherit;
	font-size: 1rem;
	background: var(--zg-bg);
}
.zg-field input:focus, .zg-field textarea:focus{
	outline: none; border-color: var(--zg-primary);
	box-shadow: 0 0 0 3px rgba(23,50,77,.12);
}
.zg-field--check{ display:flex; align-items:flex-start; gap:.6em; font-size: .88rem; color: var(--zg-text-light); }
.zg-field--check input{ margin-top: .3em; }
.zg-hp{ position:absolute !important; left:-9999px !important; top:-9999px; }
.zg-form-notice{ padding: 14px 18px; border-radius: var(--zg-radius); margin-bottom: 20px; font-size: .95rem; }
.zg-form-notice--ok{ background:#e7f4ea; color:#215732; border:1px solid #bfe3c8; }
.zg-form-notice--err{ background:#fbeaea; color:#7a2020; border:1px solid #f0c4c4; }

/* ---------- CTA-Streifen ---------- */
.zg-cta{ text-align:center; }
.zg-cta h2{ color:#fff; }

/* ---------- Beiträge / Fachbeiträge ---------- */
.zg-post-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 40px; }
.zg-post-card{ background:#fff; border:1px solid var(--zg-border); border-radius: var(--zg-radius); overflow:hidden; box-shadow: var(--zg-shadow); display:flex; flex-direction:column; }
.zg-post-card__thumb{ aspect-ratio: 16/10; overflow:hidden; background: var(--zg-bg-alt); }
.zg-post-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.zg-post-card__body{ padding: 22px; flex:1; display:flex; flex-direction:column; }
.zg-post-card time{ font-size:.78rem; color: var(--zg-text-light); text-transform:uppercase; letter-spacing:.04em; }
.zg-post-card h3{ font-size:1.05rem; margin: .4em 0; }
.zg-post-card p{ color: var(--zg-text-light); font-size:.92rem; flex:1; }

.zg-content article{ margin-bottom: 56px; }
.zg-content .entry-title{ margin-bottom:.3em; }
.zg-content .entry-meta{ color: var(--zg-text-light); font-size:.85rem; margin-bottom: 1.4em; }
.zg-pagination{ display:flex; gap:10px; margin-top: 40px; }
.zg-pagination a, .zg-pagination span{
	padding:.6em 1em; border:1px solid var(--zg-border); border-radius: var(--zg-radius); font-size:.9rem;
}
.zg-pagination .current{ background: var(--zg-primary); color:#fff; border-color: var(--zg-primary); }

/* ---------- Sidebar / Widgets ---------- */
.zg-layout{ display:grid; grid-template-columns: 2.1fr 1fr; gap: 56px; }
.widget{ background:#fff; border:1px solid var(--zg-border); border-radius: var(--zg-radius); padding: 26px; margin-bottom: 26px; }
.widget h2, .widget .widgettitle{ font-size: 1.05rem; margin-bottom: .8em; }
.widget ul{ list-style:none; margin:0; padding:0; }
.widget ul li{ padding: .5em 0; border-bottom: 1px dashed var(--zg-border); font-size:.94rem; }
.widget ul li:last-child{ border-bottom:0; }

/* ---------- Footer ---------- */
.zg-footer{ background: var(--zg-primary-dark); color: #c7d2dc; padding-top: 60px; }
.zg-footer a{ color: #dfe7ee; }
.zg-footer a:hover{ color: var(--zg-accent-light); }
.zg-footer__grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.zg-footer h2, .zg-footer h3{ color:#fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; text-transform:uppercase; letter-spacing:.05em; }
.zg-footer ul{ list-style:none; margin:0; padding:0; }
.zg-footer li{ margin-bottom:.6em; font-size:.92rem; }
.zg-footer-bottom{
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 20px 0;
	display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
	font-size:.82rem; color:#93a2b0;
}
.zg-footer-bottom a{ color:#93a2b0; }
.zg-footer-bottom a:hover{ color:#fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
	.zg-hero__inner{ grid-template-columns: 1fr; padding-block: 56px; }
	.zg-grid{ grid-template-columns: repeat(2,1fr); }
	.zg-about{ grid-template-columns: 1fr; }
	.zg-contact{ grid-template-columns: 1fr; }
	.zg-layout{ grid-template-columns: 1fr; }
	.zg-post-grid{ grid-template-columns: repeat(2,1fr); }
	.zg-footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px){
	.zg-nav-toggle{ display:inline-block; }
	.zg-primary-menu{
		display:none;
		flex-direction:column;
		width:100%;
		position:absolute;
		left:0; top:100%;
		background:#fff;
		border-bottom:1px solid var(--zg-border);
		padding: 10px 24px 18px;
	}
	.zg-primary-menu.is-open{ display:flex; }
	.zg-primary-menu .sub-menu{ position:static; box-shadow:none; border:0; padding-left: 12px; display:block; }
	.zg-header__inner{ flex-wrap:wrap; }
	.zg-grid{ grid-template-columns: 1fr; }
	.zg-post-grid{ grid-template-columns: 1fr; }
	.zg-footer__grid{ grid-template-columns: 1fr; }
	body{ font-size: 16px; }
}
