/* =========================================
   Lokale Schriftarten (Inter)
   ========================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700.ttf') format('truetype');
}

/* =========================================
   CSS Variablen - Hier Farben anpassen!
   ========================================= */
   :root {
    /* Hauptfarben - Angepasst an das neue Logo */
    --primary-color: #005f9e; /* Blau (aus den Solarpanelen) */
    --secondary-color: #3da32a; /* Grün (aus dem Blatt) */
    --primary-hover: #004675;
    --secondary-hover: #2e821e;
    
    /* Text & Hintergrund */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #1e293b;
    --white: #ffffff;

    /* Abstände & Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* =========================================
   Reset & Basis
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typografie */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

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

.btn-secondary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

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

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

.logo-img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
}

.nav-links a:hover:not(.btn) {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset für Header */
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 71, 161, 0.9) 0%, rgba(13, 71, 161, 0.4) 100%);
}

.hero-content {
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

/* =========================================
   Sektionen Allgemein
   ========================================= */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
}

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

/* =========================================
   Leistungen (Grid)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* =========================================
   Über mich / Qualifikationen
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.certificate-wrapper {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.certificate-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 5px solid var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cert-caption {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

/* =========================================
   Kontakt
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-items {
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item .icon {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    color: var(--text-main);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

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

.form-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

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

.bg-dark .info-item a {
    color: #a8d4f5;
    text-decoration: none;
}

.bg-dark .info-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.form-success-msg {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

.form-error-msg {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

/* =========================================
   Partner Logos
   ========================================= */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 90px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    background-color: var(--white);
    font-size: 0.8rem;
    text-align: center;
    word-break: break-word;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo .fallback-text {
    display: none;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #111;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links a {
    margin: 0 10px;
    color: #ccc;
}

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

.footer-copy {
    color: #777;
    font-size: 0.9rem;
}

/* =========================================
   Animationen
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Angepasstes Layout (Bildschirmgrößen)
   ========================================= */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 80px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-bg .overlay {
        background: linear-gradient(to bottom, rgba(13, 71, 161, 0.8) 0%, rgba(13, 71, 161, 0.8) 100%);
    }
}

/* =========================================
   Cookie Consent Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.cookie-view.hidden {
    display: none;
}

.cookie-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.cookie-content p a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-content p a:hover {
    color: var(--primary-hover);
}

/* Settings Details Layout */
.cookie-settings-details {
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: cookieSlideDown 0.3s ease-out;
}

.cookie-option {
    margin-bottom: 16px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-main);
}

.cookie-option input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-option-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: normal;
    line-height: 1.4;
}

/* Cookie Buttons Layout */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-cookie-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 130px;
    text-align: center;
}

.btn-cookie-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-cookie-accent {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 130px;
    text-align: center;
}

.btn-cookie-accent:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-cookie-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 130px;
    text-align: center;
}

.btn-cookie-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #bbb;
}

/* Animations */
@keyframes cookieSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie-primary, .btn-cookie-accent, .btn-cookie-secondary {
        width: 100%;
        flex: none;
    }
}

