/* =========================================================================
   OPHYR GLOBAL DESIGN SYSTEM (SINGLE SOURCE OF TRUTH)
   ========================================================================= */

/* 1. ROOT VARIABLES (COLORS & EFFECTS) */
:root {
    --gold-primary: #cdab7e;
    --gold-light: #e6c89c;
    --gold-dark: #a47d4e;
    --tile-bg: rgba(38, 28, 20, 0.65);
    --tile-border: rgba(255, 255, 255, 0.25);
    --text-color: #f0ece1;
    --muted-text: #b0a89f;
}

/* 2. BASE RESET & BODY */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #110c08; 
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

/* 3. TYPOGRAFIE ARCHETYPEN (4-STYLE SYSTEM) */
.typ-display {
    font-family: 'Outfit', sans-serif; font-weight: 200; font-size: clamp(40px, 8vw, 90px);
    letter-spacing: 15px; text-transform: uppercase; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.typ-sub {
    font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 16px;
    letter-spacing: 4px; text-transform: uppercase; line-height: 1.4;
}
.typ-body {
    font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 16px;
    letter-spacing: 0.5px; text-transform: none; line-height: 1.8;
}
.typ-accent {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase; line-height: 1.2;
}

/* 4. AMBIENT BACKGROUNDS & OVERLAY */
.bg-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(17, 12, 8, 0.5) 0%, rgba(17, 12, 8, 0.2) 50%, rgba(17, 12, 8, 0.7) 100%);
    z-index: 1; pointer-events: none;
}
.ambient-glow, .ambient-glow-2 {
    position: fixed; border-radius: 50%; z-index: 0; pointer-events: none;
}
.ambient-glow {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(205, 171, 126, 0.15) 0%, transparent 60%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    filter: blur(80px); animation: liquidBreathe 12s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.ambient-glow-2 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(164, 109, 62, 0.2) 0%, transparent 60%);
    top: 20%; left: 20%; transform: translate(-50%, -50%);
    filter: blur(60px); animation: liquidFlow 15s ease-in-out infinite alternate;
}
@keyframes liquidBreathe {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.7; }
    100% { transform: translate(-48%, -52%) scale(1.1) rotate(5deg); opacity: 1; }
}
@keyframes liquidFlow {
    0% { transform: translate(-50%, -50%); opacity: 0.5; }
    100% { transform: translate(-30%, -40%); opacity: 0.8; }
}

/* 5. NAVIGATION BAR (MASTER) */
.navbar {
    display: flex; align-items: center; gap: 0; padding: 24px 30px; width: 100%; position: fixed;
    top: 0; left: 0; z-index: 100; flex-wrap: nowrap;
    background: linear-gradient(to bottom, rgba(17, 12, 8, 1) 0%, rgba(17, 12, 8, 0.8) 40%, rgba(17, 12, 8, 0) 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    padding-bottom: 65px;
}
.home-btn {
    background-color: var(--gold-primary); border: none; border-top-left-radius: 12px; border-bottom-left-radius: 12px;
    padding: 10px 24px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
    transition: all 0.5s ease; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); flex-shrink: 0;
}
.logo-wings {
    width: 38px; height: 14px; margin-bottom: 2px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="white"><path d="M50,22 C40,12 25,6 0,12 C18,22 35,28 50,30 C65,28 82,22 100,12 C75,6 60,12 50,22 Z"/></svg>');
    background-repeat: no-repeat; background-position: center; background-size: contain;
}
.logo-text { color: white; font-weight: 700; font-size: 15px; letter-spacing: 2px; line-height: 1; }
.menu-tile {
    flex-grow: 1; background-color: var(--tile-bg); border: 0.5px solid rgba(220, 190, 140, 0.4); border-left: none;
    height: 52px; display: flex; align-items: center; justify-content: center; color: var(--text-color); text-decoration: none;
    font-size: 11px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); transition: all 0.5s ease; white-space: nowrap;
}
.menu-tile:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.menu-tile.active {
    background-color: rgba(247, 244, 238, 0.95); color: #110c08 !important; font-weight: 800 !important; font-size: 11.88px !important;
    box-shadow: 0 4px 15px rgba(247, 244, 238, 0.3), inset 0 0 0 1px rgba(205, 171, 126, 0.6);
}

/* 6. SYMBOLE & ACCORDIONS */
.accordion-item { cursor: pointer; }
.accordion-title { transition: color 0.4s ease; }
.accordion-item.open .accordion-title, .accordion-item.open .accordion-title span { color: var(--gold-primary); }
.toggle-icon { transition: transform 0.4s ease, color 0.4s ease; color: var(--muted-text); display:flex; align-items:center; justify-content:center; width:24px; height:24px; }
.toggle-icon svg { width:16px; height:16px; fill:currentColor; }
.accordion-item:hover .toggle-icon { color: white; }
.accordion-item.open .toggle-icon { transform: rotate(180deg); color: var(--gold-primary); }
.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; width: 100%; }
.accordion-item.open .accordion-content { grid-template-rows: 1fr; }
.accordion-inner { min-height: 0; display: flex; flex-direction: column; gap: 15px; opacity: 0; transform: translateY(-10px); transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s; padding-top:20px; }
.accordion-item.open .accordion-inner { opacity: 1; transform: translateY(0); padding-bottom:5px; }

/* 7. GLOBALE EFFEKTE & LIQUID IDLE STATE */
/* General 1.2s cubic transitions for all elements going idle/waking up */
.monolith, .faq-card, .info-card, .showcase-card, .login-card, .contact-form-container, .pricing-accordion, .hero-content, .index-item, .system-section, .typ-display, .typ-sub, .typ-body, .typ-accent,
.monolith *, .faq-card *, .info-card *, .showcase-card *, .login-card *, .contact-form-container *, .pricing-accordion *, .hero-content *, .index-item *, .system-section * {
    transition: color 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), backdrop-filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), -webkit-backdrop-filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), fill 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), -webkit-text-stroke 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), stroke-width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-idle .ambient-glow, body.is-idle .ambient-glow-2 { opacity: 0 !important; transition: opacity 3.5s ease-in-out !important; }

body.is-idle .monolith, body.is-idle .faq-card, body.is-idle .info-card, body.is-idle .showcase-card, body.is-idle .login-card, body.is-idle .contact-form-container, body.is-idle .pricing-accordion, body.is-idle .hero-content, body.is-idle .index-item, body.is-idle .system-section, body.is-idle .typo-context {
    background-color: rgba(22, 17, 13, 0.03) !important; background: rgba(22, 17, 13, 0.03) !important;
    backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
    border-color: transparent !important; box-shadow: inset 0 0 0 0.5px rgba(205, 171, 126, 1) !important;
    transition: background-color 3.5s ease-in-out, background 3.5s ease-in-out, backdrop-filter 3.5s ease-in-out, -webkit-backdrop-filter 3.5s ease-in-out, border-color 3.5s ease-in-out, box-shadow 3.5s ease-in-out !important;
}

body.is-idle .monolith *, body.is-idle .faq-card *, body.is-idle .info-card *, body.is-idle .showcase-card *, body.is-idle .login-card *, body.is-idle .contact-form-container *, body.is-idle .pricing-accordion *, body.is-idle .hero-content *, body.is-idle .index-item *, body.is-idle .system-section *, body.is-idle .typo-context * {
    background-color: transparent !important; background: transparent !important;
    color: #000000 !important; fill: #000000 !important; stroke: #000000 !important;
    border-color: #000000 !important; text-shadow: 0 0 0.8px rgba(0,0,0,1) !important;
    -webkit-text-stroke: 0.4px #000000 !important; stroke-width: 1.5px !important; box-shadow: none !important;
    transition: color 3.5s ease-in-out, fill 3.5s ease-in-out, stroke 3.5s ease-in-out, stroke-width 3.5s ease-in-out, border-color 3.5s ease-in-out, text-shadow 3.5s ease-in-out, -webkit-text-stroke 3.5s ease-in-out, box-shadow 3.5s ease-in-out, background-color 3.5s ease-in-out, background 3.5s ease-in-out !important;
}

body.is-idle .gold-btn, body.is-idle button, body.is-idle input { border-color: #000000 !important; }
body.is-idle .input-row { box-shadow: inset 0 -1.5px 0 0 #000000 !important; }
body.is-idle .monolith img, body.is-idle .showcase-card img, body.is-idle .info-card img { filter: brightness(0) opacity(1) !important; transition: filter 3.5s ease-in-out !important; }
body.is-idle video.video-background { filter: none !important; opacity: 1 !important; }

/* 8. MOBILE RESPONSIVENESS (NAVBAR) */
@media (max-width: 768px) {
    .ambient-glow, .ambient-glow-2 { display: none !important; }
    .menu-tile { background: rgba(0, 0, 0, 0.4) !important; border: 1px solid rgba(255, 255, 255, 0.25) !important; }
    .menu-tile.active { background-color: rgba(247, 244, 238, 0.95); color: #110c08 !important; font-weight: 800 !important; font-size: 11.88px !important; letter-spacing: 2px; box-shadow: 0 4px 15px rgba(247, 244, 238, 0.3), inset 0 0 0 1px rgba(205, 171, 126, 0.6); }
    .navbar { padding: 16px 15px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 95px; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent), linear-gradient(to bottom, black 40%, transparent 100%); mask-composite: intersect; -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent), linear-gradient(to bottom, black 40%, transparent 100%); -webkit-mask-composite: source-in; }
    .navbar::-webkit-scrollbar { display: none; }
    .menu-tile { padding: 0 16px; font-size: 11px; white-space: nowrap; letter-spacing: 1px; flex-shrink: 0; border-radius:12px; }
    .home-btn { flex-shrink: 0; }
}

@media (min-width: 769px) {
    .monolith-container, .monolith-wrapper, .anwendung-container, .showcase-grid, .login-grid, .hero-content, .info-cards-container, .pricing-grid, .login-card, .contact-form-container, .container:not(.navbar) {
        width: 60% !important; max-width: 1440px !important; min-width: 60% !important; margin-left: auto !important; margin-right: auto !important; flex-basis: 60% !important;
    }
}
