/* ---- MAIN DESIGN ONLINESHOP ---- */

*                               { margin: 0; padding: 0; }
body                            { padding: 0; font-family: Arial, sans-serif; height: 100vh; }
#header                         { background: #fff; padding: 30px; text-align: center; box-shadow: 0 0 5px rgba(0,0,0,0.3); }
#header li                      { list-style-type: none; display: inline-block; margin: 0 30px; border-bottom: 2px solid #fff; }
#header li                      { line-height: 30px; position: relative; }
#header li:after                { content: ''; display: block; position: absolute; top: 8px; right: -31px; width: 2px; height: 15px; }
#header li:after                { background: #aaa; }
#header a                       { display: block; padding: 0 5px; color: #000; text-decoration: none; }
#header .logo                   { margin-bottom: 30px; }
#header .active                 { border-color: #000; }
#main {
    display: flex; /* Flexbox aktivieren */
    gap: 20px; /* Abstand zwischen Sidebar und Content */
    padding: 30px;
}
#main .messages                 { margin-bottom: 20px; }
#main .msg                      { padding: 10px 15px; background: #eee; border-radius: 5px; color: #333; list-style-type: none; }
#footer                         { background: #eee; padding: 30px; }

/* ---- ÜBERSCHRIFTEN ---- */

h1                              { font-size: 1.5rem; margin-bottom: 10px; color: #333; }
h2, h3                          { color: #0056b3; border-bottom: 2px solid #f1f1f1; padding-bottom: 5px; }

/* ---- WARENKORB ONLINESHOP ---- */

.cart-table                     { width: 100%; border-collapse: collapse; margin-top: 20px; border-radius: 5px; }
.cart-table th, .cart-table td  { border: 1px solid #ddd; padding: 8px; text-align: left; }
.cart-table th                  { background-color: #f2f2f2; font-weight: bold; }
.cart-table tr:nth-child(even)  { background-color: #f9f9f9; }
.cart-table tr:hover            { background-color: #f1f1f1; }
.cart-table a                   { color: #3094c2; text-decoration: none; }
.cart-table i                   { display: inline-block; width: 20px; text-align: center; }
.row-cart                       { display: flex; grid-template-columns: 1fr 1fr; flex-direction: column; align-items: flex-start; margin-bottom: 15px; width: 100%; }
.row-cart input, .row-cart select { width: 100%; max-width: 300px; padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.row-cart select                { background-color: #fff; cursor: pointer; }
.row-cart input::placeholder    { color: #aaa; }


/* ---- BOXLIST ITEMS ONLINESHOP UND BESTELLBESTÄTIGUNG ---- */

.boxlist                        { display: flex; flex-wrap: wrap; list-style-type: none; padding: 0; margin: 0; width: 100%; }
.boxlist li                     { flex: 0 1 300px; margin: 15px; padding: 20px; background: #fff; border-radius: 5px; box-shadow: 0 0 5px rgba(0,0,0,0.3); }
.price-info                     { margin: 20px 0; padding: 10px; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; }
.price-info .row                { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #ddd; }
.price-info .row:last-child     { border-bottom: none; }
.price-info .label              { font-weight: bold; flex: 0 0 150px; text-align: left; }
.price-info .value              { flex: 1; text-align: right; white-space: nowrap; }
.mail-link                      { color: #007bff; font-size: 25px; border: none; background: none; list-style: none; cursor: pointer; }
.confirmation-container         { background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 20px;
                                  max-width: 100%; margin: auto; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.confirmation-container p,
.confirmation-container li      { line-height: 1.6; }

/* ---- CAROUSEL ITEMS ONLINESHOP ---- */

.carousel                       { position: relative; max-width: 300px; margin: 0; overflow: hidden; width: 300px; height: 220px; }
.carousel                       { border-radius: 4px; }
.carousel-inner                 { display: flex; transition: transform 0.5s ease; }
.carousel-item                  { min-width: 100%; box-sizing: border-box; }
.carousel-item img              { width: 100%; display: block; }
.carousel-control-prev,
.carousel-control-next          { position: absolute; top: 50%; transform: translateY(-50%); cursor: pointer;
                                  background-color: rgba(0, 0, 0, 0.2); border: none; z-index: 1; border-radius: 50%;
                                  transition: background-color 0.3s ease, transform 0.3s ease; width: 30px;
                                  height: 30px; display: flex; justify-content: center; align-items: center; }
.carousel-control-prev:hover,
.carousel-control-next:hover    { background-color: rgba(0, 0, 0, 0.5); transform: translateY(-50%) scale(1.05); }
.carousel-control-prev::before,
.carousel-control-next::before  { content: ''; display: inline-block; border: solid white; border-width: 0 2px 2px 0; padding: 5px; transform: rotate(45deg); }
.carousel-control-prev::before  { transform: rotate(135deg); }
.carousel-control-next::before  { transform: rotate(-45deg); }
.carousel-control-prev          { left: 10px; }
.carousel-control-next          { right: 10px; }
.carousel-indicators            { display: flex; justify-content: center; margin-top: 10px; padding: 0; list-style-type: none;
                                  position: relative; bottom: 0; width: fit-content; margin-left: auto; margin-right: auto; }
.carousel-indicators li         { margin: 0 5px; cursor: pointer; background-color: gray; border-radius: 50%;
                                  height: 10px; width: 10px; padding: 0; display: inline-block; }
.carousel-indicators li.active  { background-color: black; }

/* ---- EINGABEFELDER UND BUTTONS FÜR NUTZER SHOP ---- */

form.split                      { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 30px; }
form .submit_div                { grid-column: 1 / span 2; }
.modern-button                  { background-color: #4CAF50; color: white; border: none; padding: 10px 20px;
                                  border-radius: 5px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; }
.modern-button:hover            { background-color: #45a049; }
.address-input                  { margin-top: 10px; padding: 15px; background-color: #f9f9f9; border: 1px solid #ddd;
                                  border-radius: 5px; display: none; }
.address-input.show             { display: block; }
.form-group                     { display: flex; align-items: center; margin-bottom: 10px; }
.full-width                     { grid-column: 1 / -1;  width: 100%; }
.form-group label,
.form-group span                { margin-right: 10px; font-size: 18px; }
.form-group input               { padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 1rem; height: 12px; }
.form-group select              { padding: 2px; border-radius: 5px; border: 1px solid #ccc; font-size: 20px; height: auto; line-height: normal; }
.info-icon                      { margin-left: 5px; color: #888; cursor: pointer; }
.info-icon:hover                { color: #555; }
.tooltip                        { position: relative; display: inline-block; }
.tooltip .tooltip-text          { visibility: hidden; width: 200px; background-color: #555; color: #fff; text-align: center;
                                  border-radius: 5px; padding: 5px; position: absolute; z-index: 1; bottom: 125%; left: 50%;
                                  margin-left: -100px; opacity: 0; transition: opacity 0.3s ease; }
.tooltip:hover .tooltip-text    { visibility: visible; opacity: 1; }
.modern-icon                    { font-size: 1.2rem; margin-left: 5px; }
.modern-button-small            { background-color: #008CBA; color: white; border: none; padding: 10px 20px; border-radius: 5px;
                                  cursor: pointer; font-size: 0.9rem; transition: background-color 0.3s ease; }
.modern-button-small:hover      { background-color: #007bb5; }
.small-modern-button            { background-color: #008CBA; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.small-modern-button:hover      { background-color: #007bb5; }
.modern-form                    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background-color: #fff; padding: 20px;
                                  border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 20px; }
.modern-form .form-group,
.modern-textarea                { display: flex; flex-direction: column; }

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form select             { padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 1rem; width: 100%;
                                  box-sizing: border-box; height: 42px; }
.modern-textarea                { grid-column: 1 / -1; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 1rem;
                                  width: 100%; box-sizing: border-box; height: auto; resize: vertical; }
.details-label                  { font-weight: bold; color: #0056b3; }
.details-value                  { font-weight: bold; color: darkslategrey; }

/* DESIGN CHECKOUT TEMPLATE */

.form-row                       { display: flex; justify-content: space-between; margin-bottom: 15px; }
.form-row input,
.form-row select                { width: 48%; padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.form-row select                { background-color: #fff; cursor: pointer; }
.form-row input::placeholder    { color: #aaa; }
input[type="text"],
input[type="email"],
select                          { width: 100%; padding: 10px; margin-bottom: 15px; font-size: 1rem; border: 1px solid #ccc;
                                  border-radius: 4px; }
.btn-dezent                     { background-color: #f1f1f1; color: #333; border: 1px solid #ccc; padding: 8px 15px;
                                  font-size: 1rem; border-radius: 4px; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.btn-dezent:hover               { background-color: #e0e0e0; color: #000; }
.btn-dezent:focus               { outline: none; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); }

/* ---- CARD WRAPPER FÜR NEUCONTAINER SHOP ---- */

.card-wrapper                       { max-width: 100%; margin: 0 60px 35px; padding: 20px 10px; overflow: hidden; }
.card-list .card-item               { list-style: none; }
.card-list .card-item .card-link    {width: 400px; display: block; background: #fff; padding: 18px; border-radius: 12px;
                                     transition: 0.2s ease; border: 2px solid transparent; text-decoration: none;
                                     box-shadow: 0 10px 10px rgba(0,0,0,0.05) }
.card-list .card-item .card-link:hover { border-color: #5372F0}
.card-list .card-link .card-image   {width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.card-list .card-link .badge        {color: #5372F0; padding: 8px 16px; font-size: 0.95rem; margin: 16px 0 18px;
                                     background: #DDE4FF; width: fit-content; border-radius: 50px; }
.card-list .card-link .badge.live   {color: #B25A2B; background: #EFE3D2 }
.card-list .card-link .badge.office { color: #205C20; background: #D6F8D6}
.card-list .card-link .badge.construction { color: #856404; background: #fff3cd}
.card-list .card-link .card-title   {font-size: 1.19rem; color: #000; font-weight: 600}
.card-list .card-link .card-button  {height: 35px; width: 35px; color: #5372F0; border-radius: 50%; margin: 30px 0 5px;
                                     background: none; cursor: pointer; border: 2px solid #5372F0; transition: 0.4s ease}
.card-list .card-link:hover .card-button { color: #fff; background: #5372F0;  }

/* SIDEBAR */

.sidebar                            { width: 15%; background-color: #f9f9f9; padding: 30px; border: 1px solid #ddd; }
.sidebar                            { border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }

/* FILTER MENU */

#filter-menu {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 18px;
    font-family: "Segoe UI", sans-serif;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#filter-menu h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.filter-block {
    margin-bottom: 24px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.filter-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-right: 20px;
}

.filter-title::after {
    content: "▾";
    font-size: 12px;
    color: #888;
    position: absolute;
    right: 0;
    top: 2px;
    transition: transform 0.2s ease;
}

.filter-options.hidden + .filter-title::after {
    transform: rotate(-90deg);
}

.filter-options label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #222;
    margin-bottom: 8px;
    padding-left: 4px;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.show-more-link {
    font-size: 13px;
    color: #007bff;
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
    text-decoration: none;
}

.show-more-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Button-Styling */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Preis-Eingabefelder */
.filter-options input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.filter-options input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Button-Gruppe */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

#filter-menu button,
#filter-menu .reset-button {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#filter-menu button {
    background-color: #007bff;
    color: white;
}

#filter-menu button:hover {
    background-color: #0056b3;
}

#filter-menu .reset-button {
    background-color: #6c757d;
    color: white;
}

#filter-menu .reset-button:hover {
    background-color: #5a6268;
}





/* ---- MOBILE ANZEIGE ONLINESHOP ---- */

@media only screen and (max-width: 600px) {
    #top                        { background: lime; }
    .menu                       { position: fixed; top: 0; left: -110vw; width: 100vw; height: 100vh; z-index: 1000; transition: all 1s; }
    .menu.open                  { left: 0; }
}
