/* =====================================================================
   SMCK – Startseite (index.html / index-neu.html)
   Nur für die Startseite. Eingebunden nach styles.css und
   magissues-modalgrid.css; benötigt zusätzlich css/fonts-css/anton.css.

   Inhalt
     0. Farben & Schriften
     1. NEWS: drei Spalten   <section class="home-news">
          Mitte:  Upcoming + Open Calls      (.hm-main)
          Links:  Top 5 Articles             (.hm-left)
          Rechts: Recent Shows               (.hm-right)
          Mobil:  Mitte → links → rechts
     2. Titelgeschichte: aktuelle Ausgabe    <section class="mg mg-c">
     3. Heft-Grid mit Modal                  <div class="… mgx grid-stage grid-panel">
   ===================================================================== */


/* ---------------------------------------------------------------------
   0. FARBEN & SCHRIFTEN
   --------------------------------------------------------------------- */
:root {
  --ix-acc:     #e0004d;   /* Magenta */
  --ix-acc-dk:  #a20034;   /* Magenta dunkel (Hover) */
  --ix-ink:     #1b1b1b;   /* fast Schwarz */
  --ix-muted:   #6f6f6f;   /* Grau für Nebentexte */
  --ix-line:    #d9d4cc;   /* feine Linien */
  --ix-panel:   #f1f1f1;   /* graue Panele (NEWS links/rechts) */
  --ix-grid-bg: #f6f6f6;   /* Fläche hinter dem Heft-Grid */
  --ix-shadow:  9px 22px 46px -11px rgba(166,166,166,1);   /* = .soft-shadow aus styles.css */
  --ix-display: 'Anton', 'Oswald', Impact, sans-serif;
  --ix-head:    'Oswald', Impact, Charcoal, sans-serif;
  --ix-text:    'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --ix-topic:   'Assistant', 'Roboto', sans-serif;
}


/* =====================================================================
   1. NEWS – DREI SPALTEN
   ===================================================================== */
.home-news { clear: both; }
.home-news a { color: inherit; text-decoration: none; }
.home-news p, .home-news span { background: transparent; }   /* styles.css gibt <p> einen weißen Hintergrund */
.home-news img { display: block; width: 100%; height: auto; }
.home-news ol, .home-news ul { list-style: none; margin: 0; padding: 0; }

.home-news .hm-wrap { width: 96%; max-width: 1680px; margin: 60px auto 100px; }
.home-news .hm-news { margin: 80px auto 110px; }                       /* Überschrift NEWS */

/* Raster (Desktop ab 1200 px) */
.home-news .hm-grid { display: grid; grid-template-columns: 1.1fr 2fr 1.1fr; grid-template-areas: "left main right";
  gap: 0 44px; align-items: start; }
.home-news .hm-main  { grid-area: main;  min-width: 0; padding-top: 36px; }   /* 36 = Innenabstand der Panele */
.home-news .hm-left  { grid-area: left;  min-width: 0; }
.home-news .hm-right { grid-area: right; min-width: 0; }

/* graue Panele links und rechts */
.home-news .hm-left, .home-news .hm-right { padding: 36px 28px 38px; background: var(--ix-panel); border-radius: 12px;
  /* beginnen auf Höhe der Trennlinie unter UPCOMING:
     Innenabstand Mitte 36 + Überschrift 54 × 1,1 + Abstand 12 + Linie 1.
     Wird die Größe von UPCOMING geändert, hier 54px mit anpassen. */
  margin-top: calc(36px + 54px * 1.1 + 13px); }

/* Rubrik-Überschriften */
.home-news .hm-head { margin: 0 0 30px; padding-bottom: 12px; border-bottom: 1px solid #cfcfcf;
  font-family: var(--ix-head); font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: .5px;
  text-transform: uppercase; color: var(--ix-ink); text-align: left; }
.home-news .hm-main .hm-head { font-size: 54px; margin-bottom: 54px; text-align: center; }   /* UPCOMING, OPEN CALLS */

/* "All …"-Links */
.home-news .hm-more { display: inline-block; margin-top: 30px; padding-bottom: 2px; border-bottom: 2px solid var(--ix-acc);
  font-family: var(--ix-head); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ix-ink); }
.home-news .hm-more:hover { color: var(--ix-acc); }
.home-news .hm-left .hm-more { margin-top: 26px; padding-bottom: 0; border-bottom: 0; font-size: 18px; }   /* ALL ARTICLES */

/* --- Mitte: Upcoming --- */
.home-news .hm-up { display: block; margin-bottom: 100px; }
.home-news .hm-up-title { display: block; margin-top: 18px; font-family: var(--ix-head); font-size: 30px; line-height: 1.1;
  text-transform: uppercase; color: var(--ix-ink); text-align: center; }
.home-news .hm-up-sub { display: block; margin-top: 6px; font-family: var(--ix-text); font-size: 16px; color: var(--ix-muted); text-align: center; }

/* --- Mitte: Open Calls --- */
.home-news .hm-oc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 30px; }
.home-news .hm-oc { display: block; }
.home-news .hm-oc-text { display: block; margin-top: 14px; font-family: var(--ix-head); font-size: 18.5px; font-weight: 400;
  line-height: 1.3; letter-spacing: .3px; text-transform: uppercase; color: #333; }
.home-news .hm-oc-date { display: block; margin-top: 6px; font-family: var(--ix-head); font-size: 17px; font-weight: 600;   /* Apply-Zeile */
  letter-spacing: 1px; text-transform: uppercase; color: var(--ix-acc); }

/* --- Links: Top 5 Articles --- */
.home-news .hm-art { padding: 22px 0; border-bottom: 1px solid #dcdcdc; }
.home-news .hm-art:last-child { border-bottom: 0; }
.home-news .hm-art a { display: flex; gap: 16px; align-items: flex-start; }
.home-news .hm-art img { flex: 0 0 76px; width: 76px; height: 76px; margin-left: -15px; object-fit: cover; }
.home-news .hm-art-text { display: block; min-width: 0; }
.home-news .hm-art-title { display: block; font-family: var(--ix-head); font-size: 18px; font-weight: 600; line-height: 1.2;
  text-transform: uppercase; color: var(--ix-ink); }
.home-news .hm-art-iss { margin-left: 2px; color: var(--ix-acc); white-space: nowrap; }      /* #12 */
.home-news .hm-art-by { display: block; margin-top: 8px; font-family: var(--ix-text); font-size: 13px; font-style: italic; color: var(--ix-muted); }
.home-news .hm-art-sub { display: block; margin-top: 8px; font-family: var(--ix-text); font-size: 14px; line-height: 1.45; color: #555; }   /* Inhaltszeile */

/* --- Rechts: Recent Shows --- */
.home-news .hm-show { margin-bottom: 44px; }
.home-news .hm-show:last-child { margin-bottom: 0; }
.home-news .hm-show a { display: block; }
.home-news .hm-show img { margin-bottom: 16px; }
.home-news .hm-show-date { display: block; font-family: var(--ix-head); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ix-acc); }
.home-news .hm-show-title { display: block; margin-top: 4px; font-family: var(--ix-head); font-size: 22px; font-weight: 600; line-height: 1.15;
  text-transform: uppercase; color: var(--ix-ink); }
.home-news .hm-show a:hover .hm-show-title { color: var(--ix-acc); }
.home-news .hm-show-where { display: block; margin-top: 8px; font-family: var(--ix-text); font-size: 13.5px; line-height: 1.45; color: var(--ix-muted); }
.home-news .hm-show-venue { margin-left: 12px; font-weight: 600; color: var(--ix-ink); }    /* Ort hinter der Info-Zeile */

/* --- NEWS: Bildschirmgrößen --- */
@media (max-width: 1199.98px) {   /* Mitte über die ganze Breite, darunter links + rechts nebeneinander */
  .home-news .hm-wrap { width: 94%; max-width: 1320px; }
  .home-news .hm-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "main main" "left right"; gap: 70px 40px; }
  .home-news .hm-main { padding-top: 0; }
  .home-news .hm-left, .home-news .hm-right { margin-top: 0; }
  .home-news .hm-oc-grid { grid-template-columns: repeat(3, 1fr); }
  .home-news .hm-art { padding: 32px 0 26px; }
  .home-news .hm-art-title { font-size: 21px; }
  .home-news .hm-art-by { font-size: 15px; }
  .home-news .hm-art-sub { font-size: 16px; }
}
@media (max-width: 767.98px) {    /* mobil: Mitte → links → rechts */
  .home-news .hm-grid { grid-template-columns: 1fr; grid-template-areas: "main" "left" "right"; gap: 60px; }
  .home-news .hm-oc-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .home-news .hm-up-title { font-size: 24px; }
}
@media (max-width: 479.98px) {
  .home-news .hm-oc-grid { grid-template-columns: 1fr; }
}


/* =====================================================================
   2. TITELGESCHICHTE – aktuelle Ausgabe (#13)
   ===================================================================== */
.mg-c { clear: both; color: var(--ix-ink); }   /* die Überschrift "THE MAGAZINE" darüber ist eine schwebende Spalte */
.mg-c a { color: inherit; text-decoration: none; }
.mg-c p { background: transparent; }
.mg-c h2, .mg-c h3 { margin: 0; letter-spacing: 0; }
.mg-c .mg-c-wrap { width: 94%; max-width: 1320px; margin: 40px auto 60px; }

.mg-c .mg-c-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start;
  width: 80%; margin: 0 auto 90px; padding: 100px 0 70px;                    /* große Screens: ca. 80 % der Grid-Breite */
  border-top: 1px solid var(--ix-ink); border-bottom: 1px solid var(--ix-ink); }

/* Cover */
.mg-c .mg-c-hero-cover { position: relative; display: block; }
.mg-c .mg-c-hero-cover img { position: relative; display: block; width: 100%; box-shadow: var(--ix-shadow); }

/* #13 + Titel */
.mg-c .mg-c-hero-head { display: flex; align-items: flex-end; gap: 22px; margin: 0 0 26px; }
.mg-c .mg-c-no { display: inline-flex; align-items: flex-end; font-family: var(--ix-display); font-size: 120px; line-height: .8; color: var(--ix-acc); }
.mg-c .mg-c-no::before { content: "#"; font-family: var(--ix-display); font-weight: 400; font-size: .46em; line-height: 1; margin: 0 .04em .02em 0; }
.mg-c .mg-c-hero-title { margin: 0; padding-bottom: 4px; font-family: var(--ix-head); font-size: 58px; line-height: 1; text-transform: uppercase; }

/* Kurzbeschreibung */
.mg-c .mg-c-hero-sum { margin: 0; font-family: var(--ix-text); font-size: 18px; line-height: 1.5; color: #333; text-align: left;
  hyphens: auto; -webkit-hyphens: auto; }

/* IN THIS ISSUE + Themen */
.mg-c .mg-c-label { margin: 40px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ix-line);
  font-family: var(--ix-head); font-size: 28px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ix-ink); }
.mg-c .mg-c-topics { margin: 16px 0 0; font-family: var(--ix-topic); font-size: 18.5px; line-height: 1.35; letter-spacing: .5px;
  text-transform: uppercase; color: #3a3a3a; text-align: left; }
.mg-c .mg-dot { padding: 0 4px; color: var(--ix-acc); }
.mg-c .mg-more { text-transform: none; font-style: italic; color: var(--ix-muted); }

/* Buttons READ / GET #13 (Form wie die Modal-Buttons) */
.mg-c .mg-c-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; }
.mg-c .mg-c-buttons .btn { margin: 15px 0 15px 16px; padding: 0 28px 7px; background: var(--ix-acc); border: 1px solid #d8014b;
  border-radius: 18px; transition: all 0.3s ease; }
.mg-c .mg-c-buttons .btn:hover, .mg-c .mg-c-buttons .btn:focus { background: var(--ix-acc-dk); border-color: var(--ix-acc-dk); }
.mg-c .mg-c-buttons .btn h3 { margin: 13px 0 6px; font-size: 1.5em; color: white; }

/* --- Titelgeschichte: Bildschirmgrößen --- */
@media (max-width: 1199.98px) {
  .mg-c .mg-c-hero { width: 100%; gap: 44px; }
  .mg-c .mg-c-hero-title { font-size: 46px; }
}
@media (max-width: 991.98px) {   /* Cover über dem Text; je kleiner der Bildschirm, desto größer der Anteil */
  .mg-c .mg-c-hero { grid-template-columns: 1fr; padding-top: 70px; }
  .mg-c .mg-c-hero-cover { max-width: 58%; margin: 0 auto 10px; }
}
@media (max-width: 767.98px) {
  .mg-c .mg-c-hero-cover { max-width: 78%; }
  .mg-c .mg-c-hero-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mg-c .mg-c-no { font-size: 96px; }
  .mg-c .mg-c-hero-title { font-size: 40px; }
  .mg-c .mg-c-label { font-size: 24px; }
  .mg-c .mg-c-topics { font-size: 15px; }
}
@media (max-width: 575.98px) {
  .mg-c .mg-c-hero-cover { max-width: 100%; }
}


/* =====================================================================
   3. HEFT-GRID MIT MODAL
   HTML unverändert (magazine-thumb, data-issue, issue-data);
   Modal-CSS/JS: magissues-modalgrid.css / .js.
   #13 bleibt versteckt im Grid, damit man im Modal bis #13 blättern kann.
   ===================================================================== */

/* Bootstrap-Spalten durch CSS-Grid ersetzen */
.mgx .row { display: grid; margin: 0; }
.mgx .row::before, .mgx .row::after { content: none; display: none; }   /* Clearfix aus der BS3-Kompatibilität würde eine leere Grid-Zelle belegen */
.mgx .row > div { width: auto; max-width: none; flex: none; padding: 0; margin: 0; min-width: 0; }
.mgx .magazine-thumb { position: relative; margin: 0; }
.mgx .magazine-thumb img { display: block; width: 100%; min-width: 0; max-width: none; margin: 0 auto; border: 0; box-shadow: none; }
.mgx .magazine-thumb img:hover { transform: none; box-shadow: none; }   /* alten Zoom-Effekt aus magissues-modalgrid.css aus */
.mgx .magazine-thumb:focus-visible { outline: 2px solid var(--ix-acc); outline-offset: 8px; }

/* Fläche und Raster */
.grid-stage { width: 94%; max-width: 1320px; margin-top: 0; }
.grid-stage.grid-panel { padding: 70px 3.5% 50px; background: var(--ix-grid-bg); border-radius: 12px; }
.grid-stage .row { grid-template-columns: repeat(4, 1fr); column-gap: 34px; padding-bottom: 40px; }
.grid-stage .row > div:first-child { display: none; }                      /* #13 steht oben als Titelgeschichte */

/* Kachel: große graue Nummer hinter dem Cover (aus data-issue) */
.grid-stage .magazine-thumb { --off: 26px; padding: 70px 0 0 var(--off); }
.grid-stage .magazine-thumb::before { content: attr(data-issue); position: absolute; left: 0; top: 9px; z-index: 0;
  font-family: var(--ix-display); font-size: 90px; line-height: .9; letter-spacing: -1px;
  color: #cfcfcf; transition: color .3s ease; pointer-events: none; }
.grid-stage.grid-panel .magazine-thumb::before { color: #d6d6d6; }       /* auf der grauen Fläche minimal heller */
.grid-stage .magazine-thumb:hover::before, .grid-stage.grid-panel .magazine-thumb:hover::before { color: #000; }
.grid-stage .magazine-thumb img { position: relative; z-index: 1; width: 100%; box-shadow: var(--ix-shadow); transform: translateZ(0); }
.grid-stage .magazine-thumb:hover img { animation: growimg .3s ease 2 alternate; }   /* @keyframes growimg steht in styles.css */

/* Titel unter dem Cover: "#12" schwarz und größer, Titel dunkelgrau; Breite = Coverbreite */
.grid-stage h5 { position: relative; z-index: 1; width: auto; max-width: none; margin: 18px 0 0; padding: 0;
  font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: .3px; color: #555; text-align: left; }
.grid-stage h5 .mg-h5-no { margin-right: 3px; font-size: 1.2em; font-weight: 600; letter-spacing: .3px; color: #000; }
.grid-stage .magazine-thumb:hover h5 { color: #222; }

/* --- Heft-Grid: Bildschirmgrößen (Spaltenzahl so, dass die Cover nicht zu klein werden) --- */
@media (max-width: 1399.98px) and (min-width: 1200px) {   /* 4 Spalten, schmalere Cover: Titel bleibt einzeilig */
  .grid-stage h5 { font-size: 17px; letter-spacing: 0; }
}
@media (max-width: 1199.98px) {
  .grid-stage .row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {   /* Tablet: zwei Spalten */
  .grid-stage .row { grid-template-columns: repeat(2, 1fr); column-gap: 34px; }
  .grid-stage .magazine-thumb { max-width: 360px; }
}
@media (max-width: 767.98px) {
  .grid-stage { width: 92%; }
  .grid-stage.grid-panel { padding: 50px 5% 40px; }
  .grid-stage .row { grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
  .grid-stage .magazine-thumb { --off: 18px; padding-top: 50px; }
  .grid-stage .magazine-thumb::before { font-size: 63px; top: 6px; }
  .grid-stage h5 { font-size: 14px; letter-spacing: .3px; }
}
@media (max-width: 479.98px) {   /* Handy: eine Spalte, Kacheln mittig untereinander */
  .grid-stage .row { grid-template-columns: 1fr; }
  .grid-stage .row > div { width: 88%; justify-self: center; }
  .grid-stage .magazine-thumb { --off: 24px; padding-top: 64px; }
  .grid-stage .magazine-thumb::before { font-size: 81px; top: 8px; }
  .grid-stage h5 { font-size: 16px; }
}
@media (max-width: 375.98px) {   /* sehr schmale Handys: Cover größer */
  .grid-stage .row > div { width: 90%; }
}

/* Höhenabstand zwischen den Kachel-Reihen: gleitend, ohne Sprünge an den Breakpoints
   Eckpunkte: bis 375 px: 64 · 420–480 px: 84 · 768–992 px: 70 · ab 1200 px: 56 */
.grid-stage .row { row-gap: 56px; }
@media (max-width: 1199.98px) { .grid-stage .row { row-gap: clamp(56px, calc(70px - (100vw - 992px) * 0.0676), 70px); } }
@media (max-width: 991.98px)  { .grid-stage .row { row-gap: 70px; } }
@media (max-width: 767.98px)  { .grid-stage .row { row-gap: clamp(70px, calc(84px - (100vw - 480px) * 0.0486), 84px); } }
@media (max-width: 479.98px)  { .grid-stage .row { row-gap: clamp(64px, calc(64px + (100vw - 375px) * 0.444), 84px); } }
