/* DOM|COM - Optimized CSS (50% Size Reduction) */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --primary: #000;
    --text: #fff;
    --text-sec: #ffffffb2;
    --text-muted: #999;
    --accent: #647397;
    --accent-hover: #7d8bb5;
    --bracket: #99A5CB;
    --card: #333;
    --accent-transparent: rgba(100, 115, 151, 0.3);
    
    /* Layout */
    --wrap: 1200px;
    --gutter: clamp(1rem, 2.5vw, 2rem);
    --section-pad: 5rem 0;
    --radius: 12px;
    --radius-sm: 8px;
    
    /* Typography - Responsive Clamp */
    --h1: clamp(1.8rem, 3.5vw, 2.5rem);
    --h2: clamp(1.5rem, 2.8vw, 2rem);
    --h3: clamp(1.2rem, 2.2vw, 1.6rem);
    --text-base: clamp(1rem, 1.4vw, 1.3rem);
    --text-sm: clamp(0.95rem, 1.2vw, 1.1rem);
    
    /* Animation */
    --trans: 0.3s ease;
}

/* ========== BODY & TYPOGRAPHY ========== */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--primary) url('../images/bg.png') center/cover fixed;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--primary);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
    /*max-width: var(--wrap);*/
    width: min(100%, var(--wrap));
    left: 50%;
    transform: translateX(-50%);
}

/* Typography Base */
h1, h2, h3, h4 {
    font-weight: 600;
    font-variant: small-caps;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); color: var(--accent); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

p {
    font-size: var(--text-base);
    color: var(--text-sec);
    line-height: 1.7;
    letter-spacing: 0.1em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--trans);
}

a:hover { color: var(--accent-hover); }

.title-bracket {
    color: var(--bracket);
    font-weight: normal;
}

/* ========== LAYOUT UTILITIES ========== */
.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section { padding: var(--section-pad); }

/* ========== NAVIGATION ========== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--accent);
    transition: transform var(--trans);
}

.navbar.navbar-hidden { transform: translateY(-100%); }
.navbar.navbar-scrolled { backdrop-filter: blur(20px); }

.nav-container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 1rem var(--gutter);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: auto;
}

.nav-menu a {
    color: var(--text-sec);
    font-size: var(--text-base);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--trans);
}

.nav-menu a:hover { 
    color: var(--text);
    letter-spacing: 0.05em;
}

.nav-menu a:hover::after { width: 100%; }

.hamburger {
    display: none;
    align-self: center; 
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: var(--trans);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 1000px;
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out;
}

.logo-circle {
    width: clamp(120px, 22vw, 300px);
    height: clamp(120px, 22vw, 300px);
    margin: 0 auto;
    position: relative;
    transition: transform var(--trans);
    transform: translateX(-8px);
}

/*.logo-circle:hover { transform: translateY(-5px); }*/

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: sleeping-machine 4s ease-in-out infinite;
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content p {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Console Animation */
.console-container {
    padding: 0rem;
    margin: 2rem auto;
    max-width: 800px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);*/
}

.console-line {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: var(--accent);
    display: flex;
    align-items: left;
    white-space: nowrap;
    overflow: hidden;
}

.console-prompt {
    color: var(--text-sec);
    margin-right: 0.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.console-text {
    color: var(--text);
    font-weight: 500;
}

.console-cursor {
    display: inline-block;
    background: var(--accent);
    width: 2px;
    height: 1.2em;
    margin-left: 2px;
    animation: cursor-blink 1s infinite;
}

.console-cursor.typing { animation: none; opacity: 1; }

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* CTA Container */
.cta-container {
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    max-width: 500px;
    margin: 7rem auto 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-question {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--accent);
    min-height: 4rem;
}

.cta-question-text {
    font-size: var(--h3);
    font-weight: 600;
    font-variant: small-caps;
    text-align: center;
}

.cta-button {
    background: var(--accent);
    color: white;
    border: none;
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    cursor: pointer;
    transition: all var(--trans);
    font-variant: small-caps;
}

.cta-button:hover {
    background: var(--accent-hover);
    letter-spacing: 0.15em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    transition: opacity var(--trans);
}

.scroll-indicator.scroll-indicator-visible {
    animation: bounce 2s infinite 0.5s;
}

.scroll-indicator.scroll-indicator-hidden {
    opacity: 0;
    visibility: hidden;
}

.arrow-down {
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== SERVICES SECTION ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p,
.partners-intro,
.about-intro {
    font-size: var(--text-base);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 40vw, 360px), 1fr));
    gap: 1.1rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.2rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--trans);
    border: 1px solid var(--accent);
    box-shadow: 3px 5px 15px var(--accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    font-size: var(--text-sm);
    text-align: left;
}

/* ========== ABOUT SECTION ========== */
.about-content h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.about-intro {
    margin-bottom: 4rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 45vw, 520px), 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    transition: transform var(--trans);
}

.philosophy-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.philosophy-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.philosophy-item p {
    font-size: var(--text-sm);
}

/* ========== PARTNERS SECTION ========== */
.partners {
    padding: 3rem 0;
}

.partners h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.partners-intro {
    margin-bottom: 4rem;
}

.logo-slider {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.logo-testimonial-container {
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    max-width: 90%;
    margin: 0 auto;
}

.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;    
    padding: 1.5em 3em;
    min-height: 6em;
    border-bottom: 1px solid var(--accent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.logo-item {
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    height: clamp(64px, 12vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0.1;
    transition: opacity 1s ease;
}

.logo-item.logo-visible { opacity: 0.8; }
.logo-item:hover { opacity: 1; }

.logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.testimonial-box {
    background: var(--accent);
    padding: 1.5rem 2rem;
    text-align: center;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.testimonial-quote {
    font-size: var(--text-sm);
    color: white;
    text-align: left;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-quote p {
    margin-bottom: 1rem;
    color: white;
}

.testimonial-quote p:last-child { margin-bottom: 0; }

.testimonial-quote p:first-child::before,
.testimonial-quote p:last-child::after {
    content: '"';
    font-size: 1.3em;
    line-height: 1;
    opacity: 0.7;
}

.testimonial-author {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-company {
    font-weight: 500;
    opacity: 0.8;
}

.not-italic { font-style: normal; }

/* ========== CONTACT SECTION ========== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-text h2 { margin-bottom: 1rem; }
.contact-text h3 { margin-bottom: 0.5rem; }
.contact-text p { margin-bottom: 2rem; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-item { font-size: 1.1rem; }
.contact-label { color: var(--text); font-weight: 600; }

.contact-image { text-align: center;}



.profile-placeholder img {
    width: clamp(140px, 35vw, 300px);
    height: clamp(140px, 35vw, 300px);
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%) brightness(80%);
    transition: filter 0.5s ease;
    box-shadow: 0 0 20px var(--accent);
}

.profile-placeholder img:hover {
    filter: none;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--accent);
}

.footer .container {
    max-width: 100%;
    width: 100%;
    padding: 0 5rem;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    gap: 2rem;
}

.footer-logo { justify-self: start; }

.footer-logo .logo-circle.small {
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    width: max-content;
    margin: 0 auto;   
}

.footer-main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: var(--text-base);
}

.footer-legal-nav-pipes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-main-nav a,
.footer-legal-nav-pipes a {
    color: var(--text-sec);
    transition: color var(--trans);
    white-space: nowrap;
}

.footer-legal-nav-pipes a {
    font-size: 0.9rem;
    opacity: 0.8;
    padding: 0.25rem;
}

.pipe {
    color: var(--accent);
    opacity: 0.6;
}

.footer-main-nav a:hover,
.footer-legal-nav-pipes a:hover {
    color: var(--accent);
}

.footer-links a {
    color: var(--text-sec);
    transition: color var(--trans);
    white-space: nowrap;
}

.footer-links a:hover { color: var(--accent); }

.footer-partners {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    align-items: center;
}

.footer-partners img {
    height: 50px;
    width: 140px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity var(--trans);
    object-fit: contain;
    box-sizing: content-box;
    padding: 1rem;
    flex-shrink: 0;
}

.footer-partners img:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright::before {
    content: '';
    display: block;
    width: 2.5%;
    height: 1px;
    background: var(--accent);
    margin: 1rem auto 0.5rem;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* logoshadow */
@keyframes sleeping-machine {
    0% { 
        box-shadow: 0 0 20px var(--accent);
    }
    50% { 
        box-shadow: 0 0 60px var(--accent), 
                    0 0 100px rgba(100, 115, 151, 0.3);
    }
    100% { 
        box-shadow: 0 0 20px var(--accent);
    }
}



/* ========== Content-Seiten (Privacy, Impressum, Services etc.) ========== */
.content-page h1 { margin-bottom: 2rem; }
.content-page h2 { margin: 3rem 0 1.5rem 0; }
.content-page h3 { margin: 2rem 0 1rem 0; }
.content-page p { margin-bottom: 1.5rem; }
.content-page ul { margin: 1rem 0 2rem 2rem; }
.content-page ul li { margin-bottom: 0.5rem; }
.content-page strong { color: var(--accent); }


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    :root {
        --section-pad: 3rem 0;
    }
/*     >>>>>HAMBURGER<<<<<<<   */ 
    .navbar {position: fixed; height: 40px;}
        
    .nav-container {
        justify-content: flex-start;
        align-items: center;
        padding: 1px var(--gutter);
    }
    .nav-menu { display: none; }
    .hamburger { 
        display: flex;
        position: absolute;             
        left: 0; 
        top: 0;
        bottom: 0;         
        padding: 0 12px;  
        justify-content: center;
        background: var(--accent);
        height: 100%;
    }

    

    .hamburger.active {
        background: #b91c1c;
        
    }
       
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-menu.active {  
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 75%;
        padding: 1rem 0 1.5rem;
        flex-direction: column;
        border-right: 1px solid var(--accent);
        border-bottom: 1px solid var(--accent);
        background: var(--primary);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(100, 115, 151, 0.2);
        animation: slideDown 0.3s ease;
    }
    
    
    .nav-menu.active a {       
        padding: 1rem var(--gutter);
        /*border-bottom: 1px solid var(--accent);*/
    }

    .nav-menu.active a:hover {
        background: linear-gradient(90deg, var(--accent), rgba(100, 115, 151, 0.3));
        color: white;
        transform: translateX(5px);
        border-left: 3px solid var(--bracket);
    }
   
    @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
    }

    /* >>>>END HAMBURGER END<<<<   */   
    .logo-circle { width: 120px; height: 120px; }

    .console-container {margin: 1rem auto;}
    .console-line {font-size: 1rem; } 
    
    .hero {min-height: 100vh;}
    .hero-content p {
        margin: 0 auto 1rem;    
    }

    .cta-container { margin: 0rem auto 0; }
    .cta-question { padding: 1rem; min-height: 3rem; }
    .cta-button { padding: 1rem; font-size: 1.1rem; }

    .services-grid,
    .philosophy-grid { grid-template-columns: 1fr; }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer .container { padding: 0; }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        justify-items: center;
    }
    
    .footer-links { order: 1; }
    .footer-partners { order: 2; justify-content: center; }
    .footer-logo { order: 3; justify-self: center; margin-bottom: 1rem;}
    .footer-logo .logo-circle.small { width: 70px; transform: none;}
    .footer-copyright { order: 4; }

    .footer-legal-nav-pipes {
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --h1: 1.8rem;
        --h2: 1.5rem;
        --h3: 1.3rem;
        --text-base: 1rem;
        --section-pad: 2rem 0;
        --gutter: 1rem;
    }

           
    .hero-container {padding: 1rem}
    /*.hero-content p {margin: 0 0.1rem 1rem 1rem;}*/
    .hero { min-height: calc(95vh - 40px); }
    .hero-logo { margin-bottom: 4rem; }
    
    .console-line { font-size: 1rem; }
    
    .cta-container { margin: 1rem auto 0; }
    .cta-question { padding: 1rem; min-height: 3rem; }
    .cta-button { padding: 1rem; font-size: 1.1rem; }

    .scroll-indicator {bottom: 25px;}
     .arrow-down {
        margin-top: 0rem;
    }
    
    .service-card { padding: 1.5rem; }
    .service-icon { width: 50px; height: 50px; }
    
    .philosophy-item {
        display: flex;
        flex-direction: column; /* <- Icons standardmässig oben */
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
        transition: transform var(--trans);
    }

    .philosophy-icon {width: 35px; height: 35px;}
    
     .logo-testimonial-container {
        min-width: 100%; /*domcom test*/
    }
    
    .logo-track { 
        padding: 2rem 1rem;  
        min-height: 9rem; 
    }
    
    .logo-testimonial-container {
        max-width: 95%;
    }
    
    .logo-item { 
        height: 100px;          
    }
    
    .profile-placeholder img { width: 150px; height: 150px; }
    
     .footer-legal-nav-pipes {
        gap: 0.5rem;
    }

    .footer-partners img {
        height: 35px;
        width: 100px;
    }
}

@media (hover: none) {
    .service-card:hover,
    .logo-item:hover,
    .footer-partners img:hover {
        transform: none;
        opacity: initial;
    }
}

@media (max-width: 1023px) and (orientation: landscape) {
    .hero { min-height: 100vh; }
    .hero-logo { margin-bottom: 1.5rem; }
    .logo-circle { width: 120px; height: 120px; }
    .cta-container { margin: 2rem auto 0; }
}