/* ============================================================
   SERAYA COFFEE · Magazin & Artikel
   ============================================================ */
/* Themen-Farbwelten */
.theme-savan     { --t1: #7a3208; --t2: #1e0b03; }
.theme-amber     { --t1: #1f5a40; --t2: #04120b; }
.theme-herbst    { --t1: #9a4d12; --t2: #1c0c03; }
.theme-halloween { --t1: #5a0a0a; --t2: #0d0414; }

/* Übersicht */
.mag { padding: 0 var(--gutter) clamp(88px, 14vh, 160px); }
.mag-hero { padding: 170px 0 64px; max-width: 900px; }
.mag-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 108px); line-height: .98; margin-top: 22px; }
.mag-hero h1 em { font-style: normal; color: var(--gold); }
.mag-hero p { color: var(--muted); max-width: 560px; margin-top: 24px; font-weight: 300; font-size: 17px; }
.mag-feature { margin-bottom: 56px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; position: sticky; top: 74px; z-index: 5; padding: 14px 0 18px; background: linear-gradient(180deg, #000 72%, transparent); }
.chips button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); transition: all .3s; }
.chips button:hover { border-color: rgba(227,189,110,.5); }
.chips button[aria-pressed="true"] { background: var(--gold); color: var(--black); border-color: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0a0806; transition: transform .7s var(--ease-out), border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(227,189,110,.45); }
.card.is-hidden { display: none; }
.card__media, .a-hero__media { position: relative; overflow: hidden; background: radial-gradient(ellipse at 60% 40%, var(--t1), var(--t2) 75%); }
.card__media { aspect-ratio: 4 / 3; }
.card__media img, .a-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.4s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); pointer-events: none; }
.art svg { width: 34%; max-height: 62%; filter: drop-shadow(0 0 22px rgba(227,189,110,.45)); transition: transform 1.2s var(--ease-out); }
.card:hover .art svg { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.card__media img ~ .art svg { width: 22%; opacity: .9; }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__kicker { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; }
.card p { color: var(--muted); font-size: 14px; font-weight: 300; }
.card__meta { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.card--big { display: grid; grid-template-columns: 1.3fr 1fr; }
.card--big .card__media { aspect-ratio: auto; min-height: 420px; }
.card--big .card__body { padding: clamp(28px, 4vw, 56px); justify-content: center; }
.card--big h3 { font-size: clamp(34px, 4vw, 56px); }
.card--big p { font-size: 16px; }

/* Artikel */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 12px var(--gold); }
.a-hero { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: hidden; }
.a-hero__media { position: absolute; inset: 0; }
.a-hero__media .art { justify-items: end; padding-right: 8vw; }
.a-hero__media .art svg { width: min(30vw, 340px); max-height: 70%; }
.a-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 2%, rgba(0,0,0,.2) 60%), linear-gradient(90deg, rgba(0,0,0,.75), transparent 60%); }
.a-hero__media .ai-label { z-index: 3; }
.a-hero__content { position: relative; z-index: 2; padding: 150px var(--gutter) 56px; max-width: 900px; }
.a-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6.4vw, 96px); line-height: .98; margin-top: 18px; }
.a-hero__lead { color: var(--muted); font-size: 18px; font-weight: 300; margin-top: 20px; max-width: 560px; }
.facts-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts-row li { border: 1px solid var(--line); background: rgba(0,0,0,.45); backdrop-filter: blur(8px); border-radius: 10px; padding: 12px 18px; }
.facts-row b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--gold); }
.facts-row span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.a-wrap { padding: 64px var(--gutter) 0; }
.a-intro { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; max-width: 900px; margin-bottom: 72px; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ingredients { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: linear-gradient(160deg, rgba(227,189,110,.05), transparent 60%); }
.ingredients h2, .steps-wrap h2 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.ingredients ul { list-style: none; display: grid; gap: 4px; margin-bottom: 26px; }
.ingredients label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.ingredients input { appearance: none; width: 20px; height: 20px; border: 1px solid rgba(227,189,110,.5); border-radius: 50%; margin-top: 2px; display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.ingredients input:checked { background: var(--gold); }
.ingredients input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--black); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.ingredients input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(227,189,110,.5); }
.steps-list { list-style: none; display: grid; gap: 10px; }
.steps-list li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps-list .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.steps-list p { font-size: 17px; font-weight: 300; }
.tipbox { margin-top: 36px; padding: 28px; border-radius: 12px; border: 1px solid rgba(227,189,110,.4); background: rgba(227,189,110,.06); }
.tipbox p { margin-top: 12px; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.prose section { padding-bottom: 36px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.prose p, .prose li { color: #ddd3c2; font-weight: 300; font-size: 17px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--gold-soft); font-weight: 500; }

.pcard { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.pcard__img { height: 150px; background: radial-gradient(ellipse at 60% 40%, var(--t1), var(--t2)) ; background-size: cover; background-position: 70% 50%; }
.pcard.theme-savan .pcard__img { background-color: #3a1505; }
.pcard.theme-amber .pcard__img { background-color: #0b2a1c; }
.pcard__body { padding: 18px; display: grid; gap: 4px; }
.pcard__body b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.pcard__body small { color: var(--muted); font-size: 12px; }
.pcard__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pcard__btns .btn { padding: 12px 16px; font-size: 11px; }
.related { padding-inline: 0; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1000px) { .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .card--big { grid-template-columns: 1fr; }
  .card--big .card__media { min-height: 260px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .ingredients { position: static; }
  .steps-list li { grid-template-columns: 48px 1fr; }
  .steps-list .n { font-size: 30px; }
  .a-hero { min-height: 0; }
  .a-hero__media .art { justify-items: center; align-items: start; padding: 110px 0 0; }
  .a-hero__media .art svg { width: 38vw; opacity: .5; }
  .chips { top: 60px; overflow-x: auto; flex-wrap: nowrap; }
  .chips button { white-space: nowrap; }
}
@media (max-width: 600px) { .grid, .grid--3 { grid-template-columns: 1fr; } }

/* Eigenes Bild je Beitrag: Foto voll sichtbar, Icon bleibt als goldenes Siegel */
.has-img img { opacity: 1; }
.card__media.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); pointer-events: none; }
.card__media.has-img .art { inset: auto 14px 14px auto; width: 58px; height: 58px; border-radius: 50%; z-index: 2;
  background: rgba(10,7,4,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(227,189,110,.45); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.card__media.has-img .art svg { width: 58%; max-height: 58%; opacity: 1; filter: drop-shadow(0 0 10px rgba(227,189,110,.35)); }
.card--big .card__media.has-img .art { width: 76px; height: 76px; }
.card__media.has-img .ai-label { z-index: 3; }
.a-hero__media.has-img img { opacity: .8; }
.a-hero__media.has-img .art svg { width: min(16vw, 170px); opacity: .85; }
@media (max-width: 700px) { .a-hero__media.has-img .art svg { width: 26vw; opacity: .6; } }

/* Vergleichstabellen im Magazin */
.mtable { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.mtable th { text-align: left; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid rgba(227,189,110,.45); }
.mtable td { padding: 12px; border-bottom: 1px solid var(--line); color: #ddd3c2; font-weight: 300; vertical-align: top; }
.mtable tbody tr:hover td { background: rgba(227,189,110,.05); }
.mtable td strong { color: var(--gold-soft); }
@media (max-width: 700px) {
  .mtable, .mtable tbody, .mtable tr, .mtable td { display: block; width: 100%; }
  .mtable thead { display: none; }
  .mtable tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; }
  .mtable td { border: 0; padding: 4px 12px; }
}
.chips { flex-wrap: wrap; }

/* Weiterlesen: 3 von 9 passenden Artikeln, bei jedem Besuch neu gemischt (magazin.js) */
.related .rel-alt { display: none; }

/* Das Wichtigste in Kürze & Häufige Fragen (für Leser und KI-Suchen) */
.kurz { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 22px 26px; margin: 0 0 48px; background: linear-gradient(120deg, rgba(227,189,110,.07), transparent 60%); }
.kurz ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.kurz li { position: relative; padding-left: 22px; font-weight: 300; }
.kurz li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.a-faq { margin-top: 72px; max-width: 860px; }
.a-faq h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); margin: 14px 0 18px; }
.a-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.a-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .3s; }
.a-faq details[open] summary::after { transform: rotate(45deg); }
.a-faq details p { color: var(--muted); font-weight: 300; margin-top: 12px; max-width: 70ch; }
