:root {
	--bg: #f7f1e8;
	--bg-card: #fffbf4;
	--ink: #2a2420;
	--ink-muted: #6b5f53;
	--line: #e7dfd2;
	--accent: #c97a3f;
	--accent-soft: #f3a450;
	--shadow: 0 4px 16px rgba(60, 40, 20, 0.08);
	--radius: 14px;
	--radius-sm: 10px;
	--container: 1400px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Header --- */
.site-header {
	background: var(--bg-card);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(1.2) blur(8px);
}
.site-header-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	max-width: var(--container);
	margin: 0 auto;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	font-weight: 600;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.brand-name {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.3rem;
	letter-spacing: 0.01em;
}
.brand-sub {
	display: block;
	font-size: 0.72rem;
	color: var(--ink-muted);
	font-family: inherit;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nav { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a, .nav button {
	background: transparent;
	border: 1px solid transparent;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ink-muted);
	font-size: 0.92rem;
	cursor: pointer;
	font-family: inherit;
}
.nav a:hover, .nav button:hover { color: var(--ink); background: rgba(201, 122, 63, 0.08); }
.nav a.active { color: var(--ink); background: rgba(201, 122, 63, 0.12); }

/* --- Hero --- */
.hero {
	padding-top: 48px;
	padding-bottom: 32px;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: center;
}
.hero h1 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	line-height: 1.1;
	margin: 0 0 18px;
	letter-spacing: -0.01em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
	color: var(--ink-muted);
	margin: 0 0 14px;
	font-size: 1.05rem;
}
.hero-photo {
	position: relative;
	max-width: 300px;
	width: 100%;
	margin-left: auto;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--bg-card);
}
.hero-photo img { width: 100%; height: auto; display: block; }

/* --- Section Titles --- */
.section {
	padding-top: 40px;
	padding-bottom: 40px;
}
.section-title {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.6rem;
	margin: 0 0 6px;
	display: flex;
	align-items: baseline;
	gap: 14px;
}
.section-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}
.section-sub {
	color: var(--ink-muted);
	margin: 0 0 24px;
	font-size: 0.95rem;
}

/* --- Blog --- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}
.post {
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.post-cover {
	aspect-ratio: 16/10;
	background: var(--line);
	overflow: hidden;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.post-date {
	font-size: 0.78rem;
	color: var(--ink-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}
.post h3 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.2rem;
	margin: 0 0 8px;
}
.post-text { color: var(--ink-muted); font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; }
.post-actions { margin-top: 12px; display: flex; gap: 8px; }
.btn-icon {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink-muted);
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 0.8rem;
	cursor: pointer;
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }

.blog-empty {
	text-align: center;
	color: var(--ink-muted);
	padding: 40px 0;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

/* --- Gallery (Row-wise column layout: zeilenweise Zeitreihe) --- */
.gallery {
	display: flex;
	gap: 6px;
}
.gallery-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gallery a {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-card);
	box-shadow: 0 1px 3px rgba(60, 40, 20, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	position: relative;
}
.gallery a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery img,
.gallery video {
	width: 100%;
	height: auto;
	display: block;
}
.gallery .video-item { position: relative; }
.gallery .play-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	pointer-events: none;
	backdrop-filter: blur(2px);
}
.gallery .play-badge::before { content: "▶"; transform: translateX(1px); }
.gallery .duration-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	padding: 2px 7px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
	backdrop-filter: blur(2px);
}
.gallery .caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 20px 12px 10px;
	color: #fff;
	font-size: 0.82rem;
	background: linear-gradient(transparent, rgba(0,0,0,0.55));
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	white-space: pre-wrap;
}
.gallery a:hover .caption { opacity: 1; }

/* --- Spinner --- */
.spinner {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 40px 0;
}
.lds-hourglass {
	display: inline-block;
	position: relative;
	width: 64px;
	height: 64px;
}
.lds-hourglass::after {
	content: " ";
	display: block;
	border-radius: 50%;
	width: 0;
	height: 0;
	margin: 6px;
	box-sizing: border-box;
	border: 26px solid var(--accent-soft);
	border-color: var(--accent-soft) transparent var(--accent-soft) transparent;
	animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
	0%   { transform: rotate(0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
	50%  { transform: rotate(900deg); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	100% { transform: rotate(1800deg); }
}

.hidden { display: none !important; }

/* --- Footer --- */
.site-footer {
	margin-top: 60px;
	border-top: 1px solid var(--line);
	padding: 24px 0;
	color: var(--ink-muted);
	font-size: 0.85rem;
	text-align: center;
}
.site-footer a { color: var(--ink-muted); text-decoration: underline; }

/* --- Modal --- */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(30, 20, 10, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 200;
	padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-panel {
	background: var(--bg-card);
	border-radius: var(--radius);
	width: 100%;
	max-width: 560px;
	box-shadow: 0 12px 48px rgba(0,0,0,0.2);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-family: Georgia, serif; font-size: 1.2rem; }
.modal-body { padding: 18px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { background: transparent; border: none; font-size: 1.4rem; color: var(--ink-muted); cursor: pointer; }

/* --- Forms --- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 5px; }
.input, .textarea, select.input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	font-family: inherit;
	font-size: 1rem;
	color: var(--ink);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 122, 63, 0.15); }
.textarea { min-height: 180px; resize: vertical; line-height: 1.5; }

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--bg-card);
	color: var(--ink);
	font-family: inherit;
	font-size: 0.92rem;
	cursor: pointer;
	transition: all 0.15s ease;
}
.btn:hover { background: #fff; border-color: var(--accent); }
.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}
.btn-primary:hover { background: #b86b34; border-color: #b86b34; color: #fff; }
.btn-danger {
	background: #c94040;
	border-color: #c94040;
	color: #fff;
}
.btn-danger:hover { background: #a63434; border-color: #a63434; color: #fff; }
.btn-ghost { background: transparent; }

.upload-btn input[type=file] { display: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
	.container { padding: 0 24px; }
	.hero-inner { grid-template-columns: 1fr; gap: 24px; }
	.hero-photo { display: none; }
	.hero { padding-top: 28px; padding-bottom: 16px; }
	.section { padding-top: 28px; padding-bottom: 28px; }
	.brand-name { font-size: 1.1rem; }
	.brand-sub { font-size: 0.68rem; }
	.nav { gap: 4px; }
	.nav a, .nav button { padding: 6px 10px; font-size: 0.85rem; }
}

/* Fancybox caption center */
.fancybox__caption { text-align: center; }

/* --- Admin Bar --- */
.admin-bar {
	position: sticky;
	top: 73px;
	z-index: 40;
	background: var(--bg-card);
	border-bottom: 1px solid var(--line);
	padding: 10px 0;
}
.admin-bar-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}
.admin-bar .mode-active { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 860px) {
	.admin-bar { top: 65px; }
	.admin-bar-inner { justify-content: flex-start; }
	.admin-bar .btn { font-size: 0.85rem; padding: 6px 10px; }
}
