
/* Variables */
:root {
    --text-secondary: #333333; /* Fallback value */
    --border-color: #DEDEDE;
    --background-light: #f8f8f8;
    --hover-background: #F9F9EC;
    --link-blue: #0068b4;
    --shadow-default: 1px 4px 30px 0 rgba(0,0,0,.2);
    --shadow-yellow: 1px 4px 30px 0 rgba(255,248,33,0.9);
}

/* Base Styles */
.anz_highlite {
    transition: 0.5s;
    width: 97%;
    margin: 10px 20px 30px;
    padding: 30px;
    text-align: left;
    border: 1px solid var(--border-color);
    position: relative;
    background: #fff;
    box-shadow: var(--shadow-default);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--text-secondary);
}

.head1 {
    font-size: 1.3em;
    margin: 0 0 10px 0 !important;
    color: var(--text-secondary);
}

/* Image Styles */
.aktionsimg {
    width: 100%;
    max-width: 400px;
    height: auto;
    float: left;
    margin: 0 20px 20px 0;
    box-sizing: border-box;
}

img.artikel_image {
    border: 0;
    margin: 5px 5px 5px 30px;
    float: right;
    width: 55%;
    border-radius: 5px;
}

/* Typography */
b {
    color: var(--text-secondary);
}

.art_titel {
    margin-left: 20px;
}

a.art_titel {
    color: var(--link-blue);
    text-decoration: none;
}

a.art_titel:hover,
a.art_titel:focus {
    text-decoration: underline;
}

.art_text,
.param,
.art_preis {
    text-align: left;
    margin: 0 20px;
}

.art_preis {
    font-size: 22px;
    color: #000000;
}

.ktitle {
    font-size: 1.4em;
    text-align: left !important;
    margin: 10px 10px 0 20px;
}

/* Layout Components */
.cleary {
    clear: both;
}

#bwrap,
#bwrap1 {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    margin: 10px 0 10px 25%;
    float: left;
}

/* Card Styles */
.artikel1 {
    border: 1px solid #eaeaea;
    max-width: 600px;
    height: auto;
    background: var(--background-light);
    padding-right: 20px;
    margin-bottom: 15px;
}

.geraetekl {
    width: 100%;
    float: left;
    margin-top: 30px;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    box-shadow: var(--shadow-yellow);
}

.geraetekl > div {
    height: auto;
    padding: 10px 10px 20px;
}

/* Interactive Elements */
.flat-button {
    background-color: transparent;
    border: 2px solid red;
    color: red;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.flat-button:hover,
.flat-button:focus {
    background-color: red;
    color: white;
    outline: none;
}

/* Hover Effects */
.geraet:hover .title,
.geraet:focus .title,
.geraetekl:hover .ktitle,
.geraetekl:focus .ktitle {
    background: var(--hover-background);
    color: #000;
}

.geraetekl:hover,
.geraetekl:focus {
    background: var(--hover-background);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .aktionsimg {
        float: none;
        margin: 0 0 20px;
    }

    img.artikel_image {
        margin: 5px;
        float: none;
        width: 97%;
    }

    .ktitle {
        margin: 0 10px;
        width: auto !important;
    }

    .art_text {
        margin: 0 20px 20px;
    }

    .geraetekl {
        width: 99%;
    }

    #bwrap,
    #bwrap1 {
        margin: 10px 0;
        float: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .anz_highlite,
    .flat-button {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .flat-button,
    .geraetekl {
        box-shadow: none;
        border: 1px solid #000;
    }
}
