/* Lean Canvas im Look von Gründungs Heroes */

:root {
    --blue-dark: #0f6691;
    --blue: #0079b5;
    --title: #0f6691;
    --red: #ed0021;
    --tile-bg: #ebf2f0;
    --text: #00293d;
    --muted: #5f6f78;
    --page-bg: linear-gradient(160deg, #f6dcd8 0%, #efe3ea 45%, #dfe9f1 100%);
    font-family: "Fira Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
}

* { box-sizing: border-box; }

html { background: #e9e4ec; }

body {
    /* flow-root keeps child margins inside body, otherwise they add to 100vh and the page scrolls */
    display: flow-root;
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    background-attachment: fixed;
    line-height: 1.5;
}

a { color: var(--blue); }

/* ---------- Logo ---------- */

.logo {
    display: block;
    width: 96px;
    height: auto;
}

/* ---------- Canvas ---------- */

.board {
    position: relative;
    max-width: 1240px;
    margin: 32px auto;
    padding: 0 16px;
}
.board-tab {
    width: fit-content;
    min-width: 360px;
    max-width: calc(100% - 220px);
    margin: 0 auto;
    padding: 10px 40px 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--blue-dark);
    border-bottom: 4px solid var(--red);
    border-radius: 6px 6px 0 0;
}
.board-tab .product-name {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    overflow-wrap: anywhere;
}
.canvas {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: minmax(200px, auto);
    gap: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 60, 90, .12);
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack .tile:last-child { flex: 1; }
.tile-Revenue, .tile-Costs { grid-column: span 2; }

.tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--tile-bg);
    border-radius: 6px;
}
.tile h2 {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--blue-dark);
}
/* light and dark headings alternate exactly as in the design PDF */
.tile-Problem h2, .tile-UVP h2, .tile-Customers h2, .tile-Channels h2, .tile-Costs h2 { background: var(--blue); }
.tile-body { padding: 12px 14px 14px; font-size: 14px; }
.tile-body p { margin: 0; }
.tile-body ul { margin: 0; padding-left: 18px; list-style: "·  "; }
.tile-body li + li { margin-top: 2px; }
.tile-body .empty { color: var(--muted); font-style: italic; }

.board-footer {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: var(--muted);
    overflow-wrap: anywhere;
}

/* ---------- Einfache Seiten (Start, Fehler) ---------- */

body.page-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.message {
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 32px 24px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(20, 60, 90, .15);
}
.message .logo { width: 120px; margin: 0 auto 16px; }
.board > .logo { position: absolute; top: -24px; left: 24px; z-index: 1; width: 70px; }
.message h1 { margin: 0 0 8px; font-size: 24px; color: var(--title); }

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 1100px) {
    .canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-Revenue, .tile-Costs { grid-column: auto; }
    .stack { display: contents; }
}

@media (max-width: 640px) {
    .board > .logo { position: static; width: 72px; margin: 0 auto 12px; }
    .board-tab { min-width: 0; max-width: none; width: 100%; }
    .canvas { grid-template-columns: 1fr; grid-auto-rows: auto; padding: 12px; gap: 12px; }
    .tile-body { min-height: 0; }
}
