/* Case Gasthaus zum Gupf – Magazin-Reportage (17.11.2026)
   Gleiches System wie die Website: Creme #faf8f2, Sand #ece6d8, Text #302e26, Ton #6e5f4e, Akzent #87714f,
   Coconat (Versalien) · Baskervville kursiv · Karla. Bilder quer 3:2, hoch 4:5. Kopf + Anfrage = Bausteine aus case.css.
   :not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a) steht für :not(#a)×9 (wie case.css), damit die globalen Kadence-Regeln nicht greifen. */

/* ---------- Kopf: Video statt Standbild ---------- */
.cs-hero .mg-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity 1.4s ease}
.cs-hero .mg-hero-video.laeuft{opacity:1}
.cs-hero picture{position:absolute;inset:0;display:block}
.cs-hero .cs-hero-bild{object-position:50% 62%}
.cs-hero .cs-hero-schleier{background:linear-gradient(to bottom,rgba(24,22,18,.38) 0,rgba(24,22,18,.14) 40%,rgba(24,22,18,0) 58%,rgba(24,22,18,.34) 100%)}
.cs-hero .cs-z3{font-size:3.6vw;margin-left:2.4em}
/* Kunde im Steckbrief: Logo + www.gupf.ch nebeneinander in einer Zeile, beides verlinkt */
.mg-fakt-kunde dd{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.entry-content .mg .mg-fakt-kunde a.mg-kunde:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){display:block;color:#302e26 !important;line-height:0;flex:none}
.mg .mg-kunde-logo{width:44px;height:auto;fill:currentColor;display:block}
.entry-content .mg .mg-fakten a.mg-web:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){display:inline-block;white-space:nowrap;color:#302e26 !important;text-decoration:none !important;border-bottom:1px solid var(--linie);transition:color .2s,border-color .2s}
@media (hover:hover){.entry-content .mg .mg-fakten a.mg-web:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):hover{color:var(--akzent) !important;border-bottom-color:var(--akzent)}.entry-content .mg .mg-fakt-kunde a.mg-kunde:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):hover{color:var(--akzent) !important}}
@media (max-width:767px){
  .cs-hero .cs-z2{white-space:normal;margin-left:.9em}
  .cs-hero .cs-z3{font-size:6.4vw;margin-left:.75em;white-space:normal;max-width:78vw}
}

/* ---------- Kopf als Magazin-Cover (Chris 17.11.: Titel kreativer) ----------
   oben feine Kopfzeile mit Linie, unten «FOTOSHOOTING» über die ganze Breite, die kursive Zeile überlappt rechtsbündig */
.mg-cover-kopf .cs-hero-schleier{background:linear-gradient(to bottom,rgba(24,22,18,.42) 0,rgba(24,22,18,.30) 35%,rgba(24,22,18,.26) 55%,rgba(24,22,18,.08) 78%,rgba(24,22,18,.2) 100%)}
.mg-masthead{position:absolute;z-index:1;left:8vw;right:8vw;top:clamp(120px,17vh,190px);display:flex;justify-content:space-between;gap:24px;padding:.9em 0;border-top:1px solid rgba(250,248,242,.55);border-bottom:1px solid rgba(250,248,242,.55);font-family:Karla,sans-serif;font-weight:500;text-transform:uppercase;font-size:clamp(11px,.75vw,16px);letter-spacing:.06em;line-height:1.2;color:#faf8f2;white-space:nowrap}
/* Titel mittig, ruhig: Versalien · kursive Zeile · kleine Zeile zwischen zwei feinen Linien (Chris 17.11.: «mittig und sauber, high end») */
.entry-content .mg-cover-kopf div.mg-titel:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){position:absolute;left:8vw;right:8vw;top:50%;bottom:auto;transform:translateY(-42%);width:auto;max-width:none;margin:0 !important;text-align:center;font-weight:400 !important;line-height:1 !important;color:#faf8f2 !important;letter-spacing:0 !important;text-transform:none !important}
.entry-content .mg-titel h1:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){display:block;margin:0 !important;padding:0 !important;font-weight:400 !important;color:#faf8f2 !important;text-transform:none !important;letter-spacing:0 !important;font-size:16px !important;line-height:1 !important}
.mg-titel .t1{display:block;font-family:'Coconat-Regular',serif;text-transform:uppercase;font-size:clamp(40px,5vw,104px);letter-spacing:.04em;line-height:1;margin-right:-.04em}
.mg-titel .t2{display:block;font-family:Baskervville,serif;font-style:italic;font-size:clamp(34px,4.3vw,90px);letter-spacing:-.01em;line-height:1.1;margin-top:.12em}
.mg-titel .t3{display:flex;align-items:center;justify-content:center;gap:1.4em;margin-top:clamp(22px,2.4vw,48px);font-family:Karla,sans-serif;font-weight:500;text-transform:uppercase;font-size:clamp(11px,.8vw,16px);letter-spacing:.24em;line-height:1}
.mg-titel .t3::before,.mg-titel .t3::after{content:"";width:clamp(36px,4vw,80px);height:1px;background:rgba(250,248,242,.7)}
@media (max-width:767px){
  .mg-masthead{left:24px;right:24px;top:110px;font-size:10.5px;letter-spacing:.04em}
  .mg-masthead{justify-content:center}
  .mg-masthead span:nth-child(2),.mg-masthead span:nth-child(3){display:none}
  .entry-content .mg-cover-kopf div.mg-titel:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){left:24px;right:24px;top:44%}
  .mg-titel .t1{white-space:nowrap;font-size:min(8.6vw,calc((100vw - 48px) / var(--t1n,10.4)))}   /* 17.11.: eine Zeile, «Branding-Shooting:» bricht nicht */
  .mg-titel .t2{font-size:8.2vw}
  .mg-titel .t3{font-size:10.5px;letter-spacing:.16em;gap:.9em}
  .mg-titel .t3::before,.mg-titel .t3::after{width:24px}
}

/* ---------- Grundgerüst ---------- */
.mg{
  --rand:8vw;
  --luecke:clamp(14px,1.7vw,44px);
  --ab:clamp(72px,10vw,240px);
  --text:clamp(16px,.7614rem + .2273vw,18px);
  --klein:clamp(12.6px,.75vw,19.2px);
  --linie:rgba(179,159,128,.55);
  --ton:#6e5f4e;
  --akzent:#87714f;
  position:relative;isolation:isolate;
  padding:clamp(64px,8vw,180px) var(--rand) var(--ab);
  color:#302e26;
}
.mg::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;margin-left:-50vw;z-index:-1;pointer-events:none;
  background:linear-gradient(to bottom,#faf8f2 0%,#faf8f2 88%,#f3efe6 94%,#ece6d8 100%)}
.mg-r{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--luecke);align-items:start;margin-top:var(--ab)}
.mg-r.eng{margin-top:var(--luecke)}
.mg-r.halb{margin-top:calc(var(--ab) * .5)}
.mg-r > *{grid-column:var(--sp,auto);margin-top:var(--ver,0);min-width:0}
.mg-r.unten{align-items:end}

/* Bilder */
.mg figure.mg-b{margin:0;overflow:hidden;background:#ece6d8}
.mg-b img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.mg-q{aspect-ratio:3 / 2}
.mg-h{aspect-ratio:4 / 5}
.mg-breit{aspect-ratio:2 / 1}
.mg-voll{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-top:var(--ab)}
.mg-voll figure.mg-b{aspect-ratio:auto;height:max(420px,min(92vh,62vw))}
.mg-voll.halb{margin-top:calc(var(--ab) * .5)}
/* Wort senkrecht auf dem Vollbild – gleicher Baustein wie «Zusammen» auf der St.Gallen-Seite (.hf-senkrecht) */
.mg-voll{container-type:inline-size}
.mg-senkrecht.mg-waag{writing-mode:horizontal-tb;transform:none;left:5%;bottom:6%}
.mg-senkrecht{position:absolute;left:5%;bottom:5%;writing-mode:vertical-rl;transform:rotate(180deg);font-family:'Coconat-Regular',serif;font-size:min(9.5vh,7.5cqw);line-height:1;letter-spacing:.03em;text-transform:uppercase;color:rgba(250,248,242,.92);white-space:nowrap;pointer-events:none}

/* Text */
.entry-content .mg .mg-t p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Karla,sans-serif !important;font-size:var(--text) !important;line-height:1.6 !important;letter-spacing:-.02em !important;margin:0 !important;max-width:34em;color:#302e26 !important}
.entry-content .mg .mg-t p + p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){margin-top:1.2em !important}
.entry-content .mg .mg-t p a:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a),.entry-content .mg .mg-fakten a:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){color:var(--akzent) !important;text-decoration:none !important}
.entry-content .mg .mg-t p a:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):hover{text-decoration:underline !important;text-underline-offset:3px !important}
.mg-init::first-letter{font-family:'Coconat-Regular',serif;float:left;font-size:4.5em;line-height:.78;padding:.08em .1em 0 0;color:#302e26}

/* ---------- Vorspann: Steckbrief links, Lead + Text rechts ---------- */
.entry-content .mg p.mg-lead:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Baskervville,serif !important;font-style:italic;font-size:clamp(26px,2.75vw,62px) !important;line-height:1.12 !important;letter-spacing:-.02em !important;margin:0 !important;max-width:18em;text-wrap:balance;color:#302e26 !important}
.mg-spalten{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--luecke);margin-top:clamp(36px,3.6vw,86px)}
.entry-content .mg .mg-spalten p + p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){margin-top:0 !important}
.entry-content .mg .mg-spalten p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){max-width:none}
.mg-fakten{margin:0;padding-top:.9em;border-top:1px solid var(--linie)}
.mg-fakten div{padding:.85em 0;border-bottom:1px solid var(--linie)}
.mg-fakten dt{font-family:Karla,sans-serif;font-weight:500;text-transform:uppercase;font-size:var(--klein);letter-spacing:-.02em;line-height:1.2;color:var(--ton);margin:0 0 .35em}
.mg-fakten dd{font-family:Karla,sans-serif;font-size:var(--text);line-height:1.4;letter-spacing:-.02em;margin:0}

/* Inhaltsverzeichnis wie in den Guides: römische Zahl kursiv + Titel in Versalien */
.mg-inhalt{margin-top:clamp(48px,5vw,120px)}
.entry-content .mg p.mg-inhalt-titel:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Karla,sans-serif !important;font-weight:500 !important;text-transform:uppercase;font-size:var(--klein) !important;letter-spacing:-.02em !important;line-height:1.2 !important;color:var(--ton) !important;margin:0 0 .9em !important}
.mg-inhalt ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--luecke);border-top:1px solid var(--linie)}
.mg-inhalt li{margin:0;border-bottom:1px solid var(--linie)}
.entry-content .mg-inhalt a:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){display:flex;align-items:baseline;gap:.8em;padding:1em 0;min-height:44px;white-space:nowrap;font-family:Karla,sans-serif !important;font-weight:500 !important;text-transform:uppercase;font-size:var(--klein) !important;letter-spacing:-.02em;line-height:1.2;color:#302e26 !important;text-decoration:none !important;transition:color .2s}
.mg-inhalt a em{font-family:Baskervville,serif;font-weight:400;text-transform:none;font-size:1.5em;color:var(--ton);min-width:1.8em}
@media (hover:hover){
  .entry-content .mg-inhalt a:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):hover{color:var(--akzent) !important}
  .mg-inhalt a::after{content:'→';opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s;margin-left:.2em}
  .mg-inhalt a:hover::after{opacity:1;transform:none}
}

/* ---------- Kapitel-Kopf ---------- */
.mg-kap{scroll-margin-top:90px}
.entry-content .mg p.mg-nr:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Baskervville,serif !important;font-style:italic;font-size:clamp(22px,1.9vw,44px) !important;line-height:1 !important;color:var(--ton) !important;margin:0 0 .5em !important;letter-spacing:0 !important}
.entry-content .mg h2.mg-h2:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){margin:0 0 clamp(24px,2.4vw,56px) !important;font-weight:400 !important;line-height:1 !important;color:inherit !important;text-transform:none !important;letter-spacing:-.02em !important;font-size:clamp(46px,5.2vw,96px) !important}
.mg-h2 span{display:block;font-family:'Coconat-Regular',serif;text-transform:uppercase;line-height:1}
.mg-kopf{container-type:inline-size}
.mg-h2 em{display:block;font-family:Baskervville,serif;font-style:italic;font-size:min(.85em, calc(100cqi / var(--n, 12)));line-height:1.02;margin:.06em 0 0 1.4em;white-space:nowrap}
#gaststuben em{white-space:normal;text-wrap:balance}

/* Fotografen-Notiz unter der Kapitel-Einleitung */
.entry-content .mg .mg-t p.mg-wofuer:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Karla,sans-serif !important;font-weight:500 !important;text-transform:uppercase;font-size:var(--klein) !important;letter-spacing:-.02em !important;line-height:1.5 !important;margin-top:1.6em !important;padding-top:1em;border-top:1px solid var(--linie);max-width:30em;color:#302e26 !important}
.mg-wofuer b{font-weight:500;font-family:Baskervville,serif;font-style:italic;text-transform:none;font-size:1.35em;color:var(--ton);margin-right:.6em}
.entry-content .mg-cover .mg-t p.mg-wofuer:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){color:#faf8f2 !important;border-top-color:rgba(250,248,242,.45)}
.mg-cover .mg-wofuer b{color:#faf8f2}

/* Kapitel-Cover: Vollbild, Titel + Einleitung auf dem Bild (wie die Guides) */
.mg-cover{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-top:var(--ab);height:max(540px,min(92vh,62vw));overflow:hidden;color:#faf8f2;background:#302e26}
.mg-cover > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mg-cover::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(24,22,18,.62) 0,rgba(24,22,18,.28) 34%,rgba(24,22,18,0) 62%)}
.mg-cover .mg-kopf{position:absolute;z-index:1;left:var(--rand);right:var(--rand);bottom:clamp(40px,6vw,130px);max-width:max(44rem,46vw)}
.mg-cover.oben::after{background:linear-gradient(to bottom,rgba(24,22,18,.5) 0,rgba(24,22,18,.18) 38%,rgba(24,22,18,0) 60%)}
.mg-cover.oben .mg-kopf{top:clamp(110px,12vw,220px);bottom:auto}
.entry-content .mg-cover p.mg-nr:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a),.entry-content .mg-cover h2.mg-h2:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a),.entry-content .mg-cover .mg-t p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){color:#faf8f2 !important}
.mg-cover .mg-t p{text-shadow:0 1px 18px rgba(0,0,0,.25)}

/* ---------- Zitat aus dem eigenen Text ---------- */
.mg-zitat{margin:var(--ab) auto 0;padding:clamp(36px,4.4vw,96px) 0;border:0;border-top:1px solid var(--linie);border-bottom:1px solid var(--linie);text-align:center;background:none}
.entry-content .mg blockquote.mg-zitat p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Baskervville,serif !important;font-style:italic;font-size:clamp(30px,4.2vw,104px) !important;line-height:1.08 !important;letter-spacing:-.02em !important;margin:0 auto !important;max-width:14em;color:#302e26 !important;text-wrap:balance}

.mg-zitat-von{margin-top:clamp(18px,1.8vw,40px);font-family:Karla,sans-serif;font-weight:500;text-transform:uppercase;font-size:var(--klein);letter-spacing:.06em;color:var(--ton)}

/* ---------- Schluss ---------- */
.mg-schluss{text-align:center;justify-items:center}
.mg-schluss .mg-t{grid-column:4 / 10}
.mg-schluss .mg-t p{margin-left:auto !important;margin-right:auto !important}
.mg-stich{display:block;width:clamp(90px,8vw,170px);height:auto;margin:0 auto clamp(28px,3vw,64px);mix-blend-mode:multiply;opacity:.88}
.entry-content .mg .mg-t p.mg-dank:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-family:Baskervville,serif !important;font-style:italic;font-size:clamp(22px,1.9vw,40px) !important;line-height:1.2 !important;margin-top:1.4em !important}

/* Auftritt beim Scrollen (gleiche Bewegung wie auftritt.js) */
.mg .nv-auf{opacity:0;transform:translate3d(0,100px,0);transition:opacity .9s cubic-bezier(.25,.46,.45,.94),transform .9s cubic-bezier(.25,.46,.45,.94)}
.mg .nv-auf.nv-auf-da{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.mg .nv-auf{opacity:1;transform:none;transition:none}.cs-hero .mg-hero-video{transition:none}}

/* ---------- Tablet ---------- */
@media (max-width:1023px) and (min-width:768px){
  .mg-inhalt ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mg-spalten{grid-template-columns:1fr;row-gap:1.2em}
}

/* ---------- Handy: alles untereinander, Bild vor Text ---------- */
@media (max-width:767px){
  .mg{--rand:24px;--luecke:12px;--ab:80px;--text:14px;--klein:12.6px;padding-top:64px}
  .mg-r{display:flex;flex-direction:column;gap:12px}
  .mg-r > *{margin-top:0;width:100%}
  .mg-r > .mg-t{order:5;margin-top:28px}
  .mg-r > .mg-b.mg-h{width:82%}
  .mg-r > .mg-b.mg-h.rechts{align-self:flex-end}
  .mg-r.vorspann > *{order:0 !important}
  .mg-r.vorspann .mg-fakten{order:3 !important;margin-top:40px}
  .mg-spalten{grid-template-columns:1fr;row-gap:1.2em;margin-top:28px}
  .mg-inhalt ol{grid-template-columns:1fr}
  .mg-voll figure.mg-b{height:auto;aspect-ratio:4 / 5}
  .mg-voll.quer figure.mg-b{aspect-ratio:3 / 2}
  .mg-cover{height:auto;min-height:0;display:flex;flex-direction:column;background:#302e26}
  .mg-cover > img{position:relative;inset:auto;height:auto;aspect-ratio:3 / 2}   /* 17.11. 22:00 Chris: am Handy quer, nicht hochkant zuschneiden */
  .mg-cover::after{display:none}
  .mg-cover .mg-kopf,.mg-cover.oben .mg-kopf{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:36px 24px 44px;max-width:none}
  .entry-content .mg h2.mg-h2:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-size:30px !important}
  .mg-h2 em{font-size:.87em;margin-left:.8em;white-space:normal}
  .mg-schluss .mg-t{width:100%}
  .entry-content .mg blockquote.mg-zitat p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){font-size:30px !important}
}

/* 17.11. 22:00: Pfeil bei www.gupf.ch als Zeichnung (iPhone zeigte ↗ als blaues Emoji) */
.entry-content .mg .mg-fakten a.mg-web svg.mg-pfeil:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){display:inline-block;width:.8em;height:.8em;margin-left:.15em;vertical-align:-.04em}

/* 17.11. 22:05 (Chris: «Schrift grösser als sonst auf der Website»): Fliesstext = Website-Standard
   Handy 14 px / Zeilenhöhe 1,4 (wie --nv-text), ab 1025 px clamp(17px,1.05vw,19px) / 1,6 (wie alle Artikel) */
@media (min-width:1025px){.mg{--text:clamp(17px,1.05vw,19px)}}
@media (max-width:767px){.entry-content .mg .mg-t p:not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a):not(#a){line-height:1.4 !important}}
