/* === CSS Variables === */
:root {
    --primary:       #0f172a;
    --primary-light: #1e293b;
    --accent:        #3b82f6;
    --accent-hover:  #2563eb;
    --card:          #ffffff;
    --bg:            #f1f5f9;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --radius:        12px;
    --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.07);
    --shadow-hover:  0 4px 16px rgba(0,0,0,0.13), 0 16px 48px rgba(0,0,0,0.09);
    --nav-h:         60px;
    --footer-h:      52px;
}

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

/* === Body === */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg) url('/pictures/broccoli.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

/* === Navigation === */
nav {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    padding: 0 1.5em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4em 0.95em;
    border-radius: 7px;
    transition: color 0.18s, background 0.18s;
    letter-spacing: 0.01em;
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}

/* === Main Content Card === */
main {
    max-width: 680px;
    margin: calc(var(--nav-h) + 2.5em) auto calc(var(--footer-h) + 2.5em);
    background: var(--card);
    padding: 2.5em 3em;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* === Typography === */
h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

p {
    color: var(--text-muted);
    margin-bottom: 0.9em;
}

article h2 { margin-top: 0; }

/* === Footer === */
footer {
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    letter-spacing: 0.01em;
}

/* === Blog List === */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.blog-post {
    background: var(--card);
    padding: 1.5em 1.75em;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-post:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.blog-post h3 { margin-top: 0; margin-bottom: 0.4em; }

.blog-post h3 a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s;
}

.blog-post h3 a:hover { color: var(--accent); }

/* === Contact Form === */
.kontakt-form > p {
    margin-bottom: 1.8em;
}

.form-group {
    margin-bottom: 1.35em;
}

.bold-label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 0.45em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kontakt-form input[type="email"],
.kontakt-form input[type="text"],
.kontakt-form textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fafbfc;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    outline: none;
    resize: vertical;
}

.kontakt-form input[type="email"]:focus,
.kontakt-form input[type="text"]:focus,
.kontakt-form textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.13);
}

.kontakt-form textarea {
    min-height: 130px;
    line-height: 1.6;
}

/* Honeypot — skjult felt, bots udfylder det */
.hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    pointer-events: none;
}

/* Ikon-udfordring */
.icon-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65em;
    margin-top: 0.5em;
}

.icon-btn {
    aspect-ratio: 1;
    font-size: 2rem;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em;
    user-select: none;
    line-height: 1;
}

.icon-btn:hover {
    border-color: var(--accent);
    background: #eff6ff;
    transform: scale(1.06);
}

.icon-btn.selected {
    border-color: var(--accent);
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    transform: scale(1.04);
}

.icon-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.45em;
    margin-bottom: 0;
}

/* Submit Button */
#submitBtn,
button[type="submit"] {
    width: 100%;
    padding: 0.85em 1.5em;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.015em;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    margin-top: 0.4em;
}

#submitBtn:hover,
button[type="submit"]:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}

#submitBtn:active,
button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* === Feedback Messages === */
.error {
    display: none;
    background: #fef2f2;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    padding: 0.85em 1.1em;
    margin-bottom: 1.4em;
    font-size: 0.95rem;
    line-height: 1.55;
}

.error.is-visible {
    display: block;
}

.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 0.85em 1.1em;
    margin-bottom: 1.2em;
    font-weight: 500;
    font-size: 0.95rem;
}

.success-detail {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1em 1.2em;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

/* === h1 (bruges på 404-siden) === */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5em;
    letter-spacing: -0.03em;
}

/* === Inline links === */
main a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}

main a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

/* === Post meta (dato) === */
.post-meta {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.6em;
    font-style: normal;
}

/* === Tilbage-link === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    margin-bottom: 1.5em;
    transition: color 0.18s !important;
}

.back-link:hover {
    color: var(--accent) !important;
    text-decoration: none !important;
}

/* === Enkelt blogindlæg (post.php) === */
.single-post h2 {
    margin-bottom: 0.3em;
}

.single-post p {
    color: var(--text);
    white-space: pre-line; /* ← RETTET HER */
}

/* Afstand over brødtekst i blogindlæg (erstatter inline style) */
.post-lead {
    margin-top: 1.2em;
}

/* Introduktionstekst på 404-siden (erstatter inline style) */
.not-found-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

/* === LinkedIn footer-link === */
.footer-linkedin {
    display: inline-flex;
    align-items: center;
    margin-left: 1em;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.footer-linkedin:hover {
    color: #0A66C2;
    transform: translateY(-2px);
}

.footer-linkedin svg {
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
}

/* === Responsive === */
@media (max-width: 700px) {
    main {
        max-width: 100%;
        margin: calc(var(--nav-h) + 1.2em) 0.9em 1.5em;
        padding: 1.6em 1.3em;
        border-radius: 8px;
    }

    nav {
        padding: 0 0.75em;
        gap: 0.1em;
    }

    nav a {
        font-size: 0.875rem;
        padding: 0.35em 0.6em;
    }

    h2 { font-size: 1.35rem; }

    footer {
        position: static;
        width: 100%;
    }
}

/* === Blogpost billede === */
.post-image {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 1.8em auto 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* === Typewriter Effekt === */
.tw {
  display: inline-block;
  border-right: .15em solid #111; /* sort cursor */
  padding-right: .1em;
  color: #111; /* sort tekst */
}

/* Blinkende cursor */
.tw.blink {
  animation: twBlink .8s step-end infinite;
}

@keyframes twBlink {
  0%, 100% { border-color: transparent; }
  50%      { border-color: #111; }
}

/* === Overlay figur på forsiden === */
.hero-figure {


    right: 950px;        /* afstand fra højre */
    width: 45px;       /* størrelse på figuren */
    z-index: 2000;      /* ligger OVER alt andet */
    pointer-events: none; /* klik går igennem billedet */
}

.linkedin-banner {
    height: 30px; /* gør billedet mindre */
    padding-left: 6px; /* justér efter smag */

}



