/* ==========================================================================
   March Design – Theme-Basis (Design-System, Header, Footer)
   Animationsfrei, performant, mobil-optimiert.
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
	font-family: 'Century Gothic Pro';
	src: url('../fonts/CenturyGothicPro.woff2') format('woff2'),
		url('../fonts/CenturyGothicPro.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Century Gothic Pro';
	src: url('../fonts/CenturyGothicPro-Bold.woff2') format('woff2'),
		url('../fonts/CenturyGothicPro-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Mona Sans Wide';
	src: url('../fonts/mona-sans-extraboldwide-webfont.woff2') format('woff2'),
		url('../fonts/mona-sans-extraboldwide-webfont.woff') format('woff');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Mona Sans Wide';
	src: url('../fonts/mona-sans-lightwide-webfont.woff2') format('woff2'),
		url('../fonts/mona-sans-lightwide-webfont.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

/* ---- Design-Tokens ----------------------------------------------------- */
:root {
	--md-accent: #00c7cc;
	--md-accent-dark: #00a8ad;
	--md-dark: #0c0c0c;
	--md-text: #444;
	--md-text-light: rgba(255, 255, 255, 0.82);
	--md-muted: #8a8a8a;
	--md-light: #ffffff;
	--md-line: rgba(0, 0, 0, 0.12);
	--md-line-light: rgba(255, 255, 255, 0.18);

	--md-font-body: 'Century Gothic Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--md-font-display: 'Mona Sans Wide', 'Century Gothic Pro', sans-serif;

	--md-container: 1280px;
	--md-container-wide: 1600px;
	--md-gutter: clamp(20px, 5vw, 70px);

	--md-header-h: 84px;
	--md-radius: 14px;

	--md-pad-sm: clamp(28px, 5vw, 56px);
	--md-pad-md: clamp(56px, 9vw, 120px);
	--md-pad-lg: clamp(90px, 14vw, 200px);
}

/* ---- Reset / Basis ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--md-font-body);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.65;
	color: var(--md-text-light);
	background: var(--md-dark);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.05; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--md-accent); color: var(--md-dark); }

/* Reduzierte Bewegung respektieren (es gibt ohnehin keine Animationen) */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ---- Hilfs-Layout: Container / Bleed ----------------------------------- */
.md-container {
	width: 100%;
	max-width: var(--md-container);
	margin-inline: auto;
	padding-inline: var(--md-gutter);
}
.md-container--wide { max-width: var(--md-container-wide); }
.md-bleed { width: 100%; padding-inline: 0; }

.md-shell {
	width: 100%;
	max-width: var(--md-container);
	margin-inline: auto;
	padding: var(--md-pad-md) var(--md-gutter);
}

/* Screenreader / Skip-Link */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	word-wrap: normal !important;
}
.md-skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000;
	width: auto; height: auto; clip: auto; clip-path: none;
	padding: 12px 18px; background: var(--md-dark); color: #fff; border-radius: 8px;
}

/* Elementor: Standard-Seiteninhalt randlos, damit volle Breite greift */
.md-page__content > .elementor { width: 100%; }
.md-main { display: block; }

/* ==========================================================================
   Header
   ========================================================================== */
.md-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--md-line);
}
.md-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--md-header-h);
	max-width: var(--md-container-wide);
	margin-inline: auto;
	padding-inline: var(--md-gutter);
}
.md-header__logo a { display: inline-flex; align-items: center; }
.md-header__logo img,
.md-header__logo .custom-logo { width: auto; height: 42px; display: block; }
.md-logo--light { display: none; }

/* Menue */
.md-nav { margin-left: auto; }
.md-menu {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.md-menu a {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 6px 0;
	position: relative;
	color: var(--md-dark);
}
.md-menu a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--md-accent);
}
.md-menu .current-menu-item > a::after,
.md-menu a:hover::after { width: 100%; }
.md-menu .sub-menu {
	position: absolute;
	margin: 12px 0 0;
	padding: 12px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--md-line);
	border-radius: 10px;
	min-width: 200px;
	display: none;
}
.md-menu li { position: relative; }
.md-menu li:hover > .sub-menu { display: block; }

/* Burger */
.md-burger {
	display: none;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	color: var(--md-dark);
}
.md-burger__label { font-weight: 700; font-size: 0.9rem; }
.md-burger__lines { display: inline-block; width: 26px; }
.md-burger__lines span {
	display: block;
	height: 2px;
	background: var(--md-dark);
	margin: 5px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.md-footer {
	background: var(--md-dark);
	color: var(--md-text-light);
	padding-block: clamp(36px, 6vw, 70px);
}
.md-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--md-container-wide);
	margin-inline: auto;
	padding-inline: var(--md-gutter);
}
.md-backtotop {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
}
.md-backtotop__icon {
	display: inline-grid;
	place-items: center;
	width: 38px; height: 38px;
	border: 1px solid var(--md-line-light);
	border-radius: 50%;
}
.md-backtotop:hover .md-backtotop__icon { border-color: var(--md-accent); color: var(--md-accent); }
.md-footer__copy { font-size: 0.92rem; }
.md-footer__copy .md-link { color: #fff; }
.md-footer__copy .md-link:hover { color: var(--md-accent); }
.md-socials { display: flex; align-items: center; gap: 14px; }
.md-socials__label { font-size: 0.85rem; color: var(--md-muted); }
.md-socials__list { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.md-socials__list a { font-weight: 700; }
.md-socials__list a:hover { color: var(--md-accent); }

/* ==========================================================================
   Allgemeine Inhaltselemente (Blog/Seiten ohne Elementor)
   ========================================================================== */
.md-page__content { width: 100%; }
.md-archive-header { margin-bottom: 2rem; }
.md-archive-title { font-family: var(--md-font-display); font-weight: 800; }
.md-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.md-post-card__media img { border-radius: var(--md-radius); }
.md-post-card__title { margin-top: 16px; font-size: 1.4rem; }
.md-post-card__title a:hover { color: var(--md-accent); }

/* 404 */
.md-404 { text-align: center; }
.md-404__code { font-family: var(--md-font-display); font-weight: 800; font-size: clamp(80px, 18vw, 200px); color: var(--md-accent); line-height: 1; margin: 0; }
.md-404__title { font-family: var(--md-font-display); font-weight: 800; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
	.md-burger { display: inline-flex; }
	.md-nav {
		position: fixed;
		inset: var(--md-header-h) 0 0 0;
		background: #fff;
		padding: 32px var(--md-gutter);
		display: none;
		overflow-y: auto;
		z-index: 99;
	}
	.md-nav.is-open { display: block; }
	body.md-nav-open { overflow: hidden; }
	.md-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
	.md-menu a { font-size: 1.6rem; padding: 12px 0; }
	.md-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 16px; margin: 0; }
	.md-footer__inner { flex-direction: column; align-items: flex-start; }
}
