@charset "UTF-8";

:root {
    --color-gold: #C5A572;
    --color-white: #ffffff;
    --color-black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    height: 100vh;
    background: #fff;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 2rem;
    background: rgba(255,255,255,0.95);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(197,165,114,0.3);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 3px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Hide alt text if image fails to load */
.logo-img[alt]:not([src*="data:"]):not([src^="http"]) {
    font-size: 0;
}

.logo-img::before {
    content: "";
    display: none;
}

.logo:hover {
    color: var(--color-gold);
}

.kontakt-btn {
    padding: 0.7rem 1.8rem;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.kontakt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: var(--color-gold);
    color: var(--color-black);
}

.breadcrumb {
    display: none !important;
}

.panels-container {
    display: flex;
    flex: 1;
    gap: 0.8rem;
    padding: 1rem;
    overflow: hidden;
}

.panel {
    position: relative;
    flex: 0.5;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.05, 0.6, 0.4, 0.9);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.panel-1 { background-image: url('/images/1.webp'); }
.panel-2 { background-image: url('/images/2.webp'); }
.panel-3 { background-image: url('/images/3.webp'); }
.panel-4 { background-image: url('/images/4.webp'); }
.panel-5 { background-image: url('/images/5.webp'); }
.panel-6 { background-image: url('/images/6.webp'); }
.panel-7 { background-image: url('/images/7.webp'); }
.panel-8 { background-image: url('/images/8.webp'); }
.panel-9 { background-image: url('/images/9.webp'); }
.panel-10 { background-image: url('/images/10.webp'); }

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0.85;
    transition: all 0.3s ease;
    z-index: 1;
}

.panel:hover::before {
    opacity: 0.7;
}

.panel:hover {
    flex: 5;
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.panel:hover::after {
    opacity: 1;
}

.panel-title {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.panel:hover .panel-title {
    opacity: 0;
}

.panel-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 600px;
    margin: 0 auto;
}

.panel:hover .panel-content {
    opacity: 1;
    pointer-events: auto;
}

.panel-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer {
    background: rgba(255,255,255,0.95);
    color: var(--color-black);
    padding: 2.5rem 2rem 1.5rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(197,165,114,0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197,165,114,0.2);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--color-gold);
    text-decoration: none;
    margin: 0 0.5rem;
}

.detail-page { 
    position: relative;
    overflow-y: auto; 
    min-height: 100vh;
    background-color: #000;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.detail-container { 
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.detail-overlay { 
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.detail-content { 
    position: relative !important;
    z-index: 10 !important;
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
    flex: 1 !important;
    padding: 8rem 2rem 4rem 2rem !important;
}

.detail-content h1 { 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 2rem; 
    text-align: center; 
    color: var(--color-white);
    line-height: 1.2;
}

.detail-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: var(--color-gold);
}

.detail-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
    background: rgba(197,165,114,0.15);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(197,165,114,0.3);
}

.detail-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

.detail-box { 
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 20px; 
    padding: 2.5rem; 
    text-align: center; 
    transition: transform 0.3s ease;
}

.detail-box:hover {
    transform: translateY(-5px);
}

.detail-box h3 { 
    font-size: 1.6rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: var(--color-gold); 
}

.detail-box p { 
    font-size: 1.05rem; 
    line-height: 1.7; 
    color: rgba(255,255,255,0.9);
}

.detail-text { 
    background: rgba(255,255,255,0.08); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 20px; 
    padding: 2.5rem; 
    margin-bottom: 2.5rem; 
}

.detail-text p { 
    font-size: 1.15rem; 
    line-height: 1.9; 
    margin-bottom: 1.5rem; 
    color: rgba(255,255,255,0.95);
}

.detail-text h3 { 
    font-size: 2rem; 
    font-weight: 700; 
    margin: 2rem 0 1.5rem; 
    color: var(--color-gold); 
}

.inline-link {
    color: var(--color-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(197,165,114,0.4);
    transition: all 0.3s ease;
}

.inline-link:hover {
    border-bottom-color: var(--color-gold);
    color: #D4B584;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.3rem;
}

.related-pages {
    background: rgba(197,165,114,0.15);
    border: 1px solid rgba(197,165,114,0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0 2rem 0 !important;
}

.related-pages h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    border-color: var(--color-gold);
}

.related-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
}

.related-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.detail-steps { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

.step { 
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 20px; 
    padding: 2.5rem; 
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number { 
    width: 65px; 
    height: 65px; 
    background: linear-gradient(135deg, #C5A572, #D4B584); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: var(--color-black); 
    margin: 0 auto 1.5rem; 
}

.step h3 { 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    text-align: center; 
    color: var(--color-white);
}

.step p { 
    font-size: 1.05rem; 
    line-height: 1.7; 
    text-align: center; 
    color: rgba(255,255,255,0.9);
}

.detail-highlight { 
    background: rgba(197,165,114,0.2); 
    border: 2px solid var(--color-gold); 
    border-radius: 20px; 
    padding: 2.5rem; 
    text-align: center; 
    margin-bottom: 3rem; 
}

.detail-highlight h3 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: var(--color-gold); 
    margin-bottom: 1rem; 
}

.detail-highlight p { 
    font-size: 1.25rem; 
    color: rgba(255,255,255,0.95);
}

.contact-info { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 3rem; 
}

.contact-box { 
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 20px; 
    padding: 2.5rem; 
    text-align: center; 
}

.contact-box h3 { 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: var(--color-gold); 
}

.contact-box p { 
    font-size: 1.15rem; 
    line-height: 1.7; 
    color: rgba(255,255,255,0.9);
}

.contact-box a { 
    color: var(--color-white); 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--color-gold);
}

.cta-btn { 
    display: block; 
    margin: 3rem auto 2rem !important;
    padding: 1.2rem 3.5rem; 
    background: var(--color-white); 
    color: var(--color-black); 
    border: none; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1.05rem; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197,165,114,0.4);
    background: var(--color-gold);
}

.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    z-index: 2000; 
    align-items: center; 
    justify-content: center; 
}

.modal.show { 
    display: flex; 
}

.modal-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.92); 
    backdrop-filter: blur(10px); 
}

.modal-content { 
    position: relative; 
    background: rgba(30,30,30,0.98); 
    backdrop-filter: blur(30px); 
    border: 1px solid rgba(197,165,114,0.3); 
    border-radius: 25px; 
    padding: 3rem; 
    max-width: 600px; 
    width: 90%; 
    z-index: 10; 
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close { 
    position: absolute; 
    top: 1.5rem; 
    right: 1.5rem; 
    font-size: 2.5rem; 
    color: var(--color-gold); 
    background: none; 
    border: none; 
    cursor: pointer; 
    line-height: 1; 
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content h2 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    color: var(--color-gold); 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.6rem; 
    font-weight: 600; 
    color: rgba(255,255,255,0.9);
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 1rem; 
    background: rgba(255,255,255,0.08); 
    border: 1px solid rgba(255,255,255,0.25); 
    border-radius: 12px; 
    color: var(--color-white); 
    font-size: 1rem; 
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus { 
    outline: none; 
    background: rgba(255,255,255,0.12); 
    border-color: var(--color-gold); 
}

.submit-btn { 
    width: 100%; 
    padding: 1.1rem; 
    background: linear-gradient(135deg, #C5A572, #D4B584); 
    color: var(--color-black); 
    border: none; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1.05rem; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197,165,114,0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message { 
    margin-top: 1rem; 
    padding: 1rem; 
    border-radius: 12px; 
    text-align: center; 
    font-weight: 600; 
    display: none;
}

.form-message.success { 
    background: rgba(76,175,80,0.25); 
    border: 1px solid #4CAF50; 
    color: #4CAF50; 
}

.form-message.error { 
    background: rgba(244,67,54,0.25); 
    border: 1px solid #F44336; 
    color: #F44336; 
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: var(--color-black);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #D4B584;
    box-shadow: 0 6px 16px rgba(197,165,114,0.5);
}

body.homepage .header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

body.homepage .logo {
    font-size: 3rem;
}

body.homepage .header.show {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-home-btn {
    display: inline-block;
    margin-bottom: 1.5rem !important;
    padding: 0.8rem 1.5rem;
    background: rgba(197,165,114,0.2);
    color: var(--color-gold);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid var(--color-gold);
}

.back-home-btn:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateX(-5px);
}

body.detail-page .header {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
}

body.detail-page .header .logo {
    color: #c5a572 !important;
    opacity: 1 !important;
}

body.detail-page .header .kontakt-btn,
body.detail-page .header #kontaktBtn {
    background: #c5a572 !important;
    color: #000 !important;
    opacity: 1 !important;
    border: 2px solid #c5a572 !important;
}

body.detail-page .header .kontakt-btn:hover,
body.detail-page .header #kontaktBtn:hover {
    background: transparent !important;
    color: #c5a572 !important;
}

@media (max-width: 768px) {
    body { 
        overflow-y: auto; 
        height: auto; 
    }
    
    .panels-container { 
        flex-direction: column; 
        padding: 0.5rem; 
        min-height: calc(100vh - 200px); 
    }
    
    .panel { 
        height: 100px; 
        border-radius: 12px; 
        flex: none; 
    }
    
    .panel:hover { 
        height: auto; 
        min-height: 200px; 
        flex: none; 
    }
    
    .panel-title { 
        writing-mode: horizontal-tb; 
        font-size: 0.9rem; 
        letter-spacing: 2px; 
    }
    
    .detail-content h1 {
        font-size: 2.5rem;
    }
    
    .detail-content h2 {
        font-size: 1.6rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}