/* --- CSS Variables --- */
:root {
    --primary-blue: #004e92;
    --secondary-blue: #00285e;
    --accent-green: #28a745;
    --accent-orange: #fd7e14;
    --accent-dark: #343a40;
    --text-main: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* --- Reset & Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: var(--white); line-height: 1.6; }
a { text-decoration: none; transition: var(--transition); color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 50px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background-color: var(--primary-blue); color: white; }
.btn-primary:hover { background-color: var(--secondary-blue); transform: translateY(-2px); }
section { padding: 80px 0; }

/* --- Top Bar --- */
.top-bar { background-color: var(--secondary-blue); color: white; padding: 10px 0; font-size: 0.9rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; }
.top-bar-right { display: flex; align-items: center; }

/* --- Header & Logo --- */
header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 100px; }
.logo-container { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-svg { width: 60px; height: 60px; min-width: 60px; }
.logo-text { font-size: 1.6rem; font-weight: 800; color: var(--secondary-blue); letter-spacing: -0.5px; line-height: 1; }
.logo-text span { color: var(--primary-blue); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover { color: var(--primary-blue); }
.nav-cta { padding: 8px 20px; background-color: rgba(0, 78, 146, 0.1); color: var(--primary-blue); border-radius: 50px; font-weight: 600; }
.nav-cta:hover { background-color: var(--primary-blue); color: white; }

/* --- Translate Widget in Navigation --- */
.nav-translate { position: relative; }
.translate-widget { position: relative; }
.translate-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
    background: none;
    border: none;
    font-family: inherit;
}
.translate-trigger:hover { color: var(--primary-blue); }
.translate-flag { font-size: 1.2rem; line-height: 1; }
.translate-arrow { font-size: 0.7rem; transition: transform 0.3s; }
.translate-widget.active .translate-arrow { transform: rotate(180deg); }

.translate-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 1001;
    border: 1px solid #edf2f7;
}
.translate-widget.active .translate-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}
.translate-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.translate-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

/* Hide default Google Element but keep it functional */
#google_translate_element {
    position: absolute;
    top: -9999px;
    left: -9999px;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
}
.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip {
    display: none !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}
body {
    top: 0 !important;
}

/* --- Hero Section --- */
.hero { 
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding: 120px 0; 
    text-align: center; 
    position: relative; 
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1; box-shadow: inset 0 0 100px rgba(0,0,0,0.8); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }

/* --- Index: Drei Säulen (Cards) --- */
.saeulen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.saeule-card { 
    background: white; 
    padding: 30px; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow); 
    text-align: center; 
    border-top: 4px solid var(--primary-blue); 
    transition: var(--transition); 
    text-decoration: none; 
    display: flex;
    flex-direction: column;
    color: inherit; 
}
.saeule-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Style for images inside Saeulen Cards */
.saeule-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.saeule-icon { font-size: 3rem; margin-bottom: 20px; }
.saeule-green { border-color: var(--accent-green); }
.saeule-green .saeule-icon { color: var(--accent-green); }
.saeule-orange { border-color: var(--accent-orange); }
.saeule-orange .saeule-icon { color: var(--accent-orange); }
.saeule-dark { border-color: var(--accent-dark); }
.saeule-dark .saeule-icon { color: var(--accent-dark); }

/* --- Index: Ihre Vorteile --- */
.vorteile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.vorteile-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vorteile-icon { width: 60px; height: 60px; background: #eef2ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 1.5rem; margin-bottom: 15px; }

/* --- Index: About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.5rem; color: var(--secondary-blue); margin-bottom: 20px; }
.feature-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.feature-list svg { color: var(--accent-green); }

/* --- Index: CTA Section --- */
.cta-section { background-color: var(--primary-blue); color: white; text-align: center; padding: 100px 0; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; color: white; }
.cta-btn { background-color: white; color: var(--primary-blue); padding: 15px 40px; border-radius: 50px; font-weight: 700; display: inline-block; transition: var(--transition); text-decoration: none; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- Service Pages: Split Layouts --- */
.service-split {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
}
.service-split.reverse {
    flex-direction: row-reverse;
}

/* --- Service Pages: Slogan Sections --- */
.service-slogan { padding: 80px 0; text-align: center; color: white; }
.slogan-orange { background-color: var(--accent-orange); }
.slogan-dark { background-color: var(--accent-dark); }
.slogan-green { background-color: var(--accent-green); }
.slogan-dark h2, .slogan-orange h2, .slogan-green h2 { color: white; font-size: 2.5rem; margin-bottom: 15px; }

/* --- Service Pages: Offer Grid (Rectangular Boxes) --- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 40px; }
.offer-item { display: flex; flex-direction: column; height: 100%; }
.offer-card { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
    height: 100%; 
    border: 1px solid #e2e8f0; 
    transition: var(--transition); 
    display: flex;
    flex-direction: column;
}
/* Style for images inside offer cards */
.offer-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.offer-card:hover { transform: translateY(-5px); border-color: var(--primary-blue); }
.offer-card h3 { color: var(--secondary-blue); margin-bottom: 15px; font-size: 1.4rem; }
.offer-card ul { margin-top: 15px; padding-left: 20px; list-style: disc; color: var(--text-main); flex-grow: 1; }

/* --- Contact Form Layout --- */
.contact-layout { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; /* Address column 1 part, Form column 1.2 parts (wider) */ 
    gap: 40px; 
    align-items: start; 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}
.contact-info-col { 
    background-color: var(--bg-light); 
    padding: 40px; 
}
.contact-form-col { 
    padding: 40px; 
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--secondary-blue); }
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    font-family: inherit; 
    font-size: 1rem; 
}
.form-group textarea { resize: vertical; }

.contact-map-full {
    width: 100%;
    height: 400px;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.contact-map-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Utility Lists --- */
.feature-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
.feature-list-bold li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; font-size: 1.1rem; }
.feature-list-bold strong { display: block; margin-bottom: 4px; color: var(--secondary-blue); }
.feature-list svg { min-width: 20px; margin-top: 4px; color: var(--accent-green); }

/* --- Footer --- */
footer { 
    background-color: #1e293b; 
    color: #e2e8f0; 
    font-size: 0.85rem; 
    padding: 60px 0 0; 
}
.footer-main { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-brand { 
    max-width: 400px; 
    flex: 1; 
    font-size: 0.85rem;
    line-height: 1.5;
}
.footer-brand h4 { 
    color: white; 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
    font-weight: 800; 
    display: flex; 
    align-items: center;
    gap: 10px;
}
.footer-brand .logo-svg { width: 40px; height: 40px; }
.footer-contact-list { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: center; gap: 12px; color: #e2e8f0; }

.footer-icon {
    width: 20px !important;      
    height: 20px !important;     
    min-width: 20px !important;
    max-width: 20px !important;   
    min-height: 20px !important;
    max-height: 20px !important;
    filter: brightness(0) invert(1); 
    opacity: 0.7;
    flex-shrink: 0; 
}

.footer-section { flex: 1; min-width: 200px; }
.footer-section h5 { 
    color: white; 
    font-size: 0.9rem; 
    margin-bottom: 20px; 
    font-weight: 700; 
    text-transform: none; 
    letter-spacing: normal;
}
.footer-section ul li { margin-bottom: 10px; }
.footer-section a:hover { color: white; }
.footer-hours { margin-bottom: 5px; color: #e2e8f0; line-height: 1.6; } 
.footer-hours p { margin-bottom: 4px; } 

.footer-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}
.footer-map-container {
    width: 100%;
    height: 250px;
    background: #0f172a; 
    border-radius: 4px;
    overflow: hidden;
}
.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom { 
    background-color: #0f172a; 
    padding: 20px 0; 
    border-top: 1px solid #334155; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.8rem; 
}
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cookie-reset-link {
    color: #94a3b8;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}
.cookie-reset-link:hover {
    color: white;
    text-decoration: none;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    color: white;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    display: none;
    border-top: 1px solid #334155;
}
#cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cookie-content { flex: 1; }
.cookie-content h4 { margin-bottom: 5px; font-size: 1.1rem; }
.cookie-content p { font-size: 0.9rem; opacity: 0.9; margin: 0; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-accept { background-color: var(--primary-blue); color: white; }
.btn-accept:hover { background-color: var(--secondary-blue); }
.btn-reject { background-color: transparent; border: 1px solid #64748b; color: #94a3b8; }
.btn-reject:hover { border-color: white; color: white; }
.btn-optional { background-color: transparent; color: var(--primary-blue); text-decoration: underline; }
.btn-optional:hover { color: white; text-decoration: none; }

/* --- Text Content Styling --- */
.text-content { max-width: 800px; margin: 0 auto; }
.text-content h1 { font-size: 2.5rem; color: var(--secondary-blue); margin-bottom: 40px; }
.text-content h2 { font-size: 1.8rem; color: var(--primary-blue); margin-top: 60px; margin-bottom: 20px; }
.text-content h3 { font-size: 1.3rem; color: var(--accent-dark); margin-top: 40px; margin-bottom: 15px; font-weight: 600; }
.text-content p, .text-content ul { margin-bottom: 20px; }
.text-content ul { list-style: disc; padding-left: 25px; }
.text-content li { margin-bottom: 10px; }
.text-content strong { color: var(--secondary-blue); font-weight: 700; }
.text-content a { color: var(--primary-blue); text-decoration: underline; }

/* --- Responsive Design --- */
@media(max-width: 768px) {
    .navbar { flex-direction: column; height: auto; padding: 20px 0; }
    .nav-links { flex-direction: column; gap: 15px; margin: 20px 0; text-align: center; }
    .top-bar .container { flex-direction: column; gap: 10px; text-align: center; }
    .top-bar-left { flex-direction: column; gap: 5px; }
    .top-bar-right { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .service-split, .service-split.reverse { flex-direction: column; }
    .footer-main { flex-direction: column; text-align: center; }
    .footer-brand h4 { justify-content: center; }
    .footer-contact-item { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-legal-links { flex-direction: column; gap: 10px; }
    .contact-layout { grid-template-columns: 1fr; } /* Stack contact form on mobile */
    .contact-map-full { height: 300px; }
    .footer-map-container { height: 200px; }
    #cookie-banner .container { flex-direction: column; text-align: center; }
    .cookie-buttons { flex-direction: column; width: 100%; }
    .btn-cookie { width: 100%; }
}
/* --- Cookie Modal & Enhanced Banner --- */
#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cookie-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cookie-modal-content h3 {
    margin-bottom: 20px;
    color: var(--secondary-blue);
}

.cookie-option-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.cookie-option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.cookie-option-text h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.cookie-option-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.cookie-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cookie-modal-buttons .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}
