/* =================================================================
 * feriendialyse-spanien.de — editorial style
 *
 * Aesthetic: warm Spanish editorial, like a print travel magazine
 * for older readers. Cream paper + Spain-flag-red + terracotta clay
 * accents. Tenor Sans display, Source Serif 4 body.
 *
 * Distinct from flagship (Atkinson sans, Fraunces serif, navy/cream/
 * terracotta) by deliberate design — doorway-defense rule.
 * ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  /* Palette — sun-warm, confident, editorial */
  --mt-paper:        #faf7f2;
  --mt-paper-2:      #f3eee5;
  --mt-ink:          #1f1a14;
  --mt-ink-soft:     #4a4239;
  --mt-muted:        #7a7065;
  --mt-line:         #d6cdbf;
  --mt-line-soft:    #e8e1d5;

  --mt-flag:         #aa151b;
  --mt-flag-deep:    #7d0f15;
  --mt-clay:         #c97548;
  --mt-clay-deep:    #a05a32;
  --mt-saffron:      #e0a458;

  --mt-display:      'Tenor Sans', Georgia, 'Times New Roman', serif;
  --mt-body:         'Source Serif 4', Georgia, 'Times New Roman', serif;

  --mt-pad:          clamp(20px, 4vw, 36px);
  --mt-content-w:    680px;
  --mt-wide-w:       1080px;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }

body.microsite-spanien {
  margin: 0;
  font-family: var(--mt-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mt-ink);
  background: var(--mt-paper);
  background-image:
    radial-gradient(circle at 20% 18%, rgba(201,117,72,0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(170,21,27,0.03) 0%, transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =================== Header ===================================== */

.mt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--mt-wide-w);
  margin: 0 auto;
  min-height: 72px;
  gap: 24px;
  padding: 0 var(--mt-pad);
  background: var(--mt-paper);
  border-bottom: 1px solid var(--mt-line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2);
}

.mt-logo {
  font-family: var(--mt-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--mt-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
}
.mt-logo::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--mt-flag);
  transform: translateY(0.05em);
  box-shadow: 0 0 0 3px var(--mt-paper), 0 0 0 4px var(--mt-flag);
}

.mt-nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
  font-family: var(--mt-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}
.mt-nav a {
  color: var(--mt-ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.mt-nav a:hover {
  color: var(--mt-flag);
  border-bottom-color: var(--mt-flag);
}

@media (max-width: 640px) {
  .mt-nav { gap: 12px; font-size: 0.78rem; }
  .mt-logo { font-size: 1rem; }
  .mt-header { min-height: 60px; }
}

/* =================== Main ======================================= */

.mt-main {
  max-width: var(--mt-content-w);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--mt-pad);
}

/* =================== Headlines ================================== */

h1, h2, h3, h4 {
  font-family: var(--mt-display);
  font-weight: 400;
  color: var(--mt-ink);
  letter-spacing: -0.005em;
  line-height: 1.18;
  margin: 1.6em 0 0.6em;
}

.mt-page > h1:first-of-type,
.mt-article > h1:first-of-type {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
  position: relative;
  padding-top: 16px;
}
.mt-page > h1:first-of-type::before,
.mt-article > h1:first-of-type::before {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--mt-flag);
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.4em;
  position: relative;
}
.mt-article, .mt-page { counter-reset: section; }
.mt-article h2::before,
.mt-page h2::before {
  counter-increment: section;
  content: counter(section, upper-roman);
  display: block;
  font-family: var(--mt-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--mt-flag);
  margin-bottom: 8px;
}

h3 {
  font-size: 1.18rem;
  margin-top: 1.8em;
  color: var(--mt-clay-deep);
}

/* =================== Lede + drop cap ============================ */

.mt-lede {
  font-size: clamp(1.15rem, 2.4vw, 1.32rem);
  line-height: 1.5;
  color: var(--mt-ink);
  margin: 0 0 2em;
  font-weight: 300;
}

.mt-lede::first-letter {
  font-family: var(--mt-display);
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 0.06em 0.12em 0 0;
  color: var(--mt-flag);
  font-weight: 400;
}

/* =================== Body text ================================== */

p, li, dd, summary { font-size: 1.05rem; }
.mt-article p, .mt-page p { margin: 0 0 1.2em; }

a {
  color: var(--mt-flag);
  text-decoration: underline;
  text-decoration-color: var(--mt-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
a:hover {
  color: var(--mt-flag-deep);
  text-decoration-color: var(--mt-flag);
}

ul, ol { padding-left: 1.4em; margin: 0 0 1.6em; }
ul li, ol li { margin-bottom: 0.5em; }
ul li::marker { color: var(--mt-flag); }
ol li::marker { color: var(--mt-clay); font-weight: 600; }

strong { color: var(--mt-ink); font-weight: 600; }
em { font-style: italic; color: var(--mt-clay-deep); }

blockquote {
  border-left: 3px solid var(--mt-flag);
  padding: 0.4em 0 0.4em 1.4em;
  margin: 1.8em 0;
  font-size: 1.1rem;
  color: var(--mt-ink-soft);
  font-style: italic;
}

hr {
  border: 0;
  height: 1px;
  background: var(--mt-line);
  margin: 3em auto;
  width: 80%;
  position: relative;
}
hr::after {
  content: "❦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--mt-paper);
  padding: 0 12px;
  font-size: 0.95rem;
  color: var(--mt-clay);
}

/* =================== Region / cluster cards ===================== */

dl.mt-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 2em 0 2.4em;
}
dl.mt-region-grid dt {
  font-family: var(--mt-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--mt-flag);
  margin: 0 0 6px;
  padding-top: 16px;
  border-top: 2px solid var(--mt-line);
  position: relative;
}
dl.mt-region-grid dt::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--mt-flag);
}
dl.mt-region-grid dd {
  margin: 0;
  font-size: 0.97rem;
  color: var(--mt-ink-soft);
  line-height: 1.55;
}

/* dl outside region-grid — definition pairs in body */
dl:not(.mt-region-grid) {
  margin: 1.6em 0;
}
dl:not(.mt-region-grid) dt {
  font-family: var(--mt-display);
  color: var(--mt-clay-deep);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  margin-top: 1em;
}
dl:not(.mt-region-grid) dd {
  margin: 4px 0 1em 0;
  color: var(--mt-ink-soft);
}

/* =================== FAQ details ================================ */

details {
  border-top: 1px solid var(--mt-line-soft);
  padding: 18px 0;
  transition: border-color .2s;
}
details[open] { border-color: var(--mt-line); }
details:last-of-type { border-bottom: 1px solid var(--mt-line-soft); }
details summary {
  cursor: pointer;
  font-family: var(--mt-display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--mt-ink);
  list-style: none;
  position: relative;
  padding-right: 36px;
  transition: color .2s;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--mt-flag);
  font-weight: 300;
  transition: transform .25s ease;
  line-height: 1;
}
details[open] summary::after { content: "−"; }
details summary:hover { color: var(--mt-flag); }
details summary strong { font-weight: 400; }
details > p {
  margin-top: 14px;
  color: var(--mt-ink-soft);
  font-size: 0.99rem;
}

/* =================== Archive (article list / hero) =============== */

.mt-hero {
  text-align: center;
  margin: 0 0 64px;
}
.mt-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.mt-hero h1::before { display: none; }
.mt-subtitle {
  font-family: var(--mt-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--mt-clay-deep);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.mt-archive {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  counter-reset: article-counter;
}
.mt-archive li {
  border-top: 1px solid var(--mt-line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  transition: padding-left .25s ease;
}
.mt-archive li:hover { padding-left: 12px; }
.mt-archive li:last-child { border-bottom: 1px solid var(--mt-line); }
.mt-archive li::before {
  content: counter(article-counter, decimal-leading-zero);
  counter-increment: article-counter;
  font-family: var(--mt-display);
  font-size: 0.85rem;
  color: var(--mt-flag);
  letter-spacing: 0.1em;
  align-self: start;
  padding-top: 4px;
}
.mt-archive a {
  font-family: var(--mt-display);
  font-size: 1.25rem;
  color: var(--mt-ink);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
  transition: color .2s;
}
.mt-archive a:hover { color: var(--mt-flag); }
.mt-archive p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--mt-muted);
  line-height: 1.5;
}

/* =================== CTA ======================================== */

.mt-cta-block {
  margin: 3em 0 0;
  padding: 32px;
  background: var(--mt-paper-2);
  border-left: 3px solid var(--mt-flag);
  text-align: center;
  position: relative;
}
.mt-cta-block::before {
  content: "❦";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mt-paper);
  padding: 0 12px;
  font-size: 1.2rem;
  color: var(--mt-clay);
}

.mt-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mt-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--mt-flag);
  background: transparent;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid var(--mt-flag);
  transition: color .25s, border-color .25s, gap .25s;
}
.mt-cta::after {
  content: "→";
  font-size: 1.2em;
  transition: transform .25s;
}
.mt-cta:hover {
  color: var(--mt-flag-deep);
  border-color: var(--mt-flag-deep);
  gap: 16px;
}
.mt-cta:hover::after { transform: translateX(2px); }

/* =================== Article header (single posts) ============== */

.mt-byline {
  font-family: var(--mt-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--mt-muted);
  margin: 0 0 32px;
  text-transform: uppercase;
}
.mt-byline::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--mt-flag);
  margin-right: 12px;
  transform: translateY(-4px);
}

/* =================== Footer ===================================== */

.mt-footer {
  margin-top: 96px;
  padding: 56px var(--mt-pad) 40px;
  background: var(--mt-paper-2);
  border-top: 1px solid var(--mt-line);
  position: relative;
  text-align: center;
}
.mt-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--mt-flag);
}

.mt-footer-cta { margin-bottom: 32px; }
.mt-footer-cta .mt-cta {
  font-size: 1.08rem;
  padding: 14px 28px;
  background: var(--mt-flag);
  color: var(--mt-paper);
  border: none;
  border-bottom: 0;
  letter-spacing: 0.04em;
}
.mt-footer-cta .mt-cta:hover {
  background: var(--mt-flag-deep);
  color: var(--mt-paper);
}

.mt-footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 16px;
  font-family: var(--mt-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.mt-footer-nav a {
  color: var(--mt-ink-soft);
  text-decoration: none;
}
.mt-footer-nav a:hover { color: var(--mt-flag); }

.mt-footer-credit {
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--mt-muted);
  line-height: 1.55;
  font-style: italic;
}
.mt-footer-credit a { color: var(--mt-flag); }

/* =================== Page-load reveal (subtle) =================== */

@media (prefers-reduced-motion: no-preference) {
  body.microsite-spanien {
    animation: mt-fade .5s ease both;
  }
  .mt-page > h1:first-of-type,
  .mt-article > h1:first-of-type,
  .mt-hero h1 {
    animation: mt-rise .55s .12s ease-out both;
  }
  .mt-lede,
  .mt-subtitle { animation: mt-rise .55s .22s ease-out both; }
}
@keyframes mt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =================== Print ====================================== */

@media print {
  body.microsite-spanien { background: white; color: black; }
  .mt-header, .mt-footer, .mt-cta-block, .mt-nav { display: none; }
  .mt-main { max-width: none; padding: 0; }
}
