/* ===== Freiwerk IT Custom Styles ===== */

/* Kernbotschaft Section */
.fw-section-kern {
    background-color: #fff;
    border-bottom: 1px solid var(--grey-200, #e6eaf4);
}

.fw-kern-text {
    max-width: 44rem;
    margin: 0 auto;
}

.fw-kern-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--grey-700, #333b52);
}

.fw-kern-text em {
    color: var(--indigo-500-main, #3e57da);
    font-style: normal;
    font-weight: 600;
}

/* Section: Leistungen */
.fw-section-leistungen {
    background-color: var(--grey-100, #f2f4fd);
}

.fw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-bottom: 4rem;
}

@media (max-width: 991px) {
    .fw-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .fw-services-grid {
        grid-template-columns: 1fr;
    }
}

.fw-service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.fw-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.fw-service-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-800, #0d0f2c);
}

.fw-service-card p {
    color: var(--grey-600, #474c56);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.fw-service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* No accent cards - all same style */
.fw-card-accent {
    /* same as regular card */
}

/* Section: Über mich */
.fw-section-about {
    background-color: #fff;
}

.fw-about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.fw-about-photo {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.fw-about-img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .fw-about-grid {
        grid-template-columns: 1fr;
    }
    .fw-about-photo {
        display: flex;
        order: -1;
        padding-top: 0;
    }
    .fw-about-img {
        max-width: 200px;
    }
}

.fw-about-text h2 {
    margin-bottom: 0.5rem;
}

.fw-about-text p {
    margin-bottom: 1rem;
}

.fw-works-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fw-works-item {
    font-size: 0.95rem;
    color: var(--grey-700, #333b52);
    line-height: 1.5;
}

/* Section: Kontakt */
.fw-section-kontakt {
    background-color: var(--grey-100, #f2f4fd);
}

.fw-kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 48rem;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .fw-kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.fw-kontakt-item {
    margin-bottom: 1.5rem;
}

.fw-kontakt-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-600, #474c56);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.fw-kontakt-value {
    font-size: 1.1rem;
    color: var(--grey-800, #0d0f2c);
    text-decoration: none;
    display: inline-block;
}

a.fw-kontakt-value:hover {
    color: var(--indigo-500-main, #3e57da);
}

.fw-kontakt-link {
    color: var(--indigo-500-main, #3e57da);
    text-decoration: underline;
}

.fw-kontakt-hinweise h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--grey-800, #0d0f2c);
}

.fw-kontakt-hinweise ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fw-kontakt-hinweise li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--grey-600, #474c56);
    font-size: 0.95rem;
    line-height: 1.5;
}

.fw-kontakt-hinweise li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--indigo-500-main, #3e57da);
    font-weight: bold;
}

.fw-kontakt-hinweise p {
    margin-top: 1rem;
}

/* Utility: max-width with auto margins */
.max-width-56rem {
    max-width: 56rem;
}

.max-width-40rem {
    max-width: 40rem;
}

.margin-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Adjust hero spacing for better mobile experience */
@media (max-width: 767px) {
    .fw-service-card {
        padding: 1.5rem;
    }
    
    .fw-section-leistungen .heading-large {
        font-size: 1.75rem;
    }

    .fw-kern-text p {
        font-size: 1.05rem;
    }
}

/* Color override for Freiwerk brand */
.text-highlight-gradient {
    background: linear-gradient(135deg, var(--indigo-500-main, #3e57da) 0%, var(--v2-green, #00fac8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer link color override */
.footer-section a:hover {
    color: var(--indigo-500-main, #3e57da);
}

/* Kontakt section - CTA emphasis */
.fw-section-kontakt .button {
    margin-top: 1rem;
}

/* MSP Teaser Section */
.fw-section-msp {
    background: linear-gradient(135deg, var(--indigo-600, #2b3ea7) 0%, var(--indigo-500-main, #3e57da) 50%, var(--v2-green, #00c9a7) 100%);
    color: #fff;
}

.fw-msp-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .fw-msp-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .fw-msp-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.fw-msp-feature {
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.fw-msp-check {
    color: var(--v2-green, #00fac8);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* MSP section button override */
.fw-section-msp .button {
    background-color: #fff;
    color: var(--indigo-600, #2b3ea7);
    border-color: #fff;
}

.fw-section-msp .button:hover {
    background-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* Hinweis banner */
.fw-hinweis {
    background: var(--indigo-100, #f5f8ff);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    max-width: 40rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey-700, #333b52);
    border: 1px solid var(--indigo-200, #e3ebff);
}

/* Legal pages */
.fw-legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--grey-800, #0d0f2c);
}

.fw-legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-800, #0d0f2c);
}

.fw-legal-content p {
    margin-bottom: 1rem;
    color: var(--grey-600, #474c56);
    line-height: 1.7;
}

.fw-legal-content ul, .fw-legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--grey-600, #474c56);
    line-height: 1.7;
}

.fw-legal-content li {
    margin-bottom: 0.5rem;
}

.fw-legal-content strong {
    color: var(--grey-800, #0d0f2c);
}

.fw-legal-content hr {
    border: none;
    border-top: 1px solid var(--grey-200, #e6eaf4);
    margin: 2rem 0;
}

/* Footer legal links */
.fw-footer-legal {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.fw-footer-legal a {
    color: var(--grey-600, #474c56);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fw-footer-legal a:hover {
    color: var(--indigo-500-main, #3e57da);
}

/* ===== Cookie Banner ===== */
.fw-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #fff;
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
    font-size: 0.875rem;
}

.fw-cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.fw-cookie-banner a {
    color: #a5b4fc;
    text-decoration: underline;
}

.fw-cookie-accept {
    background: var(--indigo-500-main, #3e57da);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.fw-cookie-accept:hover {
    background: #2d45b8;
}

/* ===== External Link Overlay ===== */
.fw-ext-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.fw-ext-dialog {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.fw-ext-dialog h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.fw-ext-dialog p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.fw-ext-url {
    font-size: 0.75rem;
    word-break: break-all;
    color: #9ca3af;
    margin-bottom: 1.5rem !important;
}

.fw-ext-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.fw-ext-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.fw-ext-continue {
    background: var(--indigo-500-main, #3e57da);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.fw-ext-continue:hover {
    background: #2d45b8;
}

/* ===== Logo size override ===== */
.navbar .logo-medium {
    height: 4.5rem;
}

@media (max-width: 767px) {
    .navbar .logo-medium {
        height: 2.5rem;
    }
}