/*
Theme Name: DKHjemmeside BlueTech
Theme URI: https://dkhjemmeside.dk/
Author: TWS Crew
Author URI: https://dkhjemmeside.dk/
Description: A fast Danish editorial WordPress theme for websites, SEO, hosting and VPN content. Frontend Danish, admin controls English.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dkhjemmeside
Tags: blog, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, editor-style, theme-options
*/

:root {
  --dkh-blue: #2450d4;
  --dkh-blue-dark: #183aaf;
  --dkh-blue-ink: #0d1d53;
  --dkh-orange: #ff9a32;
  --dkh-yellow: #ffd84d;
  --dkh-bg: #f6f8ff;
  --dkh-surface: #ffffff;
  --dkh-ink: #27272f;
  --dkh-muted: #62677a;
  --dkh-border: #e2e6f2;
  --dkh-shadow: 0 18px 60px rgba(16, 35, 94, .12);
  --dkh-radius-lg: 28px;
  --dkh-radius-md: 18px;
  --dkh-container: 1180px;
  --dkh-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--dkh-font);
  color: var(--dkh-ink);
  background: var(--dkh-bg);
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dkh-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--dkh-blue-dark); }
button, input, textarea, select { font: inherit; }

.dkh-container {
  width: min(var(--dkh-container), calc(100% - 40px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: relative;
  z-index: 30;
  background: linear-gradient(135deg, var(--dkh-blue) 0%, #214bd0 48%, #183bb5 100%);
  color: #fff;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.site-branding a { color: #fff; text-decoration: none; }
.custom-logo-link img,
.dkh-default-logo {
  width: clamp(178px, 18vw, 250px);
  max-height: 48px;
  object-fit: contain;
}
.primary-navigation {
  margin-left: auto;
  min-width: 0;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-menu a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.015em;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: #fff; }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 999px;
}

.blog-hero,
.page-hero,
.single-hero,
.error-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dkh-blue) 0%, #214bd0 45%, #183bb5 100%);
  color: #fff;
  overflow: hidden;
}
.blog-hero::before,
.page-hero::before,
.single-hero::before,
.error-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -42% -12%;
  height: 65%;
  background: radial-gradient(circle at 50% 0, rgba(255,255,255,.14), transparent 54%);
  pointer-events: none;
}
.blog-hero .dkh-container,
.page-hero .dkh-container,
.single-hero .dkh-container,
.error-hero .dkh-container { position: relative; z-index: 1; }
.blog-hero { padding: clamp(58px, 9vw, 125px) 0 clamp(66px, 9vw, 118px); text-align: center; }
.blog-hero h1,
.page-hero h1,
.single-hero h1,
.error-hero h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.blog-hero h1 { font-size: clamp(46px, 7.2vw, 78px); }
.blog-hero p {
  max-width: 650px;
  margin: 28px auto 0;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}
.hero-mark {
  width: 34px;
  height: 46px;
  margin: -24px auto 0;
  background: var(--dkh-orange);
  clip-path: polygon(0 0,100% 0,100% 100%,72% 100%,72% 84%,28% 84%,28% 100%,0 100%);
  position: relative;
  z-index: 2;
}
.hero-stars {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--dkh-orange);
  margin-bottom: 22px;
}
.hero-stars svg:nth-child(2) { transform: translateY(-8px) scale(1.3); }
.hero-stars svg:nth-child(3) { transform: translateY(4px) scale(.8); }

.home-featured {
  background: var(--dkh-surface);
  border-top: 1px solid rgba(255,255,255,.35);
  padding: clamp(42px, 6vw, 74px) 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: stretch;
  position: relative;
}
.featured-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--dkh-border);
}
.featured-card {
  padding: 16px 0 8px;
  min-width: 0;
}
.featured-card a { text-decoration: none; }
.card-kicker,
.post-kicker {
  display: block;
  margin-bottom: 16px;
  color: #343744;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.featured-card h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.12;
  letter-spacing: -.04em;
  color: var(--dkh-blue);
}
.featured-card h2 a { color: inherit; }
.featured-card .excerpt {
  margin: 0 0 26px;
  color: #383a43;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.55;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: #3e414c;
  font-size: 16px;
  line-height: 1.35;
}
.post-meta .avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-block;
}
.meta-dot::before { content: "▪"; margin-right: 14px; color: currentColor; }

.home-page-content,
.content-panel {
  background: var(--dkh-bg);
  padding: clamp(44px, 6vw, 80px) 0;
}
.entry-shell {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--dkh-border);
  border-radius: var(--dkh-radius-lg);
  box-shadow: var(--dkh-shadow);
  padding: clamp(24px, 5vw, 58px);
}

.page-hero,
.error-hero { padding: clamp(48px, 8vw, 96px) 0; text-align: center; }
.page-hero h1,
.error-hero h1 { font-size: clamp(42px, 6vw, 76px); }
.page-hero p,
.error-hero p {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(19px, 2vw, 24px);
}

.single-hero { padding: clamp(46px, 8vw, 96px) 0 clamp(54px, 8vw, 104px); text-align: center; }
.single-hero h1 {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(42px, 6.4vw, 78px);
}
.single-hero .post-kicker { color: rgba(255,255,255,.9); margin-bottom: 20px; }
.single-hero .post-meta { justify-content: center; color: rgba(255,255,255,.95); margin-top: 26px; font-size: 19px; }
.single-hero .post-meta a { color: #fff; }
.single-featured-image {
  width: min(1060px, calc(100% - 40px));
  margin: clamp(-36px, -3vw, -28px) auto 44px;
  position: relative;
  z-index: 2;
}
.single-featured-image img {
  width: 100%;
  border-radius: var(--dkh-radius-lg);
  box-shadow: var(--dkh-shadow);
  aspect-ratio: 16 / 8.3;
  object-fit: cover;
}

.single-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 790px);
  gap: 48px;
  align-items: start;
  padding: clamp(42px, 5vw, 72px) 0;
}
.toc-card {
  position: sticky;
  top: 24px;
  border-right: 1px solid var(--dkh-border);
  padding: 18px 28px 18px 0;
  color: #252935;
}
.toc-card.is-empty { display: none; }
.toc-title { display: block; margin-bottom: 14px; font-weight: 900; }
.toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.toc-list a { color: #3a3d48; text-decoration: none; font-size: 16px; line-height: 1.35; }
.toc-list a:hover { color: var(--dkh-blue); }
.entry-content {
  min-width: 0;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.72;
  color: #333541;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #1e2130;
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 2.1em 0 .75em;
}
.entry-content h2 { font-size: clamp(34px, 4vw, 48px); }
.entry-content h3 { font-size: clamp(27px, 3vw, 34px); }
.entry-content h4 { font-size: clamp(22px, 2.5vw, 27px); }
.entry-content p { margin: 0 0 1.2em; }
.entry-content strong,
.entry-content b { color: #191b27; font-weight: 850; }
.entry-content em,
.entry-content i { color: #44485d; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; margin: 0 0 1.35em; }
.entry-content li { margin: .45em 0; padding-left: .15em; }
.entry-content li::marker { color: var(--dkh-blue); font-weight: 850; }
.entry-content blockquote,
.wp-block-quote {
  position: relative;
  margin: 2em 0;
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px) clamp(24px, 4vw, 36px) clamp(70px, 7vw, 92px);
  border: 1px solid rgba(36,80,212,.2);
  border-left: 6px solid var(--dkh-orange);
  border-radius: var(--dkh-radius-md);
  background: linear-gradient(135deg, rgba(36,80,212,.075), rgba(255,154,50,.1));
  color: #252938;
  box-shadow: 0 12px 35px rgba(16, 35, 94, .08);
}
.entry-content blockquote::before,
.wp-block-quote::before {
  content: "⌁";
  position: absolute;
  left: 24px;
  top: 25px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--dkh-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  line-height: 1;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-pullquote { border: 0; padding: 0; }
.entry-content .has-large-font-size { line-height: 1.35; }
.entry-content figcaption,
.wp-caption-text {
  margin-top: 10px;
  color: var(--dkh-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.entry-content img,
.entry-content .wp-block-image img {
  border-radius: var(--dkh-radius-md);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--dkh-border);
}
.entry-content th,
.entry-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--dkh-border);
  text-align: left;
  vertical-align: top;
}
.entry-content th {
  background: #edf2ff;
  color: #1f3378;
  font-weight: 850;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.75em 0; }
.table-scroll table { margin: 0; min-width: 680px; }

.wp-block-button__link,
.dkh-button,
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--dkh-orange), #ffc14d);
  color: #1b1e29 !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255,154,50,.28);
  cursor: pointer;
}
.wp-block-button__link:hover,
.dkh-button:hover,
.contact-submit:hover { filter: saturate(1.08) brightness(.98); color: #111 !important; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--dkh-blue) !important;
  border: 2px solid var(--dkh-blue);
  box-shadow: none;
}

.archive-wrap { padding: clamp(42px, 6vw, 78px) 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--dkh-border);
  border-radius: var(--dkh-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(16, 35, 94, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--dkh-shadow); }
.post-card a { text-decoration: none; }
.post-card-image {
  aspect-ratio: 16 / 9.8;
  background: linear-gradient(135deg, rgba(36,80,212,.98), rgba(22,38,119,.96));
  overflow: hidden;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--dkh-orange);
}
.post-card-body { padding: 24px; }
.post-card h2,
.post-card h3 {
  margin: 0 0 12px;
  color: var(--dkh-blue);
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.post-card .excerpt { margin: 0 0 20px; color: #474b5b; font-size: 16px; line-height: 1.55; }
.post-card .post-meta { font-size: 14px; }
.pagination { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--dkh-blue);
  text-decoration: none;
  border: 1px solid var(--dkh-border);
  font-weight: 800;
}
.pagination .current { background: var(--dkh-blue); color: #fff; }

.related-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto clamp(48px, 7vw, 86px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--dkh-border);
}
.related-section h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: start;
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--dkh-border);
  border-radius: var(--dkh-radius-lg);
  box-shadow: var(--dkh-shadow);
  padding: clamp(24px, 4vw, 36px);
}
.contact-field { margin-bottom: 18px; }
.contact-field label { display: block; margin-bottom: 7px; font-weight: 850; color: #1e2230; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--dkh-border);
  border-radius: 15px;
  background: #f9fbff;
  padding: 13px 14px;
  color: #1d2130;
}
.contact-field textarea { min-height: 150px; resize: vertical; }
.contact-status {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 15px;
  font-weight: 760;
}
.contact-status.success { background: rgba(36, 212, 126, .13); color: #14633b; }
.contact-status.error { background: rgba(255, 99, 99, .14); color: #8a1f1f; }
.dkh-hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.dkh-vendor-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
  margin: 2em 0;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--dkh-radius-lg);
  background: linear-gradient(135deg, #183bb5 0%, #2450d4 52%, #3268ff 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--dkh-shadow);
}
.dkh-vendor-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255,216,77,.42), transparent 66%);
  pointer-events: none;
}
.dkh-vendor-media { min-width: 0; position: relative; z-index: 1; }
.dkh-vendor-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.dkh-vendor-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  color: var(--dkh-orange);
}
.dkh-vendor-content { min-width: 0; position: relative; z-index: 1; }
.dkh-vendor-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.dkh-vendor-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.dkh-vendor-description {
  margin: 0 0 24px;
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}
.dkh-vendor-card .dkh-button { background: linear-gradient(135deg, var(--dkh-orange), var(--dkh-yellow)); }

.site-footer {
  background: #101b50;
  color: #fff;
  padding: clamp(46px, 6vw, 70px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr .8fr;
  gap: 32px;
  align-items: start;
}
.footer-brand img { width: 220px; max-height: 52px; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.72); margin: 0; max-width: 360px; }
.footer-title { display: block; margin-bottom: 14px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; font-size: 14px; color: rgba(255,255,255,.9); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-menu a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #183bb5;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 20px 22px;
  }
  .primary-navigation.is-open { display: block; }
  .primary-menu { width: min(var(--dkh-container), 100%); margin-inline: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .primary-menu a { display: block; padding: 10px 0; font-size: 19px; }
  .featured-grid { grid-template-columns: 1fr; gap: 34px; }
  .featured-grid::before { display: none; }
  .single-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc-card { position: static; border-right: 0; border-bottom: 1px solid var(--dkh-border); padding: 0 0 20px; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dkh-vendor-card { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.68; }
  .dkh-container,
  .single-layout,
  .related-section { width: min(100% - 28px, var(--dkh-container)); }
  .custom-logo-link img,
  .dkh-default-logo { width: clamp(156px, 55vw, 210px); max-height: 44px; }
  .blog-hero { padding-top: 44px; }
  .blog-hero h1 { font-size: clamp(42px, 14vw, 58px); }
  .blog-hero p { font-size: 20px; }
  .hero-mark { width: 29px; height: 39px; margin-top: -20px; }
  .featured-card h2 { font-size: clamp(35px, 11vw, 46px); }
  .featured-card .excerpt { font-size: 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .entry-shell { width: min(100% - 28px, 900px); padding: 24px; border-radius: 22px; }
  .entry-content { font-size: 19px; }
  .entry-content blockquote,
  .wp-block-quote { padding-left: 64px; }
  .entry-content table { display: table; }
  .table-scroll { margin-left: -14px; margin-right: -14px; padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .single-hero .post-meta { font-size: 16px; }
  .dkh-vendor-card { padding: 20px; border-radius: 24px; }
}
