/* Allgemeine Stileinstellungen */
#cookieConsentBanner body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

#cookieConsentBanner .container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

#cookieConsentBanner .cookie-header {
    background-color: #4caf50;
    color: #fff;
    padding: 20px;
    text-align: center;
}

#cookieConsentBanner .footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Buttons */
#cookieConsentBanner .button {
    background-color: #008cba;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px; /* Adjusted for mobile readability */
    margin: 4px 2px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#cookieConsentBanner .button:hover {
    background-color: #005f73;
}

/* Formulare */
#cookieConsentBanner .form-group {
    margin-bottom: 15px;
}

#cookieConsentBanner .form-group label {
    display: block;
    margin-bottom: 5px;
}

#cookieConsentBanner .form-group input[type="text"],
#cookieConsentBanner .form-group input[type="email"],
#cookieConsentBanner .form-group input[type="password"],
#cookieConsentBanner .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Navigation */
#cookieConsentBanner .navbar {
    overflow: hidden;
    background-color: #333;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

#cookieConsentBanner .navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

#cookieConsentBanner .navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* Tabellen */
#cookieConsentBanner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#cookieConsentBanner table,
#cookieConsentBanner th,
#cookieConsentBanner td {
    border: 1px solid #ddd;
}

#cookieConsentBanner th, 
#cookieConsentBanner td {
    padding: 10px;
    text-align: left;
}

#cookieConsentBanner th {
    background-color: #4caf50;
    color: white;
}

/* Design for the Cookie Banner */
#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 33%;
    max-width: 600px;
    background-color: rgba(51, 51, 51, 0.9); /* slightly transparent */
    color: #fff;
    padding: 40px; /* Adjusted padding for better balance */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    animation: slideIn 0.5s ease-in-out;
}

#cookieConsentBanner {
    animation: slideIn 0.75s cubic-bezier(0.25, 1, 0.3, 1); /* Anpassung für ein natürlicheres Gleiten */
}

@keyframes slideIn {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

#cookieConsentBanner .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    margin-left: 10px;
}

#cookieConsentBanner .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cookieConsentBanner .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

#cookieConsentBanner .slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

#cookieConsentBanner input:checked + .slider {
    background-color: rgba(85, 170, 225, 0.925);
}

#cookieConsentBanner input:checked + .slider:before {
    transform: translateX(24px);
}

#cookieConsentContent {
    width: 70%;
    text-align: left;
    padding-right: 20px; /* Adjusted for better spacing */
}

#cookieConsentButtons {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#cookieConsentButtons label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: bold;
    white-space: nowrap;
	justify-content: flex-end;
}

#cookieConsentButtons button {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 15px;
    padding: 10px 18px;
    background-color: #ffffff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#cookieConsentButtons button:hover {
    background-color: #f1f1f1;
}

/* Medienanfragen */
@media (min-resolution: 192dpi) {
    #cookieConsentBanner {
        width: 95%; /* Expand to almost full width for better mobile appearance */
        padding: 30px;
        text-align: center;
        align-items: flex-start;
        font-size: 0.9em; /* Adjusted to a more readable size */
        flex-direction: column;
    }

    #cookieConsentContent {
        width: 100%;
        padding-right: 0;
        margin-bottom: 10px;
    }
	
	#cookieConsentBanner .toggle-switch {
    width: 56px;
    height: 29px;
    margin-left: 25px;
    }
	
	#cookieConsentBanner .slider:before {
    height: 23px;
    width: 23px;
    }

    #cookieConsentButtons {
        width: 100%;
        align-items: flex-end;
		padding-right: 30px;
        display: flex;
        flex-direction: column;
        gap: 10px; /* Adding spacing between buttons */
    }

    #cookieConsentButtons label {
		justify-content: flex-end;
        margin-bottom: 13px;
		padding-right: 20px;
    }

    #cookieConsentBanner button {
        font-size: 0.8em; /* Adjusted for better mobile display */
        padding: 8px 18px;
		margin-right: 17px;
    }
}
