body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
}


/* Gallery */
.gallery {
    width: 900px;          /* Gesamtbreite */
    column-count: 3;      /* 3 Spalten */
    column-width: 300px;  /* feste Spaltenbreite */
    column-gap: 0;        /* keine Abstände */
    margin: 0 auto 10px auto;
}

.gallery .thumb {
    width: 100%;          /* füllt die Spalte */
    height: auto;
    display: block;
    margin: 0;            /* nahtlos untereinander */
    break-inside: avoid; /* verhindert Umbruch innerhalb eines Bildes */
}

.gallery .thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.delete-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover .delete-icon {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-item img {
    display: block;
}


/* Header */
.header {
    background: #FFE4E1;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header img.logo {
    height: 50px;
}

/* Titel */
.header .title {
    font-size: 24px;
    font-weight: bold;
    color: #444;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

/* Vorschau */
.preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Menu */
.menu {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #eee;
}

.menu .menu-item {
    position: relative;
    text-decoration: none;
    font-size: 16pt;
    color: #F9CCCD;
    font-weight: bold;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

/* Der animierte Unterstrich */
.menu .menu-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #F9CCCD;
    transform: translateX(-50%) scaleX(0);   /* Start: unsichtbar */
    transform-origin: center;                /* von der Mitte */
    transition: transform 0.25s ease;
}

/* Hover-Animation */
.menu .menu-item:hover::after,
.menu .menu-item.active::after {
    transform: translateX(-50%) scaleX(1);   /* wächst nach außen */
}

.menu .menu-item:hover {
    color: #F9CCCD;
}

/* About Me */
.wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.about-text {
    font-size: 24px;
    line-height: 1.6;
    font-weight: bold;
    color: #F9CCCD;
    position: relative;
}

/* Edit-Icon */
.edit-icon {
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-4px);
}

/* Nur sichtbar bei Hover über Text */
.about-text:hover .edit-icon {
    opacity: 1;
    transform: translateY(0);
}


/* Social Media Links */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.social-icons img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Cart */
.mini-cart {
    margin-left: auto; 
}

.cart-badge {
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.mini-cart-dropdown {
    position: absolute;
    right: 20px;
    top: 70px;
    width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    padding: 10px;
    display: none;
    z-index: 1001;
}

.mini-cart-price 
.mini-cart-sum
.mini-cart-qty {
    text-align: right;
    width: 50px;
}

.mini-cart-item {
    display:flex;
    justify-content:space-between;
    gap: 8px;
    margin-bottom:6px;
    font-size: 12px;
}

.mini-cart-remove {
    cursor:pointer;
    color:#c33;
    font-weight:bold;
}

.mini-cart-remove:hover {
    color:red;
}

.mini-cart-title {
    color: #F9CCCD;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 25px;
    font-size: 24px;
}

.mini-cart-head {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.mini-cart-product {
    display: flex;
    text-align: left;
    width: 400px;
    gap: 6px;
    margin-bottom: 6px;
}

.mini-cart-total {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    font-weight: bold;
    width: 565px;
    text-align: right;
}

.mini-cart-button {
    display: block;
    margin-top: 25px;
    text-align: center;
    background: #FFE4E1;
    padding: 20px;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

#checkoutBtn {
    display: block;
    margin-top: 25px;
    padding: 14px 28px;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;

    background: linear-gradient(135deg, #FFE4E1, #ffd1cb);
    color: #333;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Hover Effekt */
#checkoutBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #ffd6d1, #ffc5bd);
}

/* Klick Effekt */
#checkoutBtn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Admin Shop */
.admin-wrap {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    margin-bottom: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
input, select, textarea, button {
    width: 95%;
    padding: 8px 10px;
    margin-top: 6px;
    margin-bottom: 20px;
}
button {
    background: #FFE4E1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Dropdown Menu */
.menu-dropdown{
    position:relative;
    display:inline-block;
}

.dropdown-content{
    display:none;
    position:absolute;

    background:white;
    border:1px solid #ddd;
    border-radius:6px;

    min-width:300px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);

    z-index:1000;
    padding: 5px;
}

.dropdown-content a{
    display:block;
    padding:20px 12px;
    text-decoration:none;
    color:#333;
}

.dropdown-content a:hover{
    background:#FFE4E1;
}

.menu-dropdown:hover .dropdown-content{
    display:block;
}