:root {
    --flieder: #C8A2C8;
    --flieder-dark: #a57ca6;
    --flieder-light: #f4e8f8;
    --text: #333333;
    --bg: #ffffff;
    --border: #e0e0e0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.body-site,
body.component-only,
body.error-page {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #f7f7fb;
}

/* Wrapper */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    background: var(--flieder-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.4rem 1.25rem;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo img {
    max-height: 48px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--flieder-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    min-width: 220px;
}

.header-cart {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--flieder);
    background: var(--flieder-light);
    font-size: 0.9rem;
}

/* Navigation */
.main-nav {
    background: var(--flieder);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.25rem;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.main-nav a {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .current a {
    background: #ffffff;
    color: var(--flieder-dark);
}

/* Banner */
.banner {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.25rem;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

/* Layout */
.main {
    flex: 1 0 auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
  
}

/* Sidebars */
.sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border);
}

/* Content */
.content {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* Messages */
.alert,
.system-message {
    border-radius: 10px;
}

/* Produktkarten (allgemeines Shop-Feeling) */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--flieder-light);
    border-radius: 14px;
    border: 1px solid rgba(200, 162, 200, 0.6);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.product-card img {
    max-width: 100%;
    border-radius: 10px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.product-price {
    font-weight: 700;
    color: var(--flieder-dark);
    margin-top: 0.25rem;
}

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--flieder-dark);
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: #8e6494;
    transform: translateY(-1px);
}

/* Bottom-Module */
.bottom-modules {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
}

/* Footer */
.footer {
    background: #222;
    color: #ccc;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer a {
    color: var(--flieder-light);
    text-decoration: none;
}

/* Error page */
.error-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

input[type="search"] {
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 991px) {
    .content-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-left,
    .sidebar-right {
        order: 2;
    }

    .content {
        order: 1;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .main-nav ul {
        flex-direction: column;
    }

    .header-right {
        flex-direction: column;
        align-items: stretch;
    }
}