/* ============================================================
   ACURANA GMBH – WEBSITE STYLESHEET
   Moderne, responsive Website für Embedded Software-Entwicklung
   ============================================================ */

/* ============================================================
   GRUNDLEGENDE RESET & GLOBAL STYLES
   ============================================================ */

* { 
    box-sizing: border-box; 
}

html, body { 
    margin: 0; 
    padding: 0; 
    background: #fff; 
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

html {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #000;
    font-weight: 300;
    font-size: 16px;
}

/* Page Wrapper – Sticky Footer Layout */
.page-wrapper { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

/* ============================================================
   MENU OVERLAY (Mobile/Tablet)
   ============================================================ */

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.sticky-header.open .menu-overlay {
    display: block;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.sticky-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 80px;
    padding-bottom: 25px;
}

/* Logo Positionierung */
.logo-wrapper { 
    position: absolute;
    top: 25px;
    right: 100px;
    z-index: 1;
    flex-shrink: 0;
}

.logo { 
    height: 50px;
}

/* Navigation Wrapper */
.nav-wrapper { 
    display: flex; 
    align-items: flex-end;
    gap: 48px;
}

/* Primary Navigation Menu */
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 48px;
    font-weight: 300;
}

.nav-link {
    text-decoration: none;
    color: #000;
    transition: color 0.25s;
}

.nav-link:hover {
    color: #d90000;
}

.nav-link.active { 
    color: #d90000; 
    font-weight: 600; 
}

/* Hamburger Menu Icon */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 8px 8px 0;
    z-index: 1000;
    flex-shrink: 0;
    align-self: center;
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background: #000;
    margin: 6px 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Hamburger Animation → X */
.sticky-header.open .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.sticky-header.open .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.sticky-header.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

/* Header Trennlinie */
.header-line {
    height: 1px;
    background: #e5e5e5;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.lang-button,
.lang-link {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #000;
}

.lang-link {
    text-decoration: none;
    transition: color 0.25s;
    display: block;
    padding: 8px 16px;
}

.lang-link:hover {
    color: #d90000;
}

.lang-link.active {
    color: #d90000;
    font-weight: 600;
    cursor: default;
}

/* SVG Icons */
.globe-icon,
.chevron-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.chevron-icon {
    margin-left: 8px;
    margin-right: 0;
    transition: transform 0.35s ease;
}

.language-switcher-desktop.open .chevron-icon {
    transform: rotate(180deg);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

main {
    flex: 1;
    max-width: 980px;
    max-width: 100%;
    margin: 80px auto 100px;
}

/* Typography – Headlines */
h1 { 
    font-weight: 600; 
    line-height: 1.3;
    margin-bottom: 1.6rem; 
    color: #000; 
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #000;
}

/* Typography – Body Text */
p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.lead { 
    font-size: 1.2rem; 
    line-height: 1.6;
    margin-bottom: 1.6rem; 
    color: #000; 
}

strong {
    font-weight: 600;
}

/* Lists in Main Content */
main ul, main ol {
    margin-bottom: 1.6rem;
    padding-left: 1.8rem;
}

main ul li, main ol li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* Links im Content */
main a {
    color: #000000;
    text-decoration: none;
    transition: border-color 0.25s;
}

main a:hover {
    border-bottom-color: #d90000;
    color: #d90000;
    text-decoration: underline;
}

/* Special Paragraph Styles */
.thanks { 
    margin-top: 4rem; 
    color: #000; 
    font-size: 1.05rem; 
}

/* ============================================================
   BUTTONS & CALL-TO-ACTIONS
   ============================================================ */

.contact-buttons {
    margin: 4.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.btn {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(217, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.btn--primary { 
    background: #d90000; 
    color: #fff; 
}

.btn--primary:hover { 
    background: #c00000; 
    box-shadow: 0 6px 16px rgba(217, 0, 0, 0.25); 
    transform: translateY(-1px); 
    text-decoration: none;
    color: #fff; 
}

.btn--secondary { 
    background: #fff; 
    color: #d90000; 
    border: 2px solid #d90000; 
}

.btn--secondary:hover { 
    background: #d90000; 
    color: #fff; 
    text-decoration: none;
}

/* ============================================================
   CONTENT SECTIONS (Leistungen)
   ============================================================ */

.service-section {
    margin-bottom: 3.5rem;
}

.service-intro {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Feature Lists (z.B. bei Leistungen) */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d90000;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-line { 
    height: 1px; 
    background: #f5f5f5; 
}

.footer-inner {
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    font-size: 0.9rem;
    color: #666;
}

.footer-links a { 
    color: inherit; 
    text-decoration: none; 
}

.footer-links a:hover { 
    color: #d90000; 
    text-decoration: underline; 
}

/* ============================================================
   CONTACT PAGE SPECIFIC STYLES
   ============================================================ */

.contact-info {
    margin-top: 2.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-label {
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-value {
    color: #333;
    font-size: 1.05rem;
}

.contact-value a {
    color: #d90000;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center {
    text-align: center;
}

.mt-large {
    margin-top: 4rem;
}

.mb-large {
    margin-bottom: 4rem;
}

/* ============================================================
   DESKTOP STYLES (>1024px)
   ============================================================ */

@media (min-width: 1025px) {
    h1 {
        padding-top: 10px;
        font-size: 2.4rem; 
    }
    
    .hamburger {
        display: none;
    }

    .primary-menu {
        display: flex;
        flex-direction: row;
        gap: 48px;
    }

    .primary-navigation {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
        left: auto;
    }

    .sticky-header.open .menu-overlay {
        display: none;
    }

    /* Desktop Language Switcher Dropdown */
    .language-switcher-desktop {
        position: absolute;
        top: 30px;
        right: 384.5px;
        z-index: 1;
    }

    .lang-button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px 16px;
        display: flex;
        align-items: center;
    }

    .lang-button:hover {
        color: #d90000;
    }

    .lang-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 2px solid #666666;
        border-radius: 0.14286em;
        min-width: 160px;
        padding: 8px 0;
        list-style: none;
        margin: 0;
    }

    .language-switcher-desktop.open .lang-dropdown {
        display: block;
    }

    .lang-mobile {
        display: none;
    }
}

/* ============================================================
   TABLET & MOBILE STYLES (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .container { 
        padding: 0 40px; 
    }
    
    h1 {
        padding-top: 10px;
        font-size: 2.4rem; 
    }
    
    main { 
        margin: 60px auto 80px; 
    }

    .logo-wrapper {
        position: static;
        align-self: center;
    }

    .hamburger { 
        display: block; 
        align-self: center;
    }

    .header-inner {
        padding-top: 25px;
        padding-bottom: 20px;
        align-items: center;
        justify-content: space-between;
    }

    .nav-wrapper {
        align-items: center;
    }

    /* Slide-in Navigation (Mobile/Tablet) */
    .primary-navigation {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        padding: 90px 40px 60px;
        z-index: 999;
        transition: left 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
        opacity: 0;
        transform: translateX(-20px);
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }

    .sticky-header.open .primary-navigation {
        left: 0;
        opacity: 1;
        transform: translateX(0);
    }

    .primary-menu {
        display: none;
    }

    .sticky-header.open .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .sticky-header.open .nav-link {
        font-size: 1.4rem;
    }

    .contact-buttons {
        justify-content: center;
    }
    
    .btn {
        max-width: 340px;
        width: auto;
    }

    .language-switcher-desktop {
        display: none;
    }

    /* Mobile Language Switcher */
    .lang-mobile {
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid #e5e5e5;
        text-align: center;
        font-size: 1.1rem;
    }

    .lang-mobile .language-switcher {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
}

/* ============================================================
   SMALL TABLET STYLES (≤640px)
   ============================================================ */

@media (min-width: 641px) {
    .footer-separator { 
        display: inline; 
    }
}

@media (max-width: 640px) {
    .container { 
        padding: 0 30px; 
    }
    
    main { 
        margin: 50px auto 70px; 
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .lead { 
        font-size: 1.1rem; 
    }
    
    p {
        font-size: 1rem;
    }
    
    .logo { 
        height: 40px; 
    }
    
    .header-inner {
        padding-top: 20px;
        padding-bottom: 15px;
    }
    
    .primary-navigation { 
        padding: 80px 30px 50px; 
    }
    
    .footer-inner { 
        padding: 50px 30px; 
        min-height: 100px; 
    }
    
    .footer-links { 
        flex-direction: column; 
        gap: 1em; 
    }
    
    .footer-separator { 
        display: none; 
    }
}
