/*
 * Forch Theme Styles
 * Mobile-first, clean and minimal CSS
 */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111111;
    background-color: #ffffff;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #c40000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #a00000;
    text-decoration: underline;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    min-height: auto;
}

/* Logo */
.logo a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo a {
        font-size: 1.25rem;
    }
}

/* Navigation */
.main-nav {
    width: 100%;
}

.main-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: #111111;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.main-menu a:hover {
    color: #c40000;
    text-decoration: none;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c40000;
    transition: width 0.2s ease;
}

.main-menu a:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background-color: #111111;
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        text-align: left;
        padding: 6rem 0;
    }
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #c40000;
    color: #ffffff;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #a00000;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   About / Leistungen Intro Section
   ========================================================================== */

.section-about {
    padding: 4rem 0;
    background-color: #ffffff;
}

.section-about__inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-about__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #111111;
}

.section-about__subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333333;
}

.section-about__intro,
.section-about__outro {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1.5rem;
}

.section-about__list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-about__list li {
    margin-bottom: 0.5rem;
    color: #333333;
}

@media (min-width: 768px) {
    .section-about {
        padding: 5rem 0;
    }

    .section-about__title {
        font-size: 2.25rem;
    }

    .section-about__subtitle {
        font-size: 1.35rem;
    }
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.services h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #111111;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111111;
}

.service-card p {
    color: #555555;
    font-size: 0.95rem;
}

/* References Section */
.references {
    padding: 4rem 0;
    text-align: center;
}

.references h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111111;
}

.references p {
    color: #555555;
    font-size: 1rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.section-faq {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.section-faq__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #111111;
}

.faq-item {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

@media (min-width: 768px) {
    .section-faq {
        padding: 5rem 0;
    }

    .section-faq__title {
        font-size: 2.25rem;
    }
}

/* Page Template */
.page {
    padding: 0 ;
    background-color: #ffffff;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #111111;
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111111;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

/* Footer */
.site-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-left {
    font-size: 0.9rem;
}

.footer-nav {
    width: 100%;
}

@media (min-width: 768px) {
    .footer-nav {
        width: auto;
    }
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-menu {
        justify-content: flex-end;
    }
}

.footer-menu a {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-menu a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

/* Archive/Index Styles */
.archive {
    padding: 4rem 0;
    background-color: #ffffff;
}

.post-summary {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eeeeee;
}

.post-summary:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #111111;
    text-decoration: none;
}

.post-title a:hover {
    color: #c40000;
    text-decoration: none;
}

.post-meta {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555555;
    line-height: 1.7;
}

/* WordPress Core Styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #777777;
    margin-top: 0.5rem;
}

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Enhanced Header System Styles
   ========================================================================== */

/* Sticky Header with Shadow */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: padding 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 20px 0;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom-color: #dddddd;
    padding: 8px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    min-height: auto;
}

/* Logo */
.logo a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
}

/* Logo Image Styles */
.site-header .logo-img {
    max-height: 84px;
    width: auto;
    height: auto;
    display: block;
    transition: max-height 0.2s ease;
}

.site-header.scrolled .logo-img {
    max-height: 48px;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    width: auto;
}

@media (min-width: 768px) {
    .logo a {
        font-size: 1.25rem;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .desktop-nav .main-menu {
        gap: 2rem;
    }
}

/* CTA Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: #c40000;
    color: #ffffff;
    padding: 12px 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #a00000;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Desktop CTA Button */
.desktop-cta {
    display: none;
}

@media (min-width: 768px) {
    .desktop-cta {
        display: inline-flex;
        margin-left: 2rem;
    }
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #111111;
    margin: 3px 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background-color: #c40000;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid #eeeeee;
    flex-shrink: 0;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-icon {
    font-size: 2rem;
    line-height: 1;
    color: #111111;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover .close-icon {
    color: #c40000;
}

/* Mobile Navigation Menu */
.mobile-nav {
    flex: 1;
    width: 100%;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.mobile-nav .main-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.mobile-nav .main-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav .main-menu li:last-child {
    border-bottom: none;
}

.mobile-nav .main-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav .main-menu a:hover {
    color: #c40000;
}

.mobile-nav .main-menu a::after {
    display: none;
}

/* Mobile CTA Button Container */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid #eeeeee;
    flex-shrink: 0;
}

.mobile-cta {
    width: 100%;
    justify-content: center;
    margin: 0;
}

/* Body Scroll Lock */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #c40000;
    color: #ffffff;
    padding: 8px 12px;
    text-decoration: none;
    z-index: 101;
}

.skip-link:focus {
    top: 0;
}

/* Mobile Header Adjustments */
@media (max-width: 767px) {
    .site-header {
        padding: 16px 0;
    }
    
    .site-header .logo-img {
        max-height: 44px;
    }
    
    .site-header.scrolled {
        padding: 8px 0;
    }
    
    .site-header.scrolled .logo-img {
        max-height: 36px;
    }
}

/* ==========================================================================
   Dynamic Hero Section Styles (SCF Fields)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: #ffffff;
    overflow: hidden;
}

/* Fallback background when no image is set */
.hero:not(:has(.hero__bg)) {
    background-color: #111111;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
   background: rgba(0, 0, 0, 0.45);  /* Bilder werden manuell mit schatten versehen */
    z-index: 2;
}

.hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero__kicker {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.hero__title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
    font-weight: 400;
}

.hero__actions {
    margin-top: 1.5rem;
}

/* Button Styles (reuse header CTA styling) */
.hero .btn--primary {
    display: inline-flex;
    align-items: center;
    background-color: #c40000;
    color: #ffffff;
    padding: 0.9rem 1.8rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(196, 0, 0, 0.25);
}

.hero .btn--primary:hover {
    background-color: #a00000;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 0, 0, 0.35);
}

.hero .btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 0, 0, 0.25);
}

/* Responsive: Mobile */
@media (max-width: 767px) {
    .hero {
        min-height: 50vh;
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
}

/* Responsive: Desktop */
@media (min-width: 768px) {
    .hero__content {
        text-align: left;
        margin: 0;
    }
    
    .hero__kicker {
        font-size: 1rem;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .hero__title {
        font-size: 4rem;
    }
}
