*{
    margin: 0;
    padding: 0;
}

body {
    font-family: "Golos Text", sans-serif;
}

@font-face {
    font-family: 'Golos Text';
    src: url('fonts/GolosText-VariableFont_wght.ttf') format('ttf');
    font-display: swap;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar a {
    text-decoration: none;
}

.navbar a:hover {
    color: #018FE0
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    list-style: none;
    text-align: center;
    font-size: Medium;
    font-weight: 500;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.5s;
}

.nav-links li {
    padding: 15px 0; 
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #28156F; 
    font-size: 1.2rem; 
    transition: color 0.3s;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #28156F;
    transition: 0.4s;
}

.menu:hover span {
    background-color: #018FE0; 
}

.menu-toggle { 
    display: none; 
}

.menu-toggle:checked ~ .menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle:checked ~ .menu span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked ~ .menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle:checked ~ .nav-links {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

#Logo {
    height: 4rem
}

h1 {
    margin: 2.5rem 1rem 0;
    font-size: 200%;
    font-weight: 700;
}

h2 {
    margin: 3rem 1rem 0;
    font-size: 140%;
    font-weight: 650;
}

h3 {
    margin: 0.5rem 1rem 0;
    font-size: 110%;
    font-weight: 600;
}

article {
    margin: 1rem 1rem 0;
    font-size: 90%;
}

.first {
    font-weight: 700;
}

.Text {
    padding: 1rem;
    margin: 0.5rem 1.5rem 0;
    font-size: 90%;
}

.Text li {
    margin-top: 0.5rem;
}

.kontakt {
    margin: 2rem 1rem 2rem;
    background-color: #28156F;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 90%;
    transition: transform 0.2s, background 0.3s;
    min-width: 200px;
}

.kontakt a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.kontakt:hover {
    background-color: #018FE0;
    transform: translateY(-2px);
}

.info {
    margin: 0 1rem 3rem 1rem;
    font-size: 90%;
    font-weight: 450;
    border-top: 2px solid #28156F;
    padding-top: 3rem;
    line-height: 1.95;
}

.info a {
    text-decoration: none;
    color: #28156F;
    transition: color 0.3s;
}

.info a:hover {
    color: #018FE0
}

#icon {
    height: 0.8rem;
}

footer {
    margin-left: 1rem;
    margin-right: 1rem;
    text-align: center;
    padding: 2rem;
    color: #28156F;
    font-size: 90%;
    font-weight: 450;
    border-top: 2px solid #28156F;
    padding-top: 2rem;
}

footer a {
    text-decoration: none;
    color: #28156F;
    transition: color 0.3s;
}

footer a:hover {
    color: #018FE0
}

#chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 1rem;
    z-index: 2000;
    display: flex;
    align-items: center;
}

#chat-bubble {
    background: #28156F;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    animation: attentionShake 10s infinite;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

#chat-bubble:hover {
    animation: none; 
    transform: scale(1.1);
    background: #018FE0;
}

#chat-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
}

#chat-container {
    margin: 0 1rem 0 1rem;
    position: fixed;
    bottom: 90px;
    right: 0;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    font-family: inherit;
}

#chat-header {
    font-size: 22px;
    background: #28156F;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

#chat-window {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

#close-chat:hover {
    color: #018FE0;
    transform: scale(1.2);
}

#clear-Chat {
    background:none; 
    border:none; 
    color:white; 
    cursor:pointer; 
    font-size:15px; 
    margin-right:10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

#clear-Chat:hover {
    color: #018FE0;
    transform: scale(1.2);
}

.bot-msg, .user-msg {
    padding: 10px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-msg { background: #e0e0e0; align-self: flex-start; color: #333; }
.user-msg { background: #28156F; color: white; align-self: flex-end; }

#chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

#user-input {
    flex: 1;
    border: 2px solid #28156F;
    padding: 8px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border: 2px solid #018FE0;
}

#send-btn {
    background: #28156F;
    color: white;
    border: none;
    padding: 0 15px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

#send-btn:hover {
    background-color: #018FE0;
}

@keyframes attentionShake {
    0%, 90% { transform: rotate(0); }
    92% { transform: rotate(15deg); }
    94% { transform: rotate(-15deg); }
    96% { transform: rotate(10deg); }
    98% { transform: rotate(-10deg); }
    100% { transform: rotate(0); }
}

@keyframes chatPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px #018FE0; }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
}

.pulse-animation {
    animation: chatPulse 0.6s ease-out;
}

.chat-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #28156F;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
}

.chat-button:hover {
    background-color: #018FE0;
    color: white !important;
}

@media (min-width: 600px) {
    .menu { 
        display: none;
    }

    .nav-links {
        display: flex !important;
        justify-content: space-between;
        flex-direction: row;
        position: static;
        max-height: none !important;
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none;
    }

    .nav-links li {
        margin-left: 30px;
        padding: 0;
    }

    .nav-links a {
        font-size: 110%;
    }

    .nav-links a:hover {
        color: #018FE0;
    }

    h1 {
        margin: 2.5rem 1.5rem 0;
        font-size: 263%;
    }

    h2 {
        margin: 3rem 1.5rem 0;
        font-size: 160%;
    }

    h3 {
        margin: 0.5rem 1.5rem 0;
        font-size: 140%;
    }

    article {
        margin: 1rem 1.5rem 0;
        font-size: 110%;
    }

    .Text {
        margin: 0.5rem 2.5rem 0;
        font-size: 110%;
    }

    .kontakt {
        margin: 3rem 1.5rem 3rem;
        font-size: 110%;
    }

    .info {
        font-size: 110%;
        margin: 0 1.5rem 3rem 1.5rem;
    }

    #icon {
        height: 1rem;
    }

    footer {
        font-size: 110%;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 52.8px;
    }

    h2 {
        font-size: 190%;
    }

    h3 {
        font-size: 160%;
    }
}

@media (min-width: 1440px) {
    .nav-links a {
        font-size: 130%;
    }
}