/* =========================================================
   Maschenglück – Frontend
   Farben & Stimmung abgeleitet vom Banner:
   Creme, Altrosa, Salbeigrün, warmes Holz, Schoko-Braun
   ========================================================= */
:root{
  --cream:#fbf6f1;
  --linen:#f4ebe2;
  --paper:#ffffff;
  --ink:#4a3934;          /* Schoko-Braun wie im Logo */
  --ink-soft:#6f5d56;
  --muted:#8d7b73;
  --rose:#c47a90;         /* Herz-Rosa */
  --rose-deep:#a65a72;    /* Buttons / Links */
  --rose-soft:#f5e3e6;
  --rose-mist:#fbf0f1;
  --sage:#879c80;
  --sage-deep:#5f7558;
  --sage-soft:#e6ece2;
  --wood:#c9a07a;
  --line:#eadfd4;

  --radius-xl:30px;
  --radius-lg:22px;
  --radius-md:16px;
  --shadow-soft:0 14px 40px -18px rgba(74,57,52,.28);
  --shadow-card:0 6px 22px -12px rgba(74,57,52,.22);
  --shadow-hover:0 22px 48px -20px rgba(74,57,52,.36);
  --ease:cubic-bezier(.22,.61,.36,1);

  --font-body:'Nunito', system-ui, sans-serif;
  --font-head:'Lora', Georgia, serif;
  --font-script:'Dancing Script', cursive;

  color-scheme:light;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; scroll-padding-top:84px;}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{font-family:var(--font-head); font-weight:600; line-height:1.2; color:var(--ink);}
a{color:inherit;}
img,svg{display:block; max-width:100%;}
button{font-family:inherit; cursor:pointer;}
.wrap{width:min(1160px, 100% - 40px); margin-inline:auto;}
.muted{color:var(--muted);}

.heart{width:1em; height:1em; fill:var(--rose); display:inline-block; flex:none;}

/* ===== Typo-Bausteine ===== */
.script-eyebrow{
  font-family:var(--font-script);
  font-size:1.65rem; font-weight:700; line-height:1;
  color:var(--rose-deep);
  display:inline-flex; align-items:center; gap:10px;
}
.script-eyebrow::before,.script-eyebrow::after{
  content:""; width:26px; height:1.5px; background:currentColor; opacity:.45; border-radius:2px;
}
.section-head{max-width:640px; margin:0 auto 46px; text-align:center;}
.section-head h2{font-size:clamp(2rem, 3.6vw, 2.75rem); margin-top:10px;}
.section-head p{color:var(--ink-soft); margin-top:12px;}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 30px; border-radius:999px; border:0;
  font-weight:800; font-size:.98rem; text-decoration:none; letter-spacing:.01em;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary{
  background:var(--rose-deep); color:#fff;
  box-shadow:0 12px 26px -12px rgba(166,90,114,.7);
}
.btn-primary:hover{background:#934c63; transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(166,90,114,.75);}
.btn-soft{background:var(--sage-soft); color:var(--sage-deep);}
.btn-soft:hover{background:var(--sage); color:#fff; transform:translateY(-2px);}

/* ===== Navigation ===== */
.topbar{
  position:sticky; top:0; z-index:60;
  background:rgba(251,246,241,.82);
  backdrop-filter:saturate(1.2) blur(12px);
  -webkit-backdrop-filter:saturate(1.2) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.topbar.scrolled{border-bottom-color:var(--line); box-shadow:0 8px 24px -20px rgba(74,57,52,.4);}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; height:70px;}
.brand{
  font-family:var(--font-script); font-weight:700; font-size:2rem; line-height:1;
  color:var(--ink); text-decoration:none;
  display:inline-flex; align-items:flex-start; gap:4px;
}
.brand .heart{width:.55em; height:.55em; margin-top:-.1em;}
.nav-links{display:flex; align-items:center; gap:6px;}
.nav-links a{
  text-decoration:none; font-weight:700; font-size:.95rem; color:var(--ink-soft);
  padding:9px 16px; border-radius:999px;
  transition:color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover{color:var(--rose-deep); background:var(--rose-mist);}
.nav-links a.active{color:var(--rose-deep);}
.nav-links a.nav-cta{background:var(--rose-deep); color:#fff; margin-left:8px;}
.nav-links a.nav-cta:hover{background:#934c63; color:#fff;}
.nav-toggle{display:none; background:none; border:0; width:44px; height:44px; position:relative;}
.nav-toggle span{
  position:absolute; left:11px; right:11px; height:2px; border-radius:2px; background:var(--ink);
  transition:transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1){top:15px;}
.nav-toggle span:nth-child(2){top:21px;}
.nav-toggle span:nth-child(3){top:27px;}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* ===== Banner ===== */
.hero{position:relative; background:var(--linen);}
.hero-img{
  width:100%; height:auto;
  aspect-ratio:2048/768;
  max-height:640px; object-fit:cover; object-position:center 45%;
}
.hero::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:22%;
  background:linear-gradient(to bottom, rgba(251,246,241,0), var(--cream));
  pointer-events:none;
}

/* ===== Willkommen ===== */
.welcome{position:relative; z-index:2; padding-bottom:40px;}
.welcome-card{
  max-width:780px; margin:-70px auto 0; position:relative;
  background:var(--paper); border-radius:var(--radius-xl);
  padding:46px 54px 44px; text-align:center;
  box-shadow:var(--shadow-soft);
}
.welcome-card h1{font-size:clamp(1.9rem, 3.6vw, 2.6rem); margin:12px 0 14px;}
.welcome-card .lead{color:var(--ink-soft); max-width:58ch; margin:0 auto;}
.welcome-actions{display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:28px;}

.promise{
  list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
  max-width:980px; margin:56px auto 0;
}
.promise li{text-align:center; padding:8px 18px;}
.promise-icon{
  width:62px; height:62px; border-radius:50%; margin:0 auto 14px;
  display:grid; place-items:center;
  background:var(--rose-soft); color:var(--rose-deep);
}
.promise li:nth-child(2) .promise-icon{background:var(--sage-soft); color:var(--sage-deep);}
.promise-icon svg{width:28px; height:28px;}
.promise strong{display:block; font-family:var(--font-head); font-size:1.2rem; font-weight:600; margin-bottom:4px;}
.promise span:not(.promise-icon){color:var(--ink-soft); font-size:.95rem; display:block;}

/* ===== Sektionen ===== */
.section{padding:96px 0; position:relative;}
.section-linen{background:var(--linen);}
.section-rose{background:linear-gradient(180deg, var(--rose-mist), var(--rose-soft));}

/* ===== Produkte ===== */
.cat-filter{display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-bottom:40px;}
.cat-filter button{
  background:var(--paper); border:1.5px solid var(--line); color:var(--ink-soft);
  padding:9px 20px; border-radius:999px; font-weight:700; font-size:.92rem;
  transition:all .2s var(--ease);
}
.cat-filter button:hover{border-color:var(--rose); color:var(--rose-deep);}
.cat-filter button.active{background:var(--ink); border-color:var(--ink); color:#fff;}

.product-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:28px;}
.product-card{
  background:var(--paper); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-card); cursor:pointer;
  display:flex; flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-hover);}
.product-card:focus-visible{outline:3px solid var(--rose); outline-offset:3px;}
.product-card.is-hidden{display:none;}
.product-thumb{position:relative; aspect-ratio:4/5; overflow:hidden; background:var(--linen);}
.product-thumb img{width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease);}
.product-card:hover .product-thumb img{transform:scale(1.05);}
.thumb-placeholder{width:100%; height:100%; display:grid; place-items:center; background:var(--rose-mist);}
.thumb-placeholder .heart{width:46px; height:46px; opacity:.55;}
.gallery-badge{
  position:absolute; top:12px; right:12px;
  display:inline-flex; align-items:center; gap:5px;
  background:rgba(255,255,255,.9); color:var(--ink);
  padding:5px 10px; border-radius:999px; font-size:.76rem; font-weight:800;
  box-shadow:0 4px 12px -6px rgba(0,0,0,.3);
}
.gallery-badge svg{width:13px; height:13px;}
.product-body{padding:18px 22px 22px; display:flex; flex-direction:column; flex:1;}
.product-cat{
  align-self:flex-start;
  font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:var(--sage-deep); background:var(--sage-soft);
  padding:4px 11px; border-radius:999px;
}
.product-body h3{font-size:1.18rem; margin:12px 0 6px;}
.product-body p{
  font-size:.92rem; color:var(--ink-soft); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.product-more{margin-top:auto; padding-top:14px; font-weight:800; font-size:.88rem; color:var(--rose-deep);}
.product-more span{display:inline-block; transition:transform .25s var(--ease);}
.product-card:hover .product-more span{transform:translateX(4px);}
.empty-hint{
  grid-column:1/-1; text-align:center; color:var(--muted);
  border:1.5px dashed var(--line); border-radius:var(--radius-lg); padding:48px 24px;
}

/* ===== Über mich ===== */
.about-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:80px; align-items:center;}
.about-photo{position:relative; max-width:420px; width:100%; justify-self:center;}
.about-photo::before{
  content:""; position:absolute; inset:24px -24px -24px 24px;
  border-radius:220px 220px var(--radius-lg) var(--radius-lg);
  background:var(--rose-soft);
}
.about-frame{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  border-radius:220px 220px var(--radius-lg) var(--radius-lg);
  box-shadow:var(--shadow-soft); background:var(--paper);
}
.about-frame img{width:100%; height:100%; object-fit:cover;}
.about-yarn{
  position:absolute; right:-34px; top:38%; width:74px; height:74px; border-radius:50%;
  background:
    repeating-linear-gradient(35deg, transparent 0 5px, rgba(255,255,255,.35) 5px 7px),
    radial-gradient(circle at 35% 30%, #d9a2b2, var(--rose) 70%);
  box-shadow:var(--shadow-card);
}
.about-text h2{font-size:clamp(1.9rem, 3.4vw, 2.5rem); margin:10px 0 20px;}
.about-copy p{color:var(--ink-soft);}
.signature{
  font-family:var(--font-script); font-weight:700; font-size:2.1rem; color:var(--rose-deep);
  margin-top:22px; display:inline-flex; align-items:center; gap:8px;
}
.signature .heart{width:.6em; height:.6em;}

/* ===== Schulungen & Kontakt ===== */
.course-grid,.contact-grid{display:grid; grid-template-columns:1fr 1.05fr; gap:64px; align-items:start;}
.course-intro h2,.contact-intro h2{font-size:clamp(1.9rem, 3.4vw, 2.5rem); margin:10px 0 18px;}
.course-intro p,.contact-intro p{color:var(--ink-soft);}
.checklist{list-style:none; margin-top:26px; display:grid; gap:12px;}
.checklist li{display:flex; align-items:center; gap:12px; font-weight:700;}
.checklist li::before{
  content:""; flex:none; width:26px; height:26px; border-radius:50%;
  background:var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7558' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

.contact-methods{display:grid; gap:14px; margin-top:30px;}
.contact-method{
  display:flex; align-items:center; gap:16px;
  background:var(--paper); border-radius:var(--radius-md); padding:16px 20px;
  text-decoration:none; box-shadow:var(--shadow-card);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-method:hover{transform:translateY(-3px); box-shadow:var(--shadow-hover);}
.cm-icon{
  width:48px; height:48px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:var(--rose-soft); color:var(--rose-deep);
}
.cm-icon.wa{background:#e2f3e6; color:#2f8a4b;}
.cm-icon svg{width:22px; height:22px;}
.contact-method small{display:block; font-size:.78rem; color:var(--muted); font-weight:700;}
.contact-method strong{font-size:1.02rem; word-break:break-word;}

/* ===== Formulare ===== */
.form-card{
  background:var(--paper); border-radius:var(--radius-xl);
  padding:38px 40px; box-shadow:var(--shadow-soft);
}
.form-card h3{font-size:1.4rem; margin-bottom:20px;}
.form{display:flex; flex-direction:column; gap:16px;}
.form-row-2{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.field label{display:block; font-weight:700; font-size:.88rem; margin-bottom:6px; color:var(--ink);}
.field label small{font-weight:600; color:var(--muted);}
.form input,.form textarea{
  width:100%; background:var(--cream); color:var(--ink);
  border:1.5px solid var(--line); border-radius:14px;
  padding:13px 16px; font-family:var(--font-body); font-size:1rem;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.form input::placeholder,.form textarea::placeholder{color:#b3a39b;}
.form input:focus,.form textarea:focus{
  outline:none; border-color:var(--rose); background:#fff;
  box-shadow:0 0 0 4px rgba(196,122,144,.16);
}
.form textarea{resize:vertical; min-height:110px;}
.form .btn{align-self:flex-start; margin-top:6px;}
.hp-field{position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0;}
.form-flash{padding:14px 18px; border-radius:14px; margin-bottom:20px; font-weight:700; font-size:.92rem;}
.form-flash.success{background:var(--sage-soft); color:var(--sage-deep);}
.form-flash.error{background:#fbe6e6; color:#a33b3b;}

/* Hinweis unter Formularen */
.form-note{font-size:.84rem; color:var(--muted); margin-top:2px;}
.form-note a{color:var(--rose-deep); font-weight:700;}

/* ===== Produkt-Popup ===== */
.product-modal-overlay{
  position:fixed; inset:0; z-index:500;
  background:rgba(74,57,52,.5); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden;
  transition:opacity .25s ease, visibility 0s linear .25s;
}
.product-modal-overlay.open{opacity:1; visibility:visible; transition:opacity .25s ease, visibility 0s linear 0s;}
.product-modal{
  background:var(--paper); border-radius:var(--radius-xl); box-shadow:var(--shadow-hover);
  width:100%; max-width:940px; max-height:90vh; overflow:auto;
  display:grid; grid-template-columns:1.1fr 1fr; position:relative;
  transform:translateY(16px) scale(.98); transition:transform .3s var(--ease);
}
.product-modal-overlay.open .product-modal{transform:none;}
.product-modal-close{
  position:absolute; top:14px; right:14px; z-index:3;
  width:40px; height:40px; border-radius:50%; border:0;
  background:rgba(255,255,255,.92); color:var(--ink); font-size:1.5rem; line-height:1;
  box-shadow:var(--shadow-card); display:grid; place-items:center;
  transition:background .2s, color .2s;
}
.product-modal-close:hover{background:var(--rose-deep); color:#fff;}
.product-modal-gallery{background:var(--linen); padding:22px; display:flex; flex-direction:column; gap:12px;}
.modal-main{position:relative;}
.modal-main img{width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--radius-md); background:var(--paper);}
.modal-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%; border:0;
  background:rgba(255,255,255,.9); color:var(--ink); font-size:1.6rem; line-height:1;
  display:none; place-items:center; box-shadow:var(--shadow-card);
}
.modal-nav.prev{left:10px;} .modal-nav.next{right:10px;}
.modal-main.has-many .modal-nav{display:grid;}
.product-modal-thumbs{display:flex; flex-wrap:wrap; gap:8px;}
.product-modal-thumb{
  width:58px; height:58px; object-fit:cover; border-radius:10px; cursor:pointer;
  border:2px solid transparent; opacity:.65; transition:opacity .2s, border-color .2s;
}
.product-modal-thumb:hover{opacity:1;}
.product-modal-thumb.active{border-color:var(--rose-deep); opacity:1;}
.product-modal-info{padding:44px 36px 36px; display:flex; flex-direction:column; align-items:flex-start;}
.product-modal-info h3{font-size:1.7rem; margin:14px 0 14px;}
.product-modal-info p{color:var(--ink-soft); white-space:pre-line;}
.size-pill{margin-top:18px; background:var(--rose-mist); color:var(--ink); padding:7px 14px; border-radius:999px; font-size:.9rem;}
.product-modal-info .btn{margin-top:auto;}
.product-modal-info p + .btn,.size-pill + .btn{margin-top:28px;}

/* ===== Footer ===== */
.footer{background:var(--ink); color:#e9ddd6; padding:56px 0 26px;}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;}
.brand-footer{color:#fff; font-size:2.1rem;}
.footer-tag{color:#c9b6ad; font-size:.92rem; margin-top:6px;}
.footer-links{display:flex; flex-wrap:wrap; gap:6px 22px;}
.footer-links a{color:#e9ddd6; text-decoration:none; font-weight:700; font-size:.93rem;}
.footer-links a:hover{color:#f3c4d1;}
.copy{text-align:center; color:#a8958c; font-size:.84rem; margin-top:40px; padding:22px 20px 0; border-top:1px solid rgba(255,255,255,.1); width:min(1160px, 100% - 40px); margin-inline:auto;}

/* ===== Einblend-Animation ===== */
.reveal{opacity:0; transform:translateY(22px); transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal.in{opacity:1; transform:none;}
.no-js .reveal{opacity:1; transform:none;}

/* ===== Jahreszeiten (im Admin wählbar) ===== */
.season-particle{
  position:fixed; top:-6%; pointer-events:none; z-index:40;
  animation-name:season-fall; animation-timing-function:linear; animation-iteration-count:infinite;
  user-select:none; line-height:1;
}
@keyframes season-fall{
  0%{transform:translateY(0) translateX(0) rotate(0deg);}
  50%{transform:translateY(55vh) translateX(18px) rotate(180deg);}
  100%{transform:translateY(112vh) translateX(-10px) rotate(360deg);}
}
body.season-fruehling{--rose-mist:#fcf0f3;}
body.season-sommer{--linen:#f7eedd;}
body.season-herbst{--linen:#f3e6da;}
body.season-winter{--linen:#eef1f2; --cream:#f9f8f6;}

/* ===== Responsive ===== */
@media (max-width:960px){
  .about-grid,.course-grid,.contact-grid{grid-template-columns:1fr; gap:48px;}
  .about-photo{max-width:340px;}
  .about-text{text-align:center;}
  .product-modal{grid-template-columns:1fr; max-width:560px;}
  .modal-main img{aspect-ratio:1/1;}
  .product-modal-info{padding:28px 26px 30px;}
}
@media (max-width:820px){
  .nav-toggle{display:block;}
  .nav-links{
    position:absolute; top:70px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:2px;
    background:var(--cream); border-bottom:1px solid var(--line);
    padding:10px 20px 20px; box-shadow:0 20px 30px -24px rgba(74,57,52,.5);
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:12px 14px;}
  .nav-links a.nav-cta{margin:8px 0 0; text-align:center;}
  .promise{grid-template-columns:1fr; gap:18px; margin-top:40px; max-width:520px;}
  .promise li{display:grid; grid-template-columns:54px 1fr; column-gap:16px; text-align:left; padding:0;}
  .promise-icon{grid-row:span 2; width:54px; height:54px; margin:0;}
  .promise strong{margin:2px 0 0;}
}
@media (max-width:640px){
  body{font-size:16px;}
  .wrap{width:calc(100% - 32px);}
  .brand{font-size:1.75rem;}
  .hero-img{aspect-ratio:2/1; object-position:51% center;}
  .welcome-card{margin-top:-36px; padding:32px 22px; border-radius:24px;}
  .welcome-actions .btn{width:100%;}
  .section{padding:68px 0;}
  .form-card{padding:26px 20px; border-radius:24px;}
  .form-row-2{grid-template-columns:1fr;}
  .form .btn{align-self:stretch;}
  .product-grid{grid-template-columns:repeat(2, 1fr); gap:14px;}
  .product-body{padding:12px 14px 16px;}
  .product-body h3{font-size:1rem; margin:8px 0 4px;}
  .product-body p{display:none;}
  .product-cat{font-size:.66rem; padding:3px 8px;}
  .product-more{font-size:.82rem; padding-top:8px;}
  .about-yarn{right:-8px; width:56px; height:56px;}
  .about-photo::before{inset:16px -12px -14px 14px;}
  .footer-inner{flex-direction:column; text-align:center;}
  .footer-links{justify-content:center;}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{transition:none !important; animation:none !important;}
  .reveal{opacity:1; transform:none;}
  .season-particle{display:none;}
}
:focus-visible{outline:3px solid var(--rose); outline-offset:2px;}
