/*
Theme Name: 104studio
Theme URI: https://104studio.de
Author: 104studio
Description: One-Pager-Theme für 104studio – Webdesign aus Magdeburg. Schriften lokal eingebunden (keine Google-Fonts-Anfragen).
Version: 1.0.1
Requires at least: 6.3
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: studio104
*/

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations"), url("assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #15161A;
	--paper: #F3F0E8;
	--white: #FFFFFF;
	--sand: #E6E1D5;
	--line: #D6D1C5;
	--muted: #4A4A45;
	--muted-2: #6B6B64;
	--on-dark: #C9C6BD;
	--accent: #FF6A3D;
	--display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(20px, 5.6vw, 80px);
	--section: clamp(80px, 8.9vw, 128px);
	--radius: clamp(20px, 1.7vw, 24px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.icon { flex-shrink: 0; }
.logo-accent { fill: var(--accent); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .contact :focus-visible { outline-color: var(--accent); }

/* ---------- Type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--accent { color: var(--accent); }
.h2 {
	font-family: var(--display); font-weight: 700;
	font-size: clamp(38px, 4.45vw, 64px); line-height: 1.03; letter-spacing: -.035em;
	max-width: 820px; text-wrap: balance;
}
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.02em; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 56px; padding: 0 26px; border-radius: 999px;
	font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--lg { height: 60px; padding: 0 28px; font-size: 17px; }
.btn--xl { height: 68px; padding: 0 34px; font-size: 19px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--outline-light { border-color: var(--paper); color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }

.icon-btn {
	width: 44px; height: 44px; border-radius: 999px; border: 0; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
}
.icon-btn--accent { background: var(--accent); color: var(--ink); }
.icon-btn--dark { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 240, 232, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; line-height: 0; }
.site-nav { display: flex; align-items: center; gap: 40px; font-weight: 500; font-size: 16px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav__cta-mobile { display: none !important; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__call, .menu-toggle { display: none; }
.menu-toggle__close { display: none; line-height: 0; }
.menu-toggle__open { line-height: 0; }

@media (max-width: 960px) {
	html { scroll-padding-top: 72px; }
	.site-header__inner { height: 72px; }
	.site-logo .logo-svg { width: 153px; height: 30px; }
	.site-header__cta { display: none; }
	.site-header__call, .menu-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 72px 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 24px; background: var(--paper);
		border-bottom: 1px solid var(--line);
		font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.02em;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav__cta-mobile { display: inline-flex !important; margin-top: 20px; font-family: var(--body); font-size: 16px; letter-spacing: 0; }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.nav-open .menu-toggle__open { display: none; }
	.nav-open .menu-toggle__close { display: inline; }
	/* .site-nav ist relativ zum Header positioniert (backdrop-filter), daher kein Admin-Bar-Offset */
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6.7vw, 96px); }
.pill {
	display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px;
	border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.hero__title {
	margin-top: 32px;
	font-family: var(--display); font-weight: 700;
	font-size: clamp(56px, 9.45vw, 136px); line-height: .96; letter-spacing: -.045em;
}
.mark { background: var(--accent); padding: 0 .14em; border-radius: .15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__row { margin-top: clamp(28px, 3.9vw, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.46vw, 21px); line-height: 1.55; color: var(--muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
	.hero__title br { display: none; }
	.hero__actions { width: 100%; flex-direction: column; }
	.hero__actions .btn { width: 100%; height: 56px; font-size: 16px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--accent); height: clamp(56px, 5.6vw, 80px); display: flex; align-items: center; overflow: hidden; }
.ticker__track { display: flex; gap: clamp(20px, 2.5vw, 36px); width: max-content; animation: ticker 40s linear infinite; }
.ticker__item {
	display: inline-flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); white-space: nowrap;
	font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.1vw, 30px); letter-spacing: -.02em;
}
.ticker__item .icon { width: clamp(16px, 1.5vw, 22px); height: auto; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 4.45vw, 64px); }
.section__head .eyebrow { margin-bottom: 20px; }
.section__intro { max-width: 380px; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* ---------- Services ---------- */
.card { background: var(--white); border-radius: var(--radius); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: clamp(12px, 1.2vw, 16px); }
.b { border-radius: var(--radius); padding: clamp(24px, 2.3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; background: var(--white); }
.b h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.1; }
.b p { color: var(--muted); font-size: 16px; margin-top: 6px; }
.b__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.b__grow { flex: 1; }
.b--web { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--paper); justify-content: flex-start; }
.b--web .b__ic { background: rgba(255, 255, 255, .08); }
.b--web .b__body { display: flex; flex-direction: column; gap: 16px; }
.b--web h3 { font-size: clamp(34px, 3.4vw, 48px); }
.b--web p { color: var(--on-dark); max-width: 380px; margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); color: var(--paper); }
.b--web .shots { position: relative; aspect-ratio: 100 / 66; margin: auto -20px -78px; padding-top: 8px; flex-shrink: 0; }
.b--web .shots img { position: absolute; width: 72%; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); transition: transform .4s ease; }
.b--web .shots img:nth-child(1) { left: 0; bottom: 0; transform: rotate(-4deg); }
.b--web .shots img:nth-child(2) { right: 0; bottom: 12px; transform: rotate(3deg); }
.b--web:hover .shots img:nth-child(1) { transform: rotate(-6deg) translateY(-8px); }
.b--web:hover .shots img:nth-child(2) { transform: rotate(5deg) translateY(-12px); }
.b--grafik { grid-column: span 2; background: var(--accent); }
.b--grafik p { color: var(--ink); opacity: .8; }
.swatches { display: flex; gap: 8px; align-items: center; }
.swatches span { width: 34px; height: 34px; border-radius: 99px; border: 2px solid var(--accent); box-shadow: 0 0 0 1px rgba(21, 22, 26, .15); }
.swatches .aa { width: auto; height: auto; border: 0; box-shadow: none; font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -.04em; margin-left: auto; line-height: 1; }
.b--seo .rank { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.b--seo .rank div { display: flex; gap: 8px; align-items: center; background: var(--paper); border-radius: 10px; padding: 6px 10px; }
.b--seo .rank div:not(:first-child) { opacity: .55; }
.b--seo .rank b { background: var(--accent); color: var(--white); border-radius: 6px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.b--host { background: var(--sand); grid-column: span 2; flex-direction: row; align-items: flex-end; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: var(--white); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 99px; background: #2FB36B; box-shadow: 0 0 0 4px rgba(47, 179, 107, .18); }
.b--support { grid-column: span 2; flex-direction: row; align-items: center; }
.b--support .big { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.05em; line-height: .9; color: var(--accent); }
@media (max-width: 1040px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.b--web { grid-row: span 1; }
}
@media (max-width: 640px) {
	.bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.b--web, .b--grafik, .b--host, .b--support { grid-column: auto; }
	.b { gap: 16px; }
	.b--host, .b--support { flex-direction: column; align-items: flex-start; }
	.b--host .status { order: -1; }
	.b--support .big { order: -1; }
}

/* ---------- Philosophie / Angebot ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6.7vw, 96px); align-items: center; }
.split__text { display: flex; flex-direction: column; gap: 28px; }
.lead-dark { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--on-dark); }
.offer { background: var(--accent); color: var(--ink); border-radius: 28px; padding: clamp(28px, 3.3vw, 48px); display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 32px); }
.offer__title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.05vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.offer__list { list-style: none; margin: 0; padding: 0; }
.offer__list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1.5px solid rgba(21, 22, 26, .25); font-size: 18px; font-weight: 500; line-height: 1.35; }
.offer .btn { align-self: flex-start; }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split__text { gap: 20px; }
	.offer__list li { font-size: 16px; padding: 14px 0; }
	.offer .btn { align-self: stretch; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 2px solid var(--ink); }
.step__no { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.04em; }
.step__title { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--muted); }
@media (max-width: 960px) {
	.steps { grid-template-columns: 1fr; gap: 0; }
	.step { flex-direction: row; gap: 20px; padding: 22px 0; }
	.step__no { width: 56px; flex-shrink: 0; font-size: 36px; }
	.step__title { font-size: 18px; margin-bottom: 6px; }
	.step p { font-size: 15px; }
}

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.project { display: flex; flex-direction: column; gap: 20px; text-decoration: none; color: var(--ink); }
.project__frame { aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--sand); padding: clamp(20px, 2.2vw, 32px) clamp(20px, 2.2vw, 32px) 0; display: flex; overflow: hidden; }
.project__browser { flex: 1; display: flex; flex-direction: column; background: var(--white); border-radius: 14px 14px 0 0; box-shadow: 0 20px 50px rgba(21, 22, 26, .12); overflow: hidden; transition: transform .3s ease; }
a.project:hover .project__browser { transform: translateY(-6px); }
.project__bar { height: 36px; flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid #ECE8DF; }
.project__bar i { width: 10px; height: 10px; border-radius: 99px; background: #DAD5CA; }
.project__shot { flex: 1; position: relative; overflow: hidden; }
.project__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
	font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -.02em; color: var(--muted-2);
	background: repeating-linear-gradient(135deg, #FAF8F3 0 14px, var(--paper) 14px 28px);
}
.project__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__name { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 1.95vw, 28px); letter-spacing: -.02em; }
.project__tag { font-size: 16px; color: var(--muted); }
.round-arrow { width: 52px; height: 52px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s; }
a.project:hover .round-arrow { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
	.projects { grid-template-columns: 1fr; gap: 32px; }
	.project__bar { height: 26px; gap: 5px; padding: 0 12px; }
	.project__bar i { width: 7px; height: 7px; }
	.round-arrow { width: 44px; height: 44px; }
}

.project__frame--mockup { padding: clamp(8px, 1vw, 14px); align-items: center; justify-content: center; }
.project__mockup { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(21, 22, 26, .14)); transform: scale(1.12); transition: transform .3s ease; }
a.project:hover .project__mockup { transform: scale(1.12) translateY(-6px); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 24px); }
.feature { background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.feature__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.feature__title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.08; letter-spacing: -.025em; }
.feature p { color: var(--muted); }
@media (max-width: 900px) {
	.features { grid-template-columns: 1fr; }
	.feature { min-height: 0; }
	.feature__icon { width: 52px; height: 52px; border-radius: 15px; }
	.feature__icon .icon { width: 24px; height: 24px; }
}

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0 clamp(32px, 5.6vw, 80px); }
.contact__box { background: var(--ink); color: var(--paper); border-radius: clamp(28px, 2.5vw, 36px); padding: clamp(32px, 6.7vw, 96px) clamp(24px, 6.7vw, 96px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px 64px; flex-wrap: wrap; }
.contact__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: clamp(20px, 2vw, 28px); max-width: 760px; }
.contact__actions { flex-shrink: 0; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6.1vw, 88px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.contact__actions { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) {
	.contact__actions { width: 100%; }
	.contact__actions .btn { width: 100%; height: 58px; font-size: 17px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 56px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-footer__nav { display: flex; gap: 8px 32px; flex-wrap: wrap; font-weight: 500; }
.site-footer__nav a { text-decoration: none; padding: 10px 0; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 32px; font-size: 15px; color: var(--muted); }
@media (max-width: 640px) {
	.site-footer__top { flex-direction: column; align-items: flex-start; }
	.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.site-footer__bottom { flex-direction: column; font-size: 14px; }
}

/* ---------- Pages (Impressum, Datenschutz …) ---------- */
.site-main .page { padding: clamp(48px, 6vw, 96px) 0 var(--section); } /* nicht nur .page: WP setzt die Klasse auch auf <body> */
.page__title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; margin: 16px 0 40px; }
.page--404 .btn { margin-top: 32px; }
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.2; margin-top: 1.8em; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 23px; }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-list__item a { text-decoration: none; }
.post-list__item p { color: var(--muted); margin-top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
