/* Global CSS - Modern Grid-Based Layout */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root color variables */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --text-light: #e0e0e0;
    --text-dark: #333333;
    --bg-dark: #1e1e1e;
    --bg-light: #f5f5f5;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    margin: 1rem 0;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 1rem 0;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #3a7bc8;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #1f2a38;
}

/* Responsive container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}


/* Sections */
section {
    padding: 3rem 2rem;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: 600;
}

tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* Lists */
ul,
ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    background: #1f2a38;
    color: #f5f7fa;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-banner.is-hidden {
    opacity: 0;
    transform: translateY(10px);
}

.cookie-banner-text {
    margin: 0;
    color: #f5f7fa;
    font-size: 0.95rem;
}

.cookie-banner-text a {
    color: #8cc4ff;
    font-weight: 700;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner .btn {
    text-decoration: none;
}

@media (max-width: 700px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

/* Code blocks */
code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

pre {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

.hidden {
    display: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a7bc8;
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }

    header,
    footer {
        display: none;
    }

    main {
        padding-bottom: 0;
    }
}

/* Hero container */
.hero-container {
    position: relative;
    width: 100%;
    height: 750px;
    /* lidt mindre crop end tidligere */
    max-height: 60vh;
    /* responsiv højde */
    overflow: hidden;
}

/* Hero billede */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fylder containeren uden at strække */
    object-position: center 45%;
    /* cropper top og bund lidt, midten med titel er synlig */
    filter: blur(3.5px) brightness(0.85) contrast(1.1);
}

/* Titel midt på billedet */
.hero-title {
    position: absolute;
    top: 50%;
    /* lodret centreret */
    left: 50%;
    /* horisontalt centreret */
    transform: translate(-50%, -50%);
    color: #b8b6b6;
    font-size: 6vw;
    /* responsiv fontstørrelse */
    font-weight: bold;
    font-family: verdana;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 5;
    /* altid ovenpå billedet */
}

/* Responsiv tekst på små skærme */
@media (max-width: 768px) {
    .hero-title {
        font-size: 10vw;
    }
}

/* Global body styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Main content styling */
main {
    padding-top: 0;
}

/* Hero adjustments */
.hero-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

/* Feature panels with diagonal edges */
.feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 2rem 0;
    border-radius: 0;
    color: #333;
    overflow: visible;
    background-color: #e8e8e8;
    min-height: 300px;
}

.feature .text {
    flex: 1;
    z-index: 1;
    padding: 3rem 2rem;
}

.feature-image {
    flex: 0 0 45%;
    height: 300px;
    object-fit: cover;
    margin: 0 2rem;
}

.feature.text-right .text {
    order: 1;
    text-align: left;
}

.feature.text-left {
    flex-direction: row;
    margin-left: auto;
    margin-right: 0;
    transform: translateX(-15%);
}

.feature.text-left .feature-image {
    clip-path: polygon(0 0, 80% 0, 100% 100%, 20% 100%);
    order: 2;
}

.feature.text-left .text {
    order: 1;
    text-align: left;
}

.feature.text-right {
    transform: translateX(15%);
}

.feature.text-right .feature-image {
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.feature .btn {
    background-color: rgb(0, 110, 255);
    padding: 0.75rem 1.5rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 1.2s ease-out;
}

/* News section styling */
.news-article {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.news-article h3 {
    font-size: 1.6rem;
}

/* Call to action styling */
.cta {
    margin: 3rem 0;
}

/* Complaint form */
.klage-section {
    max-width: 900px;
}

.klage-form {
    display: grid;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(74, 144, 226, 0.25);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.klage-form label {
    font-weight: 700;
    color: var(--secondary-color);
}

.klage-form input,
.klage-form select,
.klage-form textarea {
    width: 100%;
    border: 1px solid #c5d7ea;
    border-radius: 8px;
    padding: 0.7rem;
    font-size: 1rem;
    font-family: inherit;
}

.klage-form textarea {
    resize: vertical;
}

.klage-status {
    margin: 0.2rem 0 0;
    min-height: 1.4rem;
}

.ansoegning-group {
    border: 1px solid #c5d7ea;
    border-radius: 10px;
    padding: 1rem;
    margin: 0 0 0.75rem;
}

.ansoegning-group legend {
    padding: 0 0.45rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.klage-help {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    color: #3b4d61;
}

/* Adjust cards spacing */
.content-grid {
    margin-top: 1rem;
}

/* Animation for hero image */
@keyframes zoomIn {
    from {
        transform: scale(1.05);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Titel midt på billedet */
.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Arial', sans-serif;
    text-shadow: 10px 10px 12px rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 10;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Animation for title */
@keyframes fadeInUp {
    from {
        transform: translate(-50%, -30%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Main content grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Content cards */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Responsive typography */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: 350px;
        max-height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    /* no special bottom padding here; handled globally */
}

@media (max-width: 480px) {
    .hero-container {
        height: 250px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* alternate text side positioning for features */
.feature.text-left .text {
    margin-right: auto;
    text-align: left;
}

.feature.text-right .text {
    margin-left: auto;
    text-align: right;
}

/* responsive fallback: stack vertically */
@media (max-width: 768px) {
    .feature {
        flex-direction: column;
        text-align: center;
    }

    .feature .text {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Homepage mobile fixes */
@media (max-width: 768px) {

    .home-page .feature,
    .home-page .feature.text-left,
    .home-page .feature.text-right {
        transform: none;
        margin: 1rem 0;
        min-height: 0;
        overflow: hidden;
    }

    .home-page .feature-image,
    .home-page .feature.text-left .feature-image,
    .home-page .feature.text-right .feature-image {
        width: 100%;
        flex: none;
        height: 220px;
        margin: 0;
        clip-path: none;
    }

    .home-page .feature .text,
    .home-page .feature.text-left .text,
    .home-page .feature.text-right .text {
        width: 100%;
        text-align: left;
        padding: 1.1rem 1rem 1.2rem;
    }

    .home-page .feature .btn {
        width: 100%;
        text-align: center;
    }

    .home-page .feature-complaint .feature-image {
        order: 1;
    }

    .home-page .feature-complaint .text {
        order: 2;
        padding-top: 1rem;
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .home-page .feature-complaint {
        overflow: visible;
    }

    .home-page .feature-complaint {
        display: block !important;
        background: #e8e8e8;
    }

    .home-page .feature-complaint .text {
        display: block !important;
        position: static !important;
        color: #1f2a38;
        background: #e8e8e8;
        margin: 0;
    }

    .home-page .feature-complaint .text h2,
    .home-page .feature-complaint .text p,
    .home-page .feature-complaint .text a {
        color: #1f2a38;
        opacity: 1;
        visibility: visible;
    }

    .home-page .feature-complaint .text .btn {
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .home-page .hero-container {
        height: 220px;
    }

    .home-page .feature-image {
        height: 190px;
    }
}

/* Leadership / About page */
.ledelse-intro {
    padding-bottom: 1rem;
}

.team-section {
    padding-top: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-card {
    background: #ffffff;
    border: 1px solid rgba(74, 144, 226, 0.25);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: left;
    width: 100%;
}

.team-photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

.team-card h3 {
    margin: 0.2rem 0;
    font-size: 1.2rem;
}

.team-role {
    margin: 0.25rem 0;
    color: #354a61;
    font-weight: 600;
}

.team-badge {
    margin: 0.2rem 0 0;
    color: #4a90e2;
    font-weight: 700;
}

@media (max-width: 768px) {
    .team-card {
        text-align: center;
        padding: 1.1rem;
    }

    .team-photo {
        margin-left: auto;
        margin-right: auto;
        max-width: 180px;
    }

    .team-section h2 {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    .team-card h3 {
        font-size: 1.1rem;
    }

    .team-role,
    .team-badge {
        font-size: 0.98rem;
        line-height: 1.45;
    }
}

@media (max-width: 520px) {
    .ledelse-intro p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .team-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 0.85rem;
    }

    .team-card {
        text-align: left;
        padding: 1rem;
    }

    .team-photo {
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-card h3 {
        font-size: 1.05rem;
    }

    .team-role,
    .team-badge {
        font-size: 0.95rem;
    }
}