/*
   BSS Elektrotechnik - Generated by AI Design Agent
   Based on: Skeleton + design.json + Fröschl Elektro Inspiration
*/

@import url('../fonts/fonts.css');

:root {
    --primary: #f47629;
    --primary-hover: #e06520;
    --secondary: #0f172a;
    --text-main: #1e293b;
    --text-light: #64748b;
    --text-inverse: #cbd5e1;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-light: #e2e8f0;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --radius-pill: 9999px;

    --container: 1400px;
    --transition: 0.3s ease;
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* === UTILITIES === */
.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* === HEADER === */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.top-bar {
    display: none;
    background: var(--bg-light);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.top-bar a:hover {
    color: var(--primary);
}

/* Mobile: Logo + Hamburger */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand-logo img {
    height: 80px;
}

.header-right {
    display: none;
}

.contact-email {
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-email a {
    color: var(--primary);
    font-weight: 500;
}

.contact-email a:hover {
    text-decoration: underline;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--secondary);
}

nav a:hover {
    color: var(--primary);
}

.btn-cta {
    display: none;
}

/* Mobile Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1001;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border-light);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .header-main {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        padding: 1rem 0 1.5rem;
        gap: 0 2rem;
    }

    .brand-logo {
        grid-column: 1;
        grid-row: 1 / 3;
        padding-right: 0;
    }

    .brand-logo img {
        height: 100px;
    }

    .header-right {
        display: contents;
    }

    .header-top {
        grid-column: 2 / 4;
        grid-row: 1;
        text-align: right;
        padding-bottom: 0.75rem;
    }

    .header-bottom {
        display: contents;
    }

    .header-bottom nav {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }

    .btn-cta {
        display: inline-flex;
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        align-self: center;
    }

    .menu-toggle,
    .mobile-nav,
    .menu-backdrop {
        display: none !important;
    }
}

/* === HERO === */
#hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.7) 100%),
                url('../images/slideinfo-02.jpg') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

#hero .lead {
    font-size: 1.25rem;
    color: var(--text-inverse);
    max-width: 600px;
    margin-bottom: 2rem;
}

#hero .btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* Hero Badge (Fröschl Style) */
.hero-badge {
    display: none;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(244,118,41,0.4);
}

.hero-badge span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.3;
    color: white;
}

@media (min-width: 1200px) {
    .hero-badge {
        display: flex;
    }
}

/* === SERVICES PREVIEW === */
#services-preview {
    padding: 5rem 0;
    background: var(--bg-white);
}

#services-preview .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff9a56 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease;
}

.service-icon::before {
    font-family: 'electrician';
    content: "\e900";
    font-size: 2.25rem;
    color: #fff;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    background: #fff;
}

.service-card:hover .service-icon::before {
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    #services-preview .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === CTA BANNER === */
#cta-banner {
    background: var(--secondary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

#cta-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

#cta-banner p {
    color: var(--text-inverse);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

#cta-banner .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* === ABOUT TEASER === */
#about-teaser {
    padding: 5rem 0;
    background: var(--bg-light);
}

#about-teaser .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

#about-teaser small {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

#about-teaser h2 {
    margin-bottom: 1.5rem;
}

#about-teaser p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

@media (min-width: 1024px) {
    #about-teaser .container {
        grid-template-columns: 1fr 1fr;
    }
}

/* === ABOUT FULL (Mission/Vision) === */
#about-full {
    padding: 5rem 0;
}

#about-full .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.mission, .vision {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.mission h3, .vision h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    #about-full .container > div {
        grid-template-columns: 1fr 1fr;
    }
}

/* === ADVANTAGES === */
#advantages {
    padding: 5rem 0;
    background: var(--bg-light);
    text-align: center;
}

#advantages > .container > h2 {
    margin-bottom: 1rem;
}

#advantages > .container > p {
    max-width: 700px;
    margin: 0 auto 3rem;
}

#advantages .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.adv-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.adv-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.adv-item p {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    #advantages .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === SERVICES FULL (Tile Style) === */
#services-full {
    padding: 5rem 0;
}

#services-full > .container > h2 {
    text-align: center;
    margin-bottom: 3rem;
}

#services-full .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-item {
    position: relative;
    min-height: 280px;
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.3)),
                url('../images/gallery-img02.jpg') center/cover no-repeat;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    transition: var(--transition);
}

.service-item:nth-child(even) {
    background-image: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.3)),
                      url('../images/gallery01-01.jpg');
    background-position: center;
    background-size: cover;
}

.service-item:nth-child(3n) {
    background-image: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.3)),
                      url('../images/box01-bg-desktop.jpg');
    background-position: center;
    background-size: cover;
}

.service-item:hover {
    transform: scale(1.02);
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.service-item:hover::before {
    opacity: 0.85;
}

.service-item h4,
.service-item p,
.service-item a {
    position: relative;
    z-index: 2;
}

.service-item h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.service-item a {
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.service-item:hover a {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    #services-full .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #services-full .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === CONTACT === */
#contact {
    padding: 5rem 0;
    background: var(--bg-light);
}

#contact > .container {
    max-width: 800px;
}

#contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}

#contact > .container > p {
    text-align: center;
    margin-bottom: 2rem;
}

form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-status {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

form button[type="submit"]:hover {
    background: var(--primary-hover);
}

#contact small {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* === FOOTER === */
#site-footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 2rem 2.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.footer-grid .brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 150px;
    flex-shrink: 0;
}

.footer-grid .brand p {
    margin-top: 60px;
    margin-bottom: 0;
    color: var(--text-inverse);
}

.footer-grid h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-grid .links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-grid a {
    color: var(--text-inverse);
}

.footer-grid a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-inverse);
    font-size: 0.875rem;
}

@media (max-width: 1023px) {
    .footer-grid .brand {
        display: none;
    }

    .footer-logo {
        height: 100px;
    }

    .footer-grid .brand p {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* === LEGAL PAGES (Impressum, Datenschutz) === */
.legal-page {
    padding: 5rem 0;
    background: var(--bg-white);
}

.legal-page .container {
    max-width: 900px;
}

.legal-page h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.legal-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.legal-page p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.legal-page ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.legal-page a {
    color: var(--primary);
}

.legal-page a:hover {
    text-decoration: underline;
}

/* === HIDE DEBUG TAGS === */
.debug-tag {
    display: none;
}
