/* Ragdhani (Header) */
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/rajdhani/rajdhani-semibold.ttf') format('truetype');
}

/* Open Sans Font */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/open-sans/open-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/open-sans/open-sans-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/open-sans/open-sans-600.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-dark: #394166;
    --primary-medium: #2D4A5E;
    --gold: #C9A227;
    --gold-light: #D4B44A;
    --cream: #F8F6F1;
    --white: #FFFFFF;
    --light-bg: #E8EBF4;
    --text-dark: #2C3E44;
    --text-medium: #4A5A62;
    --text-light: #6B7B83;
    --border: #D8DFE3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--primary-dark);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.brand h1 {
    font-family: 'Rajdhani', sans-serif;
    /*font-size: 1.6rem;*/
    font-weight: 600;
    color: var(--white);
    margin: 0;

    font-size: 2.5rem;
    line-height: 1;
}

.brand h1 a {
    color: inherit;
    text-decoration: none;
}

.brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.1rem;
    margin-bottom: 0;

    padding-left: 0.3rem;
}

/* Main Container */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
    flex: 1 0 auto;
    width: 100%;
}

/* Hauptkarte */
.main-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(27, 58, 75, 0.08);
    overflow: hidden;
}

/* Welcome */
.welcome {
    padding: 2rem 3rem;
}

.welcome h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.welcome p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    padding: 1rem 3rem;
}

.content-section + .content-section {
    padding-top: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 680px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Cards */
.service-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 680px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-card address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.contact-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.contact-row .label {
    color: var(--text-light);
    min-width: 55px;
}

.contact-row a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: color 0.2s;
}

hr.section-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 3rem 0 3rem;
}

/* Motto Section */
.motto-section {
    padding: 1.5rem 3rem;
    text-align: center;
}

.motto-section .motto-container {
    font-weight: 600;
}

.motto-section .motto-text {
    font-style: italic;
    margin-bottom: 0.4rem;
}

.motto-section .note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.motto-section a {
    color: var(--primary-medium);
    text-decoration: none;
}

.motto-section a:hover {
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 1.5rem 2rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Subpage Styles */
.main-card.subpage {
    padding: 2.5rem 3rem;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-dark);
}

.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Page Title */
.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.page-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Content Styling for Subpages */
.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.content ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.content a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: color 0.2s;
}

/* Table of Contents */
.content .toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content .toc a:hover {
    color: var(--text-dark);
}

.content address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content strong {
    color: var(--text-dark);
}

.source-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Blockquote for billigst page */
.content blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.9;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-radius: 8px;
    margin: 1rem 0;
}

.content blockquote p {
    margin-bottom: 1rem;
}

.content blockquote footer {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
}

/* Download Button */
a.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s;
    border: solid 1px var(--primary-dark);
}

a.btn-download:hover {
    color: var(--primary-dark);
    background-color: var(--light-bg);
    border: solid 1px var(--border);
    transition: all 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .brand h1 {
        font-size: 2rem;
    }

    main {
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .welcome {
        padding: 2rem;
    }

    .welcome h2 {
        font-size: 1.85rem;
    }

    .content-section {
        padding: 1.75rem 2rem;
    }

    .service-card,
    .contact-card {
        padding: 1.25rem;
    }

    .motto-section {
        padding: 1.5rem 2rem;
    }

    .main-card.subpage {
        padding: 2rem;
    }

    .page-title {
        font-size: 1.65rem;
    }

    .content h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-divider {
        display: none;
    }

    .footer-nav {
        justify-content: center;
        gap: 0.5rem;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.5rem;
    }

    .brand p {
        font-size: 0.75rem;
        padding-left: 0;
    }

    .welcome h2 {
        font-size: 1.6rem;
    }

    .welcome,
    .content-section,
    .motto-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .main-card.subpage {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}
