/* CiegoLink – Innovations-Detailseite (/inv/<id>). Baut auf style.css + docs.css auf. */

/* Hero */
.iv-hero{padding-bottom:clamp(60px,7vw,100px)}
.iv-back{display:inline-block;font:700 12px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--sand);opacity:.6;margin-bottom:clamp(26px,3vw,40px);transition:opacity .2s,color .2s}
.iv-back:hover{opacity:1;color:var(--teal)}
.iv-dh{grid-template-columns:1fr 1.15fr;align-items:center}
.iv-hero h1{font-size:clamp(42px,5.4vw,84px);line-height:.98;overflow-wrap:anywhere}
.iv-hero .lead{max-width:540px}
.iv-cnt{font:700 11px var(--mono);background:#EAEAE21f;border-radius:20px;padding:2px 8px}
.iv-share{background:none;font-family:inherit}
.iv-share svg{width:16px;height:16px}
.iv-share.ok{border-color:var(--teal);color:var(--teal)}

/* Fenster-Rahmen für Screenshot / Video */
.iv-win{background:#16181c;border:1px solid #EAEAE21f;border-radius:14px;overflow:hidden;box-shadow:0 40px 90px #0008,0 0 0 1px #0004;min-width:0}
.iv-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid #EAEAE214;background:#1b1d22}
.iv-bar i{width:10px;height:10px;border-radius:50%;background:#EAEAE226}
.iv-bar i:first-child{background:#E5484D}.iv-bar i:nth-child(2){background:#F5A524}.iv-bar i:nth-child(3){background:#30A46C}
.iv-bar span{margin-left:10px;font:500 11px var(--mono);letter-spacing:.06em;opacity:.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iv-media{display:block;width:100%;aspect-ratio:16/10;border:0;background:#0f1013}
video.iv-media,iframe.iv-media{aspect-ratio:16/9}
.iv-img{background:center/contain no-repeat,#F1F2EE}
button.iv-media{padding:0;cursor:zoom-in;aspect-ratio:auto}
.iv-media img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}

/* Inhalt */
.iv-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(30px,5vw,80px);align-items:start}
.iv-doc{max-width:780px;border:0;margin:0;padding:0}
.iv-rt{font-size:17px;line-height:1.75}
.iv-rt+.iv-rt{margin-top:28px;padding-top:28px;border-top:1px solid var(--sage)}
.iv-intro{font-size:clamp(19px,1.6vw,23px);line-height:1.55;color:var(--ink)}
.iv-rt p{margin-bottom:16px}
.iv-rt h2{font-size:clamp(30px,3vw,44px);line-height:1.05;color:var(--ink);margin:40px 0 16px}
.iv-rt h3{font-size:clamp(22px,2vw,30px);line-height:1.1;color:var(--ink);margin:34px 0 12px}
.iv-rt h4{font-family:Manrope,sans-serif;font-weight:800;font-size:17px;color:var(--ink);margin:24px 0 8px}
.iv-rt ul,.iv-rt ol{margin:0 0 18px 22px}.iv-rt li{margin-bottom:6px}
.iv-rt ul p{margin: 0px;padding:0px;}
.iv-rt blockquote{border-left:3px solid var(--teal);padding:4px 0 4px 18px;margin:22px 0;font-family:var(--serif);font-size:22px;color:var(--ink)}
.iv-rt img{display:block;max-width:100%;height:auto;border-radius:12px;margin:24px 0;box-shadow:0 20px 50px #1F21261a;cursor:zoom-in}
.iv-rt figure{margin:24px 0}.iv-rt figure img{margin:0}
.iv-rt figcaption{font-size:13px;opacity:.7;margin-top:8px}
.iv-rt table{width:100%;border-collapse:collapse;margin:20px 0;font-size:15px;background:#fff;border-radius:12px;overflow:hidden}
.iv-rt th,.iv-rt td{text-align:left;padding:10px 14px;border-bottom:1px solid #C1C8BE88}
.iv-rt th{font:700 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}

/* Seitenleiste */
.iv-side{position:sticky;top:96px}
.iv-card{background:#fff;border-radius:18px;padding:24px;box-shadow:0 20px 50px #1F21260d;border-top:3px solid var(--teal)}
.iv-card .mono{color:var(--teal)}
.iv-feat{list-style:none;margin:14px 0 18px;display:grid;gap:2px}
.iv-feat li{position:relative;padding:9px 0 9px 30px;border-bottom:1px solid #C1C8BE66;font-weight:600;font-size:15px;color:var(--ink)}
.iv-feat li::before{content:"";position:absolute;left:0;top:11px;width:18px;height:18px;border-radius:50%;background:var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat}
.iv-card p{font-size:14px;opacity:.8;margin-bottom:16px}
.iv-card .btn{width:100%;justify-content:center}

/* Screenshots */
.iv-shots{background:var(--ink);padding-top:clamp(80px,8vw,120px);padding-bottom:clamp(80px,8vw,120px)}
.iv-shots h2,.iv-more h2{font-size:clamp(36px,4vw,60px);line-height:1;margin-bottom:clamp(30px,4vw,50px)}
.iv-gal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.iv-gal figure:first-child:nth-last-child(odd){grid-column:1/-1}   /* bei ungerader Anzahl: erstes Bild gross */
.iv-gal.one{grid-template-columns:1fr}
.iv-gal button{display:block;width:100%;padding:0;border:1px solid #EAEAE21f;border-radius:14px;overflow:hidden;background:#16181c;cursor:zoom-in;transition:transform .35s var(--e),border-color .35s,box-shadow .35s}
.iv-gal button:hover{transform:translateY(-4px);border-color:var(--teal);box-shadow:0 30px 60px #0007}
.iv-gal img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top}
.iv-gal figure:first-child:nth-last-child(odd) img,.iv-gal.one img{aspect-ratio:auto;max-height:80vh;object-fit:contain}
.iv-gal figcaption{display:flex;gap:12px;align-items:baseline;margin-top:12px;font-size:14px;opacity:.8}
.iv-gal figcaption b{font:700 11px var(--mono);color:var(--teal);letter-spacing:.1em}

/* Grossansicht */
.iv-lb{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:clamp(16px,3vw,40px);border:0;background:#0d0e10f2;color:var(--sand);display:none;align-items:center;justify-content:center}
.iv-lb[open]{display:flex;animation:mnIn .25s var(--e)}
.iv-lb::backdrop{background:transparent}
.iv-lb figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.iv-lb img{display:block;max-width:min(1600px,100%);max-height:calc(100vh - 140px);max-height:calc(100svh - 140px);width:auto;height:auto;border-radius:10px;box-shadow:0 30px 80px #000a;touch-action:pan-y}
.iv-lb figcaption{display:flex;gap:14px;align-items:baseline;font-size:15px;text-align:center}
.iv-lb figcaption .mono{color:var(--teal)}
.iv-lbx,.iv-lbn{position:absolute;z-index:2;display:grid;place-items:center;border-radius:50%;border:1px solid #EAEAE244;background:#1F2126cc;color:var(--sand);cursor:pointer;font:400 22px/1 Manrope,sans-serif;transition:background .2s,border-color .2s}
.iv-lbx:hover,.iv-lbn:hover{background:var(--teal);border-color:var(--teal)}
.iv-lbx{top:18px;right:18px;width:44px;height:44px;font-size:16px}
.iv-lbn{top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:30px}
.iv-lbn.prev{left:18px}.iv-lbn.next{right:18px}
.iv-lbn[hidden]{display:none}
html.lock-iv{overflow:hidden}

/* Weitere Innovationen */
.iv-more{background:var(--sand);color:var(--navy);padding-top:clamp(80px,8vw,120px);padding-bottom:clamp(80px,8vw,120px)}
.iv-more h2{color:var(--ink)}
.iv-more .ilist{margin-top:0}

@media(max-width:1000px){
  .iv-dh{grid-template-columns:1fr}
  .iv-grid{grid-template-columns:1fr}
  .iv-side{position:static}
}
@media(max-width:700px){
  .iv-gal{grid-template-columns:1fr}
  .iv-lbn{width:42px;height:42px;font-size:24px;top:auto;bottom:18px;transform:none}
  .iv-lb img{max-height:calc(100svh - 170px)}
}
