/*
Theme Name: GrowKlar Editorial
Theme URI: https://growklar.de/
Author: GrowKlar
Description: Reduziertes Editorial-Theme für datenbasierte Sortenchecks, Growpläne und Realitätschecks.
Version: 0.1.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: growklar-editorial
*/

:root {
  --ink: #11120f;
  --paper: #f3efe5;
  --white: #fffdf7;
  --blue: #2754ff;
  --lime: #d9ff56;
  --muted: #696b63;
  --line: #c8c4b8;
  --good: #176b4d;
  --warn: #a44618;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { font-size: 1.45rem; font-weight: 900; letter-spacing: -.05em; text-decoration: none; }
.brand span { display: inline-block; width: .65em; height: .65em; margin-left: .18em; background: var(--blue); border-radius: 50%; }
.nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: .88rem; font-weight: 750; }
.nav a { text-decoration: none; }
.hero { padding: clamp(64px, 10vw, 132px) 0 74px; border-bottom: 1px solid var(--ink); }
.kicker { margin: 0 0 18px; color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: .98; letter-spacing: -.055em; }
h1 { max-width: 980px; margin-bottom: 30px; font-size: clamp(3.2rem, 8vw, 7.3rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.lede { max-width: 760px; margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.35; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 11px 20px; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-weight: 850; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); }
.button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.micro { color: var(--muted); font-size: .82rem; }
.signal { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.signal div { padding: 26px; border-right: 1px solid var(--ink); }
.signal div:last-child { border-right: 0; }
.signal strong { display: block; font-size: 1.7rem; letter-spacing: -.04em; }
.section { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--ink); }
.section--white { background: var(--white); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-bottom: 52px; }
.section-head p { max-width: 640px; margin: 0; }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--ink); }
.feature__main { min-height: 430px; padding: clamp(28px, 5vw, 62px); display: flex; flex-direction: column; justify-content: space-between; }
.feature__aside { display: grid; align-content: space-between; padding: clamp(28px, 5vw, 52px); border-left: 1px solid var(--ink); background: var(--blue); color: white; }
.feature h2 { max-width: 720px; }
.scenario-list { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; }
.scenario-list li { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.45); counter-increment: s; }
.scenario-list li::before { content: "0" counter(s) " "; color: var(--lime); font-weight: 900; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 28px; border-top: 6px solid var(--blue); background: var(--white); }
.principle p { margin-bottom: 0; color: var(--muted); }
.format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.format-card { min-height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ink); background: var(--white); }
.format-card:nth-child(2) { background: var(--lime); }
.format-card:nth-child(3) { background: var(--blue); color: white; }
.format-card:nth-child(4) { background: var(--ink); color: white; }
.format-card a { font-weight: 900; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--ink); color: white; }
.metric { padding: 28px; border-right: 1px solid #555; }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--lime); font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.06em; }
.metric span { display: block; margin-top: 10px; }
.budget-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.budget-card { padding: 28px; border: 1px solid var(--ink); background: var(--white); }
.budget-card--recommended { border-top: 9px solid var(--blue); }
.checklist { margin: 24px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 950; }
.checklist li strong { display: block; margin-bottom: 2px; }
.bar-list { margin: 0; padding: 0; list-style: none; }
.bar-list li { display: grid; grid-template-columns: 150px 1fr 62px; align-items: center; gap: 14px; margin: 12px 0; }
.bar-track { height: 18px; border: 1px solid var(--ink); background: var(--white); }
.bar-fill { display: block; height: 100%; width: var(--bar); background: var(--blue); }
.bar-list strong { text-align: right; font-size: .85rem; }
.step-list { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step-list li { position: relative; padding: 25px 0 25px 72px; border-top: 1px solid var(--line); counter-increment: step; }
.step-list li::before { content: "0" counter(step); position: absolute; left: 0; top: 19px; color: var(--blue); font-weight: 950; font-size: 1.6rem; }
.step-list strong { display: block; }
.setup-table td:first-child { width: 24%; font-weight: 900; }
.setup-table td:nth-child(2) { width: 34%; }
.status-open { display: inline-block; padding: 3px 7px; border: 1px solid var(--ink); background: var(--paper); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.hub-list { display: grid; gap: 18px; }
.hub-item { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 28px; padding: 26px; border: 1px solid var(--ink); background: var(--white); }
.hub-item__type { color: var(--blue); font-size: .75rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.hub-item h3 { margin: 0 0 8px; }
.hub-item p { margin: 0; color: var(--muted); }
.hub-item__action { white-space: nowrap; font-weight: 900; }
.method-scale { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.method-grade { padding: 28px; background: var(--white); border-right: 1px solid var(--ink); }
.method-grade:last-child { border-right: 0; }
.method-grade strong { display: block; margin-bottom: 14px; color: var(--blue); font-size: 3rem; line-height: 1; }
.solver { max-width: 820px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 var(--ink); }
.solver fieldset { margin: 0 0 26px; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); }
.solver legend { margin-bottom: 12px; font-weight: 900; }
.solver label { display: block; margin: 9px 0; }
.solver input { margin-right: 9px; accent-color: var(--blue); }
.solver__result { margin-top: 30px; padding: 26px; border-left: 8px solid var(--lime); background: var(--ink); color: white; }
.solver__result h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.solver__result[hidden] { display: none; }
.solver__error { color: var(--warn); font-weight: 800; }
.report-hero { padding: 58px 0 44px; border-bottom: 1px solid var(--ink); }
.report-hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
.report-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.pill { padding: 6px 11px; border: 1px solid var(--ink); border-radius: 99px; font-size: .76rem; font-weight: 800; background: var(--white); }
.pill--blue { background: var(--blue); color: white; border-color: var(--blue); }
.editor-note { max-width: 860px; margin-top: 34px; padding: 18px 21px; border-left: 7px solid var(--lime); background: var(--ink); color: white; }
.comparison { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--white); }
.case { padding: 28px; border-right: 1px solid var(--ink); }
.case:last-child { border-right: 0; }
.case__number { display: block; color: var(--blue); font-weight: 950; font-size: 3rem; line-height: 1; }
.case dl { margin: 24px 0 0; }
.case dl div { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.case dt { color: var(--muted); font-size: .82rem; }
.case dd { margin: 0; font-weight: 750; }
.quality { display: inline-flex; margin-top: 20px; padding: 5px 9px; border-radius: 4px; font-size: .75rem; font-weight: 850; background: #e4f3ea; color: var(--good); }
.quality--warn { background: #f7e1d3; color: var(--warn); }
.story-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 8vw, 100px); }
.story-grid aside { position: sticky; top: 28px; align-self: start; }
.story-grid article > *:first-child { margin-top: 0; }
.story-grid article h3 { margin-top: 58px; }
.finding { margin: 34px 0; padding: 26px; border: 1px solid var(--ink); background: var(--lime); font-size: 1.15rem; font-weight: 750; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th, .data-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.source-list { padding-left: 1.2em; }
.source-list li { margin: 14px 0; }
.commercial-link {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--blue);
}
.commercial-link__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.commercial-link p { margin: 0; }
.commercial-link p + p { margin-top: 8px; }
.code { padding: 2px 7px; border: 1px solid var(--ink); background: var(--lime); font-family: ui-monospace, monospace; font-weight: 900; }
.site-footer { padding: 42px 0 60px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .82rem; }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header__inner, .site-footer__inner { align-items: flex-start; flex-direction: column; padding-block: 20px; }
  .signal, .principles, .comparison, .format-grid, .metric-row, .budget-grid, .method-scale { grid-template-columns: 1fr; }
  .signal div, .case { border-right: 0; border-bottom: 1px solid var(--ink); }
  .signal div:last-child, .case:last-child { border-bottom: 0; }
  .section-head, .feature, .story-grid { grid-template-columns: 1fr; }
  .feature__aside { border-top: 1px solid var(--ink); border-left: 0; }
  .story-grid aside { position: static; }
  .bar-list li { grid-template-columns: 105px 1fr 48px; gap: 9px; }
  .hub-item { grid-template-columns: 1fr; gap: 12px; }
  .method-grade { border-right: 0; border-bottom: 1px solid var(--ink); }
  .method-grade:last-child { border-bottom: 0; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th { min-width: 150px; }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-header__inner { gap: 14px; }
  .nav { width: 100%; gap: 9px 16px; font-size: .78rem; }
  h1, .report-hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .hero { padding-top: 54px; }
  .section, .report-hero { padding-block: 52px; }
  .feature, .solver { box-shadow: 5px 5px 0 var(--ink); }
  .case, .format-card, .principle, .budget-card, .hub-item { padding: 22px; }
  .bar-list li { grid-template-columns: 84px 1fr 38px; gap: 7px; font-size: .82rem; }
  .button { width: 100%; justify-content: center; text-align: center; }
  .commercial-link { box-shadow: 4px 4px 0 var(--blue); }
}


/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
.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: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--white); color: var(--ink); }
.entry-content > :where(p,ul,ol,h2,h3,h4,blockquote) { width: min(calc(100% - 40px), 760px); margin-inline: auto; }
.entry-content > :where(.alignwide) { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.entry-content > :where(.alignfull) { width: 100%; }
.entry-content > p:first-child { margin-top: 64px; }
.entry-content > p:last-child { margin-bottom: 80px; }
.hub-item__title { font-size: clamp(1.45rem, 2.8vw, 2.3rem); }
.hub-item__title a { text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }

.gk-contact-form { max-width: 760px; display: grid; gap: 18px; }
.gk-contact-form label { display: grid; gap: 7px; font-weight: 800; }
.gk-contact-form input[type="text"],
.gk-contact-form input[type="email"],
.gk-contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; }
.gk-contact-form textarea { min-height: 180px; resize: vertical; }
.gk-contact-form__consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.gk-contact-form__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.gk-contact-form button { width: fit-content; min-height: 52px; padding: 11px 20px; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font: inherit; font-weight: 850; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; }
.gk-contact-status { max-width: 760px; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--ink); background: var(--lime); }
.nav-links { display: flex; justify-content: space-between; margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
