:root {
    --ink: #1a1714;
    --paper: #faf8f4;
    --cream: #f2ede4;
    --gold: #b8953a;
    --gold-light: #e8d9b0;
    --muted: #6b6560;
    --accent: #2c3e2d;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--gold-light);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 3rem;
    height: 64px;
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-logo span { color: var(--gold); }
  .nav-links { display: flex; gap: 2rem; align-items: center; }
  .nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--ink); }
  .lang-toggle {
    display: flex; gap: 0; background: var(--cream);
    border-radius: 4px; overflow: hidden;
    border: 1px solid var(--gold-light);
  }
  .lang-toggle button {
    background: none; border: none; cursor: pointer;
    padding: 5px 12px; font-size: 0.78rem;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.06em;
    color: var(--muted);
    transition: all 0.2s;
  }
  .lang-toggle button.active {
    background: var(--gold);
    color: #fff;
  }

  /* SECTIONS */
  section { padding: 6rem 3rem; max-width: 1100px; margin: 0 auto; }
  .section-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
  }
  h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
  }
  h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1rem;
  }
  h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--ink);
  }
  p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }

  /* HERO */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 64px;
    max-width: none;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    overflow: hidden;
  }
  #hero::before {
    content: 'SmArt';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-60%) rotate(-90deg);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18vw;
    font-weight: 600;
    color: var(--gold-light);
    opacity: 0.3;
    pointer-events: none;
    line-height: 1;
  }
  .hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; }
  .hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1.5rem;
  }
  .hero-text { max-width: 580px; margin: 2rem 0 3rem; }
  .hero-text p { font-size: 1.05rem; }
  .btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.85rem 2.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s;
    cursor: pointer;
  }
  .btn-gold {
    background: var(--gold);
    color: #fff;
    border: 1px solid var(--gold);
  }
  .btn-gold:hover { background: #a07c2e; }
  .btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    margin-left: 1rem;
  }
  .btn-outline:hover { background: var(--ink); color: var(--paper); }

  /* DIVIDER */
  .divider {
    width: 100%; border: none;
    border-top: 1px solid var(--gold-light);
    margin: 0;
  }

  /* SERVICES GRID */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  .service-card {
    border: 1px solid var(--gold-light);
    padding: 2rem;
    background: var(--cream);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.07); }
  .service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.5rem;
  }
  .service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
  }
  .service-card ul li {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gold-light);
  }
  .service-card ul li:last-child { border-bottom: none; }
  .ref-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-top: 0.8rem;
  }

  /* SHOP */
  #shop { background: var(--cream); max-width: none; padding-left: 3rem; padding-right: 3rem; }
  .shop-inner { max-width: 1100px; margin: 0 auto; }
  .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: stretch;
  }
  .shop-item {
    background: var(--paper);
    border: 1px solid var(--gold-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .shop-img {
    height: 220px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: var(--gold);
    font-style: italic;
  }
  .shop-info {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .shop-info h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .shop-info p { flex: 1; margin-bottom: 0.5rem; }
  .shop-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
    margin: 0.5rem 0 0.2rem;
  }
  .shop-price-note {
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
  }
  .shop-buy {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
  }
  .shop-buy:hover { background: var(--gold); }
  .shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
    font-size: 0.95rem;
  }
  .filter-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  /* PAYMENT MODAL */
  .modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(26,23,20,0.6);
    align-items: center; justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--paper);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    border-top: 3px solid var(--gold);
    position: relative;
  }
  .modal h3 { margin-bottom: 0.5rem; }
  .modal-price { color: var(--gold); font-size: 1.6rem; font-family: 'Cormorant Garamond', serif; font-weight: 600; margin-bottom: 0.75rem; }
  .modal-shipping {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: var(--cream);
    border: 1px solid var(--gold-light);
  }
  .modal-shipping-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
  }
  .shipping-options { display: grid; gap: 0.45rem; }
  .shipping-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    cursor: pointer;
  }
  .shipping-option input { accent-color: var(--gold); }
  .modal-shipping-breakdown {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    color: var(--muted);
  }
  .modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.4rem;
    cursor: pointer; color: var(--muted);
  }
  .pay-methods { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
  .pay-btn {
    flex: 1; padding: 0.9rem; border: 1px solid var(--gold-light);
    background: var(--cream); cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.2s;
  }
  .pay-btn:hover { border-color: var(--gold); background: var(--paper); }
  .pay-btn.paypal { font-weight: 600; color: #003087; }
  .pay-btn.card { color: var(--ink); }
  .card-form { display: none; }
  .card-form.open { display: block; }
  .form-group { margin-bottom: 1rem; }
  .form-group label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
  .form-group input {
    width: 100%; padding: 0.7rem 0.9rem;
    border: 1px solid var(--gold-light);
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
  }
  .form-group input:focus { border-color: var(--gold); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .btn-pay {
    width: 100%; padding: 0.9rem;
    background: var(--gold); color: #fff; border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem; letter-spacing: 0.1em;
    text-transform: uppercase; cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
  }
  .btn-pay:hover { background: #a07c2e; }
  .secure-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.8rem; }

  /* ABOUT */
  .about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; margin-top: 3rem; }
  .about-portrait {
    aspect-ratio: 3/4;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold);
    text-align: center;
    padding: 2rem;
  }
  .about-text p { font-size: 1rem; }
  .carpe { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic; color: var(--gold); margin: 1.5rem 0; }

  /* CONTACT */
  #contact { max-width: none; padding-left: 3rem; padding-right: 3rem; background: var(--ink); }
  #contact .section-inner { max-width: 1100px; margin: 0 auto; }
  #contact .section-label { color: var(--gold); }
  #contact h2 { color: var(--paper); }
  #contact p { color: rgba(250,248,244,0.6); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3rem; }
  .contact-info a {
    display: block;
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%; padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(184,149,58,0.3);
    color: var(--paper);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
  }
  .contact-form input:focus,
  .contact-form textarea:focus { border-color: var(--gold); }
  .contact-form textarea { height: 120px; resize: vertical; }
  .contact-form label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,248,244,0.4); margin-bottom: 0.4rem; }

  /* SOCIAL */
  .social-bar {
    display: flex; gap: 1rem; margin-top: 2rem; align-items: center;
  }
  .social-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(184,149,58,0.4);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s;
  }
  .social-btn:hover { background: var(--gold); color: var(--ink); }

  /* FOOTER */
  footer {
    background: var(--ink);
    border-top: 1px solid rgba(184,149,58,0.2);
    padding: 1.5rem 3rem;
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--paper);
  }
  .footer-logo span { color: var(--gold); }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a {
    font-size: 0.75rem;
    color: rgba(250,248,244,0.35);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--gold); }

  /* ANIMATIONS */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  .hero-inner > * { animation: fadeUp 0.7s ease both; }
  .hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.55s; }


  .filter-btn {
    background: none; border: 1px solid var(--gold-light);
    padding: 0.3rem 0.9rem; font-size: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--muted); cursor: pointer; transition: all 0.2s;
    letter-spacing: 0.05em;
  }
  .filter-btn.active, .filter-btn:hover {
    background: var(--gold); color: #fff; border-color: var(--gold);
  }
  .painting-img {
    height: 300px;
    overflow: hidden;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .painting-img img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
  }
  .shop-item:hover .painting-img img { transform: scale(1.03); }
  /* Lightbox */
  #lightbox {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(10,8,6,0.92);
    align-items: center; justify-content: center;
    cursor: zoom-out;
  }
  #lightbox.open { display: flex; }
  #lightbox img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  }
  #lightbox-caption {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
    letter-spacing: 0.1em; text-align: center; pointer-events: none;
  }
  #lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    color: rgba(255,255,255,0.6); font-size: 2rem; cursor: pointer;
    background: none; border: none; line-height: 1;
  }
  #lightbox-close:hover { color: #fff; }
  .sold-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--ink); color: var(--paper);
    font-size: 0.7rem; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 3px 8px;
  }
  .shop-item { position: relative; }

  @media (max-width: 768px) {
    nav { padding: 0 1.5rem; }
    .nav-links { display: none; }
    section, #shop, #contact { padding: 4rem 1.5rem; }
    #hero { padding-left: 1.5rem; padding-right: 1.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
    .social-bar { flex-wrap: wrap; }
  }

  #shop, #paintings-grid, #services-section { scroll-margin-top: 90px; }
  #impressum, #datenschutz, #lieferbedingungen, #widerruf, #agb { scroll-margin-top: 90px; }

  .ref-popup-overlay {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,.65); align-items: center; justify-content: center; padding: 20px;
  }
  .ref-popup-overlay.open { display: flex; }
  .ref-popup {
    background: var(--paper); max-width: 650px; width: min(650px, 92vw);
    padding: 2rem; border-top: 3px solid var(--gold); position: relative;
    box-shadow: 0 20px 80px rgba(0,0,0,.28);
  }
  .ref-popup-close {
    position: absolute; right: 1rem; top: .5rem; border: none;
    background: none; font-size: 1.6rem; cursor: pointer; color: var(--muted);
  }
  .ref-tag { cursor: pointer; }
  .ref-tag:hover { text-decoration: underline; }

  .order-actions { display:grid; gap:.75rem; margin-top:1rem; }
  .order-actions.payment-row {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }
  .order-actions a,
  .order-actions button {
    text-align:center; text-decoration:none; display:block; width:100%; padding:.9rem;
    border:none; cursor:pointer; font-family:'DM Sans',sans-serif; font-size:.85rem;
    letter-spacing:.1em; text-transform:uppercase;
  }
  .order-pay { color:#fff; font-weight:500; }
  .order-pay:disabled { opacity:.6; cursor:not-allowed; }
  .order-pay-card { background:#635bff; }
  .order-pay-twint { background:#000; }
  .order-pay-paypal { background:#0070ba; }
  .order-actions.payment-row .order-pay {
    padding: .75rem .4rem;
    font-size: .78rem;
  }
  @media (max-width: 480px) {
    .order-actions.payment-row { grid-template-columns: 1fr; }
  }
  .order-mail { background:var(--gold); color:#fff; }
  .order-whatsapp { background:#1f7a4d; color:#fff; }
  .order-note { font-size:.78rem; color:var(--muted); margin-top:.8rem; text-align:center; }