/* Guides (de/ratgeber/): longer texts on top of features.css. Colours from site.css / light.css, so both looks work. */

/* Author and date under the lead: who writes the guide, and how current it is. */
.fa-hero .gd-byline { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Left-aligned under the title (the hero is left-aligned too), a comfortable line length. */
.gd-prose { max-width: 820px; margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.gd-prose + .fa-faq { max-width: 820px; margin: 0; }
.gd-prose h2 { margin: 56px 0 14px; color: var(--heading, #fff); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.25; }
.gd-prose h2:first-child { margin-top: 0; }
.gd-prose h3 { margin: 32px 0 8px; color: var(--heading, #fff); font-size: 20px; font-weight: 750; }
.gd-prose p { margin: 0 0 16px; }
.gd-prose ul, .gd-prose ol { margin: 0 0 18px; padding-left: 22px; }
.gd-prose li { margin: 6px 0; }
.gd-prose b, .gd-prose strong { color: var(--heading, #fff); }
.gd-prose a { color: var(--accent); }
.gd-prose code { padding: 1px 6px; border-radius: 6px; background: var(--glass); font-size: .92em; }

/* "In short" box at the top of a guide */
.gd-short { margin: 0 0 40px; padding: 20px 24px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
/* Only the label itself ("In short"); bold words inside the list stay inline. */
.gd-short > b { display: block; margin-bottom: 6px; color: var(--accent); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.gd-short ul { margin: 0; }

/* Note (not legal advice etc.) */
.gd-note { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--glass); font-size: 15px; }

/* Comparison table; scrolls sideways on phones instead of the page */
.gd-table-wrap { margin: 18px 0 26px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.gd-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.gd-table th, .gd-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gd-table thead th { color: var(--heading, #fff); font-weight: 750; background: var(--glass); }
.gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table td:first-child { color: var(--heading, #fff); font-weight: 650; }

.gd-prose figure { margin: 28px 0; }
.gd-prose figure img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.gd-prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Guide list on the overview */
.gd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* Cost calculator: inputs on the left, the result on the right; stacked on phones. */
.gc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; margin: 8px 0 36px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.gc-in { display: grid; gap: 16px; align-content: start; padding: 22px; }
.gc-out { padding: 22px; border-left: 1px solid var(--line); background: var(--glass); }
.gc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.gc-seg legend { padding: 0 0 8px; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.gc-seg label { position: relative; display: grid; place-items: center; min-height: 40px; padding: 6px 8px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 650; text-align: center; line-height: 1.25; cursor: pointer; }
.gc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.gc-seg label:has(input:checked) { background: var(--accent); color: #170b04; }
.gc-seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.gc-field { display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.gc-field small { color: var(--muted); font-size: 13px; font-weight: 400; }
.gc-field input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--ink); font: inherit; font-size: 17px; font-variant-numeric: tabular-nums; }
.gc-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.gc-total b { color: var(--heading, #fff); font-size: clamp(34px, 5vw, 46px); font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gc-total span { color: var(--muted); font-size: 15px; }
.gc-total span b { font-size: 15px; font-weight: 750; color: var(--ink); }
.gc .gd-table-wrap { margin: 0 0 14px; }
.gc .gd-table { min-width: 0; font-size: 14px; }
.gc .gd-table th, .gc .gd-table td { padding: 9px 10px; }
.gc .gd-table td + td, .gc .gd-table th + th { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gc-hint { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) {
	.gc { grid-template-columns: 1fr; }
	.gc-out { border-left: 0; border-top: 1px solid var(--line); }
	.gc-in, .gc-out { padding: 16px; }
	/* The free calls are in the price table below; on phones the cost column needs the room. */
	.gc .gd-table th:nth-child(3), .gc .gd-table td:nth-child(3) { display: none; }
	.gc .gd-table th, .gc .gd-table td { padding: 8px; font-size: 13px; }
}

/* Bar chart in a guide: one row per item, label, a thin bar from zero and the value at its end. */
.gb { margin: 10px 0 30px; padding: 18px 20px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.gb-title { margin: 0 0 12px; color: var(--heading, #fff); font-size: 15px; font-weight: 750; }
.gb-row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.gb-name { color: var(--ink-2); line-height: 1.3; }
.gb-name small { color: var(--muted); }
.gb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gb-bar { height: 12px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--accent); }
.gb-row:hover .gb-bar { filter: brightness(1.12); }
.gb-val { flex: none; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .gb-row { grid-template-columns: 1fr; gap: 3px; } }

/* A table with many columns: room for short headers on one line, sideways scrolling on phones. */
.gd-table--wide { min-width: 780px; font-size: 14px; }
.gd-table--wide th { white-space: nowrap; }
.gd-table--wide td:nth-child(n+2):nth-child(-n+6) { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
