/* ============================================================================
   corej.css - what belongs to corej.p-300.com only
   ============================================================================
   Everything shared lives in brand.css and is loaded before this file. Setting
   a colour or a font here means something is in the wrong place.
   ============================================================================ */

/* ---------- Hero ---------------------------------------------------------- */
/* One padding for every section, set here once instead of per section. */
section { padding: 100px 0; }

.hero { padding: 96px 0 72px; }
/* Without this the long hero words can push the text column wider than its grid track. */
.hero-copy { min-width: 0; }
.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.0;
    font-weight: 600;
    margin: 0 0 42px;
    color: var(--text-primary);
}
/* Hero body text: same build as cumba.net - Fraunces, 20px, its own line height. */
.hero-lead {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 56ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

/* The three facts as chips, like the format badges on cumba.net. */
.fact-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fact-tag {
    padding: 6px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
}

/* ---------- Das Herz ------------------------------------------------------ */
.hero-mark { display: flex; justify-content: center; }
.corej-heart {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    cursor: pointer;
    transform-origin: 50% 55%;
}
/* Click plays a real heartbeat, not an even pulse: a strong beat, a softer one, then rest. */
/* Three beats on click. The timing is lub - dub - pause, not an even blink. */
.corej-heart.schlaegt { animation: puls 1.05s ease-out 3; }

/* Which version is visible. Light by default; dark mode swaps them, and the manual toggle wins over both. */
.heart-dunkel { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .heart-hell   { display: none; }
    :root:not([data-theme="light"]) .heart-dunkel { display: block; }
}
:root[data-theme="dark"] .heart-hell   { display: none; }
:root[data-theme="dark"] .heart-dunkel { display: block; }
:root[data-theme="light"] .heart-hell   { display: block; }
:root[data-theme="light"] .heart-dunkel { display: none; }
@keyframes puls {
    0%   { transform: scale(1.00); }   /* Ruhe */
    9%   { transform: scale(1.14); }   /* lub, the strong one */
    19%  { transform: scale(1.00); }
    30%  { transform: scale(1.08); }   /* dub, the quieter one */
    42%  { transform: scale(1.00); }
    100% { transform: scale(1.00); }   /* pause until the next beat */
}
@media (prefers-reduced-motion: reduce) {
    .corej-heart.schlaegt { animation: none; }
}

/* ---------- Karten -------------------------------------------------------- */
.karten {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.karten--vier { grid-template-columns: repeat(2, 1fr); }
.karte {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
}
.karte h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-primary);
}
.karte p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.karte-liste {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.karte-fuss { margin-top: 10px !important; font-size: 13.5px; color: var(--text-muted); }
/* Without this a link inside a card renders in the browser's default blue. */
.karte a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(31,156,156,0.35); }
.karte a:hover, .karte a:focus-visible { border-bottom-color: var(--accent); }

/* ---------- Dichtes Kartenraster ------------------------------------------- */
/* "All features": many small cards, three abreast, like the features grid on
   cumba.net. Smaller type than the highlight cards so the two do not compete. */
.karten--dicht { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.karten--dicht .karte { padding: 20px 20px; }
.karten--dicht .karte h3 { font-size: 15.5px; margin: 0 0 7px; }
.karten--dicht .karte p { font-size: 14px; }

/* ---------- Kontakt ------------------------------------------------------- */
/* No ch limit on the paragraphs, same as cumba.net: the block is 1040px wide
   (brand.css, .contact-inner) and a narrower measure inside it would leave the
   section looking like a column pushed against the left edge. */
.contact-lead { margin: 0 0 30px; }

.contact-route { margin: 0 0 12px; }
.contact-route strong { color: var(--text-primary); }
.contact-points {
    display: flex; flex-direction: column; gap: 7px;
    padding-left: 20px; margin: -2px 0 22px;
}
.contact-point {
    color: var(--accent-2);
    font-size: 14px;
    text-decoration: none;
    width: fit-content;
}
.contact-point:hover, .contact-point:focus-visible {
    text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Beispiel ------------------------------------------------------ */
/* Two blocks side by side: a check and the finding it produces. The brand's
   "mono" slot is Inter (it is used for labels, not for code), so the code
   blocks name a real monospace stack of their own. */
.beispiel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
/* Without min-width the <pre> sets the track width and a phone gets a sideways
   scrolling page instead of a scrolling code block. */
.beispiel-teil { min-width: 0; }
.beispiel-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.beispiel-code {
    margin: 0;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
}
.beispiel-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre;
}
/* Only the id and the message are marked, in both boxes: they are what lets you
   find the finding's rule again. Everything else stays plain. */
.tok { background: var(--accent-glow); border-radius: 2px; padding: 0 1px; }

.beispiel-note { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ---------- Bauplan eines Checks ----------------------------------------- */
/* Same two-column shape as the operator list below it, but the right side is
   prose, not code chips. */
.bauplan { max-width: 900px; margin-bottom: 40px; }
.bauplan-liste { margin: 0; display: grid; grid-template-columns: 210px 1fr; gap: 8px 20px; }
.bauplan-liste dt { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.bauplan-liste dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

@media (max-width: 760px) {
.bauplan-liste { grid-template-columns: 1fr; gap: 2px 0; }
.bauplan-liste dd { margin-bottom: 12px; }
}

/* ---------- Nutzung ------------------------------------------------------- */
/* Three routes, numbered, easiest first. A list and not cards on purpose: the
   steps are not equal alternatives, they go from "no install" to "in your code". */
.nutzung { display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.nutzung-schritt {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 24px;
}
.nutzung-num {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    color: var(--wortmarke-j);
    text-align: center;
}
.nutzung-text h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.nutzung-text p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }
.nutzung-text p:last-child { margin-bottom: 0; }
.nutzung-link { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.nutzung-link:hover, .nutzung-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* The licence sentence under the routes: quiet, centred, not a card. */
.download-note {
    max-width: 68ch;
    margin: 34px auto 0;
    text-align: center;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ---------- Schmal -------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-mark { order: -1; }
    .corej-heart { max-width: 240px; }
    .karten, .karten--vier, .karten--dicht { grid-template-columns: 1fr; }
    .beispiel { grid-template-columns: 1fr; }
    .nutzung-schritt { grid-template-columns: 38px 1fr; gap: 12px; padding: 20px 18px; }
}

/* ---------- Download ---------------------------------------------------- Same shape as cumba.net. */
.sysreq-memory {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.sysreq-mem-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sysreq-mem-value {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--text-primary);
}

.sysreq-mem-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 600px) {
.sysreq-memory { gap: 28px; }
}

.download-section {
    padding: 100px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 18px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.download-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}

.download-icon {
    font-size: 40px;
    color: var(--teal);
    margin-bottom: 16px;
}

.download-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.download-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.download-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.download-card:hover .download-cta {
    background: var(--teal-dk);
}

.download-version {
    text-align: center;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pill-free {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--teal-dk);
    background: rgba(31,156,156,0.1);
}

@media (max-width: 1100px) {
.download-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
}

@media (max-width: 600px) {
.download-grid { grid-template-columns: 1fr; }
}

/* ---------- Open questions ----------------------------------------------- Two levels of yellow mark text that is not settled yet. The deploy workflow refuses to publish while any of these classes is still in the HTML. */
/* Two levels because these are two different states: open question versus wording not yet confirmed. */
.offen {
    background: rgba(242,193,78,0.28);
    box-shadow: 0 0 0 2px rgba(242,193,78,0.28);
    border-radius: 3px;
}
.unbestaetigt {
    background: rgba(242,193,78,0.13);
    border-left: 3px solid rgba(242,193,78,0.75);
    border-radius: 0 4px 4px 0;
    padding: 2px 10px 2px 11px;
    margin-left: -14px;
}
/* Inside cards the border would otherwise sit outside. */
.karte .unbestaetigt { margin-left: 0; }
.platzhalter {
    border: 2px dashed #c9a83f;
    background: rgba(242,193,78,0.10);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin: 0;
}
.platzhalter b { color: #8a6d1f; letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; }
.platzhalter p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
/* On a dark ground the pale yellow does not carry - a little stronger there. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .unbestaetigt { background: rgba(242,193,78,0.10); }
    :root:not([data-theme="light"]) .offen { background: rgba(242,193,78,0.22); box-shadow: 0 0 0 2px rgba(242,193,78,0.22); color: #f2ede1; }
}
:root[data-theme="dark"] .offen { background: rgba(242,193,78,0.22); box-shadow: 0 0 0 2px rgba(242,193,78,0.22); color: #f2ede1; }
