/* ===== RESET ===== */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, code, em, img, ins, small, strong, sub, sup, b, u, i,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, details, figcaption, figure, footer, header,
menu, nav, output, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html {
    box-sizing: border-box;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

@media (min-width: 1024px) {
    html {
        scroll-padding-top: 120px;
    }
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* ===== FONTS ===== */
@font-face {
    font-family: 'Dinpro';
    src: url('https://www.johannesfog.dk/assets/fonts/Dinpro-Bold.woff') format('woff'),
         url('https://www.johannesfog.dk/assets/fonts/Dinpro-Bold2.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dinpro';
    src: url('https://www.johannesfog.dk/assets/fonts/Dinpro-Medium.woff') format('woff'),
         url('https://www.johannesfog.dk/assets/fonts/Dinpro-Medium2.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dinpro';
    src: url('https://www.johannesfog.dk/assets/fonts/Dinpro-Regular.woff') format('woff'),
         url('https://www.johannesfog.dk/assets/fonts/Dinpro-Regular2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== BODY ===== */
body {
    height: 100vh;
    font-family: Dinpro, helvetica, arial, sans-serif;
    background-color: #f5f5f3;
    margin: 0;
    color: #101820;
}

#page-wrapper {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
    top: 0;
    position: sticky;
    z-index: 400;
    transition: top 0.4s ease-in-out;
    background-color: #ffffff;
}

.header-inner {
    margin: 0 auto;
    max-width: 1680px;
    width: 100%;
    display: grid;
    z-index: 300;
    position: relative;
    grid-template-areas:
        "usp usp"
        "logo iconnav"
        "search search";
    grid-template-columns: 1fr 1fr;
}

@media (min-width: 1024px) {
    .header-inner {
        grid-template-areas:
            "usp usp usp usp"
            "logo nav search iconnav";
        grid-template-columns: 70px auto 1fr 200px;
    }
}

/* ===== USP BAR ===== */
.usp-bar {
    grid-area: usp;
    background-color: #f5f5f3;
    padding: 8px 15px;
}

.usp-bar ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.usp-bar li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #101820;
}

.usp-bar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.usp-bar a {
    text-decoration: none;
    color: #101820;
    font-size: 13px;
}

.usp-bar a:hover {
    text-decoration: underline;
}

/* ===== LOGO ===== */
.header-logo {
    grid-area: logo;
    display: block;
    line-height: 0;
    padding: 5px;
}

.header-logo svg,
.header-logo img {
    height: 60px;
    width: 60px;
}

@media (min-width: 1024px) {
    .header-logo svg,
    .header-logo img {
        height: 70px;
        width: 70px;
    }
}

/* ===== NAVIGATION ===== */
.header-nav {
    display: none;
    grid-area: nav;
    align-items: center;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

.header-nav ul {
    display: flex;
    gap: 30px;
    margin: 0 30px;
    list-style: none;
    padding: 0;
}

.header-nav a {
    font-family: Dinpro, helvetica, arial, sans-serif;
    text-decoration: none;
    color: #101820;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.header-nav a:hover {
    border-bottom-color: #1a35c0;
    color: #1a35c0;
}

/* ===== SEARCH ===== */
.header-search {
    grid-area: search;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-self: flex-end;
    align-self: center;
    padding: 15px;
    width: 100%;
}

@media (min-width: 1024px) {
    .header-search {
        max-width: 500px;
        padding: 0;
    }
}

.search-box {
    position: relative;
    border: 1px solid #1a35c0;
    display: grid;
    justify-content: space-between;
    border-radius: 2px;
    width: 100%;
    z-index: 175;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "searchButton searchInput searchClear";
}

.search-btn {
    display: grid;
    align-items: center;
    justify-items: center;
    background-color: #1a35c0;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    grid-area: searchButton;
    width: 38px;
    height: 38px;
    appearance: none;
}

.search-btn:hover,
.search-btn:focus {
    background-color: #1228a0;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.search-input {
    background: transparent;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0.5rem 0.75rem;
    flex: 1 1;
    grid-area: searchInput;
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-size: 15px;
    color: #101820;
}

.search-input::placeholder {
    color: #5f646b;
}

/* ===== ICON NAV (mobile burger + account) ===== */
.header-iconnav {
    grid-area: iconnav;
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 35px;
}

.icon-btn {
    display: grid;
    padding: 10px;
    position: relative;
    aspect-ratio: 1;
    text-align: center;
    border-bottom: 2px solid transparent;
    height: 60px;
    width: 50px;
    justify-content: center;
    align-content: center;
    font-size: 12px;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}

.icon-btn svg {
    fill: #101820;
    height: 25px;
    width: 25px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .icon-btn {
        height: 70px;
    }
}

/* ===== BESKEDER ===== */
.flash-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.flash-error {
    color: #7f1d1d;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
}

.flash-success {
    color: #14532d;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 50vh;
    flex-grow: 1;
    padding-bottom: 30px;
}

.container {
    margin: 0 auto;
    max-width: 1680px;
    width: 100%;
}

.content-padding {
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 767px) {
    .content-padding {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1024px) {
    .content-padding {
        padding-left: 70px;
        padding-right: 70px;
    }
}

/* ===== HERO / BANNER ===== */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #101820;
    max-height: 500px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .hero-text {
        bottom: 60px;
        left: 70px;
    }
}

.hero-text h1 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 10px;
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 48px;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #5f646b;
}

.breadcrumb a {
    color: #5f646b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a35c0;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
}

/* ===== PAGE TITLE AREA ===== */
.page-title-section {
    padding: 30px 0 20px;
}

.page-title-section h1 {
    font-size: 28px;
    font-weight: bold;
    color: #101820;
    margin-bottom: 15px;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .page-title-section h1 {
        font-size: 36px;
    }
}

.page-title-section p {
    font-size: 16px;
    line-height: 24px;
    color: #101820;
    max-width: 700px;
}

/* ===== CARPORT KONFIGURATOR SECTION ===== */
.carport-section {
    background-color: #ffffff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.section-heading {
    font-size: 22px;
    font-weight: bold;
    color: #101820;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .section-heading {
        font-size: 26px;
    }
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #101820;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e3e5e4;
    border-radius: 2px;
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-size: 15px;
    color: #101820;
    background-color: #ffffff;
    appearance: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1a35c0;
}

/* ===== BUTTON ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a35c0;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 12px 24px;
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1228a0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #1a35c0;
    border: 1px solid #1a35c0;
    border-radius: 2px;
    padding: 12px 24px;
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #1a35c0;
    color: #ffffff;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e3e5e4;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-card-body {
    padding: 15px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #101820;
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 18px;
    font-weight: bold;
    color: #1a35c0;
}

/* ===== TYPOGRAPHY ===== */
.body-text {
    font-family: Dinpro, helvetica, arial, sans-serif;
    color: #101820;
    font-size: 15px;
    line-height: 23px;
}

@media (min-width: 1024px) {
    .body-text {
        font-size: 16px;
        line-height: 24px;
    }
}

.body-text p,
.body-text ol,
.body-text ul {
    margin-bottom: 15px;
}

.body-text li {
    margin-bottom: 10px;
}

.body-text ol {
    padding-left: 25px;
    list-style: decimal;
}

.body-text ul {
    padding-left: 25px;
    list-style: disc;
}

h2 {
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-weight: bold;
    font-size: 22px;
    line-height: 27px;
    color: #101820;
    margin-bottom: 15px;
}

@media (min-width: 1024px) {
    h2 {
        font-size: 26px;
        line-height: 32px;
    }
}

h3 {
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 22px;
    color: #101820;
    margin-bottom: 10px;
}

@media (min-width: 1367px) {
    h3 {
        font-size: 22px;
        line-height: 27px;
    }
}

a {
    font-family: Dinpro, helvetica, arial, sans-serif;
    text-decoration: none;
    color: #101820;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #fcfcfc;
    padding-top: 15px;
    padding-bottom: 20px;
    overflow: hidden;
    border-top: 1px solid #e3e5e4;
}

@media (min-width: 768px) {
    .site-footer {
        padding-top: 70px;
        padding-bottom: 40px;
    }
}

.footer-inner {
    margin: 0 auto;
    max-width: 1680px;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 767px) {
    .footer-inner {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1024px) {
    .footer-inner {
        padding-left: 70px;
        padding-right: 70px;
    }
}

.footer-grid {
    display: grid;
    gap: 40px;
    padding-bottom: 20px;
    grid-template-areas: "menu" "richtext";
}

@media (min-width: 768px) {
    .footer-grid {
        gap: 70px;
        grid-template-columns: 1fr 250px;
        grid-template-areas: "menu richtext";
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 60% 25%;
    }
}

.footer-links {
    grid-area: menu;
    display: grid;
    gap: 15px;
}

.footer-links-columns {
    display: none;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-links-columns {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-size: 17px;
    font-weight: 500;
    color: #101820;
    margin-bottom: 12px;
}

@media (min-width: 1367px) {
    .footer-col h4 {
        font-size: 17px;
    }
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-col a {
    font-size: 15px;
    color: #101820;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #1a35c0;
    text-decoration: underline;
}

.footer-info {
    grid-area: richtext;
    display: grid;
    gap: 20px;
}

.footer-info p {
    font-size: 15px;
    line-height: 23px;
    color: #101820;
    margin-bottom: 10px;
}

.footer-info strong {
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 15px;
    line-height: 24px;
    color: #5f646b;
    border-top: 1px solid #e3e5e4;
    padding-top: 15px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 20px;
    }
}

.footer-bottom a {
    color: #5f646b;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== NAV ACTIVE ===== */
.header-nav a.nav-active {
    border-bottom: 2px solid #1a35c0;
    color: #1a35c0;
}

/* ===== ICON LABEL ===== */
.icon-label {
    display: block;
    font-size: 11px;
    color: #101820;
    line-height: 1.2;
    margin-top: 2px;
}

/* ===== HERO ===== */
.hero img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 40px 0 50px;
    max-width: 900px;
}

.intro-text {
    margin-bottom: 35px;
}

.intro-text h1 {
    font-size: 26px;
    font-weight: bold;
    color: #101820;
    line-height: 1.25;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .intro-text h1 {
        font-size: 32px;
    }
}

/* ===== SPEC-CARDS ===== */
.spec-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 20px;
    margin-bottom: 40px;
}

.spec-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #e3e5e4;
    border-radius: 2px;
    padding: 20px;
    background-color: #ffffff;
}

.spec-card-icon {
    color: #1a35c0;
    flex-shrink: 0;
}

.spec-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-card-body strong {
    font-size: 14px;
    font-weight: 500;
    color: #5f646b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.spec-card-body span {
    font-size: 18px;
    font-weight: bold;
    color: #101820;
}

.spec-card-body small {
    font-size: 12px;
    color: #5f646b;
}

/* ===== TAGTYPE CHOOSER ===== */
.tagtype-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 20px;
    margin-bottom: 40px;
}

.tagtype-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e3e5e4;
    border-radius: 2px;
    padding: 30px 25px;
    background-color: #ffffff;
    text-decoration: none;
    color: #101820;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tagtype-card:hover,
.tagtype-card:focus {
    border-color: #1a35c0;
    box-shadow: 0 2px 10px rgba(26, 53, 192, 0.12);
    outline: none;
}

.tagtype-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
}

.tagtype-card-label {
    font-size: 20px;
    font-weight: bold;
    color: #101820;
    line-height: 1.25;
}

.tagtype-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #101820;
    line-height: 1.4;
}

/* ===== ORDER FORM ===== */
.order-form-wrapper {
    border-top: 1px solid #e3e5e4;
    padding-top: 35px;
}

.order-form-wrapper h2 {
    margin-bottom: 25px;
    font-size: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .form-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.form-actions {
    margin-top: 25px;
}

/* ===== FOOTER LOGO ===== */
.footer-logo {
    display: inline-block;
    line-height: 0;
}

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid #e3e5e4;
    margin: 30px 0;
}

/* ===== ORDER PAGE LAYOUT ===== */
.order-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (min-width: 900px) {
    .order-page {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
    }
}

.order-intro h1 {
    font-size: 24px;
    font-weight: bold;
    color: #101820;
    line-height: 1.3;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .order-intro h1 {
        font-size: 28px;
    }
}

/* ===== FORM CARD ===== */
.form-card {
    background-color: #dde3e8;
    padding: 25px 30px 35px;
}

.form-card-title {
    font-size: 17px;
    font-weight: bold;
    color: #101820;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #101820;
    margin-bottom: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row-1 {
    margin-bottom: 10px;
}

.form-card label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #101820;
    margin-bottom: 5px;
}

.form-card select,
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8cfd6;
    border-radius: 2px;
    font-family: Dinpro, helvetica, arial, sans-serif;
    font-size: 14px;
    color: #101820;
    background-color: #ffffff;
    outline: none;
    appearance: none;
}

.form-card select:focus,
.form-card input:focus,
.form-card textarea:focus {
    border-color: #1a35c0;
}

.form-card textarea {
    resize: vertical;
    min-height: 90px;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.consent-group input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.consent-group label {
    font-size: 13px;
    color: #101820;
    line-height: 1.5;
    font-weight: normal;
    margin-bottom: 0;
}

.consent-link {
    display: inline-block;
    font-size: 13px;
    color: #1a35c0;
    text-decoration: underline;
    margin-bottom: 25px;
}

/* ===== OVERLAY (til mobile menu) ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 24, 32, 0.7);
    z-index: 300;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    display: block;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
}