:root {
  --sage: #7f8f80;
  --sage-dark: #66766a;
  --sage-light: #a9b7a6;
  --pink: #f6e1df;
  --pink-deep: #e7b9b5;
  --rose: #c9787a;
  --rose-dark: #a85c60;
  --ink: #3f3a3a;
  --muted: #8a8282;
  --card: #fff;
  --line: #ece4e2;
  --wa: #25d366;
  --radius: 4px;
  --shadow: 0 6px 18px rgba(120, 80, 80, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background-color: #fbefed;
  /* Aquarell-Look */
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(240, 190, 185, .55), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 30%, rgba(246, 210, 200, .6), transparent 70%),
    radial-gradient(ellipse 70% 40% at 30% 75%, rgba(242, 200, 198, .45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(235, 190, 190, .4), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding: 40px 16px; }
.script { font-family: 'Dancing Script', cursive; font-weight: 700; }
.muted { color: var(--muted); margin: 4px 0 0; }
.small { font-size: .85rem; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--sage);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  border-top: 4px solid var(--sage-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { text-decoration: none; color: #fff; display: flex; align-items: center; }
.logo-badge {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  padding: 10px 20px;
  border: 2px dashed rgba(255, 255, 255, .55);
  border-radius: 40px;
  background: rgba(255, 255, 255, .08);
  white-space: nowrap;
}
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a, .main-nav .linklike {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  font-size: .95rem;
  border-radius: 3px;
  transition: background .2s;
}
.main-nav a:hover, .main-nav a.active, .main-nav .linklike:hover { background: rgba(255, 255, 255, .16); }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; }
.inline { display: inline; margin: 0; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 760px) {
  .logo-badge { font-size: 1.35rem; padding: 8px 14px; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
  }
  .nav-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sage-dark);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
  }
  .main-nav a, .main-nav .linklike { padding: 12px 8px; text-align: left; width: 100%; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 32px 0 0; }
.hero-card {
  position: relative;
  background:
    linear-gradient(rgba(70, 60, 55, .35), rgba(70, 60, 55, .35)),
    repeating-linear-gradient(90deg, #a07a5c 0 2px, #9a7457 2px 80px, #8f6b4f 80px 82px, #a37d5f 82px 160px);
  border: 10px solid #fff;
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}
.hero-text h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0; line-height: 1.1; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.hero-text p { font-size: 1.15rem; margin: 8px 0 22px; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.flowers { position: absolute; right: -24px; bottom: -36px; width: 140px; }

/* ---------- Überschriften ---------- */
.section-title { text-align: center; margin: 0 0 28px; }
.section-title span {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--ink);
  position: relative;
  padding: 0 46px;
}
.section-title span::before, .section-title span::after {
  content: '';
  position: absolute; top: 55%;
  width: 34px; height: 2px; background: var(--rose);
  border-radius: 2px;
}
.section-title span::before { left: 0; }
.section-title span::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rose);
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 12px 26px;
  font: 700 1rem 'Nunito', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--rose-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--rose-dark); border: 2px solid var(--rose); }
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #1ebe5a; }
.btn-danger { background: #c0504d; }
.btn-danger:hover { background: #9e3b38; }

/* ---------- Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--sage-light);
  background: rgba(255, 255, 255, .7);
  color: var(--sage-dark);
  border-radius: 20px;
  padding: 6px 16px;
  font: 600 .9rem 'Nunito', sans-serif;
  cursor: pointer;
}
.chip.active, .chip:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- Produktkarten ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px 26px;
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
}
.card {
  position: relative;
  background: var(--card);
  padding: 10px 10px 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 12px 26px rgba(120, 80, 80, .18); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: #f4efee; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 6px 0; }
.card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.card-sub { font-size: .85rem; color: var(--muted); }
.card-cat { font-size: .82rem; color: var(--sage-dark); margin-top: 6px; letter-spacing: .02em; }
.card-price { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-top: 4px; }
.card-heart {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink-deep); color: var(--rose-dark);
  display: grid; place-items: center; font-size: .8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.card.is-sold .card-img img { filter: grayscale(.7) opacity(.7); }
@media (max-width: 520px) {
  .card { padding: 6px 6px 20px; }
  .card h3 { font-size: .9rem; }
  .card-price { font-size: 1.05rem; }
}

.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 14px;
  font-size: .78rem; font-weight: 700; color: #fff;
}
.badge-new { background: var(--sage); }
.badge-sold { background: #7a6a6a; }
.badge-reserved { background: #d49a4a; }

.noimg { display: grid; place-items: center; height: 100%; min-height: 160px; color: var(--muted); }
.empty {
  text-align: center; padding: 50px 20px; background: rgba(255, 255, 255, .75);
  box-shadow: var(--shadow); font-size: 1.05rem;
}

/* ---------- Über mich ---------- */
.about-card {
  background: #fff; padding: 30px; box-shadow: var(--shadow);
  text-align: center; max-width: 700px; margin: 0 auto; font-size: 1.05rem;
}

/* ---------- Artikelseite ---------- */
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; color: var(--sage-dark); font-weight: 600; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { position: relative; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; max-height: 75vh; object-fit: contain; background: #f6f1f0; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { border: 3px solid #fff; padding: 0; width: 72px; height: 72px; cursor: pointer; background: #fff; box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--rose); }
.product-info { background: #fff; padding: 28px; box-shadow: var(--shadow); }
.product-cat { color: var(--sage-dark); font-weight: 600; font-size: .9rem; }
.product-info h1 { margin: 4px 0 8px; font-size: 1.7rem; line-height: 1.25; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--rose-dark); margin-bottom: 18px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; }
.description { margin-bottom: 22px; white-space: normal; }
.actions { display: flex; flex-direction: column; gap: 10px; }

.notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
.notice-sold { background: #eee6e6; color: #6a5a5a; }
.notice-reserved { background: #fbecd6; color: #8a5a1a; }
.notice-error { background: #fbe0de; color: #9e3b38; }
.flash { background: #e3ecdf; color: #3f5a3c; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--sage); color: #fff; text-align: center; padding: 30px 0 24px; margin-top: 40px; }
.site-footer p { margin: 4px 0; opacity: .9; }
.footer-script { font-family: 'Dancing Script', cursive; font-size: 2rem; }

/* ---------- Verwaltung ---------- */
.pin-card {
  max-width: 360px; margin: 30px auto; background: #fff; padding: 36px 28px;
  box-shadow: var(--shadow); text-align: center;
}
.pin-card h1 { font-size: 2.6rem; margin: 0; }
.pin-input {
  width: 100%; font-size: 2rem; text-align: center; letter-spacing: .6em;
  padding: 12px 0 12px .6em; margin: 10px 0 18px;
  border: 2px solid var(--line); border-radius: var(--radius);
}
.pin-input:focus { outline: none; border-color: var(--sage); }
.pin-card .btn { width: 100%; }

.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 2.6rem; margin: 0; line-height: 1; }
.admin-list { display: flex; flex-direction: column; gap: 14px; }
.admin-item { display: flex; gap: 14px; background: #fff; padding: 12px; box-shadow: var(--shadow); align-items: center; }
.admin-item.is-sold { opacity: .7; }
.admin-thumb { flex: 0 0 84px; width: 84px; height: 100px; background: #f4efee; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.admin-item-meta { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; flex-wrap: wrap; }
.admin-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status { font-size: .78rem; padding: 2px 9px; border-radius: 12px; font-weight: 700; }
.status-available { background: #e3ecdf; color: #3f5a3c; }
.status-reserved { background: #fbecd6; color: #8a5a1a; }
.status-sold { background: #eee6e6; color: #6a5a5a; }
.status-hidden { background: #e8e8f2; color: #555; }

.btn-small {
  display: inline-block; font: 600 .85rem 'Nunito', sans-serif;
  padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: #faf6f5; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-small:hover { border-color: var(--sage); }
.btn-small-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-small.copied { background: var(--sage); color: #fff; border-color: var(--sage); }

.form fieldset { border: 0; background: #fff; padding: 20px; margin: 0 0 18px; box-shadow: var(--shadow); }
.form legend { font-family: 'Dancing Script', cursive; font-size: 1.7rem; font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.form label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .95rem; clear: both; }
.form input[type=text], .form input[type=tel], .form select, .form textarea {
  display: block; width: 100%; margin-top: 5px;
  padding: 11px 12px; font: 400 1rem 'Nunito', sans-serif;
  border: 1px solid #ddd3d1; border-radius: var(--radius); background: #fffdfc;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sage-light); border-color: var(--sage); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 0; } }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; clear: both; }
.form .radio, .form .check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin: 0; }
.form .radio { border: 1px solid var(--line); padding: 8px 14px; border-radius: 20px; }
.form .check { font-weight: 400; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 10px; clear: both; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.delete-form { margin-top: 40px; text-align: right; }

.upload-btn {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--sage-light); background: #f6f9f5; color: var(--sage-dark);
  padding: 18px; border-radius: var(--radius); cursor: pointer; font-size: 1.05rem; margin: 6px 0 0 !important;
}
.upload-btn:hover { background: #eef4ec; }
.upload-btn input { display: none; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; clear: both; }
.img-grid:not(:empty) { margin-bottom: 10px; }
.img-tile { position: relative; aspect-ratio: 4 / 5; background: #f4efee; border: 1px solid var(--line); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile-tools { position: absolute; bottom: 4px; left: 4px; right: 4px; display: flex; justify-content: space-between; }
.tile-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); cursor: pointer; font-size: .8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.tile-del { color: #c0504d; font-weight: 700; }
.cover-tag, .new-tag {
  position: absolute; top: 4px; left: 4px; background: var(--rose); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 10px;
}
.new-tag { background: var(--sage); }

.link-box { background: #fff; padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 18px; border-left: 4px solid var(--wa); }
.link-box label { font-weight: 700; display: block; margin-bottom: 6px; }
.link-row { display: flex; gap: 6px; flex-wrap: wrap; }
.link-row input { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; color: var(--muted); }

.saving { position: fixed; inset: 0; background: rgba(255, 255, 255, .8); display: grid; place-items: center; z-index: 100; font-size: 1.2rem; font-weight: 700; color: var(--sage-dark); }
