:root{
    --primary-color: #242237;
    --secondary-color: #fff;
    --tertiary-color: #f0f0f0;
    --quaternary-color: #333;
    --quinary-color: #fff;
    --senary-color: #f0f0f0;
    --septenary-color: #000000;
    --octonary-color: #fff;
    --main-color: #4e83b1;
    --logo-color: #e8db1e;
    --button-accept-color: #28a745;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    background-color: var(--primary-color);
}

body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--quaternary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    min-width: 320px;
    max-width: 1200px;
}

header, footer{
    background-color: var(--secondary-color);
    color: var(--quaternary-color);
    padding: 10px;
    text-align: center;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden; /* SVG-Animation nicht sichtbar außerhalb */
}

/* SVG-Animation für alle Bildschirmgrößen */
.svg-element {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    animation: move 25s linear infinite;
}

@keyframes move {
    0% {
        left: 100%;
    }
    100% {
        left: -50px;
    }
}

footer {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    min-height: 100px;
    padding: 10px;
}



header h1{
    font-size: 1.5em;
}

main{
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}  

aside {
    width: 200px;
    background-color: var(--tertiary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.logo-sidebar-text{
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 auto;
}
.content{
    position: relative;
    flex-grow: 1;
    background-color: var(--secondary-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-items: center;
}
.robot-image{
    position: absolute;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.content-text{
    position: relative;
    height: 100%;
    width: 100%;
    height: 100%;
    top: 20px;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 auto;
    object-fit: cover;
    margin: 0 auto;
    overflow-y: scroll;
}
.contentText{
    position: relative;
    width: 100%;
    height: 100%;
    top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 auto;
    object-fit: cover;
    margin: 0 auto;
}


.logo-footer{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    padding-bottom: 20px;
    background-color: var(--tertiary-color);
    display: grid;
    justify-content: space-evenly;
    grid-template-columns: repeat(auto-fit, minmax(50px, 0.25fr));
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.logo-footer img{
    padding: 10px;

}

.logo-sidebar{
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
}

.cramer{
background-color: crimson;
border-bottom-right-radius: 25%;
padding: 10%;
}

.links{
    height: 80%;


}

.links a{ 
    display: inline-block;
    border-radius: 10px;
    border: 1px solid var(--quaternary-color);
    color: var(--quaternary-color);
    font-size: 1em;    
    padding: 10px;
}

.header-subtitle{
    font-size: 2em;
}


.links a:hover{
    color: var(--octonary-color);
    background-color: var(--quaternary-color);
}

.content-columns{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    padding: 0px 20px;
    width:100%;
    margin: 0 auto;
  
    height: 100%;
}

.content-column{
    width: 30%;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 3rem;
    border: 1px solid var(--tertiary-color);
}

.content-column a{
    text-decoration: none;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    
}

.content-column a:hover{
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.logo-footer-small{
    visibility: hidden;
}


.header-logo{
    /* background: linear-gradient(to right, var(--primary-color), var(--primary-color),var(--secondary-color));*/
    width: 120px;
    height: 100%;
    margin: 0 auto;
    border-radius: 10px;
    border: 5px solid var(--quaternary-color);
    padding: 2px;
}

.header-logo-path{
    fill: var(--quaternary-color);
}

/* Cookie-Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-content a {
    color: var(--logo-color);
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: var(--secondary-color);
}

.cookie-accept-btn {
    background-color: var(--logo-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.kostenContainer{
    width: 80%;
    margin: 0 auto;
    background-color: var(--tertiary-color);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    padding: 10px;
}

.kostenContainer .line{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cookie-accept-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.container {
    width: 80%;
    margin: 0 auto;
}

.hidden{
    display: none;
}

.flexRow{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.flexColumn{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.container.service ul{

    list-style: square;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}
.container.service ul li{
    margin: 10px 0;
    padding: 5px 0;
    text-align: left;
}

.largeNbold{
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}
.opacity-02 {
    opacity: 0.15;
}

.acjc{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes buttonAnimation {
    from {background-color: var(--primary-color);}
    to {background-color: var(--button-accept-color);}
    from {color: var(--secondary-color);}
    to {color: var(--primary-color);}
}
.service-button{
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    padding-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

.service-button:hover{
    background-color: var(--button-accept-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);

    animation: buttonAnimation 1s ease-in-out;
    
}



@media screen and (max-width: 800px) {

    aside { display: none; }
    .header-logo{
        width: 100px;
    }
    .header-subtitle{
        font-size: 1.5em;
    }
    .content-columns{
        padding: 40px 0 20px 0;
        flex-direction: column;
    }
    .logo-footer-small{
        visibility:visible;
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 100px;
        background-color: var(--tertiary-color);
        display: grid;
        justify-content: space-evenly;
        grid-template-columns: repeat(auto-fit, minmax(40px, 0.15fr));
        align-items: center;

    }

    
    .cramer{
        height: 50px;
        width: 50px;
    }
    .logo-footer{
        visibility: hidden;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-accept-btn {
        width: 100%;
    }
    
}

@media screen and (max-width: 500px) {

    .contentText{
        padding-bottom: 30px;
    }

    .header-logo{
        width: 80px;
    }

    .header-subtitle{
        font-size: 1em;
    }
    aside { display: none; }
    .content-columns{
        flex-direction: column;
        padding-bottom: 20px;
    }
    .content-column a{
        font-size: 0.8em;
    }

    .logo-sidebar-text-small {
        font-size: 0.7em;
    }
    
    .logo-footer{
        visibility: hidden;
    }
    
    /* Footer auf mobilen Geräten: nicht sticky, scrollt nach unten */
    footer {
        position: relative !important;
        min-height: auto;
    }
    
    /* Footer-Links auf mobilen Geräten kleiner anzeigen */
    footer .links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
        font-size: 0.85em;
    }
    
    footer .links a {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

@media screen and (max-height: 450px) {
    .content-columns{
        flex-direction: row;
    };

    main{
        min-height: 400px;
    }

    .logo-footer-small{
        height: 50px;
        display: none;
    }
    .logo-footer{
        display: none;
    }

    footer{
       position: relative !important;
       top: 10;
       left: 0;
       right: 0;
       width: 100%;
       height: 50px;
       padding: 0;
       margin: 0;
       border: 0;
    }

}

/* Responsive Anpassungen für Service-Seite */
@media screen and (max-width: 768px) {
    .container.service {
        width: 95% !important;
        padding: 10px !important;
    }
    
    .container.service h2,
    .container.service h3 {
        font-size: 1.2em !important;
        margin: 10px 0 !important;
    }
    
    .container.service p {
        font-size: 0.9em !important;
        line-height: 1.4 !important;
    }
    
    .container.service ul {
        padding: 10px 20px !important;
        font-size: 0.85em !important;
    }
    
    .container.service ul li {
        margin: 8px 0 !important;
        padding: 3px 0 !important;
    }
    
    .content-text h2 {
        font-size: 1.3em !important;
        margin: 10px 0 !important;
    }
    
    .content-text p {
        font-size: 0.9em !important;
    }
    
    .service-button {
        font-size: 0.9em !important;
        padding: 12px 20px !important;
    }
    
    .content-text {
        padding: 10px !important;
    }
}



/* Kontaktformular Styles */
.contact-form-wrapper {
    width: 50%;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--main-color) !important;
    box-shadow: 0 0 0 3px rgba(78, 131, 177, 0.1);
}

.contact-form button[type="submit"]:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.form-errors ul,
.form-success {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Anpassungen für Kontaktformular */
@media (max-width: 768px) {
    .contact-form-wrapper {
        width: 90%;
        padding: 15px;
        margin-top: 20px;
    }
    
    .contact-form {
        max-width: 100% !important;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    .contact-form button[type="submit"] {
        width: 100%;
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .container.service {
        width: 98% !important;
        padding: 8px !important;
    }
    
    .container.service h2,
    .container.service h3 {
        font-size: 1.1em !important;
        margin: 8px 0 !important;
    }
    
    .container.service p {
        font-size: 0.85em !important;
        line-height: 1.3 !important;
    }
    
    .container.service ul {
        padding: 8px 15px !important;
        font-size: 0.8em !important;
    }
    
    .container.service ul li {
        margin: 6px 0 !important;
        padding: 2px 0 !important;
    }
    
    .content-text h2 {
        font-size: 1.2em !important;
        margin: 8px 0 !important;
    }
    
    .content-text p {
        font-size: 0.85em !important;
    }
    
    .service-button {
        font-size: 0.85em !important;
        padding: 10px 18px !important;
        width: 90% !important;
        max-width: 300px !important;
    }
    
    .content-text {
        padding: 10px !important;
    }
}