:root {
    --primary-blue: #0D47A1;
    --secondary-blue: #1976D2;
    --accent-blue: #4FC3F7;
    --primary-green: #2E7D32;
    --secondary-green: #43A047;
    --accent-green: #66BB6A;
    --bg-gradient-start: #E3F2FD;
    --bg-gradient-end: #E8F5E9;
    --card-bg: #FFFFFF;
    --text-dark: #0a1628;
    --text-muted: #546E7A;
    --warning-red: #C62828;
    --warning-orange: #EF6C00;
    --warning-yellow: #F9A825;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.header-brand h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.cyber-link, .main-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    height: 2.2rem;
    padding: 0 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.cyber-link:hover, .main-link:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.header-brand h1 i {
    font-size: 1.8rem;
}

.header-brand .cyber-link i,
.header-brand .main-link i {
    font-size: 1rem;
    width: 1.1rem;
    flex-shrink: 0;
    text-align: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-search input {
    padding: 0.65rem 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 0.95rem;
    width: 260px;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.22);
}

.header-search button {
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 10px;
    background: var(--accent-green);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search button:hover {
    background: var(--primary-green);
    transform: scale(1.05);
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
    flex: 1;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.box {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.box h2 {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 0.9rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.box h2 i {
    font-size: 1.1rem;
}

.box .content {
    padding: 1.25rem;
}

#location-box .content {
    text-align: center;
    position: relative; /* Ensure proper positioning context */
}

#map {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    z-index: 1; /* Ensure proper stacking order */
    position: relative; /* Prevent absolute positioned children from escaping */
}

/* Specific fix for map containers to prevent layout issues */
.box .content #affected-map {
    position: relative !important;
    z-index: 1;
    overflow: hidden;
}

.city-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.timezone {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.current-time {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.tactical-time {
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 3.5rem;
    color: var(--secondary-blue);
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

#weather-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.detail-item i {
    color: var(--secondary-blue);
    font-size: 1.1rem;
}

.water-level-current {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.water-level-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0.5rem 0;
}

.water-level-trend {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.water-level-trend.rising {
    background: #FFEBEE;
    color: var(--warning-red);
}

.water-level-trend.falling {
    background: #E8F5E9;
    color: var(--primary-green);
}

.water-level-trend.stable {
    background: #E3F2FD;
    color: var(--primary-blue);
}

.water-level-time {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.water-level-history {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(13, 71, 161, 0.1);
}

.water-level-history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.water-level-history-item strong {
    color: var(--text-dark);
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.forecast-item:last-child {
    border-bottom: none;
}

.forecast-date {
    font-weight: 600;
    color: var(--text-dark);
}

.forecast-desc {
    color: var(--text-muted);
    text-transform: capitalize;
}

.forecast-temp {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.warning-item {
    padding: 1rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    border-left: 4px solid;
}

.warning-item.severe {
    background: #FFEBEE;
    border-color: var(--warning-red);
}

.warning-item.moderate {
    background: #FFF3E0;
    border-color: var(--warning-orange);
}

.warning-item.minor {
    background: #FFFDE7;
    border-color: var(--warning-yellow);
}

.warning-item:last-child {
    margin-bottom: 0;
}

.warning-headline {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.warning-severity {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 0.35rem;
}

.warning-severity-extreme,
.warning-severity-severe {
    background: var(--warning-red);
    color: white;
}

.warning-severity-moderate {
    background: var(--warning-orange);
    color: white;
}

.warning-severity-minor {
    background: var(--warning-yellow);
    color: #333;
}

.warning-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.warning-time {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.warning-description {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.no-warnings {
    text-align: center;
    color: var(--primary-green);
    padding: 2rem;
}

.no-warnings i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-green);
}

.no-warnings p {
    font-size: 1.05rem;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-source {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-time {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 0.95rem;
}

.security-features-section {
    width: 100%;
    margin-top: 1.5rem;
}

.security-controls-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.security-feature {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.security-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.security-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--secondary-blue);
    border-radius: 8px;
    background: var(--bg-gradient-start);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.security-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.security-btn i {
    font-size: 1.3rem;
}

.feature-description {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .security-controls-content {
        grid-template-columns: 1fr;
    }

    .header {
        position: relative;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .header-brand h1 {
        font-size: 1.35rem;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        width: 100%;
    }

    .container {
        padding: 1rem;
        gap: 1rem;
    }

    .column {
        gap: 1rem;
    }

    .weather-icon {
        font-size: 2.8rem;
    }

    .weather-temp {
        font-size: 2.8rem;
    }

    .current-time {
        font-size: 1.4rem;
    }

    .city-name {
        font-size: 1.3rem;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.loading {
    animation: pulse 1.5s infinite;
    color: var(--text-muted);
}

/* ---------- Gedenkseite Alexa ---------- */
.memorial {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.memorial-intro {
    text-align: center;
}

.memorial-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.memorial-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.memorial-sub {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.memorial-date {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.memorial-date i {
    margin-right: 0.4rem;
}

.memorial-collage {
    margin: 0;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
}

.memorial-collage img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.memorial-journey {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
}

.journey-point {
    text-align: center;
}

.journey-point i {
    font-size: 2.2rem;
    color: var(--secondary-blue);
    margin-bottom: 0.6rem;
    display: block;
}

.journey-point:last-child i {
    color: var(--secondary-green);
}

.journey-point h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.journey-point p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.journey-line {
    position: relative;
    min-width: 220px;
    text-align: center;
}

.journey-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--secondary-green));
    z-index: 0;
}

.journey-line span {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    padding: 0 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.memorial-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.memorial-text p {
    margin-bottom: 1.25rem;
}

.memorial-farewell {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(13, 71, 161, 0.15);
}

.footer-credit {
    font-size: 0.78rem !important;
    opacity: 0.75;
    margin-top: 0.35rem;
}

.music-toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.2rem;
    height: 3.2rem;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-green) 100%);
    color: white;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 200;
}

.music-toggle:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-hover);
}

.music-toggle.playing {
    animation: pulse 2.5s infinite;
}

@media (max-width: 700px) {
    .memorial-name {
        font-size: 2.2rem;
    }

    .memorial-journey {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .journey-line {
        min-width: 0;
        padding: 0.5rem 0;
    }

    .journey-line::before {
        display: none;
    }
}

/* ---------- Einkaufskorb ---------- */
.shop-page {
    -webkit-tap-highlight-color: transparent;
}

.shop-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Eingabe */
.shop-input-box {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
}

.shop-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.shop-input-name {
    position: relative;
    flex: 1;
    min-width: 0;
}

.shop-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.shop-input-row input {
    height: 3rem;
    border: 2px solid rgba(13, 71, 161, 0.15);
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--text-dark);
    background: #F7FAFD;
    transition: var(--transition);
}

.shop-input-row input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: #fff;
}

#shop-name {
    width: 100%;
    padding: 0 0.9rem 0 2.5rem;
}

.shop-input-menge {
    width: 5.5rem;
    padding: 0 0.6rem;
    text-align: center;
}

.shop-add-btn {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-green) 100%);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.shop-add-btn:active {
    transform: scale(0.94);
}

/* Vorschlagsliste */
.shop-suggestions {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0.25rem 0;
    border-top: 1px solid rgba(13, 71, 161, 0.1);
    max-height: 50vh;
    overflow-y: auto;
}

.shop-suggestions li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    min-height: 3rem;
    border-radius: 10px;
    cursor: pointer;
}

.shop-suggestions li:hover,
.shop-suggestions li.active {
    background: var(--bg-gradient-start);
}

.shop-suggest-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.shop-suggest-name {
    font-weight: 600;
    color: var(--text-dark);
}

.shop-suggest-name mark {
    background: none;
    color: var(--secondary-blue);
    text-decoration: underline;
}

.shop-suggest-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shop-suggest-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-gradient-end);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Bereiche */
.shop-section:hover {
    transform: none;
}

.shop-section h2 {
    position: relative;
}

.shop-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    min-width: 1.8rem;
    height: 1.8rem;
    padding: 0 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-section-done h2 {
    background: linear-gradient(135deg, #78909C 0%, #90A4AE 100%);
}

.shop-list {
    padding: 0.5rem 0.75rem;
}

.shop-group + .shop-group {
    margin-top: 0.75rem;
}

.shop-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
}

.shop-group-title i {
    width: 1.2rem;
    text-align: center;
    color: var(--secondary-green);
}

.shop-group-count {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-muted);
}

/* Artikel-Zeile */
.shop-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.35rem 0.25rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.4s ease;
}

.shop-group .shop-item:last-child,
.shop-list > .shop-item:last-child {
    border-bottom: none;
}

.shop-icon {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.shop-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: none;
    border: none;
    padding: 0.4rem 0.25rem;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.shop-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

.shop-item-menge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--bg-gradient-start);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.shop-btn {
    width: 2.9rem;
    height: 2.9rem;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.shop-btn:active {
    transform: scale(0.9);
}

.shop-btn-done {
    color: var(--secondary-green);
    font-size: 1.9rem;
}

.shop-btn-done:hover {
    background: #E8F5E9;
}

.shop-btn-undo {
    color: var(--secondary-blue);
    font-size: 1.35rem;
    background: var(--bg-gradient-start);
}

.shop-btn-undo:hover {
    background: #BBDEFB;
}

.shop-btn-delete {
    width: 2.2rem;
    height: 2.2rem;
    color: #B0BEC5;
    font-size: 1rem;
}

.shop-btn-delete:hover {
    color: var(--warning-red);
    background: #FFEBEE;
}

/* Erledigte Artikel */
.shop-item.is-done .shop-icon {
    background: #ECEFF1;
    color: #90A4AE;
}

.shop-item.is-done .shop-item-name {
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.shop-item.is-done .shop-item-menge {
    color: var(--text-muted);
    background: #ECEFF1;
}

/* Animationen */
.shop-item-leaving {
    opacity: 0;
    transform: translateX(1.5rem);
}

@keyframes shopFlash {
    0% { background: #E8F5E9; }
    100% { background: transparent; }
}

.shop-item-flash {
    animation: shopFlash 0.9s ease-out;
    border-radius: 10px;
}

/* Leer-Zustand */
.shop-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--primary-green);
}

.shop-empty i {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.6rem;
    color: var(--secondary-green);
}

.shop-empty p {
    font-size: 1.05rem;
    font-weight: 600;
}

.shop-empty small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
}

.shop-empty-muted,
.shop-empty-muted i {
    color: #90A4AE;
}

/* Toast */
.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 1rem);
    background: var(--text-dark);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 300;
    max-width: calc(100% - 2rem);
    text-align: center;
}

.shop-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.shop-toast.error {
    background: var(--warning-red);
}

/* Mobile */
@media (max-width: 600px) {
    .shop-header {
        padding: 0.75rem 1rem;
    }

    .shop-header .header-brand {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .shop-header .header-brand h1 {
        width: 100%;
        font-size: 1.3rem;
    }

    .shop-header .main-link {
        font-size: 0.85rem;
        height: 2rem;
        padding: 0 0.6rem;
    }

    .shop-container {
        padding: 0.75rem 0.6rem 1.5rem;
    }

    .shop-input-box {
        top: 0.5rem;
    }

    .shop-input-menge {
        width: 4.6rem;
    }

    .shop-list {
        padding: 0.4rem 0.5rem;
    }
}

/* ---------- Einkaufskorb: PWA / Offline ---------- */
.shop-notice,
.shop-offline-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.shop-notice > span,
.shop-offline-banner > span {
    flex: 1;
    min-width: 0;
}

.shop-notice-install {
    background: #fff;
    color: var(--text-dark);
    border-left: 4px solid var(--secondary-blue);
}

.shop-notice-install > i {
    color: var(--secondary-blue);
    font-size: 1.2rem;
}

.shop-notice-update {
    background: var(--primary-blue);
    color: #fff;
}

.shop-notice-btn {
    flex-shrink: 0;
    height: 2.2rem;
    padding: 0 0.9rem;
    border: none;
    border-radius: 8px;
    background: var(--secondary-blue);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.shop-notice-btn:active {
    transform: scale(0.95);
}

.shop-notice-update .shop-notice-btn {
    background: #fff;
    color: var(--primary-blue);
}

.shop-notice-close {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
}

.shop-notice-close:hover {
    background: #ECEFF1;
}

/* Offline-Banner */
.shop-offline-banner {
    background: #FFF8E1;
    color: #7A5200;
    border-left: 4px solid var(--warning-yellow);
}

.shop-offline-banner .shop-offline-icon {
    color: var(--warning-yellow);
    font-size: 1.15rem;
}

.shop-offline-banner .shop-notice-btn {
    width: 2.2rem;
    padding: 0;
    background: var(--warning-yellow);
    color: #fff;
}

.shop-offline-banner.syncing {
    background: var(--bg-gradient-start);
    color: var(--primary-blue);
    border-left-color: var(--secondary-blue);
}

.shop-offline-banner.syncing .shop-offline-icon {
    color: var(--secondary-blue);
    animation: pulse 1.2s infinite;
}

.shop-offline-banner.syncing .shop-notice-btn {
    background: var(--secondary-blue);
}

.shop-offline-banner.syncing .shop-notice-btn i {
    animation: shopSpin 1s linear infinite;
}

@keyframes shopSpin {
    to { transform: rotate(360deg); }
}

/* Noch nicht uebertragene Artikel */
.shop-item-pending {
    font-size: 0.8rem;
    color: var(--warning-yellow);
    margin-left: 0.2rem;
}

/* Footer-Status */
.shop-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.shop-footer-sep {
    opacity: 0.6;
}

.shop-sync-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #B0BEC5;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.shop-sync-dot.ok {
    background: var(--accent-green);
}

.shop-sync-dot.pending {
    background: var(--warning-yellow);
    animation: pulse 1.2s infinite;
}

.shop-sync-dot.offline {
    background: #CFD8DC;
}

/* Standalone-Modus (installierte App): Platz fuer Notch/Statusleiste */
@media (display-mode: standalone) {
    .shop-header {
        padding-top: calc(0.75rem + env(safe-area-inset-top));
    }

    .shop-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .shop-toast {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 600px) {
    .shop-notice,
    .shop-offline-banner {
        font-size: 0.9rem;
        padding: 0.55rem 0.7rem;
    }

    .shop-footer p {
        font-size: 0.85rem;
    }
}

/* hidden-Attribut muss display:flex-Regeln schlagen */
.shop-page [hidden] {
    display: none !important;
}
