/* Reserve space for JS-injected header (prevents CLS) */
div[data-include="header"] { display: block; height: 56px; border-bottom: 1px solid var(--border); }

/* ─────────────────────────────────────────────
   pferdestaerken.at – shared blog stylesheet
   All blog post pages link this file.
───────────────────────────────────────────── */

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

:root {
  --brown-dark: #2E2620;
  --brown-mid: #6B5744;
  --amber: #B8832A;
  --amber-light: #D4A44C;
  --cream: #FDFAF6;
  --sand: #F2EBE0;
  --sand-dark: #E4D9CC;
  --text-muted: #7A6B5E;
  --border: #E8E0D6;
  --white: #FFFFFF;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--brown-dark);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-dark);
  text-decoration: none;
}

.back-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--amber); }

/* ── Hero ── */
.hero {
  width: 100%;
  height: 58vh;
  min-height: 360px;
  max-height: 580px;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(22,14,8,0.88) 0%,
    rgba(22,14,8,0.55) 40%,
    rgba(22,14,8,0.15) 70%,
    transparent 100%);
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 40px 44px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-light);
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 680px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ── Article layout ── */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Meta row */
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name { font-size: 0.875rem; font-weight: 600; color: var(--brown-dark); }
.meta-detail { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.meta-tags {
  margin-left: auto;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: #fdf2e1;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Article body */
.article-body {
  padding: 44px 0 64px;
  max-width: 720px;
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #3a2e25;
  margin-bottom: 1.5em;
}

.article-body h2 {
  font-family: 'Lora', serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.25;
  margin: 2.6em 0 0.7em;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin: 2em 0 0.5em;
}

.article-body ul {
  margin: 0 0 1.5em 0;
  padding: 0;
  list-style: none;
}

.article-body ul li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #3a2e25;
  padding: 0 0 0.4em 1.5em;
  position: relative;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.article-body a {
  color: var(--amber);
  text-underline-offset: 3px;
}

.article-body ol {
  margin: 0 0 1.5em 0;
  padding: 0;
  list-style: none;
  counter-reset: ol-counter;
}

.article-body ol li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #3a2e25;
  padding: 0 0 0.4em 2em;
  position: relative;
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--amber);
  font-size: 0.9rem;
}

.article-body blockquote {
  border-left: 3px solid var(--amber);
  margin: 1.5em 0;
  padding: 14px 20px;
  background: #fdf2e1;
  border-radius: 0 6px 6px 0;
}

.article-body blockquote p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.article-body a:hover { color: var(--amber-light); }

/* Article images */
.article-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.5em 0 1.5em;
  display: block;
}

.article-img-caption {
  font-size: 0.825rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: -0.75em !important;
  line-height: 1.6 !important;
}

/* Lab cards */
.lab-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin: 1.25em 0;
}

.lab-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.lab-name {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.3;
}

.lab-location {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.lab-badge {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--amber);
  background: #fdf2e1;
  padding: 5px 11px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lab-prices {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.lab-prices li,
.article-body .lab-prices li {
  font-size: 0.875rem;
  color: #3a2e25;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  position: static;
}

.lab-prices li::before,
.article-body .lab-prices li::before { display: none; }

.lab-prices li span:last-child { white-space: nowrap; flex-shrink: 0; }

.lab-prices li:nth-last-child(-n+2) { border-bottom: none; }

.lab-contact {
  font-size: 0.775rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.lab-contact a, .lab-source a { color: var(--amber); text-decoration: none; }
.lab-contact a:hover, .lab-source a:hover { text-decoration: underline; }

.lab-desc {
  font-size: 0.9rem;
  color: #3a2e25;
  line-height: 1.7;
  margin: 0 0 10px;
}

.lab-card .lab-source {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* FAQ list */
.faq-list { margin-top: 1.5em; }

.faq-entry {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.faq-entry:last-child { border-bottom: 1px solid var(--border); }

.faq-q-blog {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.faq-a-blog {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead { background: var(--sand); }

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brown-dark);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 11px 16px;
  color: #3a2e25;
  border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }

tr.total td {
  background: #fdf2e1;
  font-weight: 700;
  color: var(--amber);
}

tbody tr:hover td { background: #fafaf8; }
tbody tr.total:hover td { background: #fdf2e1; }

/* Callout */
.callout {
  background: #fdf2e1;
  border-left: 3px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 1.8em 0;
}

.callout-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 8px;
}

.callout p { font-size: 0.9375rem; margin: 0; }

/* CTA block */
.article-cta {
  background: var(--sand);
  border-radius: 8px;
  padding: 34px 38px;
  margin-top: 3em;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cta-text h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 6px;
}

.cta-text p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

a.btn-cta, a.btn-cta:hover { color: #fff; }

.btn-cta {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-cta:hover { background: var(--amber-light); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-links { display: flex; gap: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }

  .hero-text { padding: 0 20px 32px; }
  .hero h1 { font-size: 1.75rem; }

  .article-wrap { padding: 0 20px; }

  .article-meta { gap: 12px; }
  .meta-tags { margin-left: 0; }

  .lab-prices { grid-template-columns: 1fr; font-size: 0.8rem; }
  .lab-prices li:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .lab-prices li:last-child { border-bottom: none; }

  .article-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 22px; }

  .site-footer { padding: 24px 20px; flex-direction: column; gap: 14px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.45rem; }
  .article-body h2 { font-size: 1.35rem; }
  .lab-card-head { flex-direction: column; }
}

/* ── Blog index page ── */
.index-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 100px;
}

.index-header {
  text-align: center;
  margin-bottom: 64px;
}

.index-header h1 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.index-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.index-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.index-card:hover {
  box-shadow: 0 8px 28px rgba(46,38,32,0.09);
  transform: translateY(-2px);
}

.index-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.index-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.index-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 10px;
}

.index-card h2 {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.index-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .index-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  .index-wrap { padding: 40px 20px 80px; }
  .index-header { margin-bottom: 40px; }
  .index-header h1 { font-size: 1.75rem; }
  .index-grid { grid-template-columns: 1fr; }
}
