:root {
  --bg: #f7f3ea;
  --paper: #fffdf8;
  --text: #26231f;
  --muted: #6b6358;
  --accent: #5d3f2f;
  --accent-soft: #d7c4ad;
  --line: #e3d8c8;
  --max: 1120px;
  --header-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  font-size: 18px;
}

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


header {
  position: relative;
  min-height: clamp(250px, 34vw, 430px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      to bottom,
      rgba(17, 23, 20, 0.38) 0%,
      rgba(17, 23, 20, 0.62) 52%,
      rgba(17, 23, 20, 0.92) 100%
    ),
    url("images/banner-header.jpg") center 42% / cover no-repeat;
  color: #f4efe4;
  border-bottom: 1px solid rgba(244, 239, 228, 0.35);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.88);
}

.site-title {
  font-size: 2.05rem;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 500;
}

.site-subtitle {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}

nav a {
  color: #fff8e8;
  font-family: var(--header-font);
  font-weight: 600;
  letter-spacing: 0.025em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.82);
}

nav a:hover, nav a.active {
  color: #ffe4a6;
  border-bottom-color: #ffe4a6;
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
  padding: 42px 0 56px;
}

.hero h1, .page-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 22px;
}

.hero p.lead, .lead {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 780px;
}

.portrait-placeholder {
  min-height: 360px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #efe5d5, #fffdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px;
  min-height: 230px;
}

.card p:last-child {
  margin-top: auto;
}

.card h2, .card h3 {
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
}

.text-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.text-tile {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(93, 63, 47, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.text-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(93, 63, 47, 0.16);
  text-decoration: none;
}

.text-tile:not(.text-tile--missing)::after {
  content: "als PDF öffnen";
  position: absolute;
  right: 18px;
  bottom: 16px;
  opacity: 0;
  color: var(--accent);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease;
}

.text-tile.text-tile--external::after {
  content: "bei Amazon ansehen";
}

.text-tile.text-tile--thalia::after {
  content: "bei Thalia ansehen";
}

.text-tile.text-tile--braumueller::after {
  content: "bei Braumüller ansehen";
}

.text-tile.text-tile--page::after {
  display: none;
}

.text-tile:not(.text-tile--missing):hover::after {
  opacity: 1;
}

.text-tile.text-tile--video:hover::after {
  opacity: 0;
}

.text-tile__title {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.18;
  font-weight: 500;
}

.text-tile__meta {
  display: block;
  max-width: 88%;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.text-tile--missing {
  cursor: not-allowed;
  opacity: 0.72;
}

.text-tile--missing:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(93, 63, 47, 0.08);
}

.text-tile--cover {
  overflow: hidden;
  min-height: 260px;
  color: #fff8e8;
  background:
    linear-gradient(
      to bottom,
      rgba(18, 19, 18, 0.22) 0%,
      rgba(18, 19, 18, 0.62) 56%,
      rgba(18, 19, 18, 0.9) 100%
    ),
    var(--tile-bg) center / cover no-repeat;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.text-tile--cover .text-tile__meta {
  color: #fff8e8;
}

.text-tile--video {
  overflow: hidden;
  min-height: 260px;
  color: #fff8e8;
  background:
    linear-gradient(
      to bottom,
      rgba(18, 19, 18, 0.28) 0%,
      rgba(18, 19, 18, 0.7) 58%,
      rgba(18, 19, 18, 0.9) 100%
    ),
    var(--tile-bg) center / cover no-repeat;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.text-tile--video .text-tile__meta {
  color: #fff8e8;
}

.external-consent-button {
  align-self: flex-start;
  margin-top: 24px;
  padding: 10px 14px;
  color: #fff8e8;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.external-consent-button:hover {
  background: #3f2a20;
  border-color: #3f2a20;
}

.section {
  margin: 52px 0;
  max-width: 850px;
}

.section-wide { max-width: none; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.25;
}

h2 {
  font-size: 2rem;
  margin-top: 0;
}

h3 { font-size: 1.35rem; }

blockquote {
  margin: 34px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--accent-soft);
  background: var(--paper);
  color: var(--muted);
  font-size: 1.12rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  font-size: 0.92rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {

  header {
    min-height: 300px;
    background-position: 56% 42%;
  }
body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .text-tile-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 220px; }
  nav ul { gap: 10px 16px; }
}

header h1 {
  color: #fff8e8;
  font-family: var(--header-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

header .site-title a {
  color: #fff8e8;
}

header .site-subtitle {
  color: #fff8e8;
}

header p {
  color: #fff8e8;
  font-family: var(--header-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.76);
}

nav { font-family: var(--header-font); }


header .brand,
header .site-title,
header .site-subtitle,
header .header-inner {
  font-family: var(--header-font);
}
