/* ============================================
   ROOT VARIABLES - Google Material Colors
   ============================================ */
:root {
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;
    --error: #EA4335; /* Added missing variable */
    --bg-grey: #F8F9FA;
    --border-grey: #DADCE0;
    --text-primary: #202124;
    --text-secondary: #5F6368;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { 
    margin: 0; padding: 0; 
    box-sizing: border-box; 

    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--bg-grey);
    color: var(--text-primary);
    line-height: 1.5; /* Added for readability */
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: white;
    border-bottom: 1px solid var(--border-grey);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
}

/* Using nth-child is fragile; consider classes if HTML structure changes */
.logo span:nth-child(1) { color: var(--google-blue); }
.logo span:nth-child(2) { color: var(--google-red); }
.logo span:nth-child(3) { color: var(--google-yellow); }
.logo span:nth-child(4) { color: var(--google-blue); }
.logo span:nth-child(5) { color: var(--google-green); }
.logo span:nth-child(6) { color: var(--google-red); }

.header-actions { display: flex; gap: 12px; align-items: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s; /* Added transition */
}

.btn-primary { background: var(--google-blue); color: white; }
.btn-primary:hover { background: #1b66c9; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

.btn-outline { background: white; color: var(--google-blue); border: 1px solid var(--border-grey); }
.btn-outline:hover { background: var(--bg-grey); }

.btn-danger { background: var(--google-red); color: white; }

/* ============================================
   LAYOUT & FORMS
   ============================================ */
.container { max-width: 1200px; /*margin: 24px auto;*/ padding: 0 24px; }

.card-form {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-grey);
    padding: 20px;
    max-width: 450px;
    margin: 20px auto;
    margin-top: 10px;
}

.card-form h1 { font-size: 24px; font-weight: 400; margin-bottom: 8px; text-align: center; }
.card-form p { color: var(--text-secondary); text-align: center; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

/* Fixed focus state to prevent layout shift */
.form-control {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Using outline instead of border width change for stability */
.form-control:focus {
    border-color: var(--google-blue);
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

textarea.form-control {
    height: auto;
    padding: 12px 16px;
    resize: vertical;
    min-height: 100px;
}

.error-text { color: var(--error); font-size: 13px; margin-top: 6px; }

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.link { color: var(--google-blue); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ============================================
   TABLES & PREVIEW
   ============================================ */
.table { width: 100%; background: white; border: 1px solid var(--border-grey); border-radius: 8px; overflow: hidden; }
.table th, .table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border-grey); }
.table th { background: var(--bg-grey); font-weight: 500; color: var(--text-secondary); font-size: 14px; }
.table tr:last-child td { border-bottom: none; }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.preview-img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border-grey); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header { padding: 12px; }
    .btn { padding: 8px 16px; } /* Smaller touch targets on mobile */
}

/* ============================================
   DEPENDENCIES (Include in HTML <head>)
   ============================================ */
/* 
   <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
   <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
*/

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;
    --bg-grey: #F8F9FA;
    --border-grey: #DADCE0;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --focus-ring: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
* { 
    margin: 0; padding: 0; 
    box-sizing: border-box; 

    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;

}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--bg-grey);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER & SEARCH
   ============================================ */
.header {
    background: white;
    border-bottom: 1px solid var(--border-grey);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.2s;
}


/* Logo with img */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 1.125rem;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.search-container {
    flex: 1;
    /*max-width: 720px;  mcz*/
    /* margin: 0 40px; */
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-grey);
    border-radius: 24px;
    padding: 0 16px;
    height: 46px;
    background: white;
    box-shadow: 0 1px 6px rgba(32,33,36,0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.search-box:hover, .search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,0.2);
    border-color: transparent; /* Optional: hide border on focus if shadow is enough */
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 12px;
    background: transparent;
}

.search-box .material-icons {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.header-actions { display: flex; gap: 12px; align-items: center; }

/* ============================================
   BUTTONS & CHIPS
   ============================================ */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary { background: var(--google-blue); color: white; }
.btn-primary:hover { background: #1b66c9; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn-outline { background: white; color: var(--google-blue); border: 1px solid var(--border-grey); }
.btn-outline:hover { background: var(--bg-grey); }

.filters {
    
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    margin-bottom: 24px;
    border: 1px solid var(--border-grey);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 8px 16px;
    border: 1px solid var(--border-grey);
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.chip:hover { background: var(--bg-grey); border-color: #b0b0b0; }
.chip:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--google-blue); }

/* ============================================
   GRID & CARDS
   ============================================ */
/*.container { max-width: 1200px; margin: 24px auto; padding: 0 24px; }*/

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /*mcz org: 280px*/
    gap: 20px; /*mcz org: 20px*/
}

.card-list {
    padding: 0px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-grey);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block; /* Ensure link behaves like block */
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card {
    padding: 10px;
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-grey);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block; /* Ensure link behaves like block */
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9; 
    height: 200px;
    object-fit: cover;
    background: var(--bg-grey);
}


.card:hover {
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px rgba(60,64,67,0.15);
    transform: translateY(-1px);
}

.card:focus-visible { outline: none; box-shadow: var(--focus-ring); }


.card-body { 
    padding: 4px;
}

.card-price {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-meta span { display: flex; align-items: center; gap: 4px; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .material-icons {
    font-size: 72px;
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 12px;
    }

    .search-container {
        order: 3;
        width: 100%;
        /* margin: 12px 0 0 0; */ 
        max-width: none;
    }

    
    /*mcz*/
    .grid {
        /*org: grid-template-columns: 1fr;*/
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

    }
    

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   ROOT VARIABLES - Google Material Colors
   ============================================ */
:root {
    --google-blue: #1A73E8;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;
    --bg-grey: #F8F9FA;
    --border-grey: #DADCE0;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --error: #EA4335;
    --focus-ring: 0 0 0 2px rgba(26, 115, 232, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-grey);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.main-header {
    background-color: white;
    border-bottom: 1px solid var(--border-grey);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--google-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Burger Button */
.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.burger-btn:active {
    background: var(--bg-grey);
}

.burger-btn .material-icons {
    font-size: 24px;
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 8px 0;
}

.menu-section {
    border-bottom: 1px solid var(--border-grey);
    padding: 8px 0;
}

.menu-section:last-child {
    border-bottom: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: background 0.2s;
}

.menu-item:active {
    background: var(--bg-grey);
}

.menu-item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--google-blue);
}

.menu-item.material-icons {
    font-size: 22px;
    color: var(--text-secondary);
}

.menu-item-primary {
    color: var(--google-blue);
    font-weight: 500;
}

.menu-item-primary.material-icons {
    color: var(--google-blue);
}

.user-section {
    padding: 16px 24px;
    background: var(--bg-grey);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.user-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 2px;
}

.user-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 8px;
}

@media (min-width: 1150px) { /*768*/
    .burger-btn {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }


    .desktop-nav .menu-item {
        padding: 8px 16px;
        border-radius: 8px;
    }

    .desktop-nav .menu-item:hover {
        background: var(--bg-grey);
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background-color: var(--google-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1765CC;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-outline {
    background-color: white;
    border-color: var(--border-grey);
    color: var(--google-blue);
}

.btn-outline:hover {
    background-color: #F6F9FE;
}

.btn-outline:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ============================================
   FORMS
   ============================================ */
.card-form {
    background: white;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 24px;
    max-width: 450px;
    margin: 40px auto;
    margin-top: 10px;    
}

.card-form h1 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}

.card-form p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--google-blue);
    box-shadow: var(--focus-ring);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.form-actions .link {
    color: var(--google-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.form-actions .link:hover {
    text-decoration: underline;
}

.error-text {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-grey);
}

.search-bar .form-control {
    border: none;
    box-shadow: none;
}

.search-bar .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

/* ============================================
   FILTERS & CHIPS
   ============================================ */
.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-top: 10px;    
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filters .chip {
    background: white;
    border: 1px solid var(--border-grey);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s;
}

.filters .chip:hover {
    background: var(--bg-grey);
}

.filters .chip:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--google-blue);
}

/* ============================================
   DROP ZONE
   ============================================ */
.drop-zone {
    border: 2px dashed var(--border-grey);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-grey);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--google-blue);
    background: #E8F0FE;
}

.drop-zone .material-icons {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.drop-zone.dragover .material-icons {
    color: var(--google-blue);
}

.drop-zone p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.drop-zone strong {
    color: var(--google-blue);
    font-weight: 500;
}

/* ============================================
   PREVIEW ITEMS
   ============================================ */
.preview-item {
    position: relative;
    width: 100%;
    height: 120px;
}

.preview-item:hover .delete-btn {
    opacity: 1;
}

.preview-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-grey);
}

.delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    background: rgba(32, 33, 36, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: var(--google-red);
}

.delete-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.delete-btn .material-icons {
    font-size: 18px;
}

/* ============================================
   AVATAR UPLOAD
   ============================================ */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-grey);
    background: var(--bg-grey);
}

.avatar-upload-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.avatar-upload-btn:hover {
    background: var(--bg-grey);
}

.avatar-upload-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-grey);
    border-radius: 8px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 500;
    color: var(--google-blue);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-form {
        margin-top: 10px;
        padding: 20px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.btn-new {
    width: 100%;
    justify-content: center;
}

/* ============================================
   MANAGE LIST & CARDS
   ============================================ */
.manage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manage-card {
    background: white;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.manage-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.manage-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-grey);
}

.manage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manage-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manage-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manage-price {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
}

.manage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-chip .material-icons {
    font-size: 16px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
}

.status-aktiv {
    background: #E6F4EA;
    color: #137333;
}

.status-reserviert {
    background: #FEF7E0;
    color: #B06000;
}

.status-verkauft {
    background: #F1F3F4;
    color: #5F6368;
}

.status-deaktiviert {
    background: #a0a2a3;
    color: #5F6368;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.manage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-grey);
}

.action-btn {
    padding: 10px;
    border: 1px solid var(--border-grey);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s;
}

.action-btn:active {
    background: var(--bg-grey);
}

.action-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.action-btn-primary {
    background: var(--google-blue);
    color: white;
    border-color: var(--google-blue);
    grid-column: 1 / -1;
}

.action-btn-primary:active {
    background: #1765CC;
}

.action-btn-primary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.action-btn-danger {
    color: var(--google-red);
}

.action-btn .material-icons {
    font-size: 18px;
}

/* ============================================
   DROPDOWN
   ============================================ */
.dropdown {
    position: relative;
    grid-column: 1 / -1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 4px;
    background: white;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    z-index: 100;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:active {
    background: var(--bg-grey);
}

.dropdown-item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--google-blue);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-grey);
}

.empty-state .material-icons {
    font-size: 56px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   TABLET (min-width: 640px)
   ============================================ */
@media (min-width: 640px) {
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .page-header h1 {
        font-size: 28px;
        margin: 0;
    }

    .btn-new {
        width: auto;
    }

    .manage-card {
        display: flex;
        flex-direction: row;
        padding: 16px;
        gap: 16px;
    }

    .manage-img-wrap {
        width: 140px;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .manage-body {
        padding: 0;
        flex: 1;
    }

    .manage-actions {
        grid-template-columns: repeat(4, 1fr);
        border-top: none;
        padding-top: 0;
    }

    .action-btn-primary {
        grid-column: auto;
    }

    .dropdown {
        grid-column: auto;
    }

    .dropdown-menu {
        bottom: auto;
        top: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
}

/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    .manage-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .action-btn:hover {
        background: var(--bg-grey);
    }

    .action-btn-primary:hover {
        background: #1765CC;
    }

    .action-btn-danger:hover {
        background: #FCE8E6;
        color: var(--google-red);
    }

    .dropdown-item:hover {
        background: var(--bg-grey);
    }
}

/* ============================================
   DETAIL PAGE WRAPPER
   ============================================ */
.detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
}

.detail-wrapper2 {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;    
}


/* ============================================
   IMAGE SECTION
   ============================================ */
.image-section {
    background: white;
    border-bottom: 1px solid var(--border-grey);
    margin: 0 -24px;
    position: relative;
}

.main-image-wrap {
    position: relative;
    background: #000;
       
}

.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: contain;
    display: block;

}

.thumb-slider-wrap {
    position: relative;
    padding: 12px 48px;
}

.thumbs-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.thumbs-slider::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: border 0.2s, box-shadow 0.2s;
}

.thumb:hover {
    border-color: #b0b0b0;
}

.thumb.active {
    border-color: var(--google-blue);
}

.thumb:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--border-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.slider-btn:hover {
    background: var(--bg-grey);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.slider-btn-prev { left: 8px; }
.slider-btn-next { right: 8px; }
.slider-btn .material-icons { font-size: 20px; }

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    padding: 16px 0;
}

.price-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-grey);
    margin: 0 -24px 16px;
}

.price {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    word-wrap: break-word;
}

.meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item .material-icons {
    font-size: 20px;
    color: var(--text-secondary);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-grey);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-primary);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0;
}

.status-aktiv {
    background: #E6F4EA;
    color: #137333;
}

.status-reserviert {
    background: #FEF7E0;
    color: #B06000;
}

.status-verkauft {
    background: #F1F3F4;
    color: #5F6368;
}

/* ============================================
   CARDS & SELLER
   ============================================ */
.seller-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-grey);
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 2px;
}

.seller-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.description-text {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 15px;
    word-wrap: break-word;
}

/* ============================================
   TABLET (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    .image-section {
        margin: 0;
        border-radius: 12px;
        border: 1px solid var(--border-grey);
        overflow: hidden;
    }

 

    .thumb {
        width: 80px;
        height: 80px;
    }

    .price-header {
        margin: 0 0 16px;
        border-radius: 12px;
        border: 1px solid var(--border-grey);
    }

    .price {
        font-size: 32px;
    }

    .title {
        font-size: 22px;
    }

    .thumb-slider-wrap {
        padding: 12px 52px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    .detail-wrapper {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 24px;
        /*padding-top: 24px;*/
    }

    .detail-wrapper2 {
        display: grid;
        grid-template-columns: 100%;

        /*padding-top: 24px;*/
    }


    .image-section {
        position: sticky;
        top: 88px;
        height: fit-content;
    }

    .content-section {
        padding: 0;
    }
}

/* ============================================
   PREVIEW ITEMS & DELETE BUTTONS
   ============================================ */
.preview-item {
    position: relative;
    width: 100%;
    height: 120px;
}

.preview-item:hover .delete-btn {
    opacity: 1;
}

.preview-item:focus-within .delete-btn {
    opacity: 1;
}

.preview-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-grey);
}

.delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(32, 33, 36, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
}

.delete-btn:hover {
    background: var(--google-red);
}

.delete-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.delete-btn .material-icons {
    font-size: 18px;
}

/* ============================================
   AVATAR UPLOAD
   ============================================ */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-grey);
    background: var(--bg-grey);
}

.avatar-upload-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.avatar-upload-btn:hover {
    background: var(--bg-grey);
    border-color: #b0b0b0;
}

.avatar-upload-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-grey);
    border-radius: 8px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 500;
    color: var(--google-blue);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .preview-item {
        height: 100px;
    }

    .preview-img {
        height: 100px;
    }

    .avatar-upload {
        flex-direction: column;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .stat-number {
        font-size: 24px;
    }
}

/* ============================================
   ROOT VARIABLES - LIGHT MODE (Default)
   ============================================ */
:root {
    --google-blue: #1A73E8;
    --google-blue-hover: #1765CC;
    --google-red: #EA4335;
    --google-green: #34A853;
    --google-yellow: #FBBC05;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --border-grey: #DADCE0;
    --bg-grey: #F8F9FA;
    --bg-hover: #F6F9FE;
    --bg-white: #FFFFFF;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.15);
    --focus-ring: 0 0 0 2px rgba(26, 115, 232, 0.3);
}

/* ============================================
   DARK MODE VARIABLES
   ============================================ */
[data-theme="dark"] {
    --text-primary: #E8EAED;
    --text-secondary: #9AA0A6;
    --border-grey: #5F6368;
    --bg-grey: #202124;
    --bg-hover: #303134;
    --bg-white: #303134;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.4);
    --focus-ring: 0 0 0 2px rgba(66, 133, 244, 0.4);
}

/* ============================================
   BODY THEME
   ============================================ */
body {
    background-color: var(--bg-grey);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* ============================================
   WHITE BACKGROUNDS (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .main-header,
[data-theme="dark"] .logo,
[data-theme="dark"] .card,
[data-theme="dark"] .card-list,
[data-theme="dark"] .card-form,
[data-theme="dark"] .price-header,
[data-theme="dark"] .image-section,
[data-theme="dark"] .search-bar,
[data-theme="dark"] .filters .chip,
[data-theme="dark"] .suggestion-chip,
[data-theme="dark"] .mobile-menu,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .manage-card,
[data-theme="dark"] .preview-item,
[data-theme="dark"] .drop-zone {
    background-color: var(--bg-white);
    border-color: var(--border-grey);
}

/* ============================================
   FORMS (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .form-control {
    background-color: var(--bg-grey);
    color: var(--text-primary);
    border-color: var(--border-grey);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--google-blue);
    box-shadow: var(--focus-ring);
}

/* ============================================
   BUTTONS (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .action-btn,
[data-theme="dark"] .avatar-upload-btn,
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .chip {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-grey);
}

[data-theme="dark"] .action-btn:hover,
[data-theme="dark"] .avatar-upload-btn:hover,
[data-theme="dark"] .btn-outline:hover {
    background-color: var(--bg-hover);
}

[data-theme="dark"] .btn-primary {
    background-color: var(--google-blue);
    color: white;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--google-blue-hover);
}

/* ============================================
   MENU & DROPDOWN (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .menu-item:active,
[data-theme="dark"] .dropdown-item:active,
[data-theme="dark"] .menu-item:hover,
[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-hover);
}

[data-theme="dark"] .user-section {
    background-color: var(--bg-grey);
}

/* ============================================
   STATUS BADGES (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .status-reserviert {
    background: #3C2F00;
    color: #FDD663;
}

[data-theme="dark"] .status-verkauft,
[data-theme="dark"] .status-sold {
    background: #1E3A29;
    color: #81C995;
}

[data-theme="dark"] .status-aktiv {
    background: #0F2E1F;
    color: #81C995;
}

/* ============================================
   TEXT & LINKS (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .link,
[data-theme="dark"] .menu-item-primary {
    color: var(--google-blue);
}

[data-theme="dark"] .error-text {
    color: var(--google-red);
}

[data-theme="dark"] .delete-btn:hover {
    background: var(--google-red);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-grey);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.theme-toggle .material-icons {
    font-size: 22px;
}

/* ============================================
   ICONS (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .material-icons {
    color: var(--text-secondary);
}

[data-theme="dark"] .drop-zone .material-icons {
    color: var(--text-secondary);
}

[data-theme="dark"] .drop-zone.dragover .material-icons {
    color: var(--google-blue);
}

/* ============================================
   SEARCH BAR (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .search-box {
    background-color: var(--bg-white);
    border-color: var(--border-grey);
}

[data-theme="dark"] .search-box:hover,
[data-theme="dark"] .search-box:focus-within {
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

[data-theme="dark"] .search-box .material-icons {
    color: var(--text-secondary);
}

[data-theme="dark"] .search-box input {
    color: var(--text-primary);
}


/* ============================================
   DROP ZONE (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .drop-zone:hover,
[data-theme="dark"] .drop-zone.dragover {
    border-color: var(--google-blue);
    background: #1A237E;
}

/* ============================================
   SHADOWS (Dark Mode Override)
   ============================================ */
[data-theme="dark"] .card:hover,
[data-theme="dark"] .manage-card:hover {
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .slider-btn {
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================
   IMPRESSUM (LEGAL/IMPRINT)
   ============================================ */
.impressum-wrapper {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10px;
}

.impressum-card {
    background: var(--bg-white);
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 32px;
}

.impressum-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-grey);
    margin-bottom: 32px;
}

.impressum-header h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.impressum-header h1 .material-icons {
    font-size: 36px;
    color: var(--google-blue);
}

.impressum-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.impressum-section {
    margin-bottom: 32px;
}

.impressum-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .material-icons {
    font-size: 22px;
    color: var(--google-blue);
}

.info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.info-row .material-icons {
    font-size: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
    color: var(--text-primary);
}

.info-content strong {
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.info-content a {
    color: var(--google-blue);
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.info-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.info-box {
    background: var(--bg-grey);
    border-left: 3px solid var(--google-blue);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
}

.info-box .material-icons {
    font-size: 22px;
    color: var(--google-blue);
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-box-warning {
    border-left-color: var(--google-yellow);
}

.info-box-warning .material-icons {
    color: #B06000;
}

.divider {
    height: 1px;
    background: var(--border-grey);
    margin: 24px 0;
}

/* ============================================
   DATENSCHUTZ (PRIVACY POLICY)
   ============================================ */
.datenschutz-wrapper {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 10px;
}

.datenschutz-card {
    background: var(--bg-white);
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 32px;
}

.datenschutz-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-grey);
    margin-bottom: 32px;
}

.datenschutz-header h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.datenschutz-header h1 .material-icons {
    font-size: 36px;
    color: var(--google-blue);
}

.datenschutz-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.datenschutz-header .updated {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.toc-box {
    background: var(--bg-grey);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.toc-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title .material-icons {
    font-size: 20px;
    color: var(--google-blue);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--google-blue);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list a:hover {
    text-decoration: underline;
}

.toc-list a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.toc-list a .material-icons {
    font-size: 16px;
}

.datenschutz-section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.datenschutz-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .material-icons {
    font-size: 24px;
    color: var(--google-blue);
}

.section-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-text strong {
    font-weight: 500;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.data-table th {
    background: var(--bg-grey);
    padding: 12px;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid var(--border-grey);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-grey);
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.contact-box {
    background: var(--bg-grey);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.contact-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row .material-icons {
    font-size: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-row a {
    color: var(--google-blue);
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

.rights-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.rights-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.rights-list li .material-icons {
    font-size: 20px;
    color: var(--google-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-grey);
    margin-top: 64px;
    padding: 48px 0 24px;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--google-blue);
}

.footer-links a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.footer-links a .material-icons {
    font-size: 18px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--google-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg-white);
}

.social-link:hover {
    background: var(--bg-hover);
    border-color: var(--google-blue);
    color: var(--google-blue);
}

.social-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.social-link .material-icons {
    font-size: 20px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--google-blue);
}

.footer-legal a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ============================================
   PASSWORD FIELD
   ============================================ */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text-secondary);
}

.password-toggle:hover {
    background: var(--bg-grey);
}

.password-toggle:active {
    background: var(--border-grey);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.password-toggle .material-icons {
    font-size: 22px;
}

/* ============================================
   RESPONSIVE (Mobile)
   ============================================ */
@media (max-width: 768px) {
    .impressum-card,
    .datenschutz-card {
        padding: 24px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .impressum-header h1,
    .datenschutz-header h1 {
        font-size: 24px;
    }

    .impressum-header h1 .material-icons,
    .datenschutz-header h1 .material-icons {
        font-size: 28px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-title .material-icons {
        font-size: 20px;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .site-footer {
        padding: 32px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        gap: 16px;
    }

    .info-row,
    .contact-row,
    .rights-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-row .material-icons,
    .contact-row .material-icons,
    .rights-list li .material-icons {
        margin-top: 0;
        margin-bottom: 4px;
    }
}








/* TEST */

/* CSS: Style it + hide by default */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* hidden until you scroll down */
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#scrollToTop:hover {
    background: #555;
}






/* ============================================
   LIKE BUTTON - Auf Card Image
   Zugehörigkeit: Cards / Interaction
   ============================================ */

.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s ease;
  /*background: #fff5f7;*/
}

.like-btn:hover {
  border-color: #ff3b5c;
  background: #fff5f7;
}

.like-btn.liked {
  border-color: #ff3b5c;
  background: #ff3b5c;
  color: white;
}

.like-btn.liked svg {
  fill: white;
}

.like-btn svg {
  width: 18px;
  height: 18px;
  fill: #666;
  transition: fill .2s ease;
}

.card-body-link {
    text-decoration: none;
    color: inherit;
    display: block;
}




     nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-link {
            padding: 12px 16px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .nav-link:hover {
            background: var(--background);
            color: var(--text-primary);
        }

        .nav-button {
            margin-left: 8px;
            padding: 10px 24px;
            background: var(--google-blue);
            color: white;
            border: none;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 500;
            font-family: 'Google Sans', sans-serif;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }

        .nav-button:hover {
            background: var(--google-blue-hover);
            box-shadow: var(--shadow-1);
        }




.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal.active { display: flex; }

.modal img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}
.modal-close:hover { color: #aaa; }

body.modal-open { overflow: hidden; }


/* ============================================
main-dev.php 
============================================ */

    .card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  }
  
  .card-hover:hover .card-image {
    transform: scale(1.05);
  }
  
  .card-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
  
   @media (max-width: 549px) {
    .masonry-grid {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: 12px;
    }
  }
  
  @media (min-width: 1280px) {
    .masonry-grid {
      gap: 24px;
    }
  }

  .search-input:focus {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
  }
  
  .fade-in {
    animation: fadeIn 0.4s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
