/*
 * Knivslibning Aarhus - Ny Version Stylesheet
 * Design: Top-Professionel Webdesigner
 * Fokus: Mørk, Elegant, Håndværk, Præcision
 */

/* 1. VARIABLER & RESET */
:root {
    --bg: #0F1113; /* Dyb sort/mørkegrå */
    --bg-soft: #1C1E20; /* Lidt lysere til kort/sektioner */
    --text: #F5F7FA; /* Hvid/Let grå */
    --muted: #C9CFD8; /* Dæmpet tekst */
    --list-muted: #A0A5AD; /* Lidt lysere muted for listepunkter */
    --accent: #D3A64B; /* Messing/Guld accent (Hovedfarve) */
    --accent-dark: #C29640; /* Mørkere accent for hover */
    --accent-olive: #7A8B7C; /* Mørk Oliven grønlig accent (Sekundær) */
    --shadow-light: 0 4px 15px rgba(211, 166, 75, 0.12); /* Messing skygge */
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);
    --maxw: 1200px;
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
}

/* LIGHT MODE VARIABLER */
body.light-mode {
    --bg: #FFFFFF; /* Skifter til hvid baggrund */
    --bg-soft: #F0F2F5; /* Lidt mørkere til kort/sektioner */
    --text: #0F1113; /* Skifter til sort tekst */
    --muted: #575757; /* Mørk grå dæmpet tekst */
    --list-muted: #333333; /* Endnu mørkere for listepunkter i light mode */
    --accent: #D3A64B; /* Messing/Guld bevares */
    --accent-dark: #C29640;
    --accent-olive: #6C796D; /* Oliven bevares, evt. lidt mørkere */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); /* Lettere skygge */
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Base Reset/Styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
}
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--accent-dark); opacity: 0.9; }

/* 2. TYPOGRAFI */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 0;
}
h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; text-align: center; margin-bottom: 50px; }
h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}
.sub {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 400;
}
.section-title {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-olive);
    display: inline-block;
    margin: 0 auto 50px;
}

/* 3. HEADER & NAVIGATION */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(15, 17, 19, 0.9);
    border-bottom: 1px solid var(--bg-soft);
    box-shadow: var(--shadow-dark);
    transition: background 0.3s ease, border-bottom 0.3s ease; /* Smooth transition for theme change */
}
body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}
.brand img {
    filter: drop-shadow(0 0 5px rgba(211, 166, 75, 0.4));
    height: 32px; /* Sikrer at højden er fast */
    width: auto; /* Lader bredden skalere proportionalt */
    transition: filter 0.3s ease; /* Smooth transition for logo filter */
}
body.light-mode .brand img {
    filter: none; /* Fjerner filter i light mode, da sort logo ikke har brug for glød */
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Button */
.theme-toggle-button {
    background: var(--bg-soft);
    border: 1px solid var(--muted);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    padding: 0; /* Fjern padding for SVG-centrering */
}
.theme-toggle-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg); /* Skift farve på ikon til baggrundsfarven */
}
body.light-mode .theme-toggle-button {
    background: var(--bg);
    border-color: var(--muted);
    color: var(--accent);
}
body.light-mode .theme-toggle-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.theme-toggle-button svg {
    display: none; /* Skjuler begge som standard, JS viser den korrekte */
}
.theme-toggle-button .sun-icon {
    display: inline-block; /* Vises som standard i dark mode */
}
body.light-mode .theme-toggle-button .sun-icon {
    display: none;
}
body.light-mode .theme-toggle-button .moon-icon {
    display: inline-block;
}

.badge {
    display: none; /* Skjul badge på mobil */
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    transition: background-color 0.2s;
}
.badge:hover { background-color: rgba(211, 166, 75, 0.1); }
@media (min-width: 768px) { .badge { display: flex; } }
@media (max-width: 480px) {
    .brand {
        gap: 8px; /* Reducerer afstanden mellem logo og tekst */
    }
    .brand span {
         font-size: 18px; /* Skalerer fontstørrelsen ned for at give plads */
    }
    .header-actions {
        gap: 10px;
    }
    .theme-toggle-button {
        width: 32px;
        height: 32px;
    }
}


/* 4. HERO SEKTION */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero:after { /* Subtil forgrunds-gradient for at sikre tekstlæsbarhed */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 19, 0.5) 0%, var(--bg) 100%);
    z-index: 1;
    transition: background 0.3s ease; /* Smooth transition for theme change */
}
body.light-mode .hero:after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, var(--bg) 100%);
}
.hero .container { z-index: 2; position: relative; }

.hero-image-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.35; /* Subtil baggrundsfornemmelse */
    transform: scale(1.05);
}

.cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-light);
}
.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: 0 10px 25px rgba(211, 166, 75, 0.35);
    color: #000000;
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--accent-olive);
}
.btn-secondary:hover {
    background: var(--bg-soft);
    border-color: var(--accent);
}
.large-btn {
    padding: 16px 30px;
    font-size: 16px;
}

/* 5. SEKTIONER & KORT (GRIDS) */
.section { padding: 80px 0; }
.services-grid {
    background-color: var(--bg-soft);
    transition: background-color 0.3s ease; /* Smooth transition for theme change */
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}
.card {
    grid-column: span 12;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg);
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s, border-color 0.3s, background 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for theme change */
    opacity: 0; /* Starter skjult for animation */
    transform: translateY(20px);
}
body.light-mode .card {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--bg);
    box-shadow: var(--shadow-light);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}
.card--half { grid-column: span 12; }
.card--full { grid-column: span 12; }

@media (min-width: 900px) {
    .card--half { grid-column: span 6; }
}

/* Scroll Animation Style */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Juster delay for hvert kort/step */
.grid .card:nth-child(1) { transition-delay: 0s; }
.grid .card:nth-child(2) { transition-delay: 0.1s; }
.grid .card:nth-child(3) { transition-delay: 0.2s; }
.process-steps .step:nth-child(1) { transition-delay: 0s; }
.process-steps .step:nth-child(2) { transition-delay: 0.1s; }
.process-steps .step:nth-child(3) { transition-delay: 0.2s; }


.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(211, 166, 75, 0.6));
}
body.light-mode .card-icon {
    filter: drop-shadow(0 0 3px rgba(211, 166, 75, 0.3)); /* Mindre glød i light mode */
}

.list {
    margin: 15px 0 0;
    padding-left: 0;
    list-style: none;
    color: var(--list-muted); /* Bruger ny list-muted variabel */
}
.list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    font-size: 15px;
}
.list li::before {
    content: ''; /* Fjerner pilen herfra */
    position: absolute;
    left: 0;
    font-weight: 700;
}
.list-icon { /* Ny klasse til ikoner i listen */
    position: absolute;
    left: 0;
    color: var(--accent); /* Holder flueben/pil accentfarvet */
}


/* Process Section */
.process-section {
    background-color: var(--bg);
    transition: background-color 0.3s ease; /* Smooth transition for theme change */
}
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .process-steps { flex-direction: row; }
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 20px;
}
.step-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-olive);
    line-height: 1;
    margin-bottom: 10px;
    transition: color 0.3s ease; /* Smooth transition for theme change */
}
.step h3 { font-family: var(--font-sans); }
.step p {
    color: var(--muted);
    font-size: 15px;
    transition: color 0.3s ease; /* Smooth transition for theme change */
}

/* 6. CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(211, 166, 75, 0.05) 100%);
    border-top: 1px solid var(--bg-soft);
    border-bottom: 1px solid var(--bg-soft);
    padding: 60px 0;
    transition: background 0.3s ease, border-top 0.3s ease, border-bottom 0.3s ease; /* Smooth transition for theme change */
}
body.light-mode .cta-banner {
    background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(211, 166, 75, 0.08) 100%);
}

.cta-banner h2 { margin-bottom: 15px; }
.cta-banner p {
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 0;
    transition: color 0.3s ease; /* Smooth transition for theme change */
}


/* 7. FOOTER */
footer {
    border-top: 1px solid var(--bg-soft);
    padding: 40px 0;
    color: var(--muted);
    font-size: 14px;
    transition: border-top 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-col:nth-child(2) { justify-self: center; }
}

.footer-col h4 {
    font-family: var(--font-sans);
    color: var(--text);
    font-size: 16px;
    margin-bottom: 15px;
    transition: color 0.3s ease; /* Smooth transition for theme change */
}
.brand-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    font-size: 16px;
}
.brand-footer img {
    filter: drop-shadow(0 0 3px rgba(211, 166, 75, 0.4));
    height: 32px; /* Fast højde */
    width: auto; /* Proportional bredde */
    transition: filter 0.3s ease; /* Smooth transition for logo filter */
}
body.light-mode .brand-footer img {
    filter: none; /* Fjerner filter i light mode */
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li { margin-bottom: 8px; }
.footer-list a {
    color: var(--muted);
    transition: color 0.2s;
}
.footer-list a:hover { color: var(--accent); }

.social-footer {
    display: flex;
    gap: 20px;
}

.about-footer {
    padding-top: 40px;
}

.about-footer p {
    font-size: 12px;
    font-style: italic;
}

.social-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    transition: color 0.2s;
}
.social-footer a:hover { color: var(--accent); }
.footer-grid .container.copyright-info {
    grid-column: 1 / -1;    /* strækker sig over alle kolonner */
    text-align: center;     /* centrerer selve teksten */
    padding-top: 20px;      /* valgfrit: giv lidt luft */
}

.copyright-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px;
    transition: border-top 0.3s ease; /* Smooth transition for theme change */
}
.portrait {
    border-radius:50%;
    display:block;
    margin-left: 15px;
}
body.light-mode .copyright-info {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.small-text { font-size: 12px; line-height: 1.5; }
.muted-link { color: var(--muted); }
.muted-link:hover { color: var(--accent); }

/* 8. SCROLL TO TOP KNAP */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
#scrollToTopBtn:hover {
    background-color: var(--accent-dark);
}
body.light-mode #scrollToTopBtn {
    color: var(--bg-soft); /* Ikonfarve i light mode */
    background-color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 480px) {
    .brand {
        margin-left: auto;
        margin-right: auto;
    }
    .brand span {
        display: none;
    }
    .brand img {
        height: 42px;
    }
    .header-actions {
        position: absolute;
        right: 10px;
    }
}