/*
Theme Name:   Arnsberger Mühlenbräu
Theme URI:    https://example.de/
Author:       WILDSICHT
Description:  Theme für das Gasthaus & die Brauerei „Arnsberger Mühlenbräu“. Enthält Seitenvorlagen für Gasthaus, Bier sowie Speisen & Getränke (PDF-Karten über den Customizer austauschbar). Schriften lokal eingebunden – keine Verbindung zu Google Fonts.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  muehlenbraeu
*/

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Farben & Grundwerte ---------- */
:root {
	--malz: #2a1b12;        /* dunkles Malzbraun */
	--malz-2: #3b281b;
	--kupfer: #a95f26;      /* Sudkessel-Kupfer */
	--kupfer-hell: #c97d3c;
	--gerste: #d8a645;      /* Gerstengold */
	--hopfen: #56663a;      /* Hopfengrün */
	--creme: #f5ecdc;
	--papier: #fbf7ef;
	--text: #2a1b12;
	--text-weich: #5b4a3d;
	--linie: rgba(42, 27, 18, .14);
	--radius: 6px;
	--max: 1160px;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--papier);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kupfer); text-underline-offset: 3px; }
a:hover { color: var(--malz); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--malz); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; clip: auto; width: auto; height: auto; padding: .6em 1em; background: var(--creme); color: var(--malz); }
:focus-visible { outline: 3px solid var(--gerste); outline-offset: 2px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--kupfer); margin-bottom: .8em; display: block; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .8em 1.4em; border-radius: var(--radius);
	font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none;
	background: var(--kupfer); color: #fff; border: 2px solid var(--kupfer);
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .wp-block-button__link:hover { background: var(--malz); border-color: var(--malz); color: #fff; }
.btn--hell { background: transparent; color: var(--creme); border-color: rgba(245,236,220,.6); }
.btn--hell:hover { background: var(--creme); color: var(--malz); border-color: var(--creme); }

/* ---------- Header ---------- */
.site-header { background: var(--malz); color: var(--creme); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--creme); }
.brand:hover { color: var(--gerste); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.05; }
.brand__name small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gerste); font-weight: 600; margin-top: 3px; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: .55em .9em; color: var(--creme); text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: rgba(245,236,220,.1); color: var(--gerste); }
.nav-toggle { display: none; background: none; border: 2px solid rgba(245,236,220,.4); color: var(--creme); border-radius: var(--radius); padding: .45em .7em; font: 600 .95rem var(--sans); cursor: pointer; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--malz-2); display: none; border-top: 1px solid rgba(245,236,220,.12); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
	.main-nav a { padding: .8em .6em; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; color: var(--creme); overflow: hidden;
	background: radial-gradient(120% 90% at 85% 10%, #5a3a22 0%, var(--malz) 55%, #1c120c 100%);
	padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 120px);
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,18,12,.88) 0%, rgba(28,18,12,.55) 60%, rgba(28,18,12,.35) 100%); }
.hero .wrap { position: relative; }
.hero h1 { color: var(--creme); max-width: 14ch; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gerste); }
.hero p { font-size: 1.2rem; max-width: 46ch; color: rgba(245,236,220,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__wheel { position: absolute; right: -90px; bottom: -120px; width: 460px; height: 460px; opacity: .09; color: var(--gerste); pointer-events: none; }
.hero.has-image .hero__wheel { display: none; }

.page-hero { background: var(--malz); color: var(--creme); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--creme); margin: 0; }
.page-hero .eyebrow { color: var(--gerste); }
.page-hero .hero__wheel { width: 300px; height: 300px; right: -60px; bottom: -110px; }

/* Wellenkante (Mühlbach) unter Heros */
.welle { display: block; width: 100%; height: 28px; color: var(--papier); margin-top: -1px; background: var(--malz); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--creme { background: var(--creme); }
.section--dunkel { background: var(--malz); color: var(--creme); }
.section--dunkel h2, .section--dunkel h3 { color: var(--creme); }
.section__head { max-width: 640px; margin-bottom: 40px; }

.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teaser { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 30px 28px 28px; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(42,27,18,.5); color: var(--text); }
.teaser__icon { width: 44px; height: 44px; color: var(--kupfer); margin-bottom: 18px; }
.teaser h3 { margin-bottom: .35em; }
.teaser p { color: var(--text-weich); flex: 1; }
.teaser__more { font-weight: 700; color: var(--kupfer); }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }

.info-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .info-split { grid-template-columns: 1fr; gap: 32px; } }
.hours { white-space: pre-line; font-size: 1.1rem; line-height: 1.9; }

/* ---------- Seiteninhalt ---------- */
.content { padding: clamp(48px, 7vw, 80px) 0; }
.content .entry { max-width: 760px; }
.content--wide .entry { max-width: none; }
.entry > * + h2 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }
.entry .alignwide { max-width: none; }

.amb-card, .entry .wp-block-group.amb-card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.amb-beer { background: #fff; border: 1px solid var(--linie); border-top: 6px solid var(--gerste); border-radius: var(--radius); padding: 28px; height: 100%; }
.amb-beer.is-dunkel { border-top-color: var(--malz-2); }
.amb-beer.is-saison { border-top-color: var(--hopfen); }
.amb-beer h3 { margin-bottom: .2em; }
.amb-beer .amb-beer__meta { font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kupfer); }
.wp-block-columns { gap: 24px; }
.amb-hinweis { background: #fff6dd; border-left: 4px solid var(--gerste); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }

/* ---------- Karten (PDF) ---------- */
.karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 760px) { .karten { grid-template-columns: 1fr; } }
.karte {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px;
	padding: 34px 32px 30px; border-radius: var(--radius); text-decoration: none; color: var(--creme);
	background: var(--malz); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.karte--getraenke { background: var(--hopfen); }
.karte:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(42,27,18,.7); color: var(--creme); }
.karte h2 { color: var(--creme); margin-bottom: .2em; }
.karte p { color: rgba(245,236,220,.82); margin: 0; }
.karte__icon { position: absolute; right: -24px; top: -24px; width: 170px; height: 170px; opacity: .13; color: var(--creme); }
.karte__cta { display: inline-flex; align-items: center; gap: .5em; margin-top: 28px; font-weight: 700; color: var(--gerste); }
.karte__meta { font-size: .85rem; opacity: .75; margin-top: 6px; }
.karte.is-leer { background: var(--creme); color: var(--text-weich); border: 2px dashed var(--linie); }
.karte.is-leer h2 { color: var(--text-weich); }
.karte.is-leer p { color: var(--text-weich); }
.karten__stand { font-size: .95rem; color: var(--text-weich); margin: -28px 0 40px; }

/* ---------- Footer ---------- */
.site-footer { background: #1c120c; color: rgba(245,236,220,.8); padding: 64px 0 0; font-size: .97rem; }
.site-footer h3 { color: var(--creme); font-size: 1.15rem; margin-bottom: .8em; }
.site-footer a { color: var(--creme); }
.site-footer a:hover { color: var(--gerste); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(245,236,220,.12); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-nav a { text-decoration: none; font-weight: 600; }
.legal-nav a:hover { text-decoration: underline; }

/* ---------- WP-Kleinkram ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--text-weich); }
.lead { font-size: 1.25rem; color: var(--text-weich); }

/* Footer auf kurzen Seiten unten halten */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
