/* ============ Donau Bücher – Stylesheet ============ */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1d2733;
  --muted: #5d6b7a;
  --line: #e4ddd0;
  --accent: #1b5e7a;      /* Donau-Blau */
  --accent-dark: #134456;
  --gold: #c8862a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 40, 60, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  margin-left: 22px;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  padding: 64px 0 72px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 14px; }
.hero p { font-size: 1.1rem; max-width: 640px; color: #e7f0f4; margin: 0; }

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 1.7rem; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 32px; }

/* ---------- Produktraster ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,40,60,.14); }
.card-img {
  background: #eceae3;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.35; }
.card-body p { color: var(--muted); font-size: .92rem; margin: 0 0 18px; flex: 1; }
.card .btn { margin-top: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-amazon { background: var(--gold); }
.btn-amazon:hover { background: #a76e1f; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #eef4f6; color: var(--accent-dark); }

/* ---------- Produktdetail ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.product {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  padding: 30px 0 60px;
  align-items: start;
}
.product-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.product-media img { width: 100%; height: auto; object-fit: contain; max-height: 460px; margin: 0 auto; }
.product h1 { font-size: 1.8rem; margin: 0 0 8px; }
.product .lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.product .desc p { margin: 0 0 16px; }
.product .actions { margin: 26px 0; display: flex; gap: 14px; flex-wrap: wrap; }

.details {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.details th, .details td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.details th { width: 40%; color: var(--muted); font-weight: 600; }
.details tr:last-child th, .details tr:last-child td { border-bottom: none; }

.detail-h { font-size: 1.2rem; margin: 36px 0 6px; }

/* ---------- Statische Seiten ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: 2rem; margin: 0 0 18px; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #14202b;
  color: #c4d0da;
  padding: 40px 0 28px;
  margin-top: 40px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer a { color: #c4d0da; }
.site-footer a:hover { color: #fff; }
.footer-nav a { margin-right: 18px; font-size: .9rem; }
.footer-note { width: 100%; border-top: 1px solid #25333f; margin-top: 24px; padding-top: 18px; font-size: .82rem; color: #8b9aa6; }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 20px 22px;
  z-index: 80;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { margin: 0 0 6px; font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; max-width: 320px; }
  .main-nav a { margin-left: 14px; }
}
@media (max-width: 540px) {
  .brand small { display: none; }
  .hero { padding: 44px 0 50px; }
}
