/*
Theme Name:  filmprojekt
Theme URI:   https://www.filmprojekt.ch/
Description: Schlankes, eigenständiges Theme für filmprojekt.ch – Nachfolger von Canvas (WooThemes), gleiches Layout, ohne Framework.
Author:      Michel Weber
Author URI:  https://www.filmprojekt.ch/
Version:     1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License:     GPLv2 or later
Text Domain: filmprojekt
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--fp-text: #555;
	--fp-heading: #222;
	--fp-muted: #999;
	--fp-link: #1e73be;
	--fp-link-hover: #000;
	--fp-project-link: #428bca;
	--fp-post-link: #767676;
	--fp-line: #e6e6e6;
	--fp-line-strong: #dbdbdb;
	--fp-widget-bg: #eee;
	--fp-bg: #fff;
	--fp-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--fp-font-nav: Arial, Helvetica, sans-serif;
	--fp-font-mono: "Courier New", Courier, monospace;
	--fp-max: 1200px;
	--fp-gutter: 40px;
	--fp-sidebar: 281px;
	--fp-gap: 38px;
}

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

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

body {
	margin: 0;
	background: var(--fp-bg);
	color: var(--fp-text);
	font: 13px/1.5 var(--fp-font);
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }

a { color: var(--fp-link); text-decoration: none; }
a:hover, a:focus { color: var(--fp-link-hover); }

h1, h2, h3, h4, h5, h6 {
	color: var(--fp-heading);
	font-family: var(--fp-font);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .5em;
}
h1 { font-size: 28px; color: #000; }
h2 { font-size: 26px; }
h3 { font-size: 20px; margin-bottom: 10px; }
h4 { font-size: 16px; }

p, ul, ol, blockquote, table { margin: 0 0 1.2em; }

hr, .woo-sc-hr {
	border: 0;
	border-bottom: 1px solid var(--fp-line);
	margin: 0 0 20px;
	padding: 0;
	clear: both;
}

.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: -9999px;
	top: 0;
	z-index: 1000;
	padding: 8px 12px;
	background: #222;
	color: #fff;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

:focus-visible { outline: 2px solid var(--fp-project-link); outline-offset: 2px; }

.wrap {
	max-width: calc(var(--fp-max) + 2 * var(--fp-gutter));
	margin: 0 auto;
	padding: 0 var(--fp-gutter);
}

.clear { clear: both; }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-header {
	background: rgba(255, 255, 255, .96);
	z-index: 100;
}

.site-header__inner {
	display: grid;
	grid-template-columns: 395px 1fr auto;
	align-items: start;
	min-height: 120px;
	padding-top: 10px;
}

.site-logo { display: inline-block; }
.site-logo img { display: block; width: 240px; height: auto; }

.site-nav { padding-top: 10px; }
.site-nav .menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block;
	padding: 9px 18px 7px;
	font: 700 18px/1.4 var(--fp-font-nav);
	letter-spacing: .1em;
	color: var(--fp-muted);
	border-bottom: 2px solid transparent;
}
.site-nav .menu a:hover,
.site-nav .menu a:focus { color: var(--fp-heading); border-bottom-color: rgba(34, 34, 34, .5); }
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-menu-ancestor > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu .current-lang-parent > a {
	color: var(--fp-heading);
	border-bottom-color: var(--fp-heading);
}
.site-nav .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 180px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--fp-line);
	display: none;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { font-size: 14px; padding: 6px 14px; border: 0; }

.lang-switch ul,
.lang-switch.qtranxs_language_chooser,
.site-header .qtranxs_language_chooser {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lang-switch li { margin: 0; }
.lang-switch a { display: block; line-height: 1; opacity: .7; }
.lang-switch a:hover,
.lang-switch .current-lang a,
.lang-switch .active a { opacity: 1; }
.lang-switch img { display: block; width: 16px; height: auto; }

.nav-toggle { display: none; }

/* ==========================================================================
   Inhalt + Seitenleiste
   ========================================================================== */
.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--fp-sidebar);
	gap: 0 var(--fp-gap);
	align-items: start;
	padding-bottom: 40px;
}
.no-sidebar .site-content { grid-template-columns: minmax(0, 1fr); }

.site-main { min-width: 0; }

.entry-header { margin-bottom: 15px; }
/* "Titel ausblenden": nur optisch – für Suchmaschinen und Screenreader bleibt die H1 */
.hide-title .entry-header .entry-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.home .entry-header { display: none; }
.entry-title a { color: inherit; }
.entry-meta { color: var(--fp-muted); font-size: 12px; margin-top: 4px; }

.entry-content::after { content: ""; display: table; clear: both; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

.alignleft { float: left; margin: 4px 15px 10px 0; }
.alignright { float: right; margin: 4px 0 10px 15px; }
.aligncenter { display: block; margin: 0 auto 15px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--fp-muted); }

.entry-content iframe { display: block; margin-bottom: 15px; }
.wp-block-embed__wrapper iframe,
.wp-embed-responsive .wp-has-aspect-ratio iframe { width: 100%; height: 100%; }

.archive-header { margin-bottom: 20px; }
.archive-title { font-size: 26px; }

.entry-summary {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--fp-line);
}
.entry-summary .entry-title { font-size: 20px; margin-bottom: 2px; }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 30px;
	padding-top: 15px;
	border-top: 1px solid var(--fp-line);
	font-size: 14px;
}
.post-nav a { color: var(--fp-project-link); }

.pagination { margin-top: 20px; font-size: 16px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { padding: 2px 8px; border: 1px solid var(--fp-line); }
.pagination .current { background: #333; color: #fff; border-color: #000; }

/* Seitenleiste – Canvas-Look: graue Box, Schreibmaschinenschrift */
.site-sidebar .widget {
	background: var(--fp-widget-bg);
	padding: 7px;
	margin: 0 0 30px;
	color: #333;
	font: 14px/1.5 var(--fp-font-mono);
}
.site-sidebar .widget p { margin: 0 0 .4em; padding-left: 5px; }
.site-sidebar .widget-title,
.site-sidebar .widget h3 {
	font: 700 14px/1.4 var(--fp-font);
	color: var(--fp-text);
	border-bottom: 1px solid #d6d6d6;
	padding: 0 0 5px;
	margin: 0 0 11px;
}
.site-sidebar .widget h3 a { color: var(--fp-project-link); }
.site-sidebar .widget iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.site-sidebar .widget input:not([type="submit"]):not([type="checkbox"]),
.site-sidebar .widget textarea {
	width: 100%;
	padding: 5px;
	border: 1px solid #ccc;
	font: 13px/1.4 var(--fp-font);
}
.site-sidebar .widget input[type="submit"] {
	padding: 6px 14px;
	border: 1px solid #245682;
	background: var(--fp-project-link);
	color: #fff;
	font: 700 13px var(--fp-font);
	cursor: pointer;
}
.site-sidebar .widget input[type="submit"]:hover { background: #245682; }

/* Vimeo-Vorschaukarte (Seitenleiste) */
.fp-video-card {
	position: relative;
	display: block;
	margin: 8px 0 12px;
	overflow: hidden;
	background: #111;
	aspect-ratio: 16 / 9;
}
.fp-video-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.fp-video-card:hover img { transform: scale(1.04); opacity: .85; }
.fp-video-card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	transition: background-color .2s;
}
.fp-video-card__play::after {
	content: "";
	position: absolute;
	left: 21px;
	top: 16px;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}
.fp-video-card:hover .fp-video-card__play { background: #1ab7ea; }
.fp-video-card__label {
	position: absolute;
	right: 8px;
	bottom: 6px;
	padding: 2px 6px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font: 11px/1.4 var(--fp-font);
}
.fp-modern .fp-video-card { border-radius: 6px; }

/* ==========================================================================
   Projekte
   ========================================================================== */
.fp-projects,
.fp-posts,
.entry-content .fp-projects,
.entry-content .fp-posts {
	display: grid;
	gap: 21px 33px;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}
.columns-1 { grid-template-columns: 1fr; }
.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.fp-project__link { display: block; }
.fp-project__thumb { margin: 0 0 13px; }
.fp-project__thumb img,
.project-gallery img {
	display: block;
	width: 100%;
	padding: 3px;
	background: rgba(255, 255, 255, .7);
	border: 1px solid var(--fp-line);
	transition: border-color .15s;
}
.fp-project__link:hover img,
.project-gallery a:hover img { border-color: #bbb; }
.fp-projects .fp-project__title {
	font-size: 14px;
	color: var(--fp-project-link);
	margin: 0 0 10px;
}
.fp-project__link:hover .fp-project__title { color: #245682; }
.fp-project__desc p { margin: 0; }

.fp-post__title { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.fp-post__title a { color: var(--fp-post-link); }
.fp-post__title a:hover { color: #000; }
.fp-post__excerpt { margin: 0; }

/* Projekt-Übersicht: Kopf + Filter */
.archive-header--projects { display: flex; align-items: baseline; gap: 14px; }
.fp-classic .archive-header--projects { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.archive-count { margin: 0; color: var(--fp-muted); }

.fp-filter { margin: 0 0 25px; }
.fp-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 7px;
	font: 14px/1.4 var(--fp-font-nav);
	background: #dbdbdb;
	border: 1px solid #999;
	color: #777;
	transition: background-color .15s, color .15s, border-color .15s;
}
.fp-chip:hover { background: #ccc; color: #333; }
.fp-chip.is-active { background: #333; border-color: #000; color: #fff; }
.fp-chip__count { font-size: 11px; opacity: .7; }

/* Unterkategorien: klappen direkt neben der gewählten Hauptkategorie auf */
.fp-filter__list[hidden],
.fp-filter__subitem[hidden] { display: none; }
.fp-filter__subitem { display: flex; align-items: center; animation: fp-in-x .2s ease-out; }
.fp-filter__subitem.is-first::before {
	/* Pfeil als gezeichneter Winkel – gut sichtbar und scharf in jeder Grösse */
	content: "";
	width: 9px;
	height: 9px;
	margin: 0 10px 0 2px;
	border-top: 2.5px solid #555;
	border-right: 2.5px solid #555;
	transform: rotate(45deg);
}
.fp-modern .fp-filter__subitem.is-first::before { border-color: #111; }
.fp-chip--sub { font-size: 13px; padding: 1px 6px; }
@keyframes fp-in-x { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.fp-project[hidden] { display: none !important; }
.fp-project.is-entering { animation: fp-in .35s ease-out; }
@keyframes fp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sprachwahl: klassisch Flaggen, modern Kürzel */
.lang-code { display: none; }

/* Projekt-Detail */
.project-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 20px;
	margin: 0 0 25px;
}
.project-gallery a { display: block; width: 200px; max-width: calc(50% - 10px); }
.project-single .entry-title { font-size: 26px; color: var(--fp-heading); }
.project-link { margin-top: 20px; }

/* Titel links, Share-Icons rechts daneben */
.entry-header--share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px 24px;
}
.entry-header--share .entry-title { margin: 0; }
.entry-share { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.entry-share a.synved-social-button { margin: 0 !important; line-height: 0; }
.entry-share img { opacity: .75; transition: opacity .15s; }
.entry-share a:hover img { opacity: 1; }

/* ==========================================================================
   Canvas-Shortcodes ([box], [quote], Spalten)
   ========================================================================== */
.woo-sc-box {
	margin: 0 0 15px;
	padding: 10px 15px;
	background: #f6f6f6;
	border: 1px solid var(--fp-line);
}
.woo-sc-box.info { background: #eef4fa; border-color: #cfe0f0; }
.woo-sc-box.alert { background: #fdf0ef; border-color: #f2cfcb; }
.woo-sc-box.tick { background: #eff8ec; border-color: #cfe8c6; }
.woo-sc-box.note { background: #fdfaea; border-color: #efe5b5; }
.woo-sc-box p { margin: 0 0 .4em; }
.woo-sc-box p:last-child { margin-bottom: 0; }

.woo-sc-quote {
	margin: 0 0 20px;
	padding: 12px 20px 12px 24px;
	border-left: 4px solid #d6d6d6;
	color: #444;
}
.entry-content p:empty { display: none; }
.woo-sc-quote.boxed { background: #f6f6f6; }
.woo-sc-quote p { margin: 0 0 .6em; }
.woo-sc-quote p:last-child { margin-bottom: 0; }

.fp-col { float: left; margin-right: 4%; }
.fp-col.last { margin-right: 0; }
.twocol-one { width: 48%; }
.threecol-one { width: 30.666%; }
.threecol-two { width: 65.333%; }
.fourcol-one { width: 22%; }
.fourcol-two { width: 48%; }
.fourcol-three { width: 74%; }
.fivecol-one { width: 16.8%; }
.fivecol-two { width: 37.6%; }
.fivecol-three { width: 58.4%; }
.fivecol-four { width: 79.2%; }
.sixcol-one { width: 13.333%; }
.sixcol-two { width: 30.666%; }
.sixcol-three { width: 48%; }
.sixcol-four { width: 65.333%; }
.sixcol-five { width: 82.666%; }
/* Verschachtelte Spalte in einer Spalte füllt die Breite (so hat Canvas es angezeigt) */
.fp-col .fp-col { width: 100%; float: none; margin-right: 0; }

/* ==========================================================================
   Slider (Seiten mit Slide-Gruppe, z. B. "über")
   ========================================================================== */
.fp-slider { position: relative; margin-bottom: 30px; }
.fp-slider__track {
	position: relative;
	aspect-ratio: 16 / 5;
	overflow: hidden;
	background: #111;
}
.fp-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
}
.fp-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.fp-slide__img,
.fp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fp-slide__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 30px 22px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
	color: #fff;
}
.fp-slide__title { margin: 0 0 4px; color: #fff; font-size: 26px; }
.fp-slide__text { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.fp-slider__dots {
	position: absolute;
	right: calc(var(--fp-gutter) + 28px); /* Abstand zum Bildrand, nicht zum Fensterrand */
	bottom: 30px;
	display: flex;
	gap: 8px;
}
.fp-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.fp-slider__dot.is-active { background: #fff; }
.fp-modern .fp-slider__track { border-radius: 8px; }
.fp-modern .fp-slide__title { font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 767px) {
	.fp-slider.wrap { padding: 0; }
	.fp-modern .fp-slider__track { border-radius: 0; }
	.fp-slide__caption { padding: 30px 16px 14px; }
	.fp-slide__title { font-size: 18px; }
	.fp-slide__text { font-size: 13px; }
	.fp-slider__track { aspect-ratio: 2 / 1; }
	.fp-slider__dots { right: 20px; bottom: 18px; }
}

/* ==========================================================================
   Fusszeile
   ========================================================================== */
.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
	color: var(--fp-muted);
	border-top: 1px solid var(--fp-line-strong);
	background-clip: content-box;
}
.site-footer a { color: var(--fp-project-link); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.fp-lb {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .88);
	padding: 40px 60px;
}
.fp-lb[hidden] { display: none; }
.fp-lb figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; }
.fp-lb img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	width: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.fp-lb figcaption { color: #ddd; margin-top: 10px; font-size: 13px; }
.fp-lb button {
	position: absolute;
	border: 0;
	background: none;
	color: #fff;
	font: 300 40px/1 var(--fp-font);
	cursor: pointer;
	padding: 10px 14px;
	opacity: .75;
}
.fp-lb button:hover, .fp-lb button:focus-visible { opacity: 1; }
.fp-lb__close { top: 10px; right: 10px; }
.fp-lb__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.fp-lb__next { right: 6px; top: 50%; transform: translateY(-50%); }
body.fp-lb-open { overflow: hidden; }

/* ==========================================================================
   Desktop: Kopfzeile klebt oben (ersetzt "myStickymenu")
   ========================================================================== */
@media (min-width: 771px) {
	.site-header {
		position: sticky;
		top: 0;
	}
	.admin-bar .site-header { top: 32px; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
	.site-header__inner { grid-template-columns: 280px 1fr auto; }
	.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.site-content { grid-template-columns: minmax(0, 1fr); }
	.site-sidebar { margin-top: 20px; }
	.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 767px) {
	:root { --fp-gutter: 16px; }

	.site-header__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"toggle toggle"
			"logo   lang"
			"nav    nav";
		min-height: 0;
		padding-top: 0;
		padding-bottom: 15px;
	}
	.site-branding { grid-area: logo; padding-top: 15px; }
	.lang-switch { grid-area: lang; padding-top: 15px; }
	.site-nav { grid-area: nav; padding-top: 0; }

	.nav-toggle {
		grid-area: toggle;
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 calc(-1 * var(--fp-gutter));
		padding: 10px var(--fp-gutter);
		background: #222;
		color: #fff;
		border: 0;
		font: 700 13px var(--fp-font);
		text-align: left;
		cursor: pointer;
	}
	.nav-toggle__icon,
	.nav-toggle__icon::before,
	.nav-toggle__icon::after {
		display: block;
		width: 16px;
		height: 2px;
		background: #fff;
		position: relative;
	}
	.nav-toggle__icon::before,
	.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__icon::before { top: -5px; }
	.nav-toggle__icon::after { top: 5px; }

	.site-nav { display: none; }
	.nav-open .site-nav { display: block; margin-top: 10px; }
	.site-nav .menu { flex-direction: column; border-top: 1px solid var(--fp-line); }
	.site-nav .menu a { padding: 10px 0; border-bottom: 1px solid var(--fp-line); }
	.site-nav .menu .current-menu-item > a { border-bottom-color: var(--fp-line); }
	.site-nav .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 15px; }

	.site-logo img { width: 200px; }

	.columns-2, .columns-3, .columns-4, .columns-5, .columns-6 { grid-template-columns: minmax(0, 1fr); }
	.fp-posts { gap: 10px; }

	.fp-col { float: none; width: 100% !important; margin-right: 0; }

	.alignleft, .alignright { float: none; display: block; margin: 0 0 15px; }

	.site-footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }

	.fp-lb { padding: 50px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ==========================================================================
   Stil "modern" – gleiche Struktur, zeitgemässer Auftritt
   (Customizer → filmprojekt Darstellung, oder ?fp_style=modern)
   ========================================================================== */
.fp-modern {
	--fp-text: #3a3a3a;
	--fp-heading: #111;
	--fp-muted: #8a8a8a;
	--fp-link: #1f5fa8;
	--fp-line: #ececec;
}
body.fp-modern {
	font-size: 15px;
	line-height: 1.65;
	color: var(--fp-text);
	-webkit-font-smoothing: antialiased;
}
.fp-modern h1 { font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: #111; }
.fp-modern h2 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.fp-modern .entry-content h3 { font-size: 20px; font-weight: 600; }

/* Kopfzeile: eine Zeile, Navigation rechts, Linie erst beim Scrollen */
.fp-modern .site-header {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.5) blur(10px);
	backdrop-filter: saturate(1.5) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.fp-modern .site-header.is-scrolled { border-bottom-color: var(--fp-line); box-shadow: 0 4px 18px rgba(0, 0, 0, .04); }
@media (min-width: 768px) {
	.fp-modern .site-header__inner {
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 32px;
		min-height: 88px;
		padding-top: 0;
	}
	.fp-modern .site-nav { padding-top: 0; justify-self: end; }
}
.fp-modern .site-logo img { width: 210px; }
.fp-modern .site-nav .menu a {
	position: relative;
	padding: 10px 14px;
	font: 600 14px/1 var(--fp-font);
	letter-spacing: .08em;
	color: var(--fp-muted);
	border-bottom: 0;
}
.fp-modern .site-nav .menu a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 2px;
	height: 2px;
	background: #111;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s;
}
.fp-modern .site-nav .menu a:hover,
.fp-modern .site-nav .menu .current-menu-item > a { color: #111; }
.fp-modern .site-nav .menu a:hover::after,
.fp-modern .site-nav .menu .current-menu-item > a::after { transform: scaleX(1); }

.fp-modern .lang-flag { display: none; }
.fp-modern .lang-code { display: inline; }
.fp-modern .lang-switch ul { gap: 2px; }
@media (min-width: 768px) {
	.fp-modern .lang-switch {
		margin-left: 10px;
		padding-left: 22px;
		border-left: 1px solid #e3e3e3;
	}
}
.fp-modern .lang-switch a {
	padding: 6px 7px;
	border-radius: 4px;
	font: 600 12px/1 var(--fp-font);
	letter-spacing: .06em;
	color: var(--fp-muted);
	opacity: 1;
}
.fp-modern .lang-switch a:hover { color: #111; }
.fp-modern .lang-switch .current-lang a { color: #111; background: #f1f1f1; }

/* Inhalt: mehr Luft */
.fp-modern .site-content { gap: 0 56px; padding-top: 24px; padding-bottom: 64px; }

/* Startseite: Abschnittstitel als ruhige Labels */
.fp-modern.home .entry-content > h3 {
	margin: 8px 0 22px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fp-line);
	font: 600 12px/1 var(--fp-font);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fp-muted);
}
.fp-modern .woo-sc-hr { border: 0; margin: 24px 0 0; }

/* Projekt-Karten: randlose Bilder, sanfter Zoom */
.fp-modern .fp-projects { gap: 36px 28px; }
.fp-modern .fp-project__thumb {
	margin: 0 0 14px;
	overflow: hidden;
	border-radius: 6px;
	background: #f2f2f2;
	aspect-ratio: 16 / 9;
}
.fp-modern .fp-project__thumb img {
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.fp-modern .fp-project__link:hover .fp-project__thumb img { transform: scale(1.04); }
.fp-modern .fp-projects .fp-project__title { font-size: 15px; font-weight: 600; line-height: 1.3; color: #111; margin: 0 0 6px; }
.fp-modern .fp-project__link:hover .fp-project__title { color: var(--fp-link); }
.fp-modern .fp-project__desc {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.55;
	color: #666;
}
.fp-modern .fp-project__desc strong,
.fp-modern .fp-project__desc em { font-style: normal; font-weight: 600; color: #111; }

/* Blog-Raster */
.fp-modern .fp-posts { gap: 28px; }
.fp-modern .fp-post { padding-top: 16px; border-top: 2px solid #111; }
.fp-modern .fp-post__title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.fp-modern .fp-post__title a { color: #111; }
.fp-modern .fp-post__title a:hover { color: var(--fp-link); }
.fp-modern .fp-post__excerpt { font-size: 14px; color: #666; }

/* Seitenleiste: keine graue Box, keine Schreibmaschine */
.fp-modern .site-sidebar .widget {
	margin: 0 0 40px;
	padding: 14px 0 0;
	background: none;
	border-top: 2px solid #111;
	font: 14px/1.6 var(--fp-font);
	color: var(--fp-text);
}
.fp-modern .site-sidebar .widget p { padding-left: 0; }
.fp-modern .site-sidebar .widget-title,
.fp-modern .site-sidebar .widget > h3,
.fp-modern .site-sidebar .widget .textwidget > h3:first-child {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font: 600 12px/1.3 var(--fp-font);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fp-muted);
}
.fp-modern .site-sidebar .widget h3 a { font-size: 15px; letter-spacing: 0; text-transform: none; color: #111; }
.fp-modern .site-sidebar .widget input:not([type="submit"]):not([type="checkbox"]),
.fp-modern .site-sidebar .widget textarea {
	padding: 9px 10px;
	background: #fafafa;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}
.fp-modern .site-sidebar .widget input:focus,
.fp-modern .site-sidebar .widget textarea:focus { background: #fff; border-color: #111; outline: none; }
.fp-modern .site-sidebar .widget input[type="submit"] {
	padding: 10px 18px;
	background: #111;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
}
.fp-modern .site-sidebar .widget input[type="submit"]:hover { background: var(--fp-link); }

/* Boxen und Zitate */
.fp-modern .woo-sc-box { background: #f6f6f4; border: 0; border-radius: 6px; padding: 14px 18px; }
.fp-modern .woo-sc-quote,
.fp-modern .woo-sc-quote.boxed { background: none; border-left: 3px solid #111; padding: 4px 0 4px 20px; }

/* Projekt-Detail: Galerie als Raster */
.fp-modern .project-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fp-modern .project-gallery a { width: auto; max-width: none; overflow: hidden; border-radius: 6px; }
.fp-modern .project-gallery img {
	padding: 0;
	border: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s;
}
.fp-modern .project-gallery a:hover img { transform: scale(1.04); }
.fp-modern .project-single .entry-title { font-size: 34px; }

/* Filter als Pillen */
.fp-modern .archive-header--projects { margin-bottom: 18px; }
.fp-modern .archive-title { font-size: 34px; margin: 0; }
.fp-modern .fp-chip {
	padding: 7px 14px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	font: 500 14px/1 var(--fp-font);
	color: #555;
}
.fp-modern .fp-chip:hover { background: #fff; border-color: #111; color: #111; }
.fp-modern .fp-chip.is-active { background: #111; border-color: #111; color: #fff; }
.fp-modern .fp-chip__count { font-size: 12px; opacity: .55; }
.fp-modern .fp-chip--sub {
	padding: 6px 12px;
	font-size: 13px;
	background: #f4f4f4;
	border-color: transparent;
}
.fp-modern .fp-chip--sub:hover { background: #fff; border-color: #111; }
.fp-modern .fp-chip--sub.is-active { background: #fff; border-color: #111; color: #111; }

/* Navigation unter Beiträgen, Fusszeile */
.fp-modern .post-nav a { color: #111; font-weight: 600; }
.fp-modern .site-footer { background: #111; }
.fp-modern .site-footer__inner { border-top: 0; padding-top: 28px; padding-bottom: 28px; color: #9a9a9a; }
.fp-modern .site-footer a { color: #fff; }

@media (max-width: 767px) {
	.fp-modern .nav-toggle { background: #111; }
	.fp-modern .site-logo img { width: 180px; }
	.fp-modern .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Filter auf dem Handy: eine Zeile, seitlich wischen */
	.fp-modern .fp-filter {
		margin-left: calc(-1 * var(--fp-gutter));
		margin-right: calc(-1 * var(--fp-gutter));
		overflow-x: auto;
		scrollbar-width: none;
	}
	.fp-modern .fp-filter::-webkit-scrollbar { display: none; }
	.fp-modern .fp-filter__list { flex-wrap: nowrap; padding: 0 var(--fp-gutter); }
	.fp-modern .fp-chip { white-space: nowrap; }
	.fp-modern h1,
	.fp-modern .archive-title,
	.fp-modern .project-single .entry-title { font-size: 28px; }
}
