/*
Theme Name: Lernen mit Lernkarten
Theme URI: https://lernen-mit-lernkarten.de/
Author: Dr. Heinz-Werner Kubitza
Description: Datensparsames WordPress-Theme für die Lernkartenreihen von lernen-mit-lernkarten.de.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lernen-mit-lernkarten
*/

:root {
  --lk-paper: #f7f3ea;
  --lk-surface: #fffdf8;
  --lk-ink: #172936;
  --lk-muted: #607078;
  --lk-navy: #17384f;
  --lk-navy-on: #fffdf8;
  --lk-red: #bd583c;
  --lk-red-on: #fffdf8;
  --lk-sage: #5f7867;
  --lk-gold: #c29342;
  --lk-line: #d9d3c6;
  --lk-shadow: rgba(23, 56, 79, .13);
  --lk-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--lk-ink);
  background: var(--lk-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--lk-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
h3 { font-size: 1.25rem; }
p { margin-top: 0; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  z-index: 99999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--lk-surface);
  color: var(--lk-ink);
}
.lk-wrap { width: min(var(--lk-width), calc(100% - 40px)); margin-inline: auto; }

/* Header and navigation */
.site-header { background: var(--lk-surface); border-bottom: 1px solid var(--lk-line); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 11px; color: var(--lk-navy); text-decoration: none; white-space: nowrap; }
.site-title { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.lk-mark { position: relative; width: 34px; height: 29px; flex: 0 0 auto; }
.lk-mark span { position: absolute; width: 25px; height: 18px; border-radius: 3px; border: 2px solid currentColor; background: var(--lk-surface); }
.lk-mark span:nth-child(1) { top: 0; left: 0; transform: rotate(-6deg); }
.lk-mark span:nth-child(2) { top: 5px; left: 5px; transform: rotate(1deg); }
.lk-mark span:nth-child(3) { top: 10px; left: 9px; transform: rotate(5deg); background: var(--lk-red); border-color: var(--lk-red); }
.menu-toggle { display: none; margin-left: auto; padding: 9px 12px; border: 1px solid var(--lk-line); border-radius: 5px; background: var(--lk-surface); color: var(--lk-navy); font: inherit; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: block; padding: 14px 0; color: var(--lk-muted); text-decoration: none; }
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { color: var(--lk-navy); }

/* Shared sections and buttons */
.lk-section { padding: 68px 0; }
.lk-section--surface { background: var(--lk-surface); }
.lk-section--navy { background: var(--lk-navy); color: var(--lk-navy-on); }
.lk-section--navy h2,
.lk-section--navy h3 { color: var(--lk-navy-on); }
.lk-section--tint { background: #edf0e9; border-block: 1px solid var(--lk-line); }
.lk-section-head { max-width: 760px; margin-bottom: 34px; }
.lk-section-head p,
.lk-muted { color: var(--lk-muted); }
.lk-eyebrow { color: var(--lk-red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lk-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 19px; border-radius: 6px; background: var(--lk-red); color: var(--lk-red-on); text-decoration: none; font-weight: 700; }
.lk-button:hover { filter: brightness(.94); }
.lk-button--secondary { border: 1px solid var(--lk-line); background: var(--lk-surface); color: var(--lk-navy); }
.lk-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home */
.lk-hero { padding: 74px 0 66px; background: linear-gradient(135deg, var(--lk-paper), var(--lk-surface)); }
.lk-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; }
.lk-lead { max-width: 680px; color: var(--lk-muted); font-size: 1.2rem; line-height: 1.58; }
.lk-card-stage { min-height: 360px; position: relative; display: grid; place-items: center; }
.lk-flashcard { width: min(340px, 85%); min-height: 214px; padding: 26px; border-radius: 12px; background: var(--lk-surface); box-shadow: 0 18px 44px var(--lk-shadow); border: 1px solid var(--lk-line); position: absolute; }
.lk-flashcard:nth-child(1) { transform: translate(-45px, 18px) rotate(-8deg); opacity: .62; }
.lk-flashcard:nth-child(2) { transform: translate(42px, -12px) rotate(7deg); opacity: .78; }
.lk-flashcard:nth-child(3) { transform: rotate(-1deg); }
.lk-card-tag { color: var(--lk-red); font-weight: 700; }
.lk-flashcard h3 { margin: 36px 0 12px; font-size: 1.65rem; }
.lk-rule { height: 1px; margin: 18px 0; background: var(--lk-line); }
.lk-topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lk-topic { min-height: 190px; padding: 22px; display: flex; flex-direction: column; background: var(--lk-surface); border: 1px solid var(--lk-line); border-radius: 9px; text-decoration: none; }
.lk-topic:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--lk-shadow); }
.lk-topic__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e6ecef; color: var(--lk-navy); font-weight: 700; }
.lk-topic h3 { margin: 18px 0 7px; }
.lk-topic p { color: var(--lk-muted); }
.lk-topic__link { margin-top: auto; color: var(--lk-red); font-weight: 700; }
.lk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.lk-step__number { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--lk-gold); font-weight: 700; }
.lk-editions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lk-edition { padding: 29px; background: var(--lk-surface); border: 1px solid var(--lk-line); border-radius: 10px; }
.lk-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 38px; border-radius: 12px; background: var(--lk-sage); color: #fff; }
.lk-cta h2 { color: #fff; }

/* Page intro */
.lk-page-hero { padding: 58px 0 38px; background: linear-gradient(135deg, var(--lk-paper), var(--lk-surface)); }
.lk-page-hero p { max-width: 760px; color: var(--lk-muted); font-size: 1.12rem; }

/* Catalogue */
.lk-filters-note { padding: 16px 0 28px; color: var(--lk-muted); }
.lk-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.lk-product { min-width: 0; }
.lk-cover-stage { min-height: 250px; display: grid; place-items: end center; padding: 18px; border: 1px solid var(--lk-line); border-radius: 10px; background: #edf0f1; }
.lk-cover { width: 142px; aspect-ratio: .71; padding: 15px 12px; display: flex; flex-direction: column; color: #fff; background: var(--cover-color, var(--lk-navy)); box-shadow: 0 15px 28px var(--lk-shadow); transform: perspective(700px) rotateY(-5deg); }
.lk-cover small { letter-spacing: .08em; text-transform: uppercase; opacity: .86; }
.lk-cover strong { display: block; margin-top: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.16; }
.lk-cover em { margin-top: auto; font-style: normal; opacity: .88; }
.lk-product__type { margin: 15px 0 6px; color: var(--lk-red); font-weight: 700; }
.lk-product h2 { font-size: 1.3rem; }
.lk-product p { color: var(--lk-muted); }
.lk-product__meta { font-size: .94rem; color: var(--lk-muted); }

/* Method and about */
.lk-principles,
.lk-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lk-values { grid-template-columns: repeat(4, 1fr); }
.lk-panel { padding: 25px; background: var(--lk-surface); border: 1px solid var(--lk-line); border-radius: 9px; }
.lk-panel p { color: var(--lk-muted); margin-bottom: 0; }
.lk-routine { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px; }
.lk-routine article { padding-top: 18px; border-top: 2px solid rgba(255,255,255,.35); }
.lk-routine strong { color: var(--lk-gold); }
.lk-schedule { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.lk-plan { display: grid; gap: 12px; }
.lk-plan-row { display: grid; grid-template-columns: 105px 1fr; gap: 15px; align-items: center; }
.lk-plan-row div { padding: 12px 14px; background: var(--lk-surface); border: 1px solid var(--lk-line); border-radius: 6px; color: var(--lk-muted); }
.lk-demo { max-width: 520px; padding: 22px; margin: 28px auto 0; border-radius: 12px; background: #edf0f1; border: 1px solid var(--lk-line); }
.lk-demo-card { min-height: 220px; padding: 26px; display: flex; flex-direction: column; justify-content: center; border-radius: 9px; background: var(--lk-surface); border: 1px solid var(--lk-line); box-shadow: 0 15px 32px var(--lk-shadow); text-align: center; }
.lk-demo-card strong { color: var(--lk-red); }
.lk-demo-card p { margin: auto 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; color: var(--lk-navy); }
.lk-demo button { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 6px; background: var(--lk-red); color: var(--lk-red-on); font: inherit; font-weight: 700; cursor: pointer; }
.lk-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: process; }
.lk-process article { counter-increment: process; padding-top: 18px; border-top: 2px solid rgba(255,255,255,.35); }
.lk-process article::before { content: "0" counter(process); display: block; margin-bottom: 10px; color: var(--lk-gold); font-weight: 700; }

/* Contact and legal */
.lk-contact-grid { display: grid; grid-template-columns: 1fr .88fr; gap: 58px; align-items: start; }
.lk-mailbox { padding: 30px; border-radius: 11px; background: var(--lk-surface); border: 1px solid var(--lk-line); box-shadow: 0 16px 36px var(--lk-shadow); }
.lk-checklist { display: grid; gap: 12px; }
.lk-checklist li { padding-bottom: 12px; border-bottom: 1px solid var(--lk-line); }
.lk-legal { max-width: 820px; padding: 60px 0; }
.lk-legal h2 { margin-top: 2.1rem; font-size: 1.55rem; }
.lk-legal h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.lk-legal a { color: var(--lk-red); }
.lk-note { padding: 18px 20px; border-left: 4px solid var(--lk-gold); background: var(--lk-surface); }

/* Standard content */
.entry-content > *:not(.alignwide):not(.alignfull) { max-width: var(--lk-width); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(var(--lk-width), calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; }

/* Footer */
.site-footer { padding: 32px 0; background: var(--lk-surface); border-top: 1px solid var(--lk-line); color: var(--lk-muted); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }

@media (max-width: 940px) {
  .lk-hero-grid,
  .lk-contact-grid,
  .lk-schedule { grid-template-columns: 1fr; }
  .lk-topic-grid,
  .lk-product-grid { grid-template-columns: repeat(2, 1fr); }
  .lk-values { grid-template-columns: 1fr 1fr; }
  .lk-routine,
  .lk-process { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .primary-navigation { display: none; width: 100%; margin: 0; }
  .primary-navigation.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; padding: 12px 0; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .primary-navigation a { padding: 10px 0; }
  .lk-principles { grid-template-columns: 1fr; }
  .site-footer__inner,
  .lk-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .lk-wrap { width: min(var(--lk-width), calc(100% - 26px)); }
  .site-title { font-size: .95rem; }
  .lk-hero { padding: 48px 0; }
  .lk-card-stage { min-height: 290px; }
  .lk-flashcard { min-height: 190px; padding: 21px; }
  .lk-section { padding: 50px 0; }
  .lk-topic-grid,
  .lk-product-grid,
  .lk-values,
  .lk-editions,
  .lk-routine,
  .lk-process { grid-template-columns: 1fr; }
  .lk-plan-row { grid-template-columns: 82px 1fr; }
}

