@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --cream: #FAF7F2;
  --warm-white: #FFFDF9;
  --sand: #EDE8DF;
  --terracotta: #C1734A;
  --terracotta-light: #E8C4AE;
  --terracotta-dark: #8C4E2A;
  --charcoal: #2C2825;
  --muted: #7A7068;
  --border: #DDD8CF;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo span { color: var(--terracotta); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--terracotta);
  background: #F5EDE6;
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-hamburger:hover { background: var(--sand); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-drawer a:hover, .nav-drawer a.active {
  color: var(--terracotta);
  background: #F5EDE6;
}

/* ── HERO ── */
.hero {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-family: var(--font-display);
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover { background: var(--terracotta-dark); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--charcoal);
  margin-left: 0.5rem;
}

.btn-outline:hover { background: var(--sand); border-color: var(--terracotta-light); }

/* ── MAIN LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── CATEGORY GRID ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.category-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, transform 0.15s;
}

.category-card:hover { border-color: var(--terracotta-light); transform: translateY(-2px); }

.category-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}

.category-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.category-pill {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--terracotta);
  background: #F5EDE6;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-weight: 500;
  margin-top: auto;
  width: fit-content;
}

/* ── POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.post-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}

.post-card:hover { border-color: var(--terracotta-light); transform: translateY(-2px); }

.post-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

.post-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.post-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; }

.post-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── ARTICLE PAGE ── */
.article-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}

.article-header .post-tag { display: block; margin-bottom: 1rem; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.article-header .article-meta { font-size: 0.82rem; color: var(--muted); }
.article-header .article-byline { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.article-header .article-byline strong { color: var(--ink); font-weight: 600; }

.article-body {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2.5rem 0 0.75rem;
}

.article-body p {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }

.article-body li { font-size: 1rem; line-height: 1.8; color: var(--charcoal); }

.tip-box {
  background: #F5EDE6;
  border-left: 3px solid var(--terracotta);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--terracotta-dark);
  line-height: 1.6;
}

/* ── GUIDE / CATEGORY PAGE ── */
.guide-intro {
  background: linear-gradient(135deg, #FAF0E8 0%, #F5E8D8 50%, #EDE0CE 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
  position: relative;
}

.guide-intro::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
}

.guide-intro-inner { max-width: 780px; margin: 0 auto; }

.guide-intro .breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

.guide-intro .breadcrumb a { color: var(--terracotta); text-decoration: none; }

.guide-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.guide-intro .lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 660px;
  font-weight: 300;
}

.guide-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.guide-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 3rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.guide-body h2:first-of-type { border-top: none; margin-top: 0; }

.guide-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1.75rem 0 0.5rem;
}

.guide-body p { font-size: 1rem; color: var(--charcoal); line-height: 1.85; margin-bottom: 1.25rem; }
.guide-body ul, .guide-body ol { margin: 0.5rem 0 1.25rem 1.5rem; }
.guide-body li { font-size: 1rem; line-height: 1.8; color: var(--charcoal); margin-bottom: 0.25rem; }
.guide-body a { color: var(--terracotta); }

/* ── SHARED COMPONENTS ── */
.pro-tip-box {
  background: #FFF4EC;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.pro-tip-box .tip-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.pro-tip-box p { font-size: 0.95rem !important; color: #5C3A20 !important; margin-bottom: 0 !important; line-height: 1.65 !important; }
.pro-tip-box p + p { margin-top: 0.6rem !important; }

.funny-box {
  background: #F5EDE6;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.93rem;
  color: #5C3A20;
  line-height: 1.7;
  font-style: italic;
}

.funny-box strong { font-style: normal; color: var(--terracotta); }

.warning-box {
  background: #FEF9EC;
  border-left: 4px solid #D4A017;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: #6B4C0A;
  line-height: 1.65;
}

.toc {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.88rem;
}

.toc strong { display: block; color: var(--charcoal); margin-bottom: 0.6rem; font-size: 0.85rem; }
.toc ol { margin-left: 1.25rem; }
.toc li { margin-bottom: 0.3rem; line-height: 1.5; }
.toc a { color: var(--terracotta); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── RESPONSIVE TABLES ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: 8px; border: 1px solid var(--border); }
.table-scroll table { margin: 0; border-radius: 0; border: none; width: 100%; min-width: 540px; }

.bank-table, .kehl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bank-table th, .kehl-table th { background: var(--sand); text-align: left; padding: 0.6rem 0.75rem; font-weight: 600; color: var(--charcoal); }
.bank-table td, .kehl-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--charcoal); vertical-align: top; }
.bank-table tr:last-child td, .kehl-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 20px; white-space: nowrap; }
.badge-green { background: #D4EDDA; color: #1A6630; }
.badge-orange { background: #FFE8D6; color: #8C4E2A; }
.badge-red { background: #FDDCDC; color: #8B1A1A; }

/* ── CATEGORY HEADER (placeholder pages) ── */
.category-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.category-header .breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.category-header .breadcrumb a { color: var(--terracotta); text-decoration: none; }

.category-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
}

.category-header p { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; max-width: 540px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--warm-white);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--terracotta); }

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer-links {
  display: contents;
}

.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col a:hover { color: var(--terracotta); }

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero p { font-size: 0.95rem; }
  .btn-outline { margin-left: 0; margin-top: 0.5rem; }
  .container { padding: 2rem 1.25rem; }
  .guide-intro { padding: 2rem 1.25rem 1.75rem; }
  .guide-body { padding: 2rem 1.25rem 3rem; }
  .article-body { padding: 0 1.25rem; margin: 2rem auto; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 1rem; }
}

/* ── QUOTE BAND ── */
.quote-band {
  background: #C1734A;
  padding: 2rem 2rem;
  text-align: center;
}

.quote-band p {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  color: #FFFDF9;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── HERO BUTTONS ── */
.hero-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── ABOUT SECTION ── */
.about-section {
  margin-bottom: 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-prose p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.facts-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fact-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.fact-card--warm {
  background: #FFF4EC;
  border-color: #E8C4AE;
}

.fact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }

.fact-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem !important;
  line-height: 1.4;
}

.fact-body {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  line-height: 1.55 !important;
  margin-bottom: 0 !important;
  font-family: var(--font-body) !important;
}

/* ── GUIDE ROWS ── */
.guides-section { margin-bottom: 3.5rem; }

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.guide-row {
  display: grid;
  grid-template-columns: 52px 1fr 32px;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.guide-row:last-child { border-bottom: none; }

.guide-row:hover { background: #FFF4EC; }

.guide-row-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-row-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.guide-row-body h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.guide-row-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.guide-row-arrow {
  font-size: 1.1rem;
  color: var(--terracotta-light);
  transition: transform 0.15s, color 0.15s;
}

.guide-row:hover .guide-row-arrow {
  transform: translateX(3px);
  color: var(--terracotta);
}



/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .guide-row { grid-template-columns: 44px 1fr; }
  .guide-row-arrow { display: none; }
  .quote-band p { font-size: 0.9rem; }
}

.nav-search-btn {
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.nav-search-btn:hover { background: var(--sand); }

/* ── NAV SEARCH LINK ── */
.nav-search-link {
  color: var(--terracotta) !important;
  font-weight: 500 !important;
  background: #F5EDE6 !important;
  border-radius: 6px;
}

.nav-search-link:hover {
  background: #EADDD0 !important;
  color: var(--terracotta-dark) !important;
}

/* ── BLOG TEASER (HOMEPAGE) ── */
.blog-teaser {
  background: linear-gradient(135deg, #FFF4EC 0%, #FAF0E8 55%, #F5EDE6 100%);
  border: 1px solid var(--terracotta-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
}

.blog-teaser-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  background: var(--warm-white);
  border: 1px solid var(--terracotta-light);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.9rem;
}

.blog-teaser .section-title { margin-top: 0; }

/* Own grid (not .posts-grid) so a single early post doesn't stretch full-width;
   as more posts are added they simply wrap onto new rows. */
.blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blog-posts-grid .post-card {
  flex: 1 1 300px;
  max-width: 380px;
}

@media (max-width: 600px) {
  .blog-teaser { padding: 1.75rem 1.25rem; border-radius: 12px; }
  .blog-posts-grid .post-card { max-width: 100%; }
}
