/* ==========================================================================
   GEORG BAU KONZEPT - MODERN ELECTRICAL SERVICES STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM ARCHITECTURE
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary-color: #0D6EFD;
    --primary-hover: #0b5ed7;
    --secondary-color: #1F2937;
    --secondary-hover: #111827;
    --accent-color: #F59E0B;
    --accent-hover: #d97706;

    /* Neutral Colors */
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;

    /* Layout & Geometry */
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 18px;
    --container-width: 1240px;
    --header-height: 80px;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & HELPER CLASSES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.025rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-white {
    color: #FFFFFF !important;
}

.text-gray {
    color: #9CA3AF !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.margin-bottom-sm {
    margin-bottom: 0.75rem;
}

.margin-bottom-md {
    margin-bottom: 1.5rem;
}

.margin-bottom-lg {
    margin-bottom: 2.5rem;
}

.margin-top-md {
    margin-top: 1.5rem;
}

.margin-top-lg {
    margin-top: 2.5rem;
}

.margin-right-xs {
    margin-right: 0.5rem;
}

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #F1F5F9;
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: transparent;
}

.btn-outline-light:hover {
    background-color: #FFFFFF;
    color: var(--secondary-color);
}

.btn-outline-dark {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

.btn-lg {
    padding: 1.05rem 2.2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.badge-accent {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-normal);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 1.2rem;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.navbar:not(.scrolled) .nav-link {
    color: #FFFFFF;
}

.navbar:not(.scrolled) .logo-text {
    color: #FFFFFF;
}

body:not(:has(.hero-section)):not(:has(.page-header)) .navbar:not(.scrolled) .nav-link,
body:not(:has(.hero-section)):not(:has(.page-header)) .navbar:not(.scrolled) .logo-text {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.navbar:not(.scrolled) .bar {
    background-color: #FFFFFF;
}

body:not(:has(.hero-section)):not(:has(.page-header)) .navbar:not(.scrolled) .bar {
    background-color: var(--secondary-color);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION & PAGE HEADERS
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    color: #FFFFFF;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 750px;
}

.hero-title {
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.hero-description {
    color: #E2E8F0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header {
    position: relative;
    padding: 160px 0 80px 0;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

.page-header-container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #94A3B8;
    font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   8. CARDS & CONTENT SECTIONS
   -------------------------------------------------------------------------- */
.section-header {
    margin-bottom: 3.5rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-description {
    max-width: 650px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 110, 253, 0.3);
}

.feature-card {
    text-align: left;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.card-title {
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
}

/* Service Preview Cards */
.service-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    height: 200px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.service-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-link {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    gap: 0.75rem;
}

/* Service Detail Cards */
.service-detail-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Highlight Box */
.highlight-box {
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.bg-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
}

.rounded-img {
    border-radius: var(--border-radius-md);
    width: 100%;
    object-fit: cover;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Legal Notice Box */
.legal-box {
    background-color: #EFF6FF;
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.legal-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.legal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.legal-content p {
    font-size: 0.95rem;
    color: #1E40AF;
}

/* Check list */
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   9. ABOUT PAGE SPECIFICS
   -------------------------------------------------------------------------- */
.stats-grid {
    text-align: center;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-muted);
}

.bg-dark-card {
    background-color: #111827;
    border: 1px solid #374151;
}

.p-4 {
    padding: 2rem;
}

/* --------------------------------------------------------------------------
   10. CONTACT PAGE SPECIFICS
   -------------------------------------------------------------------------- */
.contact-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.contact-value {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.contact-value:hover {
    text-decoration: underline;
}

.contact-value-text {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.big-contact-box {
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #E2E8F0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.map-overlay-info {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.map-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid #1E293B;
}

.footer-grid {
    margin-bottom: 3.5rem;
}

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-about {
    font-size: 0.95rem;
    color: #94A3B8;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
    text-align: center;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   12. ANIMATIONS & TRANSITIONS
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-box {
        padding: 2.5rem;
    }
}

/* ==========================================================================
   MOBILE OPTIMIZATION
   ========================================================================== */

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========================================================================== */
/* TABLET + MOBILE */
/* ========================================================================== */

@media (max-width:768px) {

    /* ---------- General ---------- */

    .section {
        padding: 60px 0;
    }

    .container,
    .page-header-container {

        width: 100%;
        max-width: 100%;
        margin: auto;
        padding-inline: 20px;

    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {

        overflow-wrap: break-word;
        word-break: normal;

    }

    /* ---------- Navbar ---------- */

    .navbar {

        height: 72px;

    }

    .navbar-container {

        height: 72px;

    }

    .hamburger {

        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        z-index: 1002;

    }

    .nav-menu {

        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;

        height: 100dvh;

        background: var(--secondary-color);

        padding: 90px 30px 40px;

        overflow-y: auto;

        transition: right .35s ease;

        box-shadow: -5px 0 25px rgba(0, 0, 0, .25);

        z-index: 1001;

    }

    .nav-menu.active {

        right: 0;

    }

    .nav-list {

        display: flex;
        flex-direction: column;
        gap: 24px;

    }

    .nav-link {

        display: block;

        color: #fff !important;

        font-size: 18px;

        padding: 8px 0;

    }

    .nav-cta {

        display: none;

    }

    /* ---------- Hero ---------- */

    .hero-section {

        min-height: 90dvh;

        padding-top: 110px;

        padding-bottom: 70px;

    }

    .hero-container {

        align-items: center;

    }

    .hero-content {

        text-align: center;

    }

    .hero-title {

        font-size: clamp(2rem, 8vw, 2.6rem);

        line-height: 1.15;

    }

    .hero-description {

        font-size: 1rem;

        line-height: 1.7;

        margin: 20px 0 35px;

    }

    .hero-buttons {

        display: flex;

        flex-direction: column;

        gap: 15px;

        width: 100%;

    }

    .hero-buttons .btn {

        width: 100%;

    }

    /* ---------- Page Header ---------- */

    .page-header {

        padding: 120px 0 60px;

    }

    .page-header h1 {

        font-size: 2rem;

    }

    .page-header p {

        font-size: 1rem;

    }

    /* ---------- Grids ---------- */

    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {

        display: grid;

        grid-template-columns: 1fr;

        gap: 24px;

    }

    .grid>*,
    .grid-2>*,
    .grid-3>*,
    .grid-4>* {
        min-width: 0;
        max-width: 100%;
    }

    /* ---------- Cards ---------- */

    .card,
    .service-card,
    .service-detail-card,
    .stat-card,
    .highlight-box,
    .legal-box {

        width: 100%;

        padding: 24px;

        border-radius: 16px;

    }

    .card-img-wrap {

        height: 200px;

        overflow: hidden;

    }

    .card-img-wrap img {

        width: 100%;
        height: 100%;
        object-fit: cover;

    }

    .rounded-img {

        border-radius: 16px;

    }

    /* ---------- Statistics ---------- */

    .stat-number {

        font-size: 2.4rem;

    }

    /* ---------- Experience ---------- */

    .check-list {

        gap: 16px;

    }

    /* ---------- Map ---------- */

    .map-placeholder {

        height: 320px;

    }

    /* ---------- CTA ---------- */

    .cta-section .hero-buttons {

        max-width: 420px;

        margin: auto;

    }

    /* ---------- Footer ---------- */

    .footer {

        padding: 60px 0 25px;

    }

    .footer-grid {

        display: grid;

        grid-template-columns: 1fr;

        gap: 35px;

    }

    .footer-bottom {

        text-align: center;

        font-size: .9rem;

    }

}

/* ========================================================================== */
/* SMALL PHONES */
/* ========================================================================== */

@media (max-width:480px) {

    .container,
    .page-header-container {

        padding-inline: 16px;

    }

    .section {

        padding: 50px 0;

    }

    .hero-title {

        font-size: 1.9rem;

    }

    .hero-description {

        font-size: .95rem;

    }

    .btn {

        width: 100%;

        padding: 14px 20px;

        font-size: .95rem;

    }

    .logo {

        font-size: 1.1rem;

    }

    .logo-icon {

        width: 38px;
        height: 38px;

        font-size: 1rem;

    }

    .card,
    .service-card {

        padding: 20px;

    }

    .card-img-wrap {

        height: 180px;

    }

}