/* ===========================================================
   ArchitectureSociety - main.css
   Designsprache: technische Zeichnung trifft Redaktion.
   Papier- und Betonton als Basis, ein kraeftiger Ziegel-/Rotton
   (abgeleitet aus dem rosafarbenen Treppenhaus-Pin des Accounts)
   als Signalfarbe, Stahlblau als zweite Stimme. Die duennen
   "Massband"-Striche an Eyebrows und Trennern sind das
   wiederkehrende Signaturelement - eine Anspielung auf
   Bemassungslinien in Architekturzeichnungen.
=========================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --paper: #F1E7D8;
  --paper-raised: #FAF5EB;
  --paper-line: #E4D6BF;
  --ink: #241A10;
  --ink-soft: #7C6952;
  --concrete: #C3AD8A;
  --brick: #A23B52;
  --brick-ink: #FCEFE8;
  --steel: #6B5A47;
  --steel-tint: #F0E6D3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 2px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
body.architecturesociety {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
.as-wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Massband-Signatur: wiederkehrendes Detail aus Bemassungslinien */
.as-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 14px;
}
.as-eyebrow::before,
.as-eyebrow::after {
  content: '';
  width: 16px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.as-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--concrete);
  margin: 64px 0 36px;
}
.as-divider::before,
.as-divider::after { content: ''; height: 1px; background: var(--paper-line); flex: 1; }
.as-divider span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- 3. HEADER ---------- */
.as-header {
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper);
  position: relative;
  z-index: 20;
}
.as-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.as-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.as-logo img { max-height: 40px; }
.as-nav { display: flex; gap: 28px; }
.as-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.as-nav a:hover { color: var(--brick); }
.as-header-actions { display: flex; align-items: center; gap: 16px; }

.as-list-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--paper-line);
  padding: 7px 13px;
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.as-list-toggle:hover { border-color: var(--brick); }
.as-list-toggle svg { width: 15px; height: 15px; }
.as-list-count {
  background: var(--brick);
  color: var(--brick-ink);
  border-radius: 100px;
  font-size: 11px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.as-list-count[data-empty="true"] { display: none; }

.as-nav-toggle { display: none; }

/* ---------- 4. HERO ---------- */
.as-hero { padding: 56px 0 20px; }
.as-hero-media {
  aspect-ratio: 16 / 8;
  background: var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.as-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.as-hero-grid { display: grid; grid-template-columns: 2.3fr 1fr; gap: 48px; align-items: end; }
.as-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.as-hero-dek { color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 60ch; }
.as-hero-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); border-left: 1px solid var(--paper-line); padding-left: 20px; }
.as-hero-meta a { color: var(--brick); font-weight: 500; }
.as-hero-meta a:hover { text-decoration: underline; }

/* ---------- 5. GRIDS (Latest / Roundup) ---------- */
.as-section { padding: 8px 0 48px; }
.as-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.as-card-link { display: block; }
.as-card-media {
  aspect-ratio: 4 / 3;
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.as-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.as-card-link:hover .as-card-media img { transform: scale(1.03); }
.as-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 8px;
}
.as-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}
.as-card-link:hover .as-card-title { color: var(--brick); }
.as-card-excerpt { color: var(--ink-soft); font-size: 14px; margin: 8px 0 0; line-height: 1.55; }

/* Kaufberatung-Karten bekommen die Ziegelfarbe statt Stahlblau am Label */
.as-card--guide .as-card-cat { color: var(--brick); }

/* ---------- 6. ARTIKEL (single.php) ---------- */
.as-article { padding: 48px 0 80px; }
.as-article-header { max-width: 780px; margin: 0 auto 40px; }
.as-article-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 14px 0;
}
.as-article-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.as-article-body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; }
.as-article-body p { margin: 0 0 24px; }
.as-article-body h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 48px 0 18px; }
.as-article-body img { border-radius: var(--radius); margin: 32px 0; }

/* ---------- 7. PRODUKTKARTEN ---------- */
.as-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 44px auto;
}
.as-product-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.as-product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--steel-tint);
  border-radius: var(--radius);
  overflow: hidden;
}
.as-product-image img { width: 100%; height: 100%; object-fit: cover; }
.as-product-image-placeholder { display: block; width: 100%; height: 100%; }
.as-score {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius);
}
.as-product-name { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.as-product-blurb { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.as-product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.as-product-price { font-weight: 600; font-size: 15px; display: block; }
.as-product-retailer { font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); }
.as-product-actions { display: flex; gap: 8px; }
.as-save-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: all 0.15s ease;
}
.as-save-btn:hover { border-color: var(--brick); color: var(--brick); }
.as-save-btn[data-saved="true"] { background: var(--brick); border-color: var(--brick); color: var(--brick-ink); }
.as-shop-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px;
  height: 36px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.as-shop-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- 8. MERKLISTE: schwebender Button + Schublade ---------- */
.as-merkliste-widget { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.as-merkliste-fab {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(36,26,16,0.25);
}
.as-merkliste-fab svg { width: 16px; height: 16px; }
.as-merkliste-drawer {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(36,26,16,0.18);
  padding: 18px;
  display: none;
}
.as-merkliste-drawer[data-open="true"] { display: block; }
.as-merkliste-drawer h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.as-merkliste-drawer-empty { font-size: 13px; color: var(--ink-soft); margin: 12px 0; }
.as-merkliste-item { display: flex; align-items: center; justify-content: between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--paper-line); font-size: 13px; }
.as-merkliste-item span { flex: 1; }
.as-merkliste-item button { color: var(--ink-soft); }
.as-merkliste-item button:hover { color: var(--brick); }
.as-merkliste-share {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}
.as-merkliste-share:hover { background: var(--ink); color: var(--paper); }

/* ---------- 9. FOOTER ---------- */
.as-footer { border-top: 1px solid var(--paper-line); margin-top: 60px; padding: 40px 0; }
.as-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.as-footer-nav { display: flex; gap: 20px; }
.as-footer-nav a { font-size: 13px; color: var(--ink-soft); }
.as-footer-nav a:hover { color: var(--brick); }
.as-footer-legal { font-family: var(--font-mono); font-size: 12px; color: var(--concrete); }

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .as-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .as-hero-meta { border-left: none; padding-left: 0; border-top: 1px solid var(--paper-line); padding-top: 16px; }
  .as-grid { grid-template-columns: repeat(2, 1fr); }
  .as-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .as-nav { display: none; }
  .as-grid { grid-template-columns: 1fr; }
  .as-merkliste-drawer { width: calc(100vw - 48px); }
  .as-article-body { font-size: 17px; }
}
