@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Lato:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* === DARK MODE (Default, wie das Firmenschild) === */
body {
    background-color: #000000;
    color: #e0e0e0;
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 5px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.top-bar {
    display: -webkit-flex;
    display: flex;
    justify-content: flex-end;
}

.theme-toggle {
    background: transparent;
    border: 1px solid #444;
    font-size: 24px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    color: #fff;
    transition: background 0.3s;
}

.theme-toggle:active {
    background: #333;
}

.header {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 2px solid #888;
    padding: 5px 20px;
    border-radius: 4px;
    background: #111;
}

@-webkit-keyframes flyAnimation {
    0%   { -webkit-transform: translateY(0px) scale(1); }
    50%  { -webkit-transform: translateY(-8px) scale(1.02); }
    100% { -webkit-transform: translateY(0px) scale(1); }
}
@keyframes flyAnimation {
    0%   { transform: translateY(0px) scale(1); }
    50%  { transform: translateY(-8px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

.header-logo {
    height: 75px;
    max-width: 100%;
    width: auto;
    margin-bottom: 0px;
    margin-right: 20px;
    -webkit-filter: grayscale(100%) contrast(500%);
    filter: grayscale(100%) contrast(500%);
    mix-blend-mode: lighten;
    -webkit-animation: flyAnimation 3.5s ease-in-out infinite;
    animation: flyAnimation 3.5s ease-in-out infinite;
}

.header h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 58px;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 400;
    text-transform: uppercase;
}

.header .subtitle {
    font-size: 22px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loading {
    text-align: center;
    margin-top: 100px;
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

.error-message {
    background-color: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}

.price-list {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    justify-content: space-between;
    max-width: 980px;
    margin: 0 auto;
}

.category-wrapper {
    width: 100%;
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    justify-content: space-between;
}

.category-header {
    width: 100%;
    font-family: 'Archivo Black', sans-serif;
    font-size: 20px;
    color: #ffffff;
    border-bottom: 1px solid #555;
    padding-bottom: 2px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.price-item {
    width: 33%; /* Drei Spalten auf iPad */
    background: transparent;
    padding: 2px 4px;
    border-radius: 0px;
    margin-bottom: 2px;
    border: none;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.price-item-header {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px dashed #333;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.item-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
    -webkit-flex: 1;
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-size: 15px;
    font-family: 'Archivo Black', sans-serif;
    color: #ffffff;
    white-space: nowrap;
}

.item-price-details {
    font-size: 10px;
    color: #888888;
    margin-top: 0px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.item-desc {
    font-size: 16px;
    color: #aaaaaa;
    line-height: 1.5;
}

.demo-notice {
    text-align: center;
    color: #888;
    width: 100%;
    margin-top: 40px;
    font-size: 14px;
}


/* === LIGHT MODE OVERRIDES === */

body.light-mode {
    background-color: #f5f5f5;
    color: #222;
}

body.light-mode .theme-toggle {
    border-color: #ccc;
    background: #fff;
    color: #000;
}

body.light-mode .theme-toggle:active {
    background: #e0e0e0;
}

body.light-mode .header {
    background: #ffffff;
    border-color: #888888; /* Silber/Grau bleibt als Akzent */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

body.light-mode .header h1 {
    color: #111111;
}

body.light-mode .header .subtitle {
    color: #666666;
}

body.light-mode .header-logo {
    -webkit-filter: grayscale(100%) contrast(500%) invert(1);
    filter: grayscale(100%) contrast(500%) invert(1);
    mix-blend-mode: multiply; /* Versteckt den weißen Hintergrund komplett */
}

body.light-mode .category-header {
    color: #111111;
    border-bottom-color: #cccccc;
}

body.light-mode .price-item {
    background: #ffffff;
    border-color: #cccccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .price-item-header {
    border-bottom-color: #eeeeee;
}

body.light-mode .item-name {
    color: #111111;
}

body.light-mode .item-price {
    color: #333333; /* Dunkelgrau/Schwarz statt Weiß */
}

body.light-mode .item-price-details {
    color: #666666;
}

body.light-mode .item-desc {
    color: #666666;
}

body.light-mode .loading {
    color: #222;
}

body.light-mode .spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #222;
}

@media (max-width: 900px) {
    .price-item {
        width: 48%; /* 2 Spalten auf Hochformat-iPad */
    }
}

@media (max-width: 600px) {
    .price-item {
        width: 100%; /* 1 Spalte für kleine Handys */
    }
}
