:root {
  font-family: system-ui, sans-serif;
  color: #1d2733;
  background: #e8dfcc;
}

body {
  margin: 0;
  padding: 8vh 1.25rem;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4rem);
  background: #f1e7d4;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgb(31 79 156 / 10%);
}

h1 {
  margin-top: 0;
  color: #1f4f9c;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.1;
}

h2 {
  margin-top: 2.5rem;
  color: #173d7a;
}

p {
  font-size: 1.15rem;
  line-height: 1.7;
}

a { color: #1f4f9c; }

.site-header,
.site-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(0rem, 3vw, 1rem);
}

.site-header { margin-bottom: 1.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 104px;
  height: 22px;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: #1d2733;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: #173d7a;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #5a6578;
}

.site-footer p { font-size: inherit; }

.lead { font-size: 1.3rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta {
  font-size: 0.95rem;
  color: #5a6578;
}

.badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #fdf3d7;
  color: #7a5a00;
  font-weight: 600;
}

.cards,
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.cards li {
  padding: 1.1rem 1.25rem;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
}

.cards a,
.post-list a {
  font-weight: 650;
  font-size: 1.15rem;
}

.cards p { margin: 0.4rem 0 0; font-size: 1rem; line-height: 1.5; }

.post-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #dfe6f1;
}

.post-list p { margin: 0.35rem 0 0; }

li { line-height: 1.6; font-size: 1.1rem; }

.sources {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #dfe6f1;
}

h3 { margin-top: 1.75rem; color: #1f4f9c; }

li:has(> input[type="checkbox"]) {
  list-style: none;
  margin-left: -1.5rem;
}

li > input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #1f4f9c;
}

/* Hintergrund: Azulejos im Stil von Porto */
body {
  background-color: #f5f1e6;
  background-image: url("/bilder/azulejo-porto.svg");
  background-size: 160px 160px;
}

.site-header,
.site-footer {
  box-sizing: border-box;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  background: rgb(241 231 212 / 95%);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgb(31 79 156 / 12%);
}

.site-footer p { margin: 0; }

.site-header,
.site-footer {
  max-width: calc(700px + 2 * clamp(2rem, 7vw, 4rem));
}

/* Bilder */
main {
  --pad: clamp(2rem, 7vw, 4rem);
  padding: var(--pad);
  overflow: hidden;
}

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

.hero { margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--pad); }
.hero-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.75rem;
}

.post-list li.has-thumb {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.thumb {
  width: 150px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.2rem;
}

@media (max-width: 520px) {
  .post-list li.has-thumb { grid-template-columns: 1fr; }
  .thumb { width: 100%; }
}

.badge-ruhestand {
  background: #e3ebf7;
  color: #1f4f9c;
  text-decoration: none;
}

.badge-ruhestand:hover { text-decoration: underline; }

/* Für wen */
.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.audiences li {
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background: #e3ebf7;
}

.audiences h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.audiences p { margin: 0 0 0.75rem; font-size: 1.05rem; line-height: 1.55; }
.audiences a { font-weight: 650; }

/* Schmuckbild: Hahn von Barcelos mit Azulejos */
.schmuckbild {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(31 79 156 / 15%);
}

/* Newsletter-Box auf der Startseite */
.newsletter {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid #1f4f9c;
  border-radius: 8px;
  background: #fff;
}
.newsletter h2 { margin-top: 0; }
.button {
  display: inline-block;
  background: #1f4f9c;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
}
.button:hover { background: #163a75; }
