/* Tortenparadies - site.css
   Schlichtes, modernes Layout. Light + Dark, mobil zuerst. */

:root {
	--bg:        #faf6f1;
	--bg-alt:    #f2ebe2;
	--surface:   #ffffff;
	--ink:       #2b2320;
	--ink-soft:  #6f635b;
	--line:      #e4dacd;
	--accent:    #a8324a;
	--accent-ink:#ffffff;
	--shadow:    0 1px 2px rgba(43, 35, 32, .06), 0 12px 30px rgba(43, 35, 32, .10);
	--radius:    14px;
	--wrap:      1120px;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg:        #1b1714;
		--bg-alt:    #221d19;
		--surface:   #262019;
		--ink:       #f2ebe3;
		--ink-soft:  #b7a99c;
		--line:      #3a312a;
		--accent:    #e8859a;
		--accent-ink:#241014;
		--shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .45);
	}
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 48px);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 10px 16px;
	border-radius: 0 0 10px 0;
	z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.brand {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1.1;
}
.brand-name {
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 600;
}
.brand-sub {
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.site-nav a {
	text-decoration: none;
	font-size: .95rem;
	color: var(--ink-soft);
	padding: 6px 0;
	position: relative;
	transition: color .18s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }
.site-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--accent);
	transition: right .22s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }
.site-nav .nav-ig { color: var(--accent); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	cursor: pointer;
	padding: 0;
}
.nav-toggle span {
	display: block;
	width: 20px; height: 2px;
	margin: 4px auto;
	background: var(--ink);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		padding: 8px clamp(20px, 5vw, 48px) 16px;
		display: none;
	}
	.site-nav.open { display: flex; }
	.site-nav a {
		padding: 14px 0;
		border-top: 1px solid var(--line);
		font-size: 1.05rem;
	}
	.site-nav a::after { display: none; }
}

/* ---------- Hero ---------- */

.hero {
	background:
		radial-gradient(60% 100% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}
.hero-inner {
	padding: clamp(56px, 12vw, 128px) 0 clamp(48px, 10vw, 104px);
	max-width: 780px;
}
.eyebrow {
	margin: 0 0 18px;
	font-size: .78rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
}
.hero h1 {
	font-size: clamp(2.1rem, 6vw, 3.6rem);
	margin-bottom: .35em;
}
.lead {
	font-size: clamp(1.05rem, 2.4vw, 1.3rem);
	color: var(--ink-soft);
	max-width: 46ch;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	text-decoration: none;
	font-size: .95rem;
	font-weight: 500;
	border: 1px solid var(--accent);
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover,
.btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
	border-color: var(--accent);
	box-shadow: none;
}

/* ---------- Sections ---------- */

.section {
	padding: clamp(56px, 10vw, 104px) 0;
}
.section-alt {
	background: var(--bg-alt);
	border-block: 1px solid var(--line);
}
.section-head {
	max-width: 60ch;
	margin-bottom: clamp(32px, 6vw, 56px);
}
.section-head h2,
.about-text h2,
.contact-inner h2 {
	font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.section-head p,
.contact-inner p {
	color: var(--ink-soft);
	margin: 0;
}

/* ---------- Galerie ---------- */

.works {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: clamp(18px, 3vw, 32px);
}
.work {
	margin: 0;
}
.work .tile {
	display: block;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 5;
	transition: transform .22s ease, box-shadow .22s ease;
}
.work .tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.work .tile:hover,
.work .tile:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(43,35,32,.10), 0 22px 46px rgba(43,35,32,.16);
}
.work .tile:hover img,
.work .tile:focus-visible img { transform: scale(1.04); }

/* Instagram-Kachel: kleines Kürzel oben rechts */
.work .tile[target]::after {
	content: "Instagram \2197";
	position: absolute;
	top: 10px;
	right: 10px;
	font-family: var(--font-body);
	font-size: .68rem;
	letter-spacing: .04em;
	padding: 5px 9px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ink) 72%, transparent);
	color: #fff;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .2s ease, transform .2s ease;
}
.work .tile[target]:hover::after,
.work .tile[target]:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
}

.work figcaption {
	margin-top: 12px;
	font-family: var(--font-head);
	font-size: 1.05rem;
	color: var(--ink);
}
.gallery-empty { color: var(--ink-soft); }

/* ---------- Über mich ---------- */

.about-inner {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: clamp(28px, 6vw, 64px);
	align-items: center;
}
.about-media img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.about-text p {
	color: var(--ink-soft);
	margin: 0 0 1em;
}
.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
	.about-inner { grid-template-columns: 1fr; }
	.about-media { max-width: 220px; }
}

/* ---------- Kontakt ---------- */

.contact-inner { max-width: 60ch; }
.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg-alt);
	font-size: .88rem;
	color: var(--ink-soft);
}
.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-block: 24px;
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: none;
	place-items: center;
	padding: clamp(16px, 5vw, 56px);
	background: rgba(16, 12, 10, .92);
}
.lightbox.open { display: grid; }
.lb-stage {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
#lb-img {
	max-width: min(1000px, 92vw);
	max-height: 78vh;
	width: auto;
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
#lb-cap {
	font-family: var(--font-head);
	color: #f3ece4;
	font-size: 1.1rem;
}
.lb-close, .lb-prev, .lb-next {
	position: absolute;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	cursor: pointer;
	border-radius: 999px;
	width: 48px; height: 48px;
	font-size: 1.6rem;
	line-height: 1;
	display: grid;
	place-items: center;
	transition: background .16s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 18px; right: 18px; font-size: 2rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
	.lb-prev { left: 10px; }
	.lb-next { right: 10px; }
	.lb-close { top: 10px; right: 10px; }
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
