/*
Theme Name: digital ZEIT Security
Theme URI: https://security.digital-zeit.de
Author: digital ZEIT GmbH
Author URI: https://www.digital-zeit.de
Description: Minimales Theme für die CVD/Security-Seite von digital ZEIT
Version: 1.0.0
License: Proprietary
Text Domain: digitalzeit-security
*/

/* === CSS Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #A90052;
    --color-primary-dark: #8a0043;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-light: #f8f9fa;
    --color-footer-bg: #2d2d2d;
    --color-footer-text: #ffffff;
    --color-border: #e0e0e0;
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--color-text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header === */
.site-header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo-img {
    height: 45px;
    width: auto;
    max-width: 200px;
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.site-logo-text span {
    color: var(--color-primary);
}

/* === Navigation === */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* === Language Switcher === */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.language-switcher a {
    color: var(--color-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a.current-lang {
    color: var(--color-primary);
    background: var(--color-background-light);
    text-decoration: none;
}

/* === Mobile Menu === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* === Main Content === */
.site-main {
    flex: 1;
    padding: 3rem 0;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.page-title {
    color: var(--color-text);
}

.entry-content {
    max-width: 800px;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* === Cards / Boxes === */
.info-box {
    background: var(--color-background-light);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box h3 {
    margin-top: 0;
    color: var(--color-primary);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* === Contact Info === */
.contact-list {
    list-style: none;
    margin: 1rem 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.contact-list a {
    word-break: break-all;
}

/* === Footer === */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--color-footer-text);
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-copy {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* === Responsive === */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-background);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem;
        display: none;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
    }
    
    .language-switcher {
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
        width: 100%;
        justify-content: center;
    }
    
    .site-main {
        padding: 2rem 0;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === Print Styles === */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle {
        display: none;
    }
    
    .site-main {
        padding: 0;
    }
    
    a {
        color: var(--color-text);
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
