@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1e3a5f;
    --primary-light: #2a4d7a;
    --primary-dark: #152a45;
    --accent: #c9a962;
    --accent-light: #d4b978;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #868e96;
    --gray-800: #343a40;
    --gray-900: #212529;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

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

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

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
}

.notice-banner {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--accent);
    color: var(--primary-dark);
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.notice-banner p {
    max-width: 1100px;
    margin: 0 auto;
}

main {
    padding-top: 120px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 60px;
}

.nav-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-cta {
    margin-left: 20px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-bg {
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.sec1, .sec2, .sec3, .sec4, .sec5, .sec6, .sec7, .sec8 {
    stroke: var(--accent);
    stroke-width: 0.15;
    fill: none;
    opacity: 0;
}

.dot {
    fill: var(--accent);
    fill-opacity: 1;
    opacity: 0;
}

.conn {
    stroke: var(--accent);
    stroke-width: 0.1;
    fill: none;
    opacity: 0.08;
}

.sec1 { animation: glow-section 16s ease-in-out infinite; animation-delay: 0s; }
.sec2 { animation: glow-section 16s ease-in-out infinite; animation-delay: 2s; }
.sec3 { animation: glow-section 16s ease-in-out infinite; animation-delay: 4s; }
.sec4 { animation: glow-section 16s ease-in-out infinite; animation-delay: 6s; }
.sec5 { animation: glow-section 16s ease-in-out infinite; animation-delay: 8s; }
.sec6 { animation: glow-section 16s ease-in-out infinite; animation-delay: 10s; }
.sec7 { animation: glow-section 16s ease-in-out infinite; animation-delay: 12s; }
.sec8 { animation: glow-section 16s ease-in-out infinite; animation-delay: 14s; }

@keyframes glow-section {
    0%, 100% { opacity: 0; stroke-width: 0.15; }
    4% { opacity: 0.9; stroke-width: 0.35; }
    24% { opacity: 0.9; stroke-width: 0.35; }
    28% { opacity: 0; stroke-width: 0.15; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 98, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 98, 0.03) 0%, transparent 30%);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-quote {
    margin-top: 32px;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(201, 169, 98, 0.3);
    max-width: 500px;
}

.hero-quote p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.6;
}

.hero-quote p::before {
    content: """;
    font-size: 48px;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    margin-left: -20px;
    margin-top: -30px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-light {
    background: var(--gray-50);
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.leistungen-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.process-step {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.process-step p {
    color: var(--gray-600);
    line-height: 1.6;
}

.process-cta {
    text-align: center;
    margin-top: 20px;
}

.leistung-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    flex: 0 1 calc(50% - 16px);
    min-width: 0;
}

.leistung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.leistung-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.leistung-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.leistung-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.leistung-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.leistung-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--primary);
}

.leistung-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.leistung-link:hover svg {
    transform: translateX(4px);
}

.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--primary-dark);
    opacity: 0.8;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 14px;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--gray-600);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray-300);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray-600);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kontakt-info {
    padding: 40px;
    background: var(--primary);
    border-radius: 8px;
    color: var(--white);
}

.kontakt-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.kontakt-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.kontakt-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 4px;
}

.kontakt-item p {
    font-size: 16px;
}

.kontakt-form {
    padding: 40px;
    background: var(--gray-50);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.flash-messages {
    margin-bottom: 24px;
}

.flash {
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 12px;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-checkbox {
    position: relative;
    padding-left: 36px;
}

.checkbox-input {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    display: none;
}

.checkbox-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
}

.file-input {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.file-input::file-selector-button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
    font-family: inherit;
}

.file-input::file-selector-button:hover {
    background: var(--primary-light);
}

/* Admin */
.admin-body {
    background: var(--gray-50);
}

.admin-login {
    max-width: 400px;
    margin: 120px auto 0;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.admin-logo {
    height: 60px;
    margin-bottom: 24px;
}

.admin-login h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.admin-login .form-group {
    text-align: left;
}

.admin-nav {
    background: var(--primary);
    padding: 0 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.admin-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-nav-brand {
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
}

.admin-nav-links {
    display: flex;
    gap: 24px;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.2s;
}

.admin-nav-link:hover {
    color: var(--white);
}

.admin-content {
    padding: 40px 0;
}

.admin-content h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
}

.admin-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.admin-back:hover {
    color: var(--primary);
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.admin-table td {
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--gray-50);
}

.admin-cell-date {
    white-space: nowrap;
    font-size: 13px;
    color: var(--gray-600);
}

.admin-cell-msg {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gray-600);
}

.admin-pdf-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.admin-btn-small {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
}

.admin-btn-small:hover {
    background: var(--primary-light);
    color: white;
}

.admin-empty {
    text-align: center;
    color: var(--gray-600);
    padding: 60px 0;
    font-size: 16px;
}

.admin-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-detail-row {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}

.admin-detail-row:last-child {
    border-bottom: none;
}

.admin-detail-label {
    width: 160px;
    flex-shrink: 0;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-50);
}

.admin-detail-value {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--gray-800);
    flex: 1;
}

.admin-detail-msg {
    white-space: pre-wrap;
    line-height: 1.6;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

@media (max-width: 968px) {
    .hero .container {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-quote {
        margin: 24px auto 0;
        text-align: center;
    }
    
    .leistungen-grid {
        flex-direction: column;
        align-items: center;
    }

    .leistung-card {
        flex: 0 1 100%;
        max-width: 500px;
    }
    
    .kontakt-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.4);
}

.nav-cta-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
        margin-top: 8px;
    }

    .nav-cta-mobile .btn {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--white);
        padding: 100px 32px 32px;
        gap: 8px;
        z-index: 1001;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        display: flex;
        align-items: stretch;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-open .nav-links {
        right: 0;
    }

    .nav-open .nav-overlay {
        display: block;
    }

    .nav-open .nav-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-open .nav-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
}
