/*GENERAL & VARIABLES*/
:root {
    --color-navy: #143E70;      
    --color-navy-soft: #0f2747;
    --color-yellow: #FFC300;    
    --color-red: #D62828;       
    --color-text: #13233c;
    --color-text-soft: #2d3748;
    --color-bg: #ffffff;
    --color-surface: #f7f9fc;
    --color-border: #d7e0ea;
    
    --container: 1200px;
    --radius: 0px;              
    --transition: 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(15, 39, 71, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/*HEADER*/
.site-header {
    height: 80px; 
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center; /* This establishes the center line at 40px */
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 150px; 
    width: auto;
    display: block;
    
    position: relative;
    top: 50%;
    transform: translateY(-18%);
    z-index: 1000;
}


/*HERO*/
.hero {
    padding: 10px 0 15px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.hero-illustration {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-bottom: 50px; 
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-navy);
    margin-bottom: 25px;
    opacity: 1;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-soft);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    opacity: 1;
}

/*SECTION-HEADING*/
.section-heading {
    margin-bottom: 50px;
}

.section-kicker {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-red);
    margin-bottom: 10px;
}

.section-intro {
    color: var(--color-text-soft);
    max-width: 700px;
    margin-top: 15px;
}

/*PQ-CERTIFICATES*/
.certificates {
    background: #ffffff;
}

.certificate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.certificate-card {
    border: 1px solid var(--color-border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    transition: var(--transition);
    background: #ffffff;
    height: 100%; 
}

.certificate-card:hover {
    border-color: var(--color-navy);
    box-shadow: var(--shadow-soft);
}

.pdf-preview {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    height: 250px; 
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
    opacity: 0.8;
    transition: var(--transition);
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 62, 112, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: var(--transition);
}

.pdf-overlay span {
    background: var(--color-navy);
    color: #fff;
    padding: 12px 25px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.pdf-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-navy);
    color: #fff;
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.certificate-card:hover .pdf-thumbnail-img {
    transform: scale(1.02);
    opacity: 1;
}

.certificate-card:hover .pdf-overlay {
    color: transparent;
}

.certificate-card:hover .pdf-overlay span {
    background: var(--color-yellow);
    color: var(--color-navy);
    transform: translateY(-3px);
}

.certificate-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    line-height: 1.2;
    min-height: 1.2em;
}

.certificate-content p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.validity-box {
    margin-top: 40px;
    padding: 20px;
    border-left: 4px solid var(--color-yellow);
    background: var(--color-surface);
    font-weight: 600;
}

/*COOPERATION*/
.cooperation {
    background: var(--color-surface);
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-box {
    background: #ffffff;
    padding: 40px 30px;
    border: 1px solid var(--color-border);
    text-align: left;
    transition: var(--transition);
}

.info-box:hover {
    border-top: 4px solid var(--color-navy);
    transform: translateY(-5px);
}

.coop-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 25px;
    margin-left: 20px;
    display: block;
    object-fit: contain;
}

/*FOOTER*/
.site-footer {
    padding: 80px 0 40px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.map-box h2, .impressum-box h2 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--color-navy);
}

.map-wrapper {
    width: 100%;
    height: 350px;
    background: #eee;
    border: 1px solid var(--color-border);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: none;
}

.footer-address-label {
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-navy);
}

.impressum-content p {
    margin-bottom: 12px;
    color: var(--color-text-soft);
}

.impressum-content a {
    color: var(--color-navy);
    font-weight: 700;
    text-decoration: underline;
}

/*SPACING & UTILS*/
.section {
    padding: 40px 0px 80px;
}

/*RESPONSIVE*/
@media (max-width: 992px) {
    .footer-grid, .certificate-grid {
        grid-template-columns: 1fr;
    }
    .cooperation-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.2rem; }
    .header-spacer { width: 50px; }
}

@media (max-width: 480px) {
    .header-spacer { display: none; } /* On very small screens hide spacer line */
    .header-inner { justify-content: center; } /* Center logo on phone */
}