/*
Theme Name: Studio Imfeld Einstieg
Author: Christoph Imfeld
Description: Schlanke Einstiegsversion von Studio Imfeld auf einer Seite: Landingpage mit zwei bewegten Formen, Ausblick auf die Kategorien, Kontaktformular. Eigenständig neben der Vollversion «Studio Imfeld». Schwarz auf Weiss, Poppins, ohne externe Dienste.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-imfeld-einstieg
*/

/* ---------- Schrift (lokal, keine Google-Server) ---------- */

@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Grundwerte ---------- */

:root {
	--ink: #111111;
	--paper: #ffffff;
	--muted: #707070;
	--line: #e2e2df;
	--gutter: clamp(16px, 3.5vw, 50px);
	--space: clamp(80px, 11vw, 160px);
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--small: 13px;
	--track: .08em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { margin: 0 0 .6em; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; padding-inline: var(--gutter); }

.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; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); }

.label,
.site-nav a,
.button,
.field label,
.kategorie__go,
.prose h2 { font-size: var(--small); font-weight: 400; letter-spacing: var(--track); text-transform: uppercase; }
.label { margin: 0 0 28px; color: var(--muted); }

/* ---------- Landingpage ---------- */

.landing {
	position: relative;
	z-index: 1;
	display: block;
	height: 100vh;
	height: 100svh;
	min-height: 460px;
	overflow: hidden;
	cursor: pointer;
	touch-action: pan-y;
}
.landing:hover { text-decoration: none; }
.landing.is-over-blob { cursor: grab; }

.landing__logo,
.landing__slogan {
	position: absolute;
	right: 0;
	left: 0;
	margin-inline: auto;
	transform-origin: 0 0;
	pointer-events: none;
}
.landing__logo { top: clamp(28px, 7vh, 64px); width: clamp(180px, 16vw, 240px); }
.landing__slogan { bottom: clamp(28px, 7vh, 64px); width: min(420px, 84vw); opacity: .6; }

.js .landing__logo,
.js .landing__slogan { position: fixed; z-index: 50; will-change: transform; }
.js.logo-landed .landing__logo,
.js.logo-landed .landing__slogan { visibility: hidden; }
.js.landing-ready:not(.logo-landed) .home .site-logo__img { visibility: hidden; }

.landing__canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.no-js .landing__canvas { display: none; }
.home .site-main,
.home .site-footer { position: relative; z-index: 1; background: var(--paper); }
.js .home .site-header { border-top: 1px solid var(--line); }

.no-js .landing::before,
.no-js .landing::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44vmin;
	height: 44vmin;
	border-radius: 50%;
	mix-blend-mode: multiply;
}
.no-js .landing::before { background: #f2913d; transform: translate(-75%, -50%); }
.no-js .landing::after { background: #a6d4f2; transform: translate(-25%, -50%); }

/* ---------- Kopf ---------- */

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding-block: 30px;
	background: var(--paper);
}
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { width: 230px; }
.site-nav { display: flex; gap: 34px; }
.site-nav a { padding-block: 4px; }
.site-nav a:hover { text-decoration: none; border-bottom: 1px solid var(--ink); }

@media (max-width: 600px) {
	.site-header { gap: 12px 16px; padding-block: 22px; }
	.site-logo img { width: 170px; }
	.site-nav { gap: 18px; }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: var(--space) 0; }
.lead { max-width: 34em; margin-bottom: 56px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; }

/* Ausblick: Kategorien als ruhige Reihe, getrennt durch feine Linien. */
.kategorien {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}
.kategorien li { border-bottom: 1px solid var(--line); }
.kategorie {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 24px 32px 0;
}
.kategorie:hover { text-decoration: none; }
.kategorie__titel { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.kategorie__text { flex-grow: 1; margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.kategorie__go { align-self: flex-start; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.kategorie:hover .kategorie__titel { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.kategorie:hover .kategorie__go { border-bottom-color: var(--ink); }

@media (min-width: 900px) {
	.kategorien li + li .kategorie { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* Kontakt */
.kontakt {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
@media (max-width: 860px) { .kontakt { grid-template-columns: minmax(0, 1fr); } }

.facts { display: grid; grid-template-columns: minmax(6em, auto) 1fr; gap: 6px 20px; margin: 0 0 24px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.admin-hint { max-width: 24em; padding: 10px 12px; border: 1px dashed var(--muted); color: var(--muted); font-size: var(--small); }

/* ---------- Formular ---------- */

.form { display: grid; gap: 26px; max-width: 40em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { margin: 0; }
.field label { display: block; margin-bottom: 4px; color: var(--muted); }
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 8px 0 10px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	color: var(--ink);
	font: 400 16px/1.5 var(--font);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }
.field [aria-invalid="true"] { border-bottom-style: dashed; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form__note { margin: 0; color: var(--muted); font-size: var(--small); }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { max-width: 40em; margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--ink); }
.notice--ok { background: var(--ink); color: var(--paper); }

.button {
	display: inline-block;
	padding: 13px 22px;
	background: var(--ink);
	border: 1px solid var(--ink);
	color: var(--paper);
	font-family: var(--font);
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.button:hover { background: var(--paper); color: var(--ink); text-decoration: none; }

/* ---------- Impressum, Datenschutz ---------- */

.page { padding-block: clamp(56px, 9vw, 120px) 0; }
.page h1 { font-size: clamp(26px, 3.4vw, 46px); }
.prose { max-width: 38em; }
.prose h2 { margin: 2.4em 0 1em; color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Fuss ---------- */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	margin-top: var(--space);
	padding-block: 26px 40px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: var(--small);
}
.site-footer p { margin: 0; }
.site-footer p a + a { margin-left: 24px; }
.site-footer a:hover { color: var(--ink); }
