/* Hauptstilregeln für die Blackice Consulting Website */

/* Grundlegende Stile */
:root {
    /* Farbschema */
    --primary-color: #121212; /* Tiefes Schwarz */
    --secondary-color: #4178BE; /* Corporate Blue */
    --accent-color: #4178BE; /* Corporate Blue (was Dark Violet) */
    --text-light: #FFFFFF; /* Weiß */
    --text-medium: #E0E0E0; /* Hellgrau */
    --text-dark: #333333; /* Dunkelgrau */
    --warning-color: #A83C32; /* Subtiles Rot */
    --bg-dark: #1A1A1A; /* Dunkelgrau für Hintergründe */
    --bg-card: #1E1E1E; /* Etwas helleres Dunkelgrau für Karten */
    --bg-dark-secondary: #252525; /* Dunkler Hintergrund für Sekundärelemente wie Submenüs */
    --border-color: #333; /* Grau für Ränder */
}

/* Grundlegende Stile */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-medium); /* Using #E0E0E0 for good contrast */
    font-size: 1.144rem; /* Base font size: 18.304px */
    line-height: 1.6; /* Adjusted line height for readability */
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    margin-top: 0;
}

h1 {
    font-size: 3.75rem; /* ~60px based on 1.144rem base */
    line-height: 1.2;
    margin-bottom: 1.8rem; /* ~29px */
}

h2 {
    font-size: 2.9rem; /* ~47px */
    line-height: 1.2;
    margin-bottom: 1.5rem; /* ~24px */
    text-align: center;
}

h3 {
    font-size: 2.25rem; /* ~36px */
    line-height: 1.3;
    margin-bottom: 1.25rem; /* ~20px */
}

h4 {
    font-size: 1.8rem; /* ~29px */
    line-height: 1.3;
    margin-bottom: 1rem; /* ~16px */
}

h5 {
    font-size: 1.5rem; /* ~24px */
    line-height: 1.4;
    margin-bottom: 0.875rem; /* ~14px */
}

h6 {
    font-size: 1.25rem; /* ~20px */
    line-height: 1.4;
    margin-bottom: 0.75rem; /* ~12px */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color); /* Use new corporate blue */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-light);
}

.text-highlight {
    color: var(--secondary-color); /* Use new corporate blue */
}

/* Header und Navigation */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    z-index: 1000;
}

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

.logo {
    font-family: 'Roboto', sans-serif; /* Changed from Montserrat */
    font-size: calc(24px * 1.15); /* Increased by 15% */
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 1rem; /* 16px as per concept */
    font-weight: 500; /* Added weight for clarity */
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px; /* Keep existing padding */
}
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color); /* Use new corporate blue */
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 24px;
    cursor: pointer;
}

/* Hero-Bereich */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to right, var(--primary-color), #1E1E1E);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--secondary-color) 1px, transparent 1px),
        radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color); /* Use new corporate blue */
    border: 2px solid var(--secondary-color); /* Use new corporate blue */
    padding: 12px 30px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color); /* Use new corporate blue */
    color: var(--text-light); /* White text on hover */
}

.btn-primary {
    background-color: var(--secondary-color); /* Use new corporate blue */
    color: var(--text-light); /* White text */
    border: 2px solid var(--secondary-color); /* Ensure border matches */
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color); /* Use new corporate blue */
}

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

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

/* Karten */
.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-accent {
    border-left: 3px solid var(--accent-color); /* Use new corporate blue */
}

.card h3 {
    color: var(--secondary-color); /* Use new corporate blue */
}

/* Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    color: var(--text-medium);
    border-radius: 3px;
}

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

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.875rem; /* 14px as per concept */
    transition: color 0.3s;
}

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

.copyright {
    font-size: 0.875rem; /* 14px as per concept */
    color: #777; /* Keep existing subtle color */
}

/* Seitenheader */
.page-header {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), #1E1E1E);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--secondary-color) 1px, transparent 1px),
        radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.05;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero {
        height: 60vh;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin: 20px 0;
    text-align: center;
}

.mobile-nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s;
}

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

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 24px;
    cursor: pointer;
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Hilfklassen */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 2.5rem; padding-right: 2.5rem; }


/* Responsive Footer Font Sizes */
/* Default font size for footer - targets mobile first */
footer {
    font-size: 0.9rem;  /* Approx 14.4px if 1rem = 16px, good for mobile readability */
}

/* Tablet optimizations (e.g., for screens wider than 768px) */
@media (min-width: 768px) {
    footer {
        font-size: 0.9rem; /* Same as mobile, or adjust if needed */
    }
}

/* Desktop optimizations (e.g., for screens wider than 1024px or 1200px) */
/* Assuming body text font-size is around 1.144rem, 30% smaller is approx 0.8rem */
@media (min-width: 1025px) {
    footer {
        font-size: 0.8rem; /* Approx 30% smaller than main body text, good for PC */
    }
}



/* Footer horizontal menu (User Request) */
.footer-links ul {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.footer-links ul li {
    margin: 0 15px; /* Adjusted to match previous li styling attempt */
}



/* === FINAL Footer Consistency Fixes - Applied to styles.css === */

/* 1. Footer Navigation Links: Blue Dots and Spacing */
footer .footer-links ul {
    display: flex !important;
    justify-content: center !important;
    padding-left: 0 !important;
    list-style: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

footer .footer-links ul li {
    margin: 0 10px !important; /* Horizontal spacing between items */
    position: relative !important;
    padding-left: 10px !important; /* Space for the custom bullet, user confirmed 10px on index is ok */
    line-height: inherit !important; /* Ensure consistent line height */
}

footer .footer-links ul li::before {
    content: "•" !important;
    color: var(--secondary-color) !important;
    position: absolute !important;
    left: 0 !important; /* Position dot at the start of padding */
    font-size: 1.2em !important; /* Relative to li's font-size */
    line-height: inherit !important; /* Align with text on the li */
}

/* 2. Footer Logo "BLACKICESECURE" styling (ensure consistency) */
footer .footer-logo h3 {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: bold !important;
    color: var(--text-light) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

footer .footer-logo h3 span {
    color: var(--secondary-color) !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}


/* 3. Footer Social Media Icons (to match index.html appearance precisely) */
/*    This overrides social-media.css for the footer context */
footer .social-icons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important; /* Align items vertically */
    gap: 10px !important; /* Reduced gap, adjust based on index.html visual */
    margin: 20px 0 !important;
}

footer .social-icons a.social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--secondary-color) !important;
    padding: 0 !important;
    margin: 0 5px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

footer .social-icons a.social-icon:hover {
    background-color: transparent !important;
    color: var(--text-light) !important;
    transform: none !important;
}

/* Targeting the Font Awesome icon specifically */
footer .social-icons a.social-icon i.fab {
    font-family: "Font Awesome 6 Brands", "FontAwesome" !important; /* Ensure correct font family */
    font-weight: 400 !important; /* Standard weight for brands */
    font-size: 16px !important; /* Desired icon size from index.html */
    line-height: 1 !important; /* Ensure proper vertical alignment */
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
}

