/* ============================================================
   Ani & Flo – Stylesheet  (Mobile First)
   Breakpoints: 480px | 768px | 1024px | 1280px
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Design Tokens ---------- */
:root {
    /* Option B – Sage & Sand */
    --color-bg:          #FAFAF8;
    --color-surface:     #F1EDE5;
    --color-surface-2:   #E6E0D4;
    --color-accent:      #6E9E7A;
    --color-accent-dark: #3D6B4A;
    --color-text:        #1A1917;
    --color-text-muted:  #6E6560;
    --color-text-light:  #A09890;
    --color-success:     #3D6B4A;
    --color-error:       #b94040;
    --color-border:      rgba(60, 80, 50, 0.12);

    /* Radii & Schatten */
    --radius:            12px;
    --radius-sm:         6px;
    --shadow-soft:       0 2px 12px rgba(30, 50, 30, 0.07);
    --shadow-lg:         0 8px 28px rgba(30, 50, 30, 0.13);
    --transition:        0.2s ease;

    /* Spacing – Mobile-Basis */
    --space-xs:  8px;
    --space-sm:  12px;
    --space-md:  20px;
    --space-lg:  32px;
    --space-xl:  48px;

    /* Fonts – Option B: Plus Jakarta Sans only */
    --font-serif: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
    --font-weight-heading: 700;

    /* Legacy-Aliase – für bestehende PHP-Inline-Styles */
    --primary:    var(--color-text);
    --accent:     var(--color-accent);
    --accent-lt:  var(--color-accent-dark);
    --bg:         var(--color-bg);
    --bg-card:    #ffffff;
    --bg-soft:    var(--color-surface);
    --text:       var(--color-text);
    --text-muted: var(--color-text-muted);
    --border:     var(--color-border);
    --success:    var(--color-success);
    --error:      var(--color-error);
    --shadow:     var(--shadow-soft);
}

@media (min-width: 1024px) {
    :root {
        --space-md: 28px;
        --space-lg: 48px;
        --space-xl: 72px;
    }
}

/* ---------- Typografie – Mobile First ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1 { font-family: var(--font-sans); font-size: 32px; line-height: 1.15; color: var(--color-text); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-family: var(--font-sans); font-size: 24px; line-height: 1.2;  color: var(--color-text); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-family: var(--font-sans); font-size: 20px; line-height: 1.25; color: var(--color-text); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: 15px; line-height: 1.4;  color: var(--color-text); font-weight: 600; }

@media (min-width: 768px) {
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }
    h3 { font-size: 22px; }
}
@media (min-width: 1024px) {
    h1 { font-size: 54px; }
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: opacity var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
a:hover  { opacity: .75; }
a:active { opacity: .6; }

img { max-width: 100%; height: auto; display: block; }

/* iOS: Eingabefelder nie zoomen */
input, textarea, select {
    font-size: 16px;
    font-family: var(--font-sans);
}
button, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    min-height: 48px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:active { background: var(--color-accent-dark); opacity: 1; }
@media (hover: hover) {
    .btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; opacity: 1; }
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-accent);
}
.btn-outline:active { background: var(--color-surface); opacity: 1; }
@media (hover: hover) {
    .btn-outline:hover { background: var(--color-surface); opacity: 1; }
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background: var(--color-error);
    color: #fff;
    border-color: var(--color-error);
}
@media (hover: hover) {
    .btn-danger:hover { background: #963535; border-color: #963535; color: #fff; opacity: 1; }
}

.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Header – Mobile First ---------- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 6px rgba(60, 40, 20, 0.07);
}

.site-header .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    gap: var(--space-sm);
}

/* Mobile: Logo links, Cart + Toggle rechts */
.logo          { order: 1; text-decoration: none; flex-shrink: 0; opacity: 1; }
.logo:hover    { opacity: 1; }
.cart-icon     { order: 2; margin-left: auto; }
.mobile-menu-toggle { order: 3; }
.main-nav      { order: 4; width: 100%; }

.logo-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-text);
    font-style: italic;
    line-height: 1;
}
.logo-amp { color: var(--color-accent); }
.logo-sub {
    display: block;
    font-size: 10px;
    color: var(--color-text-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Mobile Nav – collapsed by default */
.main-nav {
    display: none;
    flex-direction: column;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    gap: 2px;
}
.main-nav.open { display: flex; }
.main-nav ul   { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.main-nav a {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 10px var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    min-height: 44px;
    opacity: 1;
}
.main-nav a:active { background: var(--color-surface); color: var(--color-text); opacity: 1; }
@media (hover: hover) {
    .main-nav a:hover { color: var(--color-text); background: var(--color-surface); opacity: 1; }
}
.main-nav a.active {
    color: var(--color-accent-dark);
    background: var(--color-surface);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--color-accent);
}

/* Hamburger Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    min-height: 48px;
    min-width: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all .3s;
    pointer-events: none;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    color: var(--color-text);
    display: flex;
    align-items: center;
    padding: 10px;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    opacity: 1;
}
.cart-icon:active { background: var(--color-surface); opacity: 1; }
@media (hover: hover) {
    .cart-icon:hover { background: var(--color-surface); color: var(--color-text); opacity: 1; }
}
.cart-icon svg   { width: 22px; height: 22px; }
.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Nav – ab 768px */
@media (min-width: 768px) {
    .site-header .container { flex-wrap: nowrap; gap: var(--space-md); }
    .logo          { order: 1; }
    .main-nav      { order: 2; flex: 1; width: auto; border: none; padding: 0; display: flex !important; }
    .main-nav ul   { flex-direction: row; gap: 2px; align-items: center; }
    .main-nav a    { font-size: 14px; padding: 8px 12px; min-height: 36px; background: none; }
    .main-nav a.active { background: none; color: var(--color-accent-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--color-accent); }
    .cart-icon     { order: 3; margin-left: 0; }
    .mobile-menu-toggle { display: none !important; }
}

/* ---------- Flash ---------- */
.flash { padding: 12px 0; font-size: 14px; font-weight: 500; }
.flash-success { background: #e8f5eb; color: #2d6a3f; border-bottom: 2px solid #c3e6cb; }
.flash-error   { background: #fbe8e8; color: #7b2020; border-bottom: 2px solid #f5c6cb; }
.flash-info    { background: #e8f0fb; color: #2050a0; border-bottom: 2px solid #bee0f5; }

/* ---------- Main ---------- */
.site-main { min-height: calc(100vh - 200px); }

/* ---------- Hero – Mobile First ---------- */
.hero {
    background: linear-gradient(160deg, #4a7a56 0%, #5a8f66 50%, #3d6b4a 100%);
    color: #fff;
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Subtle dot pattern */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
/* Light bloom from center-top */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(255,255,255,.18) 0%, transparent 65%);
    pointer-events: none;
}
.hero h1 { color: #fff; margin-bottom: var(--space-sm); position: relative; z-index: 1; }
.hero h1 em { color: rgba(255,255,255,.85); font-style: normal; font-weight: 400; }
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,.82);
    max-width: 480px;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
}
.hero-badges {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}
.hero-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.9);
}
.hero .btn { position: relative; z-index: 1; }

@media (min-width: 768px) {
    .hero p { font-size: 18px; }
}

/* ---------- Features – Mobile First ---------- */
.features {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
}
.feature-item { display: flex; align-items: center; gap: 10px; }
.feature-icon { font-size: 22px; flex-shrink: 0; }
.feature-text h4 { font-size: 13px; margin-bottom: 2px; }
.feature-text p  { font-size: 12px; color: var(--color-text-muted); }

/* ---------- Section ---------- */
.section { padding: var(--space-lg) 0; }
@media (min-width: 768px) { .section { padding: var(--space-xl) 0; } }

.section-title { margin-bottom: 6px; }
.section-sub   { color: var(--color-text-muted); margin-bottom: var(--space-md); font-size: 15px; }

/* ---------- Category Grid – Mobile First ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
@media (min-width: 480px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 100px;
    opacity: 1;
}
.category-card:active { background: var(--color-surface); opacity: 1; }
@media (hover: hover) {
    .category-card:hover {
        border-color: var(--color-accent);
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
        opacity: 1;
    }
}
.category-icon     { font-size: 28px; line-height: 1; }
.category-card h3  { font-size: 13px; font-family: var(--font-sans); font-weight: 600; color: var(--color-text); margin: 0; }
.category-count    { font-size: 12px; color: var(--color-text-muted); }

/* ---------- Product Grid – Mobile First ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}
@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(60,40,20,0.06), 0 4px 14px rgba(60,40,20,0.07);
    transition: box-shadow var(--transition), transform var(--transition);
}
@media (hover: hover) {
    .product-card:hover {
        box-shadow: 0 4px 12px rgba(60,40,20,0.10), 0 12px 32px rgba(60,40,20,0.12);
        transform: translateY(-3px);
    }
    .product-card:hover .product-card-img img { transform: scale(1.04); }
}

.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-surface);
    position: relative;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.product-card-img .placeholder-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
}
.personalization-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 50px; letter-spacing: .04em;
}
.new-badge {
    position: absolute; top: 10px; right: 10px;
    background: #22c55e; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 50px; letter-spacing: .04em;
}

.product-card-body  { padding: var(--space-sm); flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 14px; font-family: var(--font-serif); color: var(--color-text); margin-bottom: 4px; }
@media (min-width: 768px) { .product-card-body h3 { font-size: 16px; } }
.product-card-body p { font-size: 13px; color: var(--color-text-muted); flex: 1; }
.product-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: var(--space-sm); padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    gap: var(--space-xs);
}
.product-price { font-size: 16px; font-weight: 700; color: var(--color-text); }
@media (min-width: 768px) { .product-price { font-size: 18px; } }

/* ---------- Product Detail – Mobile First ---------- */
.product-detail { padding: var(--space-md) 0 var(--space-lg); }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
}
@media (min-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

.product-gallery .main-img {
    border-radius: var(--radius); overflow: hidden;
    background: var(--color-surface); aspect-ratio: 1;
    margin-bottom: var(--space-sm);
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.product-thumbs img {
    width: 64px; height: 64px;
    object-fit: cover; border-radius: var(--radius-sm);
    border: 2px solid transparent; cursor: pointer;
    transition: border-color var(--transition);
}
.product-thumbs img.active { border-color: var(--color-accent); }

.product-info h1 { margin-bottom: 6px; }
.product-price-lg { font-size: 28px; font-weight: 700; color: var(--color-accent-dark); margin: var(--space-sm) 0; }
@media (min-width: 768px) { .product-price-lg { font-size: 34px; } }
.product-desc { color: var(--color-text-muted); margin-bottom: var(--space-md); line-height: 1.7; font-size: 15px; }

.personalization-form {
    background: var(--color-surface);
    border-radius: var(--radius); padding: var(--space-md);
    margin-bottom: var(--space-md); border: 1px solid var(--color-border);
}
.personalization-form h3 { font-size: 16px; margin-bottom: var(--space-sm); }

.form-group { margin-bottom: var(--space-sm); }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 6px; color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-size: 16px; /* iOS zoom prevention */
    background: #fff; color: var(--color-text);
    transition: border-color var(--transition);
    min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-accent); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group .char-count { font-size: 12px; color: var(--color-text-muted); text-align: right; margin-top: 4px; }

input.invalid, select.invalid, textarea.invalid { border-color: var(--color-error) !important; }

.name-input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-size: 16px; background: #fff; color: var(--color-text);
    transition: border-color var(--transition); min-height: 48px;
}
.name-input:focus { outline: none; border-color: var(--color-accent); }

.qty-wrapper   { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.qty-control   { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button {
    background: none; border: none;
    width: 48px; height: 48px;
    font-size: 18px; cursor: pointer;
    color: var(--color-text); transition: background var(--transition);
    touch-action: manipulation;
}
.qty-control button:active { background: var(--color-surface); }
@media (hover: hover) {
    .qty-control button:hover { background: var(--color-surface); }
}
.qty-control input {
    width: 52px; height: 48px; border: none;
    border-left: 1.5px solid var(--color-border);
    border-right: 1.5px solid var(--color-border);
    text-align: center; font-size: 16px; font-weight: 600;
    color: var(--color-text); background: #fff;
}
.qty-control input:focus { outline: none; }

/* ---------- Warenkorb – Mobile First ---------- */
.cart-page { padding: var(--space-md) 0 var(--space-lg); }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
}
@media (min-width: 768px) {
    .cart-layout { grid-template-columns: 1fr 280px; gap: var(--space-lg); }
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left; padding: 10px var(--space-sm);
    background: var(--color-surface); font-size: 12px;
    font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
    color: var(--color-text-muted);
}
.cart-table td { padding: var(--space-sm); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-table .hide-mobile { display: none; }
@media (min-width: 480px) { .cart-table .hide-mobile { display: table-cell; } }

.cart-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 480px) { .cart-item-img { width: 64px; height: 64px; } }
.cart-item-name   { font-weight: 600; font-family: var(--font-serif); font-size: 15px; }
.cart-item-gravur { font-size: 13px; color: var(--color-text-muted); }
.cart-qty-input {
    width: 52px; padding: 8px 6px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    text-align: center; font-size: 16px;
}
.remove-btn {
    background: none; border: none;
    color: var(--color-error); cursor: pointer;
    font-size: 18px; padding: 8px;
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color var(--transition);
    touch-action: manipulation;
}
.remove-btn:active { color: #963535; }
@media (hover: hover) { .remove-btn:hover { color: #963535; } }

.cart-summary {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: var(--space-md);
}
@media (min-width: 768px) { .cart-summary { position: sticky; top: 80px; } }
.cart-summary h2 { font-size: 18px; margin-bottom: var(--space-md); }
.summary-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 15px;
}
.summary-row.total {
    border-top: 2px solid var(--color-border); margin-top: 6px;
    padding-top: var(--space-sm); font-weight: 700; font-size: 18px;
    color: var(--color-text);
}
.summary-row.mwst { font-size: 12px; color: var(--color-text-muted); }
.shipping-note    { font-size: 13px; color: var(--color-success); margin: 6px 0; font-weight: 500; }

/* Gruppierter Warenkorb */
.cart-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}
.cart-group-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.cart-group-rows { padding: .5rem var(--space-md); }
.cart-row {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-row:last-child { border-bottom: none; }

.cart-row-form {
    display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0;
}
.cart-gravur-input {
    flex: 1; min-width: 0;
    padding: .4rem .6rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    transition: border-color .15s;
}
.cart-gravur-input:focus { outline: none; border-color: var(--color-accent); }
.cart-save-btn {
    flex-shrink: 0;
    padding: .38rem .6rem;
    background: none;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer; font-size: .9rem;
    color: var(--color-text-muted);
    transition: all .15s;
    min-height: 36px; min-width: 36px;
}
.cart-save-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

.cart-qty-wrap {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.cart-qty-btn {
    background: none; border: none; cursor: pointer;
    padding: 0 .55rem; font-size: 1rem; font-weight: 600;
    color: var(--color-text-muted); line-height: 1;
    min-height: 36px; min-width: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, background .15s;
}
.cart-qty-btn:hover:not(:disabled) { background: var(--color-surface); color: var(--color-text); }
.cart-qty-btn:disabled { opacity: .35; cursor: default; }
.cart-qty-num {
    padding: 0 .6rem;
    font-size: .9rem; font-weight: 600; min-width: 28px; text-align: center;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    line-height: 36px;
}

.cart-row-price {
    font-weight: 600; font-size: .88rem;
    white-space: nowrap; min-width: 64px; text-align: right;
    flex-shrink: 0;
}

.cart-empty      { text-align: center; padding: var(--space-xl) 0; }
.cart-empty .empty-icon { font-size: 3.5rem; margin-bottom: var(--space-sm); }
.cart-empty h2   { margin-bottom: var(--space-sm); }
.cart-empty p    { color: var(--color-text-muted); margin-bottom: var(--space-lg); }

/* ---------- Kasse – Mobile First ---------- */
.checkout-page { padding: var(--space-md) 0 var(--space-lg); }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
}
/* Mobile: Bestellübersicht zuerst */
.order-summary-box { order: -1; }

@media (min-width: 768px) {
    .checkout-layout   { grid-template-columns: 1fr 320px; gap: var(--space-lg); }
    .order-summary-box { order: 0; position: sticky; top: 80px; }
}

.checkout-section {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: var(--space-md); margin-bottom: var(--space-md);
}
.checkout-section h2 {
    font-size: 18px; margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: einspaltig */
    gap: var(--space-sm);
}
@media (min-width: 480px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.order-summary-box {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: var(--space-md);
}
.order-item {
    display: flex; gap: var(--space-sm);
    padding: 10px 0; border-bottom: 1px solid var(--color-border);
}
.order-item:last-child { border-bottom: none; }
.order-item img        { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.order-item-info       { flex: 1; }
.order-item-name       { font-weight: 600; font-size: 14px; }
.order-item-sub        { font-size: 12px; color: var(--color-text-muted); }

#paypal-button-container { min-height: 50px; }

/* Zeichenzähler (standalone, außerhalb .form-group) */
.char-count {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: right;
    margin-top: 4px;
    min-height: 16px;
}

/* Bestellbestätigung */
.order-confirmation    { max-width: 600px; margin: 0 auto; padding: var(--space-lg) 0 var(--space-xl); }
.confirmation-header   { text-align: center; margin-bottom: var(--space-lg); }
.confirmation-craft-icon { font-size: 3.5rem; line-height: 1; margin-bottom: var(--space-sm); }
.confirmation-header h1 { margin-bottom: var(--space-sm); font-size: 28px; }
@media (min-width: 768px) { .confirmation-header h1 { font-size: 38px; } }
.confirmation-tagline  { font-size: 17px; color: var(--color-text-muted); font-style: italic; margin-bottom: var(--space-sm); }
.confirmation-sub      { font-size: 14px; color: var(--color-text-muted); margin: 0 auto; max-width: 400px; }

.confirmation-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-top: var(--space-sm);
}
.confirmation-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--space-sm) + 22px);
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}
.conf-step {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; text-align: center; font-size: 12px; color: var(--color-text-muted);
    position: relative; z-index: 1;
}
@media (min-width: 480px) { .conf-step { font-size: 13px; } }
.conf-step-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; line-height: 1;
    transition: all var(--transition);
}
.conf-step--done .conf-step-icon  { background: #e8f5eb; border-color: var(--color-success); }
.conf-step--done               { color: var(--color-success); font-weight: 600; }
.conf-step--active .conf-step-icon { background: var(--color-surface); border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(201,169,122,.15); }
.conf-step--active             { color: var(--color-accent-dark); font-weight: 700; }

.confirmation-card {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.confirmation-card h2 { font-size: 18px; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.confirmation-card table { width: 100%; border-collapse: collapse; }
.confirmation-card th  { text-align: left; padding: 8px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.confirmation-card td  { padding: 12px 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; font-size: 14px; }
.confirmation-card td:last-child { text-align: right; }
.confirmation-card .total-row td { font-weight: 700; font-size: 16px; border-bottom: none; border-top: 2px solid var(--color-border); }
.confirmation-address  { background: var(--color-surface); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); font-size: 13px; line-height: 1.8; margin-top: var(--space-sm); }
.confirmation-actions  { text-align: center; padding-top: var(--space-md); }
.confirmation-note     { font-size: 13px; color: var(--color-text-muted); text-align: center; margin-bottom: var(--space-md); }

/* ---------- Footer – Mobile First ---------- */
.site-footer {
    background: #1A1917;
    color: rgba(255,255,255,.55);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
@media (min-width: 480px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .logo-text { color: #fff; font-size: 18px; margin-bottom: var(--space-xs); display: block; }
.footer-brand p  { font-size: 13px; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--space-sm); font-family: var(--font-sans); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a  { color: rgba(255,255,255,.55); font-size: 13px; transition: color var(--transition); text-decoration: none; opacity: 1; }
.footer-links a:active { color: var(--color-accent); opacity: 1; }
@media (hover: hover) { .footer-links a:hover { color: var(--color-accent); opacity: 1; } }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: var(--space-md); font-size: 12px; text-align: center;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: var(--space-sm) 0; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; opacity: 1; }
.breadcrumb a:active { color: var(--color-accent); opacity: 1; }
@media (hover: hover) { .breadcrumb a:hover { color: var(--color-accent); opacity: 1; } }
.breadcrumb span { margin: 0 6px; }

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(160deg, #4a7a56, #3d6b4a);
    color: #fff; padding: var(--space-lg) 0; margin-bottom: var(--space-lg);
}
.page-header h1 { color: #fff; }
.page-header p  { color: rgba(255,255,255,.75); margin-top: 6px; font-size: 15px; }

/* ---------- Admin (unverändert) ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--color-text); color: #fff; padding: 10px var(--space-sm); text-align: left; font-size: 13px; font-weight: 500; }
.data-table td { padding: 12px var(--space-sm); border-bottom: 1px solid var(--color-border); font-size: 14px; }
.data-table tr:hover td { background: var(--color-surface); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4f0dc; color: #1d5c2d; }
.badge-warning { background: #fef3cc; color: #7a5800; }
.badge-error   { background: #fce0e0; color: #7b2020; }
.badge-info    { background: #d8eaf8; color: #1a4d7a; }
.badge-gray    { background: #eceae6; color: #555; }

/* ---------- Checkout-Schritte – Modern Stepper ---------- */
.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-top: var(--space-sm);
}
/* Connecting line */
.checkout-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--space-sm) + 16px); /* half of 32px circle */
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    padding: 0 4px;
}

.co-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: all var(--transition);
}
.co-step-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
}
@media (min-width: 480px) {
    .co-step-label { font-size: 13px; }
}

.co-step--done .co-step-num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}
.co-step--done .co-step-label {
    color: var(--color-success);
    font-weight: 600;
}

.co-step--active .co-step-num {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(201, 169, 122, 0.2);
}
.co-step--active .co-step-label {
    color: var(--color-accent-dark);
    font-weight: 700;
}

/* ---------- Anlass-Navigation – Mobile First ---------- */
.anlass-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.anlass-nav .container {
    display: flex;
    gap: var(--space-xs);
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    align-items: center;
}
.anlass-nav .container::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
    .anlass-nav .container { flex-wrap: wrap; overflow-x: visible; }
}

.anlass-chip {
    white-space: nowrap;
    padding: 6px 16px;
    min-height: 36px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    background: #fff;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    opacity: 1;
}
.anlass-chip:active { background: var(--color-surface-2); border-color: var(--color-accent); opacity: 1; }
@media (hover: hover) {
    .anlass-chip:hover { border-color: var(--color-accent); color: var(--color-accent-dark); opacity: 1; }
}
.anlass-chip.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

/* ---------- Zahlungs-Tabs ---------- */
.payment-method-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}
.payment-tab {
    padding: 10px 18px;
    min-height: 44px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.payment-tab:active { background: var(--color-surface); border-color: var(--color-accent); opacity: 1; }
@media (hover: hover) {
    .payment-tab:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
}
.payment-tab.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

/* ---------- Bundle-Angebot ---------- */
.bundle-section { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

.bundle-card {
    background: linear-gradient(135deg, #fff 0%, #fdf8f2 100%);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(201,169,122,.15);
}

.bundle-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: .04em;
    margin-bottom: var(--space-sm);
}

.bundle-title { font-size: 20px; margin-bottom: 6px; }
@media (min-width: 768px) { .bundle-title { font-size: 24px; } }

.bundle-desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: var(--space-md); }

.bundle-products {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}
.bundle-product-chip {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
}
.bundle-plus {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
}

.bundle-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.bundle-original {
    font-size: 16px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}
.bundle-discount-badge {
    background: #e8f5eb;
    color: var(--color-success);
    border: 1.5px solid var(--color-success);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
}
.bundle-final {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent-dark);
}
.bundle-saving {
    font-size: 13px;
    color: var(--color-success);
    font-weight: 500;
    width: 100%;
}

/* ---------- Gravur-Vorschau (Legacy) ---------- */
.gravur-preview {
    background: #2a1c10; border-radius: var(--radius-sm);
    padding: var(--space-md); text-align: center; margin-top: var(--space-sm);
    min-height: 70px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
}
.gravur-preview .preview-line { color: #e8c060; font-size: 18px; line-height: 1.4; }
.gravur-preview small { color: rgba(255,255,255,.35); font-size: 11px; }
