/* Startseite */
:root{--ui-card-border:#dfe4ea}
.home-v2-main{max-width:1160px;margin:0 auto;padding:0 32px 60px}
.home-v2-main>.home-v2-hero{margin-top:0}

/* "Was ALTUM kann" -- helles Hintergrundband ueber die volle Breite, Inhalt
   bleibt auf die normale Content-Breite begrenzt und zentriert. */
.home-v2-value-section{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:40px 32px;background:#f7f9fb}
.home-v2-value-section>*{max-width:1096px;margin-left:auto;margin-right:auto}

/* Hero -- volle Breite, Titel wie auf Aktien-/ETF-Detailseiten (.s-info h1) */
.home-v2-hero{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:108px 32px 116px;background:#f7f9fb url(../assets/backgrounds/home-hero-bg.png?v=2) center/cover no-repeat}
.home-v2-hero-grid{display:grid;max-width:1096px;margin:0 auto;grid-template-columns:minmax(0,1.22fr) minmax(360px,.78fr);gap:48px;align-items:start}
.home-v2-hero-grid.without-story{grid-template-columns:minmax(0,1fr)}
.home-v2-discovery{min-width:0}
.home-v2-discovery h1{margin:0;color:var(--text);font-size:36px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
.home-v2-discovery h1 em{font-style:normal}

.home-v2-search{position:relative;display:flex;align-items:center;gap:10px;height:38px;padding:0 14px;margin-top:22px;width:100%;background:#fff;border:1px solid var(--sep);border-radius:10px}
.home-v2-search-submit{display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:0;background:none;color:var(--muted);cursor:pointer;flex:0 0 auto}
.home-v2-search-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.home-v2-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--text)}
.home-v2-search input::placeholder{color:var(--dim)}
.home-v2-search .nav-search-suggestions{width:100%;max-width:none;left:0;right:0}
.home-v2-search .nav-search-suggestions:not([hidden]){animation:homeSearchSuggestIn .2s cubic-bezier(.16,1,.3,1)}
.home-page .nav-search-result-logo img{width:100%;height:100%;max-width:none;max-height:none;border-radius:50%;object-fit:contain;clip-path:circle(50%);background:#fff}
@keyframes homeSearchSuggestIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

.home-v2-tickers{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.home-v2-tickers a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:25px;
  border-radius:4px;
  background:#f1f2f4;
  color:#555;
  padding:4px 9px;
  font-size:11.5px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.home-v2-tickers img{display:block;width:16px;height:16px;border-radius:50%;object-fit:contain;background:#fff}
.home-v2-tickers b{font-size:inherit;font-weight:inherit;color:inherit}

.home-v2-story{position:relative;display:flex}
.home-v2-story-main{display:flex;flex-direction:column;gap:10px;padding:20px 20px 30px;width:100%;background:#fff;border:1px solid var(--sep);border-radius:14px;box-shadow:0 1px 2px #22242626;text-decoration:none;transition:opacity .12s ease}
.home-v2-story.is-changing .home-v2-story-main{opacity:.4}
.home-v2-story-headline-row{display:flex;align-items:flex-start;gap:10px}
.home-v2-story-logo{flex:0 0 32px;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#f4f5f8;display:flex;align-items:center;justify-content:center}
.home-v2-story-logo img{width:100%;height:100%;object-fit:contain}
.home-v2-story-main h2{margin:0;font-size:16px;line-height:1.3;font-weight:700;color:var(--text)}
.home-v2-story-main p{margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
.home-v2-story-rotation{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;gap:5px;pointer-events:none}
.home-v2-story-rotation button{width:14px;height:4px;padding:0;border:0;border-radius:2px;background:var(--sep);cursor:pointer;transition:width .15s ease,background .15s ease;pointer-events:auto}
.home-v2-story-rotation button.is-active{width:22px;background:#000}

/* Shared sections */
.home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:40px;margin-bottom:17px;padding-bottom:13px;border-bottom:1px solid var(--sep)}
.home-section-head>div{min-width:0}
.home-section-head h2.compx-h{margin:0 0 12px;color:var(--text);font-size:20px;font-weight:700;line-height:1.25;letter-spacing:0;text-transform:none}
.home-section-link{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;color:#526178;text-decoration:none;font-size:11.5px;font-weight:650}
.home-section-link:hover{color:#168451}
.home-section-link i{font-size:9px;transition:transform .14s ease}
.home-section-link:hover i{transform:translateX(3px)}

/* Checkliste + Live-Vorschau ("Was ALTUM kann") */
.home-value-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.6fr);gap:40px;align-items:start}
.home-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.home-checklist li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.4;color:var(--text);white-space:nowrap}
.home-checklist i{flex:0 0 16px;width:16px;height:16px;margin-top:1px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#168451;color:#fff;font-size:10px}

.home-showcase-panel{position:relative;display:none;padding:18px;border:1px solid var(--ui-card-border);border-radius:10px;background:#fff;box-shadow:0 1px 2px #22242626}
.home-showcase-panel[data-home-showcase-panel="moat"]{width:calc(100% + 30px);margin-left:-30px}
/* Kurzbewertung/Anlagestil: 300px wie .ovx-top-layout's rechte Spalte auf der
   echten Aktien-/ETF-Detailseite (cards-kpis-shell/01.css), nicht die Breite
   der Startseiten-Karte. */
.home-showcase-panel[data-home-showcase-panel="rating"],
.home-showcase-panel[data-home-showcase-panel="style"]{width:300px;margin-left:auto;margin-right:auto}
.home-showcase-panel.is-active{display:block}
.home-showcase-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.home-showcase-logo{flex:0 0 24px;width:24px;height:24px;border-radius:50%;overflow:hidden;background:#f4f5f8;display:flex;align-items:center;justify-content:center}
.home-showcase-logo img{width:100%;height:100%;object-fit:contain}
.home-showcase-panel .ovx-profile-title{margin:0;flex:1 1 auto}
.home-showcase-panel .ovx-profile-title span{font-size:13px;font-weight:800;color:var(--text)}
.home-showcase-panel .ovx-profile-title small{font-size:10.5px;color:var(--dim)}

/* Burggraben: EXAKT dieselben Werte wie #compxMoatSection auf der echten
   Unternehmen-Seite (card-system.css + company-panels-timelines/02.css) --
   keine einzige Zahl von Hand veraendert. Layoutet in voller Breite wie auf
   der echten Seite und wird per zoom komplett als Ganzes verkleinert, damit
   es in die schmalere Startseiten-Karte passt. 1:1, nur kleiner -- kein
   eigenes Design. Keine verschachtelte zweite Karte mehr -- nur die eine
   Umrandung von .home-showcase-panel, wie bei den anderen 2. */
.home-showcase-moat-real{width:495px;zoom:.77}
.home-showcase-moat-real .compx-moat-contribution-card{margin:0}
.home-showcase-moat-real .compx-moat-contribution-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;margin-bottom:8px;color:#475569;font-size:12px;font-weight:800;line-height:1.2}
.home-showcase-moat-real .compx-moat-contribution-scale span:not(:first-child):not(:last-child){text-align:center}
.home-showcase-moat-real .compx-moat-contribution-scale span:last-child{text-align:right}
.home-showcase-moat-real .compx-moat-contribution-scale .is-current{color:#168451;font-size:14px;font-weight:900}
.home-showcase-moat-real .compx-moat-contribution-bar{display:flex;width:100%;height:34px;gap:2px;overflow:hidden;border-radius:8px;background:#e7ebf0}
.home-showcase-moat-real .compx-moat-contribution-bar>span{display:flex;min-width:0;flex:var(--moat-share) 1 0;align-items:center;justify-content:center;background:var(--moat-color);color:#fff}
.home-showcase-moat-real .compx-moat-contribution-bar>span:first-child{border-radius:8px 0 0 8px}
.home-showcase-moat-real .compx-moat-contribution-bar>span:last-child{border-radius:0 8px 8px 0}
.home-showcase-moat-real .compx-moat-contribution-bar>span.is-unfilled{background:#dfe4ea!important;color:#64748b!important}
.home-showcase-moat-real .compx-moat-contribution-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.home-showcase-moat-real .compx-moat-contribution-legend>span{display:grid;min-width:0;grid-template-columns:9px minmax(0,1fr);gap:2px 7px;align-items:center;padding:8px;border-radius:6px;background:#f7f9fb}
.home-showcase-moat-real .compx-moat-contribution-legend>span.is-unfilled{background:#f1f4f7}
.home-showcase-moat-real .compx-moat-contribution-legend i{display:block;width:9px;height:9px;grid-row:1/3;border-radius:50%;background:var(--moat-color)}
.home-showcase-moat-real .compx-moat-contribution-legend b{overflow:hidden;color:#334155;font-size:10px;font-weight:750;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.home-showcase-moat-real .compx-moat-contribution-legend em{color:#64748b;font-size:9.5px;font-style:normal;font-weight:550;line-height:1.4}

/* Kurzbewertung: nur farbige Schrift, keine Fläche -- wie auf der echten Übersicht */
.home-showcase-rating-row{display:flex;align-items:center;justify-content:space-between;padding:9px 4px;border-radius:8px;transition:background-color .15s ease}
.home-showcase-rating-row:hover{background-color:rgba(15,23,42,.05)}
.home-showcase-rating-row span{color:var(--text);font-size:12.5px}
.home-showcase-rating-row b{font-size:12px;font-weight:700}

/* Anlagestil: echtes Accordion mit Formel, wie auf der echten Übersicht */
.home-showcase-style-row{margin:0;border-bottom:1px solid rgba(148,163,184,.2)}
.home-showcase-style-row:last-child{border-bottom:0}
.home-showcase-style-row summary{position:relative;display:flex;align-items:center;gap:10px;padding:9px 18px 9px 0;margin:0;cursor:pointer;list-style:none}
.home-showcase-style-row summary::-webkit-details-marker{display:none}
.home-showcase-style-row summary span{flex:0 0 auto;font-size:12.5px;color:var(--text)}
.home-showcase-style-row summary b{flex:0 0 auto;font-size:12px;font-weight:700;color:var(--text)}
.home-showcase-style-row .home-showcase-style-track{flex:1 1 auto;height:6px;border-radius:3px;background:#eef0f2;overflow:hidden;position:relative}
.home-showcase-style-row .home-showcase-style-track::after{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--w);background:#168451;border-radius:3px}
.home-showcase-chevron{position:absolute;top:9px;right:0;color:#94a3b8;font-size:14px;line-height:1;transition:transform .18s ease}
.home-showcase-style-row[open] .home-showcase-chevron{transform:rotate(180deg)}
.home-showcase-style-formula{margin:-1px 0 9px;padding:9px 10px;border:1px solid #e5eaf0;border-radius:7px;background:#f8fafc;color:#475569}
.home-showcase-style-formula>span{display:block;margin-bottom:4px;color:#168451;font-size:8.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.home-showcase-style-formula>code{display:block;color:#172033;font-family:inherit;font-size:10px;font-weight:750;line-height:1.45}
.home-showcase-style-formula>small{display:block;margin-top:5px;color:#64748b;font-size:9.5px;line-height:1.45}

/* Rotations-Punkte unter den Karten statt absolut ueberlagert (erbt sonst die
   Hero-Story-Positionierung, die hier ohne passenden Bezugsrahmen haengt). */
.home-showcase [data-home-showcase-rotation]{position:static;margin-top:14px}

[data-home-showcase-rotation]{display:flex;justify-content:center;gap:5px;margin-top:12px}
[data-home-showcase-rotation] button{width:14px;height:4px;padding:0;border:0;border-radius:2px;background:var(--sep);cursor:pointer;transition:width .15s ease,background .15s ease}
[data-home-showcase-rotation] button.is-active{width:22px;background:#000}

/* Earnings */
.home-earnings-section{position:relative}
.home-earnings-row{width:100%;display:flex;gap:10px;align-items:stretch;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:2px 0;scroll-behavior:smooth}
.home-earnings-row::-webkit-scrollbar{display:none;width:0;height:0}
.home-earnings-card{flex:0 0 260px;width:260px;display:grid;grid-template-columns:50px 60px minmax(0,1fr);align-items:center;gap:10px;padding:12px;border-radius:10px;background:#fff;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.home-earnings-card:hover{background:#fafbfc;border-color:rgba(15,23,42,.24)}
.home-earnings-card.is-past{opacity:.55}
.home-earnings-logo{width:50px;height:50px;flex:0 0 50px;background:transparent;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:9px}
.home-earnings-logo img{display:block;width:100%;height:100%;object-fit:contain}
.home-earnings-date{display:flex;flex-direction:column;line-height:1.15}
.home-earnings-date b{font-size:15px;font-weight:750;color:var(--text)}
.home-earnings-date small{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.home-earnings-company{min-width:0;display:flex;flex-direction:column;overflow:hidden}
.home-earnings-company .stock-symbol{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-earnings-company .stock-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-empty-calendar{display:flex;align-items:center;gap:12px;padding:24px;border:1px dashed var(--sep);border-radius:10px;color:var(--muted)}
.home-empty-calendar i{font-size:20px}
.home-empty-calendar b{display:block;color:var(--text);font-size:13px;margin-bottom:2px}
.home-empty-calendar span span{font-size:12px}

/* Maerkte/Sektoren: gleiche .stock-mini-card-Kartenhuelle wie Aktien/ETFs,
   nur dass statt einem Logo mehrere kleine Firmenlogos (4) im selben 50x50
   Feld sitzen, das sonst ein einzelnes Logo einnimmt. */
.stock-card-logo-cluster{width:50px;height:50px;flex:0 0 50px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:0;overflow:hidden;border-radius:9px}
.stock-card-logo-cluster img{width:100%;height:100%;object-fit:contain;background:#f4f5f8}
.stock-mini-card.market-mini-card{min-height:0;height:auto;align-self:flex-start;justify-content:flex-start}

/* Asset-Karussells (echte .stock-card-carousel-Komponente, siehe company-panels-timelines/00.css) */
.stock-card-row .stock-mini-card{box-shadow:none}
/* ETF-Karten breiter, damit TER + 4-stellige Positionen auf einer Zeile bleiben */
#homeEtfCarousel .stock-mini-card{width:260px;flex:0 0 260px}

.stock-mini-badges{display:flex;margin-top:10px}
.stock-mini-badges .stock-mini-badge{flex:1 1 auto;justify-content:center}
.etf-mini-badges{display:flex;flex-wrap:nowrap;gap:6px;margin-top:10px}
.stock-mini-badge,.etf-mini-badge{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  border-radius:4px;
  background:#f1f2f4;
  color:#555;
  padding:3px 8px;
  font-size:10.5px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
}
.stock-mini-badge.is-positive{background:#e8f7ef;color:#168451}
.stock-mini-badge.is-negative{background:#fdecec;color:#b43a3a}
.stock-mini-badge.is-neutral{background:#f1f2f4;color:#555}
.etf-mini-badge{color:#8a8f98}
.etf-mini-badge b{margin-left:6px;color:#1a1a1a;font-weight:700}

.home-v2-discovery h1 em{
  display:inline-block;
  margin-bottom:-.09em;
  padding-bottom:.09em;
  background:linear-gradient(135deg,#7CFF00 0%,#00BFA6 55%,#168451 100%);
  color:transparent;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

@media(max-width:760px){
  .home-v2-hero-grid{grid-template-columns:minmax(0,1fr);gap:25px}
  .home-value-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .home-v2-value-section{padding:32px 20px;overflow-x:clip}
  .home-checklist li{align-items:flex-start;white-space:normal}
  .home-checklist li span{min-width:0;white-space:normal;overflow-wrap:anywhere}
  .home-showcase{min-width:0;max-width:100%}
  .home-showcase-panel[data-home-showcase-panel="moat"],
  .home-showcase-panel[data-home-showcase-panel="rating"],
  .home-showcase-panel[data-home-showcase-panel="style"]{width:100%;max-width:100%;margin-left:0;margin-right:0;box-sizing:border-box}
  .home-showcase-moat-real{width:100%;zoom:1}
  .home-showcase-moat-real .compx-moat-contribution-scale{font-size:9px;overflow-wrap:anywhere}
  .home-showcase-moat-real .compx-moat-contribution-scale .is-current{font-size:10px}
  .home-showcase-moat-real .compx-moat-contribution-legend{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:900px){
  .home-v2-main{padding:0 20px 48px}
  .home-v2-hero{padding:64px 20px 68px}
}
