@charset "utf-8";
/* ==========================================================================
   Walhallanet – Stylesheet
   Systemschriften statt Webfonts: keine Verbindung zu Drittanbietern (DSGVO).
   ========================================================================== */

:root {
	--paper: #faf7f2;
	--surface: #ffffff;
	--surface-soft: #f3eee7;
	--ink: #1f1a1c;
	--ink-soft: #4a4245;
	--muted: #6e6468;
	--line: #e6ded5;
	--accent: #7a4652;
	--accent-strong: #5e3440;
	--accent-soft: #f2e7e9;
	--success-bg: #e8f3ec;
	--success-ink: #1e5b35;
	--error-bg: #fbeaea;
	--error-ink: #8a1f1f;

	--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(31, 26, 28, .06), 0 1px 1px rgba(31, 26, 28, .04);
	--shadow: 0 10px 30px -12px rgba(31, 26, 28, .22);
	--container: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Grundlagen ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .75rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Kopfbereich ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 247, 242, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap;
	min-height: 72px; padding-top: .6rem; padding-bottom: .6rem;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 28px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
	display: block; padding: .5rem .8rem; border-radius: 999px;
	color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.4rem; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	border: 2px solid var(--accent); background: var(--accent); color: #fff;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Abschnitte ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head p { margin: 0; max-width: 60ch; color: var(--muted); }

/* ---------- Startseite: Hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.hero-covers { position: relative; height: 360px; }
.hero-covers img {
	position: absolute; width: 190px; border-radius: 4px;
	box-shadow: 0 24px 40px -18px rgba(31, 26, 28, .45);
	background: #fff;
}
.hero-covers img:nth-child(1) { left: 4%;  top: 40px; transform: rotate(-7deg); }
.hero-covers img:nth-child(2) { left: 32%; top: 0;    transform: rotate(1deg); z-index: 2; }
.hero-covers img:nth-child(3) { left: 60%; top: 48px; transform: rotate(7deg); }

/* ---------- Publikationen ---------- */

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }

.book-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm); overflow: hidden;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9cfc4; }

.book-card .cover {
	display: flex; align-items: center; justify-content: center;
	height: 250px; padding: 1.5rem; background: var(--surface-soft);
}
.book-card .cover img { max-height: 100%; width: auto; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(31, 26, 28, .45); }

.book-card .body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.book-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.book-card h3 a { color: inherit; text-decoration: none; }
.book-card h3 a::after { content: ""; position: absolute; inset: 0; }
.book-card .subtitle { font-size: .92rem; color: var(--ink-soft); margin-bottom: .5rem; }
.book-card .authors { font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.book-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding-top: .75rem; border-top: 1px dashed var(--line); }
.book-card .isbn { font-size: .78rem; color: var(--muted); }
.price { font-weight: 700; color: var(--accent-strong); white-space: nowrap; }
.book-card .more { font-size: .88rem; font-weight: 600; color: var(--accent); }

.note-box {
	margin-top: 2.5rem; padding: 1.25rem 1.5rem;
	background: var(--accent-soft); border-radius: var(--radius); color: var(--ink-soft);
}
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Druckerei-Band ---------- */

.band { background: var(--ink); color: #f4efe9; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; }
.band h2 { color: #fff; margin-bottom: .4rem; }
.band p { margin: 0; color: #d9d0c8; }
.band .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.band .tags span { font-size: .85rem; padding: .3rem .75rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; }

/* ---------- Buchdetail ---------- */

.book-detail { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-detail .cover-frame {
	position: sticky; top: 100px;
	background: var(--surface-soft); border-radius: var(--radius-lg);
	padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; justify-content: center;
}
.book-detail .cover-frame img { border-radius: 4px; box-shadow: 0 24px 40px -18px rgba(31, 26, 28, .45); }
.book-detail h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: .4rem; }
.book-detail .subtitle { font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1rem; }
.book-detail .authors { font-weight: 600; margin-bottom: 1.5rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-size: .97rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose .footnotes { font-size: .9rem; color: var(--muted); }

.content-block { margin-top: 3rem; }
.content-block > h2 { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }

.quotes { display: grid; gap: 1rem; margin-top: 1.25rem; }
.quote { margin: 0; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.quote blockquote { margin: 0 0 .75rem; color: var(--ink-soft); }
.quote figcaption { font-weight: 700; font-size: .95rem; }
.quote figcaption small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Bestellen ---------- */

.order-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.card h2, .card h3 { margin-top: 0; }
.card + .card { margin-top: 1.5rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; }
.contact-list span { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.req { color: var(--accent); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

input[type="text"], input[type="email"], select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	padding: .7rem .85rem; background: #fff;
	border: 1px solid #d3c9bf; border-radius: 8px;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
textarea { min-height: 9rem; resize: vertical; }

.choice-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.choice { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border: 1px solid #d3c9bf; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.choice input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }

.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.price-table th, .price-table td { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table .authors { display: block; font-size: .88rem; color: var(--muted); }
.price-table a { font-weight: 600; text-decoration: none; }
.price-table a:hover { text-decoration: underline; }

.ship-list { list-style: none; padding: 0; margin: 0; }
.ship-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.ship-list li:last-child { border-bottom: 0; }

.alert { padding: 1.1rem 1.35rem; border-radius: var(--radius); font-weight: 500; margin-bottom: 1.5rem; }
.alert-success { background: var(--success-bg); color: var(--success-ink); }
.alert-error { background: var(--error-bg); color: var(--error-ink); }

/* ---------- PDF ---------- */

.pdf-frame { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Fußbereich ---------- */

.site-footer { margin-top: clamp(3rem, 7vw, 5rem); background: #191416; color: #cfc6bf; font-size: .95rem; }
.site-footer a { color: #f4efe9; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem 3rem; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-tag { color: #a99f98; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0 1.5rem; font-size: .85rem; color: #a99f98; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
	.hero-grid, .book-detail, .order-layout, .band { grid-template-columns: 1fr; }
	.hero-covers { height: 300px; max-width: 460px; }
	.hero-covers img { width: 160px; }
	.book-detail .cover-frame { position: static; max-width: 380px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.header-inner { min-height: 0; }
	.site-nav { width: 100%; }
	.site-nav ul { gap: .15rem; }
	.site-nav a { padding: .4rem .7rem; font-size: .9rem; }
	.hero-covers { height: 230px; }
	.hero-covers img { width: 120px; }
	.book-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1rem; }
	.book-card .cover { height: 200px; padding: 1rem; }
	.book-card .body { padding: .9rem 1rem 1rem; }
	.book-card .isbn { display: none; }
	.form-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr; gap: .1rem; }
	.facts dd { margin-bottom: .6rem; }
	.footer-grid { grid-template-columns: 1fr; }
}

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

@media print {
	.site-header, .site-footer, .btn-row, .hero-covers { display: none; }
	body { background: #fff; }
}
