/* Ortungswerk - Stylesheet */
/* Dark blue theme */

:root {
    --bg-dark: #0b1a2e;
    --bg-medium: #13283f;
    --bg-light: #1a3350;
    --text: #d8dce3;
    --text-muted: #8a95a5;
    --heading: #4a80b4;
    --accent: #4a80b4;
    --nav-bg: #0d1f35;
    --white: #ffffff;
    --max-width: 1100px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* ===== NAVIGATION ===== */
nav {
    background-color: var(--nav-bg);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(74, 128, 180, 0.2);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    border-bottom: 2px solid var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f2240 50%, #0d1a30 100%);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(74, 128, 180, 0.08) 0%, transparent 70%);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #5a94c8;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 20px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

section:nth-child(even) {
    background-color: var(--bg-medium);
}

section:nth-child(odd) {
    background-color: var(--bg-dark);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ===== FEATURES / METHODS ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 128, 180, 0.15);
    transition: border-color 0.2s;
}

.feature-card h3 {
    color: var(--heading);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Klickbare Leistungs-Karten (Startseite) */
a.leistungs-karte:hover {
    border-color: var(--accent) !important;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== TWO COLUMN ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(74, 128, 180, 0.2);
}

.two-col h2 {
    font-size: 1.8rem;
    color: var(--heading);
    margin-bottom: 1rem;
}

.two-col p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.3rem;
    color: var(--accent);
    min-width: 24px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1rem;
    background: var(--bg-medium);
    border: 1px solid rgba(74, 128, 180, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.contact-form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 0.3rem;
    background: var(--bg-medium);
    border: 1px solid rgba(74, 128, 180, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-form h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* ===== STICKY BUTTONS ===== */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sticky-btn {
    display: block;
    padding: 12px 21px;
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.sticky-btn:hover {
    background-color: #5a94c8;
    transform: translateY(-2px);
}

.sticky-btn.secondary {
    background-color: var(--bg-light);
    color: var(--heading);
    border: 2px solid var(--accent);
}

.sticky-btn.secondary:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Sticky-Buttons auf bestimmten Seiten ausblenden */
.no-sticky .sticky-cta {
    display: none;
}

footer {
    background-color: var(--nav-bg);
    padding: 40px 20px 140px;
    border-top: 1px solid rgba(74, 128, 180, 0.15);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-copyright {
    margin-top: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
    background: var(--bg-medium);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(74, 128, 180, 0.15);
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 1rem 20px;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(74, 128, 180, 0.2);
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .stats,
    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Inline-Grids auf Mobilgeräten einspaltig erzwingen
       (Inline-Styles würden die Media Query sonst überschreiben) */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Desktop-Versatz der Statistik (translateX-Hack) auf Mobile entfernen */
    .stat-item[style*="translateX"] {
        transform: none !important;
    }

    /* "So einfach geht's"-Schritte auf Mobile untereinander statt 2x2 */
    [style*="min-width: 150px"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}
