/*
 * NhPanel – Seiten /minecraft-modpack-server (Vorlagen Resources/views/modpack/*.twig).
 *
 * Gleiche Welt wie die Minecraft-Spielseite (/gameserver/minecraft): dunkler Stein mit feinem Pixelraster, Knochenweiß als
 * Schrift, Grasgrün für Aktionen, Überschriften in Chakra Petch, Fließtext DM Sans. Die Bilder kommen aus den Packs selbst
 * (Galerie und Logo bei Modrinth) und aus dem echten Panel; Mods stehen als Inventar-Felder mit ihren Symbolen da.
 * Keine Pillen, keine Großbuchstaben-Etiketten, keine Glüheffekte. Alles unter .nhm gekapselt.
 */
@font-face{font-family:"MP Display";src:url("/themes/hw/booking/fonts/chakra-petch-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"MP Display";src:url("/themes/hw/booking/fonts/chakra-petch-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"MP Sans";src:url("/themes/hw/booking/fonts/dm-sans-v17-latin-regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"MP Sans";src:url("/themes/hw/booking/fonts/dm-sans-v17-latin-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"MP Sans";src:url("/themes/hw/booking/fonts/dm-sans-v17-latin-700.woff2") format("woff2");font-weight:600 800;font-display:swap}

.nhm{
  --st:#14161b;--st2:#1b1d23;--st3:#24272e;--paper:#191b20;
  --bone:#ece6d6;--bone2:#d9d2c0;--ash:#a9a393;--ash2:#7f7a6c;
  --grass:#72b04f;--grass-l:#8fcf69;--grass-d:#5a9a3a;--grass-ink:#0f1a09;
  --line:rgba(236,230,214,.09);--line2:rgba(236,230,214,.16);
  --f-d:"MP Display","Chakra Petch",system-ui,sans-serif;--f-b:"MP Sans","DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--st);color:var(--bone);font:16px/1.65 var(--f-b);text-align:left
}
.nhm *,.nhm *::before,.nhm *::after{box-sizing:border-box}
:where(.nhm) :where(h1,h2,h3,p,ul,ol,li,figure,dl,dd){margin:0;padding:0}
:where(.nhm) :where(ul,ol){list-style:none}
/* das Theme rückt Listen ein – hier nie */
.nhm ul,.nhm ol{padding-left:0!important;margin-left:0!important;list-style:none!important}
.nhm a{color:inherit}
.nhm h1,.nhm h2,.nhm h3{font-family:var(--f-d)!important;color:var(--bone)!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important}
.nhm :is(a,button,select,input,summary):focus-visible{outline:3px solid var(--grass-l);outline-offset:2px;border-radius:4px}
.nhm-wrap{max-width:1240px;margin:0 auto;padding:0 28px}
.nhm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
main.page-main:has(> .nhm){max-width:none;padding:0;margin-top:0}
.nhm-p{color:var(--bone2);margin:0 0 1rem!important;max-width:40em}
.nhm-sub{color:var(--ash);font-size:1.02rem;max-width:44em;margin-top:.6rem!important}
.nhm-source{color:var(--ash2);font-size:.86rem;margin-top:1.4rem!important}
.nhm h2{font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.08;margin-bottom:1.1rem!important}
.nhm-h3{font-size:1.25rem;margin:2rem 0 .7rem!important}

/* ---- Abschnitte ---- */
.nhm-sec{padding:5rem 0}
.nhm-sec--small{padding:3.5rem 0}
.nhm-paper{background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Crect x='4' y='8' width='4' height='4' fill='%23fff' fill-opacity='.018'/%3E%3Crect x='20' y='20' width='4' height='4' fill='%23fff' fill-opacity='.022'/%3E%3Crect x='12' y='28' width='4' height='4' fill='%23000' fill-opacity='.06'/%3E%3C/svg%3E")}
.nhm-head{margin-bottom:2.2rem}
.nhm-head--row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem 2rem}
.nhm-head--row h2{margin:0!important}
.nhm-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:3rem 4.5rem;align-items:start}

/* ---- Kopf ---- */
.nhm-hero{position:relative;isolation:isolate;overflow:hidden;padding:2.2rem 0 4.5rem;min-height:560px}
.nhm-hero__img{position:absolute;inset:0;z-index:-2;background:center 40%/cover no-repeat}
.nhm-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(20,22,27,.97) 0%,rgba(20,22,27,.9) 38%,rgba(20,22,27,.62) 70%,rgba(20,22,27,.45) 100%),linear-gradient(0deg,var(--st) 0%,rgba(20,22,27,0) 30%)}
.nhm-crumbs{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.86rem;color:var(--ash);margin-bottom:2rem}
.nhm-crumbs a{color:var(--ash);text-decoration:none}
.nhm-crumbs a:hover{color:var(--bone);text-decoration:underline}
.nhm-crumbs [aria-current]{color:var(--bone)}
.nhm-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);grid-template-areas:"head pick" "more pick";gap:0 4rem;align-items:end}
.nhm-hero__head{grid-area:head}
.nhm-hero__more{grid-area:more;align-self:start}
.nhm-pick{grid-area:pick}
.nhm-hero__img--icon{filter:blur(48px) saturate(1.25);transform:scale(1.35);opacity:.65;background-position:center}
.nhm-ident{display:flex;align-items:center;gap:1rem;margin-bottom:1.3rem}
.nhm-ident__icon{width:88px;height:88px;border-radius:10px;border:3px solid rgba(236,230,214,.85);box-shadow:0 10px 30px -10px rgba(0,0,0,.7);background:var(--st2);flex:0 0 auto}
.nhm-ident__by{color:var(--ash);font-size:.95rem}
.nhm-hero h1{font-size:clamp(2.4rem,4.8vw,4.1rem);line-height:1.02;margin-bottom:1.1rem!important;max-width:14em;text-wrap:balance}
.nhm-lead{color:var(--bone2);font-size:1.12rem;max-width:34em}
.nhm-facts{display:flex;flex-wrap:wrap;gap:1rem 2.4rem;margin-top:1.8rem!important}
.nhm-facts li{display:flex;flex-direction:column;font:600 1.15rem/1.25 var(--f-d)}
.nhm-facts span{font:400 .8rem/1.3 var(--f-b);color:var(--ash);margin-bottom:.2rem}

/* ---- Paketwahl im Kopf ---- */
.nhm-pick{background:rgba(20,22,27,.88);border:1px solid var(--line2);border-radius:12px;padding:1.4rem 1.4rem 1.1rem;box-shadow:0 24px 60px -30px rgba(0,0,0,.8)}
.nhm-pick__label{font-weight:600;font-size:.95rem;color:var(--bone);margin-bottom:.7rem!important}
.nhm-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:1.2rem}
.nhm-seg button{appearance:none;cursor:pointer;background:var(--st3);border:1px solid var(--line2);border-radius:8px;color:var(--bone);font:700 1.05rem/1.1 var(--f-d);padding:.6rem .4rem;display:flex;flex-direction:column;align-items:center;gap:.15rem;transition:border-color .15s,background-color .15s}
.nhm-seg button small{font:400 .75rem/1 var(--f-b);color:var(--ash)}
.nhm-seg button:hover{border-color:rgba(114,176,79,.55)}
.nhm-seg button[aria-pressed="true"]{background:rgba(114,176,79,.16);border-color:var(--grass);color:var(--bone)}
.nhm-pick__noscript{font-weight:600;color:var(--ash);font-size:.9rem;margin-bottom:.5rem!important}
.nhm-js .nhm-pick__noscript{display:none}
.nhm-pick__row{display:grid;grid-template-columns:auto 1fr;gap:1.4rem;padding:.9rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.nhm-pick__row div{display:flex;flex-direction:column}
.nhm-pick__row strong{font:700 1.2rem/1.2 var(--f-d)}
.nhm-pick__row em{font-style:normal;color:var(--grass-l);white-space:nowrap}
.nhm-pick__k{font-size:.8rem;color:var(--ash)}
.nhm-pick__ram{font-size:1.9rem!important;color:var(--grass-l)}
.nhm-pick__price{font:700 2rem/1.1 var(--f-d);margin-top:1rem!important}
.nhm-pick__price span{font:400 .95rem var(--f-b);color:var(--ash)}
.nhm-pick__note{font-size:.86rem;color:var(--ash);margin:.25rem 0 1rem!important;min-height:1.3em}
.nhm-pick__cpu{display:block;margin-top:.2rem}
.nhm-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;background:var(--grass);color:var(--grass-ink)!important;font:700 1.02rem/1 var(--f-b);text-decoration:none!important;padding:1rem 1.2rem;border-radius:8px;transition:background-color .15s,transform .15s}
.nhm-btn:hover{background:var(--grass-l)}
.nhm-btn svg{transition:transform .15s}
.nhm-btn:hover svg{transform:translateX(3px)}
.nhm-pick__how{margin-top:.9rem!important;text-align:center;font-size:.86rem}
.nhm-pick__how a{color:var(--ash);text-decoration:underline;text-underline-offset:3px}
.nhm-pick__how a:hover{color:var(--bone)}

/* ---- Text + Höhepunkte ---- */
.nhm-audience{color:var(--bone);font-weight:600;border-left:3px solid var(--grass);padding-left:1rem;margin-top:1.4rem!important;max-width:38em}
.nhm-points li{display:grid;grid-template-columns:14px minmax(0,1fr);column-gap:1rem;padding:1.1rem 0;border-top:1px solid var(--line2)}
.nhm-points li:last-child{border-bottom:1px solid var(--line2)}
.nhm-points li::before{content:"";grid-row:1/3;width:12px;height:12px;margin-top:.45rem;background:var(--grass);box-shadow:inset -3px -3px 0 rgba(0,0,0,.25),inset 3px 3px 0 rgba(255,255,255,.18)}
.nhm-points strong{font:700 1.15rem/1.25 var(--f-d);margin-bottom:.25rem}
.nhm-points span{color:var(--bone2);font-size:.98rem}

/* ---- Mods als Inventar ---- */
.nhm-inv{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
.nhm-inv a{display:flex;flex-direction:column;align-items:center;gap:.55rem;text-align:center;text-decoration:none;padding:.3rem .2rem .5rem;border-radius:8px}
.nhm-inv a:hover .nhm-slot{border-color:var(--grass);background:#2b2e36}
.nhm-inv a:hover .nhm-inv__name{color:var(--bone)}
.nhm-slot{display:grid;place-items:center;width:72px;height:72px;background:#20232a;border:2px solid #2f333c;border-top-color:#0d0f13;border-left-color:#0d0f13;border-bottom-color:#3a3f49;border-right-color:#3a3f49;border-radius:4px;transition:border-color .15s,background-color .15s}
.nhm-slot img{width:48px;height:48px;image-rendering:auto;border-radius:6px}
.nhm-inv__name{font-size:.86rem;line-height:1.3;color:var(--bone2);overflow-wrap:anywhere}
.nhm-more-mods{margin-top:1.6rem!important;color:var(--ash);font-size:.95rem}
.nhm-more-mods a{color:var(--grass-l);font-weight:600;text-decoration:none}
.nhm-more-mods a:hover{text-decoration:underline}
.nhm-gone{margin-top:2.6rem;padding-top:1.6rem;border-top:1px dashed var(--line2)}
.nhm-gone h3{font-size:1.2rem;margin-bottom:.4rem!important}
.nhm-gone p{color:var(--ash);font-size:.95rem;max-width:52em}
.nhm-gone ul{display:flex;flex-wrap:wrap;gap:.35rem 1.4rem;margin-top:.8rem}
.nhm-gone li{color:var(--ash2);font-size:.92rem;text-decoration:line-through;text-decoration-color:rgba(229,123,98,.7);text-decoration-thickness:2px}

/* ---- Einrichten mit Panel-Bild ---- */
.nhm-setup{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:3rem 4rem;align-items:start}
.nhm-shot{position:sticky;top:110px}
.nhm-shot img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line2);box-shadow:0 30px 70px -35px rgba(0,0,0,.9)}
.nhm-shot figcaption{color:var(--ash);font-size:.85rem;margin-top:.7rem}
.nhm-steps{counter-reset:s}
.nhm-steps li{counter-increment:s;display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:.6rem;padding:1rem 0;border-top:1px solid var(--line2)}
.nhm-steps li::before{content:counter(s);grid-row:1/3;font:700 2.1rem/1 var(--f-d);color:var(--grass)}
.nhm-steps strong{font:700 1.12rem/1.3 var(--f-d)}
.nhm-steps span{color:var(--bone2);font-size:.97rem}

/* ---- Tipps + Fragen ---- */
.nhm-tips li{display:block;padding:1.1rem 1.2rem;margin-bottom:.8rem;background:var(--st2);border:1px solid var(--line);border-left:3px solid var(--grass);border-radius:6px}
.nhm-tips strong{display:block;font:700 1.1rem/1.3 var(--f-d);margin-bottom:.3rem}
.nhm-tips span{color:var(--bone2);font-size:.97rem}
.nhm-faq details{border-top:1px solid var(--line2)}
.nhm-faq details:last-child{border-bottom:1px solid var(--line2)}
.nhm-faq summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:1rem;align-items:center;padding:1.05rem 0;font-weight:600;font-size:1.02rem;color:var(--bone)}
.nhm-faq summary::-webkit-details-marker{display:none}
.nhm-faq summary::after{content:"+";display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:rgba(114,176,79,.14);color:var(--grass);font:700 1.2rem/1 var(--f-d);transition:background-color .15s}
.nhm-faq details[open] summary::after{content:"−";background:var(--grass);color:var(--grass-ink)}
.nhm-faq p{color:var(--bone2);padding:0 0 1.15rem;max-width:46em}

/* ---- Bibliothek (ähnliche Packs, Übersicht) ---- */
.nhm-lib{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.nhm-lib--all{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
.nhm-lib a{display:flex;flex-direction:column;height:100%;text-decoration:none;background:var(--st2);border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:border-color .15s,transform .15s}
.nhm-lib a:hover{border-color:rgba(114,176,79,.6);transform:translateY(-2px)}
.nhm-lib__img{display:block;aspect-ratio:16/9;background:var(--st3) center/cover no-repeat}
.nhm-lib__img--icon{position:relative;overflow:hidden}
.nhm-lib__img--icon span{position:absolute;inset:-25%;background:center/cover no-repeat;filter:blur(26px) saturate(1.3);opacity:.55}
.nhm-lib__big{position:absolute;left:50%;top:50%;width:84px;height:84px;transform:translate(-50%,-50%);border-radius:12px;border:3px solid rgba(236,230,214,.85);box-shadow:0 14px 30px -12px rgba(0,0,0,.8)}
.nhm-lib__img--icon+.nhm-lib__body{padding-top:1.1rem}
.nhm-lib__img--icon+.nhm-lib__body .nhm-lib__icon{display:none}
.nhm-lib__body{position:relative;display:flex;flex-direction:column;flex:1;padding:2.1rem 1.1rem 1.1rem}
.nhm-lib__icon{position:absolute;top:-28px;left:1.1rem;width:52px;height:52px;border-radius:8px;border:3px solid var(--st2);background:var(--st3)}
.nhm-lib strong{font:700 1.2rem/1.2 var(--f-d);color:var(--bone)}
.nhm-lib__meta{color:var(--ash);font-size:.86rem;margin-top:.25rem}
.nhm-lib__text{color:var(--bone2);font-size:.92rem;line-height:1.5;margin:.6rem 0 1rem}
.nhm-lib__foot{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-top:auto;padding-top:.9rem;border-top:1px solid var(--line);font-size:.88rem;color:var(--ash)}
.nhm-lib__foot b{font:700 1.05rem var(--f-d);color:var(--bone)}
.nhm-ghost{color:var(--bone);font-weight:600;text-decoration:none;border:1px solid var(--line2);border-radius:8px;padding:.7rem 1rem}
.nhm-ghost:hover{border-color:var(--grass)}

/* ---- Übersicht ---- */
.nhm-hero--hub{min-height:0;padding-bottom:5.5rem}
.nhm-hero--hub h1{max-width:12em}
.nhm-hero__grid--hub{grid-template-columns:minmax(0,1fr) minmax(0,470px);align-items:center}
.nhm-hero--hub h1{max-width:none}
.nhm-mosaic{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nhm-mosaic li{position:relative;aspect-ratio:16/11;background:var(--st3) center/cover no-repeat;border-radius:8px;border:1px solid var(--line2);box-shadow:0 18px 40px -22px rgba(0,0,0,.9)}
.nhm-mosaic li:nth-child(3n+2){transform:translateY(22px)}
.nhm-mosaic img{position:absolute;left:8px;bottom:8px;width:36px;height:36px;border-radius:6px;border:2px solid var(--st)}
.nhm-sec--lib{padding-top:1rem}
.nhm-filter{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;margin:-3.2rem 0 2.2rem;padding:1.1rem;background:var(--st2);border:1px solid var(--line2);border-radius:12px;position:relative;z-index:2}
.nhm-filter label{display:flex;flex-direction:column;gap:.35rem;font-size:.82rem;color:var(--ash);min-width:0}
.nhm-filter :is(input,select){width:100%;font:500 .98rem/1.2 var(--f-b);color:var(--bone);background:var(--st);border:1px solid var(--line2);border-radius:8px;padding:.75rem .8rem;min-height:46px}
.nhm-filter select{appearance:auto}
.nhm-filter input::placeholder{color:var(--ash2)}
.nhm-filter__count{align-self:center;color:var(--ash);font-size:.9rem;white-space:nowrap;padding:0 .3rem}
.nhm-none{color:var(--ash);padding:1rem 0}
.nhm-pk li{border-top:1px solid var(--line2)}
.nhm-pk li:last-child{border-bottom:1px solid var(--line2)}
.nhm-pk a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:1.2rem;align-items:baseline;padding:.85rem 0;text-decoration:none}
.nhm-pk strong{font:700 1.08rem var(--f-d)}
.nhm-pk span{color:var(--ash);font-size:.92rem}
.nhm-pk b{font:700 1.08rem var(--f-d);color:var(--bone)}
.nhm-pk a:hover strong{color:var(--grass-l)}

/* ---- Abschluss ---- */
.nhm-end{position:relative;isolation:isolate;overflow:hidden;padding:5.5rem 0;text-align:center}
.nhm-end::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(20,22,27,.82)}
.nhm-end h2{font-size:clamp(2rem,3.6vw,3rem);margin-bottom:.8rem!important}
.nhm-end__line{color:var(--bone2);max-width:36em;margin:0 auto 1.6rem!important}
.nhm-btn--inline{display:inline-flex;padding:1rem 1.6rem}
.nhm-narrow{max-width:860px}
.nhm-join{padding-top:.2rem}

/* ---- Regel ---- */
.nhm-rule{max-width:900px}
.nhm-rule h2{font-size:1.5rem}
.nhm-rule p{color:var(--bone2)}

/* ---- Schmale Bildschirme ---- */
@media (max-width:1060px){
  .nhm-hero__grid,.nhm-split,.nhm-setup{grid-template-columns:minmax(0,1fr)}
  .nhm-hero__grid{grid-template-areas:"head" "pick" "more";gap:1.6rem}
  .nhm-hero__grid--hub{grid-template-areas:none}
  .nhm-shot{position:static}
  .nhm-mosaic{display:none}
  .nhm-lib{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nhm-filter{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nhm-filter__search{grid-column:1/-1}
  .nhm-filter__count{grid-column:1/-1}
}
@media (max-width:640px){
  .nhm-wrap{padding:0 16px}
  .nhm-sec{padding:3.5rem 0}
  .nhm-hero{padding:1.4rem 0 3rem;min-height:0}
  .nhm-end{padding:3.5rem 0}
  .nhm-hero::before{background:linear-gradient(180deg,rgba(20,22,27,.62) 0%,rgba(20,22,27,.86) 30%,rgba(20,22,27,.94) 60%,var(--st) 100%)}
  .nhm-ident__icon{width:68px;height:68px}
  .nhm-facts{gap:.8rem 1.6rem}
  .nhm-facts li{font-size:1rem}
  .nhm-pick{padding:1.1rem}
  .nhm-lib{grid-template-columns:minmax(0,1fr);gap:10px}
  /* Karten als kompakte Zeilen: Bild links, Name und Preis rechts */
  .nhm-lib a{flex-direction:row}
  .nhm-lib__img{flex:0 0 112px;aspect-ratio:auto;min-height:100%}
  .nhm-lib__big{width:56px;height:56px}
  .nhm-lib__body{padding:.8rem .9rem}
  .nhm-lib__icon,.nhm-lib__text{display:none}
  .nhm-lib strong{font-size:1.05rem}
  .nhm-lib__foot{padding-top:.5rem;margin-top:.6rem}
  .nhm-inv{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .nhm-slot{width:62px;height:62px}
  .nhm-slot img{width:42px;height:42px}
  .nhm-filter{margin-top:-2.2rem;gap:10px 8px}
  .nhm-filter label{font-size:.78rem}
  .nhm-filter select{padding:.7rem .4rem;font-size:.9rem}
  .nhm-pk a{grid-template-columns:minmax(0,1fr) auto;row-gap:.1rem}
  .nhm-pk span{grid-column:1;grid-row:2}
  .nhm-pk b{grid-row:1/3;align-self:center}
}
@media (prefers-reduced-motion:reduce){.nhm *{transition:none!important}}
