/*
============================================================
Altanrenovering afd. 3 · 2026–2029
Fil: style.css
Version: v1.0.7
Status: Live
Forfatter: Dennis Johansen <dennis@altan-renovering.dk>
Oprettet: 2026-03-26
Opdateret: 2026-04-23

Changelog
2026-04-23 · v1.0.8
- white-space: nowrap og text-align: right udvidet til nth-child(5) og (6) på .type-table — retter kolonneombryd i 6-kolonne tabel

2026-04-23 · v1.0.7
- Row hover highlight tilføjet til .type-table tbody tr — kun desktop, usynlig på mobil

2026-04-23 · v1.0.6
- site-shell max-width øget fra 1000px til 1100px så 8 menupunkter passer på én linje
- site-nav gap reduceret fra 18px til 14px

2026-04-15 · v1.0.5
- Særfremhævning af 4 måneder-kort i krydstalsafsnittet neutraliseret
- break-even-kort på mobil vises nu med samme farvetema for alle perioder

2026-04-15 · v1.0.4
- Styling justeret for mobilkort i krydstalsafsnittet på din-okonomi.html
- Klassnavne i CSS matcher nu HTML for break-even-kort
- 4 måneder-kortet fremhæves diskret som centralt eksempel

2026-04-15 · v1.0.3
- Mobilvisning udvidet for krydstalsafsnit på din-okonomi.html med kortvisning og tydelig fremhævelse af hvornår det vender
============================================================
*/

:root {
  --primary-dark: #243B53;
  --primary-mid: #486581;
  --primary-soft: #D9E2EC;

  --text-main: #1F2933;
  --text-muted: #52606D;

  --bg-page: #EEF2F6;
  --bg-panel: rgba(255, 255, 255, 0.96);
  --bg-panel-soft: rgba(255, 255, 255, 0.93);

  --border-soft: #D9E2EC;
  --border-mid: #BCCCDC;

  --cta-primary: #D9822B;
  --cta-primary-hover: #C56F1A;

  --progress-success: #2E7D32;
  --progress-success-hover: #388E3C;

  --cta-secondary: #486581;
  --cta-secondary-hover: #334E68;

  --highlight-border: #B85C38;
  --highlight-bg: #F8E6DE;
  --highlight-text: #7C2D12;
  --highlight-badge-border: #D6A08A;

  --success-bg: #F3F7FB;
  --danger-bg: #FFF1F1;
  --danger-border: #E3B6B6;
  --danger-text: #A12828;

  --shadow-soft: 0 10px 30px rgba(36, 59, 83, 0.12);
  --shadow-card: 0 4px 14px rgba(36, 59, 83, 0.08);
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background: url('baggrund.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.page-overlay {
  min-height: 100vh;
  background: rgba(20, 30, 40, 0.20);
  padding: 28px 16px;
  overflow-x: hidden;
}

.site-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-panel);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: var(--primary-dark);
  padding: 16px 22px;
  border-bottom: 4px solid var(--primary-mid);
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.35;
}

.site-nav a.active,
.site-nav a:hover {
  text-decoration: underline;
}

.section {
  margin: 22px;
  padding: 20px;
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  background: var(--bg-panel-soft);
  box-shadow: 0 3px 10px rgba(36, 59, 83, 0.06);
}

.hero {
  text-align: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lead {
  text-align: left;
  max-width: none;
  width: 100%;
  margin: 12px 0;
  line-height: 1.65;
  color: #000000;
}

.hero-note {
  max-width: none;
  width: 100%;
  margin: 18px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: rgba(243, 247, 251, 0.85);
  color: var(--primary-dark);
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: left;
}

.hero-text-full {
  max-width: none;
  width: 100%;
}

.hero-text-full .lead {
  max-width: none !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}

.callout-section {
  background: rgba(243, 247, 251, 0.95);
  border-color: var(--border-mid);
}

.site-footer {
  background: rgba(247, 249, 252, 0.96);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  color: var(--primary-dark);
  font-size: 2.15rem;
  line-height: 1.15;
}

h2 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 1.22rem;
}

h3 {
  margin-bottom: 10px;
  color: var(--primary-mid);
  font-size: 1rem;
}

.faq-card h2,
.faq-item h2 {
  font-size: 1.24rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.lead {
  max-width: none;
  color: var(--text-main);
  line-height: 1.65;
}

.hint,
.timeline-text,
.document-meta {
  color: var(--text-muted);
  line-height: 1.65;
}

.rights-note {
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.7;
}

.hint {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.top-space {
  margin-top: 32px;
}

p {
  margin: 0 0 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.cards-grid,
.form-grid,
.gallery-grid,
.document-grid,
.result-summary-grid,
.auto-info-list,
.statistik-grid,
.okonomi-highlight,
.mobile-type-cards,
.perspective-grid {
  display: grid;
  gap: 16px;
}

.cards-grid,
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.okonomi-highlight,
.perspective-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.form-grid-lejlighedstype {
  align-items: end;
}

.lejlighedstype-action {
  display: flex;
  justify-content: flex-start;
  align-items: end;
}

.cards-grid.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-summary-grid,
.auto-info-list,
.statistik-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.statistik-grid.is-single {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}

.info-card,
.faq-card,
.faq-item,
.gallery-card,
.rights-box,
.document-card,
.timeline-card,
.result-card,
.auto-info-box,
.statistik-card,
.statistik-progress-card,
.statistik-sum-card,
.okonomi-card,
.perspective-box,
.mobile-type-card {
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(36, 59, 83, 0.05);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.faq-item {
  width: auto;
  max-width: none;
}

.okonomi-card,
.perspective-box {
  padding: 18px;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card .button-link {
  margin-top: auto;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--text-main);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #ffffff;
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(72, 101, 129, 0.18);
  border-color: var(--primary-mid);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary-mid) 50%),
    linear-gradient(135deg, var(--primary-mid) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
  margin-bottom: 0;
  flex: 0 0 auto;
}

/* Brave-safe accept box */
.accept-box {
  text-align: center;
}

.accept-box label {
  display: block;
  margin-bottom: 0;
  text-align: center;
  font-weight: normal;
  cursor: pointer;
}

.accept-box input[type="checkbox"] {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-block;
  margin: 0 6px 0 0;
  appearance: auto;
  -webkit-appearance: checkbox;
  vertical-align: middle;
}

.button-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

button,
.button-link {
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  background: var(--cta-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

button:hover,
.button-link:hover {
  opacity: 0.98;
  transform: translateY(-1px);
}

button:not(.secondary):hover,
.button-link:not(.secondary):not(.tertiary):hover {
  background: var(--cta-primary-hover);
}

button.secondary,
.button-link.secondary {
  background: var(--cta-secondary);
}

button.secondary:hover,
.button-link.secondary:hover {
  background: var(--cta-secondary-hover);
}

.button-link.tertiary {
  background: var(--primary-dark);
}

.button-link.tertiary:hover {
  background: var(--cta-secondary-hover);
}

.small-button {
  min-width: 0;
  width: auto;
  padding: 12px 18px;
}

.message,
.result-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  line-height: 1.65;
  background: #ffffff;
}

.message.error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.result-box {
  background: rgba(255, 255, 255, 0.98);
}

.hidden {
  display: none !important;
}

.document-meta {
  font-size: 0.95rem;
}

.auto-info-list {
  margin: 0;
}

.auto-info-list div {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(243, 247, 251, 0.65);
}

dt {
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

dd {
  margin: 0;
  color: var(--text-main);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-year,
.drawing-number,
.impact-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: bold;
}

.timeline-year,
.drawing-number {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.impact-badge {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  border: 1px solid var(--highlight-badge-border);
}

.impact-badge strong {
  font-weight: 700;
}

.highlight-box {
  border: 1px solid var(--highlight-badge-border);
  background: var(--highlight-bg);
}

.highlight-box h3,
.highlight-box p {
  color: var(--highlight-text);
}

.warning-box {
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
}

.warning-box h3,
.warning-box p,
.warning-box li {
  color: var(--danger-text);
}

.note-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: rgba(243, 247, 251, 0.85);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-question {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: bold;
}

.legend-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 14px;
  margin-top: 5px;
  border: 1px solid rgba(36, 59, 83, 0.12);
}

.legend-dot.legend-neutral {
  background: var(--primary-soft);
}

.legend-dot.legend-highlight {
  background: var(--highlight-bg);
  border-color: var(--highlight-badge-border);
}

.legend-dot.legend-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.figure-wrap {
  margin-top: 18px;
  text-align: center;
}

.figure-wrap img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-mid);
  box-shadow: 0 3px 10px rgba(36, 59, 83, 0.08);
}

.figure-wrap figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(72, 101, 129, 0.10);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: bold;
}

.highlighted-rule {
  padding: 14px 16px;
  border-left: 4px solid var(--primary-dark);
  background: rgba(243, 247, 251, 0.88);
  border-radius: 8px;
  line-height: 1.7;
}

.highlighted-rule strong {
  color: var(--primary-dark);
}

.gallery-card img {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 14px;
}

.gallery-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 226, 236, 0.55);
  color: var(--text-muted);
  border: 1px dashed var(--border-mid);
  font-weight: bold;
}

.big-number {
  margin: 0 0 8px;
  color: var(--cta-primary);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.big-label {
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

.full-width-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: rgba(243, 247, 251, 0.94);
  color: var(--text-main);
  box-shadow: 0 1px 4px rgba(36, 59, 83, 0.04);
  line-height: 1.65;
}

.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.period-tab {
  padding: 8px 18px;
  border: 2px solid var(--cta-primary);
  background: transparent;
  color: var(--cta-primary);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.period-tab.active,
.period-tab:hover {
  background: var(--cta-primary);
  color: #ffffff;
}

.type-table.period-table {
  min-width: 480px;
}

.type-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(36, 59, 83, 0.05);
}

.type-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.type-table col.col-type {
  width: 34%;
}

.type-table col.col-rent {
  width: 22%;
}

.type-table col.col-extra {
  width: 22%;
}

.type-table col.col-percent {
  width: 22%;
}

.type-table th,
.type-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  font-size: 0.98rem;
  line-height: 1.45;
}

.type-table th {
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.type-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
}

.type-table td:nth-child(2),
.type-table td:nth-child(3),
.type-table td:nth-child(4),
.type-table td:nth-child(5),
.type-table td:nth-child(6),
.type-table th:nth-child(2),
.type-table th:nth-child(3),
.type-table th:nth-child(4),
.type-table th:nth-child(5),
.type-table th:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.type-table tr:last-child td {
  border-bottom: none;
}

.type-table tbody tr:hover {
  background: rgba(72, 101, 129, 0.07);
}

.total-row {
  background: rgba(243, 247, 251, 0.98);
  font-weight: 700;
}

.total-row td {
  font-size: 1.02rem;
}

.rights-note-italic {
  font-style: italic;
}

.mobile-type-cards {
  display: none;
  margin-top: 16px;
  gap: 14px;
}

.mobile-type-card.total-row {
  background: rgba(243, 247, 251, 0.98);
}

.mobile-type-title {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--primary-dark);
}

.mobile-type-list {
  display: grid;
  gap: 10px;
}

.mobile-type-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.mobile-type-item:first-child {
  padding-top: 0;
  border-top: none;
}

.mobile-type-label {
  color: var(--text-muted);
  line-height: 1.45;
}

.mobile-type-value {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  line-height: 1.45;
}

.break-even-mobile-cards {
  display: none;
  margin-top: 18px;
  gap: 12px;
}

.break-even-mobile-card {
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(36, 59, 83, 0.05);
}

.break-even-mobile-title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--primary-dark);
  font-weight: 700;
}

.break-even-mobile-value {
  margin: 0 0 4px;
  color: var(--cta-primary);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
}

.break-even-mobile-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.break-even-mobile-card.is-highlight {
  background: #ffffff;
  border: 1px solid var(--border-mid);
  box-shadow: 0 2px 8px rgba(36, 59, 83, 0.05);
}

.break-even-mobile-card.is-highlight .break-even-mobile-title {
  color: var(--primary-dark);
}

.break-even-mobile-card.is-highlight .break-even-mobile-value {
  color: var(--cta-primary);
}

.rimelighed-quote {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--cta-primary);
  background: rgba(248, 230, 222, 0.35);
  color: var(--primary-dark);
  font-style: italic;
  line-height: 1.65;
  border-radius: 8px;
}

.perspective-box p:last-child {
  margin-bottom: 0;
}

.perspective-value {
  margin: 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-dark);
}

.address-picker {
  position: relative;
}

.address-picker input[type="text"] {
  margin-bottom: 0;
}

.address-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 360px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(36, 59, 83, 0.16);
  padding: 6px;
}

.address-result-item {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font-weight: normal;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

.address-result-item:hover,
.address-result-item:focus,
.address-result-item.active {
  background: rgba(72, 101, 129, 0.10);
  color: var(--primary-dark);
  outline: none;
}

.address-meta {
  margin-top: 8px;
}

.address-status {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--primary-mid);
}

.error-text {
  color: var(--danger-text);
}

.statistik-section {
  background: rgba(243, 247, 251, 0.95);
  border-color: var(--border-mid);
}

.statistik-card,
.statistik-sum-card {
  text-align: center;
}

.statistik-tal {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.statistik-sum {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.statistik-label {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.statistik-progress-card {
  margin-top: 5px;
  margin-bottom: 16px;
}

.statistik-procentlinje {
  margin-bottom: 12px;
  color: var(--text-main);
}

.statistik-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: bold;
}

.statistik-progress {
  width: 100%;
  height: 18px;
  background: var(--primary-soft);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.statistik-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cta-primary) 0%, var(--cta-primary-hover) 100%);
  transition: width 0.35s ease, background 0.5s ease;
}

.statistik-progress-fill.is-success {
  background: linear-gradient(90deg, var(--progress-success) 0%, var(--progress-success-hover) 100%);
}

.statistik-opdateret {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Cookie-banner */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(440px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(36, 59, 83, 0.22);
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-banner-title {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 1.05rem;
  line-height: 1.3;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-banner-actions button,
.cookie-banner-actions .button-link {
  min-width: 0;
  width: auto;
  flex: 1 1 180px;
  padding: 13px 16px;
}

.cookie-banner-actions .cookie-link {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--border-mid);
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.cookie-banner-actions .cookie-link:hover,
.cookie-banner-actions .cookie-link:focus {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: var(--border-mid);
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.cookie-banner-actions .cookie-necessary,
.cookie-banner-actions .cookie-accept {
  background: var(--cta-secondary);
}

.cookie-banner-actions .cookie-necessary:hover,
.cookie-banner-actions .cookie-accept:hover {
  background: var(--cta-secondary-hover);
}

@media (max-width: 920px) {
  .type-table {
    min-width: 760px;
  }

  .type-table th,
  .type-table td {
    padding: 15px 12px;
  }
}

@media (max-width: 900px) {
  .cards-grid.cards-3,
  .cards-grid.cards-4,
  .gallery-grid,
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-overlay {
    padding: 14px 8px;
  }

  .section {
    margin: 12px;
    padding: 14px;
  }

  .cards-grid,
  .form-grid,
  .cards-grid.cards-3,
  .cards-grid.cards-4,
  .gallery-grid,
  .document-grid,
  .result-summary-grid,
  .auto-info-list,
  .form-grid-4,
  .statistik-grid,
  .okonomi-highlight,
  .perspective-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 12px;
    padding: 14px 16px;
  }

  .button-row,
  .cta-row {
    justify-content: stretch;
  }

  button,
  .button-link {
    width: 100%;
    min-width: 0;
  }

  .lejlighedstype-action {
    justify-content: stretch;
  }

  .address-results {
    max-height: 260px;
  }

  .statistik-tal,
  .statistik-sum {
    font-size: 1.8rem;
  }

  .hero-note {
    font-size: 0.93rem;
  }

  .faq-card h2,
  .faq-item h2 {
    font-size: 1.16rem;
  }

  .big-number {
    font-size: 2rem;
  }

  .type-table-wrap {
    display: none;
  }

  .mobile-type-cards,
  .break-even-mobile-cards {
    display: grid;
  }

  .break-even-mobile-card {
    padding: 15px 16px;
  }

  .break-even-mobile-title {
    margin-bottom: 5px;
  }

  .break-even-mobile-value {
    font-size: 1.65rem;
  }

  .break-even-mobile-label {
    font-size: 0.92rem;
  }

  .statistik-progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    padding: 16px;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-actions button,
  .cookie-banner-actions .button-link {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .address-result-item {
    padding: 14px 14px;
  }
}
