/*
Theme Name: Templatev1
Theme URI: https://brillenschmitz.de
Author: Brillen Schmitz
Description: Modernisiertes Theme für Brillen Schmitz - übernimmt Inhalte, Struktur und Farbidentität (dunkles Anthrazit + Gold) der alten Seite, aber mit responsivem, zeitgemäßem Aufbau statt Tabellen-Layout.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: templatev1
*/

/* ---------------------------------------------------------
   Grundlagen / Farbwelt (übernommen aus der alten Seite:
   Anthrazit #262626 / #555555 + Gold #FC6, hier verfeinert)
--------------------------------------------------------- */
:root {
	--color-dark: #262626;
	--color-dark-2: #3a3a3a;
	--color-gold: #caa14b;
	--color-gold-light: #e6c988;
	--color-bg: #faf8f5;
	--color-surface: #ffffff;
	--color-text: #2b2b2b;
	--color-text-light: #f3f1ec;
	--color-muted: #6b6b6b;
	--radius: 10px;
	--shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	--maxw: 1140px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Segoe UI", Helvetica, Arial, sans-serif;
	background: var(--color-bg);
	color: var(--color-text);
	line-height: 1.65;
	font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, "Times New Roman", Times, serif;
	color: var(--color-dark);
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: 2.1em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.05em; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-gold); }

a {
	color: var(--color-gold);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

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

ul {
	padding-left: 1.2em;
}

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

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
	background: var(--color-dark);
	color: var(--color-text-light);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
}

.site-branding {
	display: flex;
	flex-direction: column;
}

.site-branding a {
	color: var(--color-text-light);
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 1.6em;
	font-weight: bold;
	text-decoration: none;
}

.site-branding a:hover {
	color: var(--color-gold-light);
}

.site-description {
	color: var(--color-gold);
	font-size: 0.8em;
	letter-spacing: 0.02em;
}

.nav-toggle {
	display: none;
	background: none;
	border: 2px solid var(--color-gold);
	color: var(--color-text-light);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 1.2em;
	cursor: pointer;
}

.primary-menu {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	color: var(--color-text-light);
	font-size: 0.98em;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}

.primary-menu a:hover,
.primary-menu li.current-menu-item a {
	color: var(--color-gold-light);
	border-bottom-color: var(--color-gold);
	text-decoration: none;
}

@media (max-width: 780px) {
	.nav-toggle {
		display: inline-block;
	}
	.primary-menu {
		display: none;
		flex-direction: column;
		gap: 4px;
		width: 100%;
		padding: 12px 0 20px;
	}
	.primary-menu.is-open {
		display: flex;
	}
	.site-header .container {
		flex-wrap: wrap;
	}
}

/* ---------------------------------------------------------
   Hero (nur Startseite)
--------------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
	color: var(--color-text-light);
	padding: 70px 0 90px;
	text-align: center;
}

.hero h1 {
	color: var(--color-text-light);
	font-size: 2.5em;
	margin-bottom: 0.4em;
}

.hero p.tagline {
	color: var(--color-gold-light);
	font-size: 1.15em;
	max-width: 620px;
	margin: 0 auto 1.6em;
}

.button {
	display: inline-block;
	background: var(--color-gold);
	color: var(--color-dark);
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: bold;
	letter-spacing: 0.02em;
	transition: background 0.15s ease;
}

.button:hover {
	background: var(--color-gold-light);
	text-decoration: none;
}

/* ---------------------------------------------------------
   Content
--------------------------------------------------------- */
.content-wrap {
	padding: 56px 0 72px;
}

.entry {
	background: var(--color-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px clamp(20px, 5vw, 56px);
}

.entry img {
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin: 0.5em 0;
}

.entry blockquote {
	border-left: 4px solid var(--color-gold);
	margin: 1.4em 0;
	padding: 0.4em 1.2em;
	background: #fbf6ea;
	border-radius: 0 8px 8px 0;
	font-style: italic;
}

.entry dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 20px;
}

.entry dt {
	font-weight: bold;
	color: var(--color-dark);
}

.entry dd {
	margin: 0;
	color: var(--color-muted);
}

/* Bild-/Logo-Galerien aus den importierten Seiten (inline flex-divs) */
.entry div[style*="flex"] img {
	background: #fff;
	padding: 6px;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
	background: var(--color-dark);
	color: var(--color-text-light);
	padding: 48px 0 28px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin-bottom: 28px;
}

.footer-grid h4 {
	color: var(--color-gold);
}

.footer-grid p,
.footer-grid a {
	color: var(--color-text-light);
	margin: 0.2em 0;
}

.footer-grid a:hover {
	color: var(--color-gold-light);
}

.site-footer .footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 18px;
	font-size: 0.85em;
	color: var(--color-muted);
	text-align: center;
}

/* ---------------------------------------------------------
   404 / Fallback
--------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: 80px 0;
}
