/* public/css/templates.css — die drei Designvorlagen (Einstellung shop.template, body.tpl-<id>) plus Demo-Leiste.
   Schriften liegen lokal unter /static/fonts (keine fremden Server). Primär- und Akzentfarbe kommen weiter aus den Einstellungen. */

@font-face { font-family: "Inter"; src: url(../fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-300-700-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree-var-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree-var-latinext.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-300-700-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-300-700-latin-ext.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-var-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-var-latinext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Startbild (alle Vorlagen) ---------- */
.hero.has-media { position: relative; overflow: hidden; }
.hero-media { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   Vorlage Klar: sachlich und hell (Grundstil aus shop.css, Inter geladen)
   ===================================================================== */
.tpl-klar { --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.tpl-klar .hero.has-media { display: grid; padding: 0; text-align: left; background: var(--c-surface); }
.tpl-klar .hero.has-media .hero-media { aspect-ratio: 16 / 9; }
.tpl-klar .hero.has-media .hero-inner { padding: var(--s-5) var(--s-4) var(--s-6); max-width: none; margin: 0; }
@media (min-width: 960px) {
  .tpl-klar .hero.has-media { grid-template-columns: 1fr 1.15fr; align-items: center; }
  .tpl-klar .hero.has-media .hero-inner { order: -1; padding: var(--s-6) var(--s-6); }
  .tpl-klar .hero.has-media .hero-media { aspect-ratio: auto; min-height: 380px; }
}

/* =====================================================================
   Vorlage Manufaktur: warm, handwerklich, weich gerundet
   ===================================================================== */
.tpl-manufaktur {
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --c-bg: #fbf7f0;
  --c-surface: #f3eadb;
  --c-border: #e6dac6;
  --c-text: #2b2118;
  --c-muted: #6c5f4f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 33, 24, 0.05), 0 10px 28px -14px rgba(43, 33, 24, 0.28);
}
.tpl-manufaktur h1, .tpl-manufaktur h2, .tpl-manufaktur h3, .tpl-manufaktur .hero-title, .tpl-manufaktur .page-header h1 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }
.tpl-manufaktur .site-header { background: rgba(251, 247, 240, 0.94); border-bottom-color: var(--c-border); }
.tpl-manufaktur .brand-name { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 1.45rem; letter-spacing: 0; }
.tpl-manufaktur .site-nav a { font-weight: 500; border-radius: 999px; }
.tpl-manufaktur .btn { border-radius: 999px; }
.tpl-manufaktur .input, .tpl-manufaktur .select, .tpl-manufaktur .textarea { border-color: #c9b9a0; background: #fffdf9; }
.tpl-manufaktur .hero { background: var(--c-surface); padding: var(--s-7) var(--s-5); }
.tpl-manufaktur .hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
.tpl-manufaktur .hero.has-media { display: grid; min-height: 440px; padding: 0; text-align: left; color: #fff; background: #3a2a1d; }
.tpl-manufaktur .hero.has-media .hero-media { position: absolute; inset: 0; }
.tpl-manufaktur .hero.has-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 28, 16, 0.82) 0%, rgba(43, 28, 16, 0.55) 45%, rgba(43, 28, 16, 0.05) 100%); }
.tpl-manufaktur .hero.has-media .hero-inner { position: relative; z-index: 1; align-self: center; max-width: 560px; margin: 0; padding: var(--s-7) var(--s-6); }
.tpl-manufaktur .hero.has-media .hero-title { color: #fff; }
.tpl-manufaktur .hero.has-media .hero-text { color: #f1e6d6; }
.tpl-manufaktur .hero.has-media .btn-primary { background: #fbf7f0; border-color: #fbf7f0; color: var(--c-text); }
.tpl-manufaktur .hero.has-media .btn-primary:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.tpl-manufaktur .product-card { border: 0; box-shadow: var(--shadow); padding: 10px; }
.tpl-manufaktur .product-card-media { border-radius: 14px; overflow: hidden; }
.tpl-manufaktur .product-card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.tpl-manufaktur .category-card { border: 0; background: #fff; box-shadow: var(--shadow); }
.tpl-manufaktur .category-name { font-family: var(--font-head); }
.tpl-manufaktur .card, .tpl-manufaktur .gallery-main { border-color: var(--c-border); }
.tpl-manufaktur .site-footer { background: #2b2118; color: #d9cbb6; border-top: 0; }
.tpl-manufaktur .site-footer a, .tpl-manufaktur .footer-links a { color: #f3eadb; }
.tpl-manufaktur .footer-brand { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: #fff; }
.tpl-manufaktur .footer-heading { color: #fff; }
.tpl-manufaktur .footer-bottom { border-top-color: #4a3a2b; }
.tpl-manufaktur .payment-badge { background: #3a2c20; border-color: #4a3a2b; color: #f3eadb; }

/* =====================================================================
   Vorlage Boutique: reduziert und edel, große Bilder, klare Kanten
   ===================================================================== */
.tpl-boutique {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant", Georgia, "Times New Roman", serif;
  --c-bg: #ffffff;
  --c-surface: #f5f4f1;
  --c-border: #e4e2dd;
  --c-text: #111111;
  --c-muted: #686868;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
}
.tpl-boutique h1, .tpl-boutique h2, .tpl-boutique h3, .tpl-boutique .hero-title, .tpl-boutique .page-header h1 { font-family: var(--font-head); font-weight: 500; letter-spacing: 0; }
.tpl-boutique h1, .tpl-boutique .page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.tpl-boutique h2 { font-size: 1.9rem; }
.tpl-boutique .announcement { background: #111; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.tpl-boutique .site-header { border-bottom-color: #111; }
.tpl-boutique .brand-name { font-family: var(--font); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-text); }
.tpl-boutique .site-nav a { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding-left: 10px; padding-right: 10px; }
@media (min-width: 960px) { .tpl-boutique .site-nav ul { flex-wrap: nowrap; } }
.tpl-boutique .site-nav a:hover, .tpl-boutique .site-nav a[aria-current="page"] { background: none; color: var(--c-text); text-decoration: underline; text-underline-offset: 6px; }
.tpl-boutique .btn { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; }
.tpl-boutique .btn-primary { background: #111; border-color: #111; }
.tpl-boutique .btn-primary:hover { background: var(--c-accent); border-color: var(--c-accent); }
.tpl-boutique .hero { background: #111; color: #fff; padding: var(--s-7) var(--s-5); text-align: left; }
.tpl-boutique .hero-inner { margin: 0; max-width: 620px; }
.tpl-boutique .hero-title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 400; }
.tpl-boutique .hero-text { color: #d6d3cc; }
.tpl-boutique .hero .btn-primary { background: #fff; border-color: #fff; color: #111; }
.tpl-boutique .hero .btn-primary:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.tpl-boutique .hero.has-media { display: grid; min-height: 520px; padding: 0; }
.tpl-boutique .hero.has-media .hero-media { position: absolute; inset: 0; }
.tpl-boutique .hero.has-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.05) 100%); }
.tpl-boutique .hero.has-media .hero-inner { position: relative; z-index: 1; align-self: end; padding: var(--s-7) var(--s-6); }
.tpl-boutique .product-card { border: 0; background: transparent; }
.tpl-boutique .product-card:hover, .tpl-boutique .product-card:focus-within { box-shadow: none; }
.tpl-boutique .product-card-media { aspect-ratio: 4 / 5; overflow: hidden; }
.tpl-boutique .product-card-media img { transition: transform 0.5s ease; }
.tpl-boutique .product-card:hover .product-card-media img { transform: scale(1.04); }
.tpl-boutique .product-card-body { padding: var(--s-3) 0; }
.tpl-boutique .product-card-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tpl-boutique .category-card { border-color: #111; }
.tpl-boutique .category-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 500; color: var(--c-text); }
.tpl-boutique .section-link { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; }
.tpl-boutique .site-footer { background: #111; color: #a9a59c; border-top: 0; }
.tpl-boutique .site-footer a, .tpl-boutique .footer-links a { color: #f1efea; }
.tpl-boutique .footer-brand { color: #fff; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.9rem; }
.tpl-boutique .footer-heading { color: #fff; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; }
.tpl-boutique .footer-bottom { border-top-color: #2a2a2a; }
.tpl-boutique .payment-badge { background: #1d1d1d; border-color: #2a2a2a; color: #f1efea; }

/* ---------- Demo-Leiste (nur DEMO_MODE) ---------- */
.demo-bar { background: #10392c; color: #e9f0ec; font-size: 0.85rem; }
.demo-bar a { color: #fff; }
.demo-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 8px; padding-bottom: 8px; }
.demo-bar-text { margin: 0; }
.demo-bar-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.demo-bar-label { opacity: 0.8; margin-right: 2px; }
.demo-bar-option { display: inline-block; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; text-decoration: none; font-weight: 600; line-height: 1.3; }
.demo-bar-option:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.demo-bar-option[aria-current="true"] { background: #e0581f; border-color: #e0581f; color: #fff; }
.demo-bar-cta { margin-left: auto; font-weight: 600; }
@media (max-width: 640px) { .demo-bar-cta { margin-left: 0; } }
.demo-footer { margin-top: var(--s-3) !important; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
.netz-knopf { display: inline-block; padding: 0.25em 0.8em; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 600; line-height: 1.3; }
.netz-knopf:hover { text-decoration: none; opacity: 0.85; }
