/* Fabian Doll Medienservice – Website-Styles (Plugin) */

/* ================================================================
   Schriften (lokal – keine Verbindung zu Google & Co.)
   ================================================================ */
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ================================================================
   Farben & Maße – aus dem Logo abgeleitet
   ================================================================ */
:root {
	--navy: #1E3D69;
	--navy-deep: #13294A;
	--navy-soft: #E8EEF6;
	--sky: #8FB3DA;
	--ink: #292A2C;
	--text: #3A3C41;
	--muted: #6B6F77;
	--line: #E2E5EA;
	--bg: #FFFFFF;
	--bg-alt: #F5F6F8;
	--radius: 6px;
	--cut: 18px;               /* schräger Anschnitt wie im „F“ des Logos */
	--max: 1160px;
	--header-h: 76px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ================================================================
   Basis
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
	transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: 14px 26px;
	font: 600 15px/1 var(--font); letter-spacing: .02em;
	color: #fff; background: var(--navy);
	border: 1.5px solid var(--navy);
	text-decoration: none;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--small { padding: 10px 18px; font-size: 14px; }

/* ================================================================
   Kopfzeile
   ================================================================ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19,41,74,.5); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav__list a {
	position: relative; color: var(--ink); text-decoration: none;
	font-size: 15px; font-weight: 500; padding: 6px 0;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--navy);
	transition: right .2s;
}
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { right: 0; }
.nav__list .sub-menu { display: none; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
	:root { --header-h: 64px; }
	.brand img { height: 32px; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin-right: -10px;
		background: none; border: 0; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 16px 24px 32px; background: #fff;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
		overflow-y: auto;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 16px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
	.nav__list a::after { display: none; }
	.nav__list .sub-menu { display: block; list-style: none; padding-left: 16px; }
	.nav__cta { margin-top: 24px; justify-content: center; font-size: 16px; padding: 16px; }
	.nav-open { overflow: hidden; }
}

/* ================================================================
   Startseite – Hero
   ================================================================ */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px);
	background:
		linear-gradient(180deg, #fff 0%, #fff 55%, var(--bg-alt) 100%);
}
.hero::before { /* feines Raster wie auf einem Planungsblatt */
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: radial-gradient(ellipse 50% 70% at 82% 45%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse 50% 70% at 82% 45%, #000 0%, transparent 70%);
	opacity: .55; pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
	font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--navy); margin-bottom: 20px;
}
.hero__title {
	font-size: clamp(38px, 5.4vw, 64px);
	font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
	margin-bottom: 24px; text-wrap: balance;
}
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 32em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Logo-Zeichen rechts im Einstieg */
.hero__mark {
	justify-self: end; width: min(100%, 360px); aspect-ratio: 1; background: #EEF2F7;
	clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.hero__mark img { width: 100%; height: 100%; object-fit: contain; padding: 16%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.hero__mark { display: none; }
}

/* ================================================================
   Abschnitte
   ================================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.section__title { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.025em; text-wrap: balance; }

/* Abschnitts-Label im Stil von „—— MEDIENSERVICE ——“ aus dem Logo */
.label {
	display: flex; align-items: center; justify-content: center; gap: 16px;
	font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
	color: var(--ink); margin-bottom: 18px;
}
.label::before, .label::after { content: ""; width: 48px; height: 2px; background: var(--ink); }
.label::before { background: var(--navy); }
.label--left { justify-content: flex-start; }
.label--left::after { display: none; }
.label--light { color: #fff; }
.label--light::before { background: var(--sky); }

/* Leistungen */
.services {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
	background: var(--line); border: 1px solid var(--line);
}
.service {
	position: relative; background: #fff; padding: 36px 32px 34px;
	transition: background .2s;
}
.service::before { /* Anschnitt oben rechts */
	content: ""; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut);
	background: linear-gradient(225deg, var(--line) 50%, transparent 50%);
	transition: background .2s;
}
.service:hover { background: #FBFCFD; }
.service:hover::before { background: linear-gradient(225deg, var(--navy) 50%, transparent 50%); }
.service__num {
	display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
	color: var(--navy); margin-bottom: 28px;
}
.service__title { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { padding: 28px 24px; } }

/* Kontakt */
.contact {
	position: relative; overflow: hidden;
	background: var(--navy); color: #DCE5F1;
	padding: clamp(64px, 9vw, 112px) 0;
}
.contact::before { /* Schräger Anschnitt aus dem Logo, als großes Element */
	content: ""; position: absolute; right: -8%; top: -20%; width: 46%; height: 140%;
	background: var(--navy-deep); transform: skewX(-30deg); opacity: .55;
}
.contact__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.contact__title { color: #fff; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; }
.contact__text p { font-size: 18px; max-width: 32em; }
.contact__region { color: var(--sky); font-size: 15px !important; font-weight: 600; letter-spacing: .04em; margin: 0; }
.contact__cards { display: grid; gap: 14px; }
.contact__card {
	display: block; padding: 22px 26px; text-decoration: none;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
	transition: background .15s, border-color .15s;
}
.contact__card:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.contact__kind { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.contact__value { display: block; color: #fff; font-size: clamp(19px, 2vw, 24px); font-weight: 600; word-break: break-word; }
.contact :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; gap: 36px; } .contact::before { width: 70%; right: -40%; } }

/* ================================================================
   Unterseiten
   ================================================================ */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 3vw, 40px); background: var(--bg-alt); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 56px); }
.page-title { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; margin: 0; }
.page-head--404 { border: 0; margin: 0; padding-bottom: clamp(64px, 9vw, 120px); }
.page-head--404 .page-title { margin-bottom: 16px; }
.entry { padding-bottom: clamp(56px, 8vw, 104px); }
.entry > * + h2 { margin-top: 1.8em; }
.entry h2 { font-size: 26px; }
.entry h3 { font-size: 20px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry th { color: var(--ink); background: var(--bg-alt); }
.entry .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry--wide .alignwide { margin-left: 0; margin-right: 0; }
.entry .wp-block-button__link { background: var(--navy); border-radius: 0; }
.post-teaser { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-teaser__date { color: var(--muted); font-size: 14px; }

/* Rechtstexte */
.legal h2 { font-size: 21px; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; }
.legal-box { margin: 2em 0; padding: 24px 28px; background: var(--bg-alt); border-left: 3px solid var(--navy); }
.legal-box h3 { font-size: 18px; }
.legal-box p:last-child { margin: 0; }
.legal-stand { margin-top: 2.5em; color: var(--muted); font-size: 14px; }
.legal-warning {
	margin: 0 0 24px; padding: 14px 18px; font-size: 15px;
	background: #FFF4E5; border: 1px solid #F0C27B; color: #6A4300; border-radius: var(--radius);
}

/* Leere Vorlage (Anzeigetafel) */
.is-blank { margin: 0; }
.blank-main { min-height: 100vh; }

/* ================================================================
   Fußzeile
   ================================================================ */
.site-footer { background: var(--ink); color: #A9ADB4; font-size: 14px; padding: 32px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer__brand { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__brand strong { color: #fff; font-weight: 600; }
.site-footer__nav { display: flex; gap: 24px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__copy { margin: 0; }
@media (max-width: 720px) { .site-footer__inner { flex-direction: column; align-items: flex-start; } }

/* Kontakt: nur E-Mail */
.contact__mail { padding: 28px 0 28px 32px; border-left: 2px solid var(--sky); }
.contact__mail .contact__value { text-decoration: none; }
.contact__mail .contact__value:hover { text-decoration: underline; text-underline-offset: 6px; color: #fff; }
@media (max-width: 860px) { .contact__mail { padding: 8px 0 8px 20px; } }

/* ================================================================
   Animationen (nur mit JS und ohne „Bewegung reduzieren“)
   ================================================================ */
.fdm-anim [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
	transition-delay: var(--d, 0ms);
	will-change: opacity, transform;
}
.fdm-anim [data-reveal="zoom"] {
	transform: scale(.92);
	filter: blur(12px);
	transition: opacity 1.2s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1.2s cubic-bezier(.2,.7,.2,1);
	transition-delay: var(--d, 0ms);
}
.fdm-anim [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.hero__mark img { will-change: transform; transform-origin: 50% 60%; }
.hero__text { will-change: transform, opacity; }

/* Großer Satz, der beim Scrollen Wort für Wort aufleuchtet */
.statement { position: relative; height: 220vh; background: #fff; }
.statement__sticky {
	position: sticky; top: 0; height: 100vh;
	display: flex; align-items: center;
	overflow: hidden;
}
.statement__text {
	margin: 0; max-width: 18ch;
	font-size: clamp(40px, 7.2vw, 104px);
	font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
	color: var(--ink);
	text-wrap: balance;
}
.statement__word { transition: opacity .25s linear; }
.statement__word:nth-last-child(-n+3) { color: var(--navy); }
.fdm-anim .statement__word { opacity: .16; }
.admin-bar .statement__sticky { top: 32px; height: calc(100vh - 32px); }

/* Ohne Animation (JS aus / Bewegung reduzieren): normaler, kurzer Abschnitt */
html:not(.fdm-anim) .statement { height: auto; padding: clamp(64px, 9vw, 120px) 0 0; }
html:not(.fdm-anim) .statement__sticky { position: static; height: auto; }

@media (max-width: 760px) {
	.statement { height: 180vh; }
}

/* Kleines Partner-Logo in einer Leistung */
.service__badge { width: 64px; height: auto; margin-top: 22px; opacity: .95; }
