/*
Theme Name: Sonnenteleskop
Theme URI: https://sonnenteleskop.de
Author: Sonnenteleskop.de
Description: Premium Theme für Sonnenteleskop.de
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sonnenteleskop
*/

:root {
	--color-ink: #0F172A;
	--color-slate: #1E293B;
	--color-muted: #64748B;
	--color-line: #E2E8F0;
	--color-bg: #FFFFFF;
	--color-bg-soft: #F8FAFC;
	--color-accent: #C2410C;
	--color-accent-hover: #9A3412;
	--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--space-section: 5rem;
	--radius: 10px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--color-ink);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--color-ink);
	margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2 { font-size: 1.75rem; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
	background: var(--color-ink);
	color: #fff;
	padding: 1.1rem 0;
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-title { font-family: var(--font-serif); font-size: 1.4rem; margin: 0; }
.site-title a { color: #fff; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.nav-menu a { color: #CBD5E1; font-size: 0.95rem; }
.nav-menu a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0.4rem; }

/* Product */
.product-hero {
	padding: 4.5rem 0 3.5rem;
	background: var(--color-bg-soft);
}
.product-layout {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 4rem;
	align-items: start;
}
.product-image {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-md);
}
.product-kicker {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 0.6rem;
}
.product-title { margin-bottom: 0.4rem; }
.product-subtitle { color: var(--color-muted); margin: 0 0 1.5rem; font-size: 1.05rem; }
.product-content { margin-bottom: 2rem; }
.product-content ul { margin: 0.75rem 0 0 1.1rem; padding: 0; }
.product-content li { margin-bottom: 0.4rem; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--color-accent);
	color: #fff !important;
	padding: 0.9rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.15s ease;
}
.btn:hover { background: var(--color-accent-hover); }
.btn-label {
	background: rgba(255,255,255,0.2);
	font-size: 0.65rem;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.product-body { padding: 4rem 0 5rem; }
.product-grid-2 {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
}
.card {
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 1.75rem 1.75rem 1.5rem;
	box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-line);
	text-align: left;
	vertical-align: top;
}
.specs th { width: 40%; color: var(--color-muted); font-weight: 500; font-size: 0.95rem; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer {
	background: var(--color-ink);
	color: #94A3B8;
	padding: 3rem 0 2.5rem;
	font-size: 0.9rem;
}
.site-footer a { color: #CBD5E1; }

/* Mobile */
@media (max-width: 900px) {
	.product-layout, .product-grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
	.nav-toggle { display: block; }
	.site-nav { display: none; }
	.site-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-slate);
		padding: 1rem 1.5rem 1.25rem;
	}
	.nav-menu { flex-direction: column; gap: 0.75rem; }
	.site-header .container { position: relative; }
}
/* Gallery */
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumbs a { display: block; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 1px solid var(--color-line); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
