/* Modern, Responsive & Accessible Styles */

:root {
    --primary-color: #005a9e; /* Strong contrast blue */
    --secondary-color: #c06000; /* Higher contrast dark orange for accessibility */
    --background-color: #f9f9f9;
    --text-color: #222;
    --button-hover: #003f7f;
    --focus-outline: #ffcc00;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    text-align: center;
}

header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shorten-box input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.tooltip {
    cursor: help;
    font-size: 14px;
    margin-left: 5px;
    color: var(--primary-color);
}

small {
    font-size: 12px;
    color: #666;
}

.center {
    display: flex;
    justify-content: center;
}

.sponsor-box {
    background: #004466;  /* Dunkles, barrierefreies Blau */
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.sponsor-box h2 {
    margin-bottom: 10px;
}

.info-box {
    background-color: #f0f8ff; /* Hellblau für gute Lesbarkeit */
    border: 2px solid #0077cc; /* Blaue Umrandung */
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
    font-size: 16px;
    color: #333;
}

.info-box h3 {
    color: #005fa3;
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.info-box ul {
    list-style-type: disc;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .info-box {
        max-width: 90%;
        padding: 10px;
    }
}

button {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover, button:focus {
    background: var(--button-hover);
    outline: 3px solid var(--focus-outline);
}

.donate {
    margin-top: 20px;
}

.btn-paypal, .btn-coffee {
    display: inline-block;
    padding: 10px 15px;
    margin: 10px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.btn-paypal {
    background: #003087;
}

.btn-coffee {
    background: var(--secondary-color);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 2px solid #8a3d00; /* Stronger contrast */
}

.link-list {
    margin-top: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Abstand zwischen den Links */
}

.link-list a {
    display: block;
    padding: 10px;
    background: #eef4ff;
    color: var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.link-list a:hover {
    background: var(--primary-color);
    color: white;
}


footer {
    position: relative;
    margin-top: 20px;;
    z-index: 2000 !important; /* Höher als das Cookie-Banner */
    background: #005a9e !important; /* Zum Test sichtbar */
    color: rgb(255, 255, 255) !important;
    min-height: 100px;
    padding: 20px;
}


footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.paypal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh; /* Zentrierung innerhalb der Hälfte der Seite */
    text-align: center;
    flex-direction: column;
}

#paypal-button-container {
    margin-top: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    input, button {
        font-size: 14px;
    }
}

/* Cookie-Banner-Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    z-index: 1000;
    text-align: left;
    display: none; /* Nicht anzeigen, bis es aktiviert wird */
    flex-direction: column;
    box-sizing: border-box;
    font-size: 14px;
    max-width: 100vw; /* Stellt sicher, dass das Banner nicht breiter als das Viewport wird */
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    padding: 10px 0;
}

.cookie-options {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.cookie-options button {
    margin-right: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-options button.accept {
    background-color: #2e7d32; /* Dunkleres Grün */
    color: white;
}

.cookie-options button.reject {
    background-color: #c62828; /* Dunkleres Rot */
    color: white;
}

.cookie-options button.manage {
    background-color: #1565c0; /* Dunkelblau */
    color: white;
}

.cookie-details {
    margin-top: 20px;
    display: none;
}

.cookie-details h3 {
    margin-top: 0;
}

.cookie-details ul {
    list-style-type: none;
    padding: 0;
}

.cookie-details li {
    margin-bottom: 10px;
}
