/* Shared styles for landing subpages (Haushaltsbuch, Ratgeber, legal pages).
   Uses the same tokens as landing/index.html but a local font stack (no Google Fonts request). */
:root {
  color-scheme: light;
  --bg: #f5f2ee;
  --ink: #0f172a;
  --muted: #5b6473;
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --accent: #16a34a;
  --card: #ffffff;
  --border: rgba(148, 163, 184, 0.25);
  --shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fdf9f2 0%, #f2f7fb 45%, #eef7f0 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary-dark); }

.page { max-width: 1080px; margin: 0 auto; padding: 2rem 16px 4rem; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }

nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--ink);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(14, 165, 233, 0.2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.65); border-color: var(--border); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 1rem 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 640px; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: start; }

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.price { font-size: 2.4rem; font-weight: 700; margin: 0.3rem 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.feature { background: rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 1.3rem; border: 1px solid var(--border); }
.feature h3 { margin-top: 0; }
.feature p { margin: 0; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.note { background: rgba(14, 165, 233, 0.08); border-left: 4px solid var(--primary); padding: 0.9rem 1.1rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.note.green { background: rgba(22, 163, 74, 0.08); border-left-color: var(--accent); }

article { max-width: 720px; }
article p, article li { font-size: 1.05rem; }
article table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--card); border-radius: 12px; overflow: hidden; }
article th, article td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
article th { background: rgba(14, 165, 233, 0.08); }
.table-wrap { overflow-x: auto; }

.meta { color: var(--muted); font-size: 0.9rem; }

.post-list { display: grid; gap: 1rem; }
.post-list a { text-decoration: none; color: inherit; }
.post-list .feature:hover { border-color: var(--primary); }

.cta-band {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(22, 163, 74, 0.15));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem;
}

details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; }
summary { font-weight: 600; cursor: pointer; }

footer {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: inherit; }

@media (max-width: 600px) {
  header { margin-bottom: 2rem; }
  nav .btn { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
}

/* Buy button placeholder until the Digistore24 product is live. */
.buy-soon { opacity: 0.55; pointer-events: none; cursor: default; }
