/* =====================================================
   mobiltelefonerudenabonnement.dk — Premium stylesheet
   ===================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:         #f8fafc;
  --clr-surface:    #ffffff;
  --clr-border:     #e2e8f0;
  --clr-text:       #0f172a;
  --clr-muted:      #64748b;
  --clr-accent:     #2563eb;
  --clr-accent-dk:  #1d4ed8;
  --clr-accent-lt:  #eff6ff;
  --clr-hero-bg:    #0a0f1e;
  --clr-hero-text:  #f8fafc;
  --clr-tag-bg:     #e0f2fe;
  --clr-tag-text:   #0369a1;
  --clr-green:      #16a34a;
  --clr-green-lt:   #dcfce7;
  --clr-amber:      #d97706;
  --clr-amber-lt:   #fef9c3;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  --max-w: 1120px;
  --max-w-text: 740px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; }
a:hover { color: var(--clr-accent-dk); text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--clr-text); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .35rem; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: var(--max-w-text); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 62px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--clr-text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.site-logo__icon {
  width: 34px; height: 34px;
  background: var(--clr-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: 0;
}
.site-logo span { color: var(--clr-accent); }

.site-nav {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a {
  display: block;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  text-decoration: none;
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--clr-hero-bg);
  color: var(--clr-hero-text);
  padding: 5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37,99,235,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(16,185,129,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(37,99,235,.25);
  border: 1px solid rgba(37,99,235,.4);
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero__badge svg { flex-shrink: 0; }
.hero h1 {
  color: #fff;
  max-width: 680px;
  margin-bottom: 1rem;
}
.hero__lead {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  font-size: .825rem;
  color: #64748b;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.hero__meta-item svg { color: #3b82f6; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: .75rem 0;
  font-size: .8rem;
  color: var(--clr-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .4rem;
  align-items: center;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--clr-muted); }
.breadcrumb a:hover { color: var(--clr-accent); text-decoration: none; }
.breadcrumb__sep { color: #cbd5e1; }

/* ---------- Main layout ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
.page-layout--full {
  grid-template-columns: 1fr;
}

/* ---------- Content ---------- */
.content-section {
  margin-bottom: 3rem;
}
.content-section h2 {
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--clr-border);
}
.content-section h3 {
  margin-top: 1.75rem;
  margin-bottom: .6rem;
}

/* ---------- Intro box ---------- */
.intro-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.intro-box p:last-child { margin-bottom: 0; }

/* ---------- Highlight / callout ---------- */
.callout {
  display: flex;
  gap: 1rem;
  background: var(--clr-accent-lt);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout--green {
  background: var(--clr-green-lt);
  border-color: #bbf7d0;
}
.callout--amber {
  background: var(--clr-amber-lt);
  border-color: #fde68a;
}
.callout__icon { flex-shrink: 0; font-size: 1.25rem; }
.callout__body p:last-child { margin-bottom: 0; }

/* ---------- Pros / Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pros-cons__col {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.pros-cons__col--pros { border-top: 3px solid var(--clr-green); }
.pros-cons__col--cons { border-top: 3px solid #ef4444; }
.pros-cons__title {
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.pros-cons__col--pros .pros-cons__title { color: var(--clr-green); }
.pros-cons__col--cons .pros-cons__title { color: #ef4444; }
.pros-cons__list { list-style: none; padding: 0; }
.pros-cons__list li {
  display: flex;
  gap: .4rem;
  align-items: flex-start;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--clr-text);
}
.pros-cons__list li::before {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: .05em;
}
.pros-cons__col--pros .pros-cons__list li::before { content: '✓'; color: var(--clr-green); }
.pros-cons__col--cons .pros-cons__list li::before { content: '✗'; color: #ef4444; }

/* ---------- Phone card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.phone-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.phone-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.phone-card__header {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.phone-card__emoji { font-size: 3.5rem; }
.phone-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.phone-card__tag {
  display: inline-block;
  background: var(--clr-tag-bg);
  color: var(--clr-tag-text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}
.phone-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}
.phone-card p {
  font-size: .875rem;
  color: var(--clr-muted);
  margin-bottom: .75rem;
  flex: 1;
}
.phone-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.spec-badge {
  background: #f1f5f9;
  color: var(--clr-muted);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
}
.phone-card__cta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--clr-accent-dk);
  color: #fff;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
}
.btn--outline:hover {
  background: var(--clr-accent-lt);
  text-decoration: none;
}
.btn--ghost {
  background: #f1f5f9;
  color: var(--clr-text);
}
.btn--ghost:hover { background: #e2e8f0; text-decoration: none; }
.btn--lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
}
.stats-bar__item {
  background: var(--clr-surface);
  padding: 1.25rem;
  text-align: center;
}
.stats-bar__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clr-accent);
  letter-spacing: -0.04em;
  display: block;
}
.stats-bar__label {
  font-size: .775rem;
  color: var(--clr-muted);
  font-weight: 500;
}

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.5rem 0;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th {
  background: #f1f5f9;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-muted);
  border-bottom: 2px solid var(--clr-border);
}
.compare-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--clr-bg); }
.compare-table td:first-child { font-weight: 600; }
.badge-green {
  display: inline-block;
  background: var(--clr-green-lt);
  color: var(--clr-green);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.badge-blue {
  display: inline-block;
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
}

/* ---------- FAQ accordion ---------- */
.faq { margin: 1.5rem 0; }
.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  background: var(--clr-surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #f8fafc; }
.faq-item[open] summary {
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  border-bottom: 1px solid var(--clr-border);
}
.faq-item summary .faq-icon { flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--clr-muted);
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-muted);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--clr-border);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: var(--clr-text);
  font-size: .875rem;
  font-weight: 500;
  transition: color .15s;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--clr-accent); text-decoration: none; }
.sidebar-link__icon { font-size: 1.1rem; flex-shrink: 0; }
.sidebar-link__arrow { margin-left: auto; color: var(--clr-muted); font-size: .75rem; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  text-align: center;
}
.sidebar-cta .sidebar-widget__title { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.sidebar-cta p { color: rgba(255,255,255,.85); font-size: .875rem; margin-bottom: 1rem; }
.sidebar-cta .btn { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.sidebar-cta .btn:hover { background: rgba(255,255,255,.3); text-decoration: none; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .9rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list__icon { flex-shrink: 0; font-size: 1rem; margin-top: .05em; }
.feature-list__text strong { display: block; font-size: .875rem; }
.feature-list__text span { color: var(--clr-muted); font-size: .825rem; }

/* ---------- Page nav links (between pages) ---------- */
.page-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.page-nav-card {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--clr-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.page-nav-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--clr-accent);
}
.page-nav-card__icon { font-size: 2.25rem; }
.page-nav-card__sub { font-size: .775rem; font-weight: 400; color: var(--clr-muted); }

/* ---------- Tips checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem 0;
  font-size: .9rem;
  border-bottom: 1px solid #f8fafc;
}
.checklist li::before {
  content: '✔';
  color: var(--clr-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05em;
}

/* ---------- Section divider ---------- */
.section-divider {
  height: 1px;
  background: var(--clr-border);
  margin: 2.5rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--clr-hero-bg);
  color: #94a3b8;
  padding: 3rem 1.25rem 2rem;
  margin-top: 4rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
.footer-brand__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: .5rem;
}
.footer-brand__name span { color: var(--clr-accent); }
.footer-brand p { font-size: .875rem; line-height: 1.6; }
.footer-col h4 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: #94a3b8;
  font-size: .875rem;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.site-footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .compare-table { font-size: .78rem; }
  .compare-table th, .compare-table td { padding: .6rem .6rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .stats-bar { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-muted { color: var(--clr-muted) !important; }
.text-accent { color: var(--clr-accent) !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
