/* --- Globales Box-Sizing --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Grundlayout --- */
body {
    font-family: Arial, sans-serif;
    background: #f2f2f2 url('assets/img/bg.jpg') repeat;
    background-size: 100px 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* --- Logo Bereich --- */
.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    max-width: 160px;
    height: auto;
    display: inline-block;
}

/* --- Header Bereich --- */
.site-header {
    padding: 0px 0 20px 0;
}

.header-container {
    max-width: 550px;
    background: #ffffff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.08);
    text-align: center;
}

h1 {
    font-size: 26px;
    margin: 10px 0;
    color: #333;
}

.subline {
    font-size: 17px;
    color: #555;
    margin: 10px 0 20px 0;
    line-height: 1.5;
}

.header-benefits {
    margin-top: 20px;
}

.header-benefits h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.header-benefits ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
    color: #555;
    text-align: left;
}

.header-benefits ul li {
    margin-bottom: 8px;
}

.start-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 24px;
    background-color: #ff6f61;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.start-button:hover {
    background-color: #e34c3a;
}

/* --- Formular Bereich --- */
.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 550px;
    margin: 20px auto;
}

form {
    display: flex;
    flex-direction: column;
}

input, button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
}

#result {
    margin-top: 20px;
}

/* --- Produktkarten-Layout --- */
.products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.product-info .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.price {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    font-weight: bold;
}

.buy-button {
    display: inline-block;
    padding: 10px 15px;
    background: #ff9900;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.buy-button:hover {
    background: #e68a00;
}

/* --- Footer Bereich --- */
footer {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- Lade-Spinner --- */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsive Anpassungen für kleine Displays --- */
@media (max-width: 600px) {
    .header-container,
    .container {
        padding: 15px;
        margin: 10px 10px;
        max-width: 95%;
    }

    h1 {
        font-size: 22px;
    }

    .subline {
        font-size: 16px;
    }

    .header-benefits ul {
        font-size: 15px;
    }
}
