/* ======== HOME HERO - FEATURED PROJECT ======== */
/* Hero uses .project-card--hero variant from components/project-card.css */
.home-hero{
  margin-bottom:8rem;
}

/* Side-by-side hero grid (exhibition + regular featured) */
.home-heroes-grid{
  display:grid;
  gap:2rem;
  margin-bottom:6rem;
}

@media (min-width:64rem){
  .home-heroes-grid{
    grid-template-columns:1fr 1fr;
  }

  .home-heroes-grid .home-hero{
    margin-bottom:0;
  }
}

/* ======== SEARCH & FILTER ======== */
.home-controls{
  display:grid;
  gap:1.5rem;
  margin:3.1rem 0 2.6rem;
}
@media (min-width:64rem){
  .home-controls{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:2rem;
  }
}

/* ======== HOME PROJECTS ======== */
.home-projects{
  margin-bottom:8rem;
}
.home-projects__header{
  margin-bottom:2.5rem;
  text-align:center;
}
.home-projects__header-content{
  max-width:60rem;
  margin:0 auto;
}
.home-projects__title{
  font-size:1.85rem;
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.15;
  margin:0 0 .75rem 0;
  color:inherit;
}
.home-projects__description{
  font-size:1.2rem;
  line-height:1.9;
  font-weight:400;
  color:var(--color-text);
  margin:0;
  padding-bottom:4rem;
}
.home-projects__description u{
  text-decoration:underline;
  text-decoration-color:var(--accent-primary);
  text-decoration-thickness:2px;
  text-decoration-skip-ink:auto;
  text-underline-offset:3px;
}
.home-projects__footer{
  margin-top:2.5rem;
  text-align:center;
}
.home-projects__see-all{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.5rem;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-md);
  color:var(--color-text);
  font-weight:600;
  text-decoration:none;
  transition:var(--card-transition);
}
.home-projects__see-all:hover{
  background:var(--card-bg-hover);
  border-color:var(--card-border-hover);
}
.home-projects__see-all svg{
  width:1.25rem;
  height:1.25rem;
  stroke:currentColor;
}

/* ======== HOME NEWS ======== */
.home-news{
  margin-bottom:8rem;
}
.home-news__header{
  margin-bottom:2rem;
}
.home-news__title{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.home-news__title svg{
  width:1.5rem;
  height:1.5rem;
  fill:var(--color-text);
  filter:drop-shadow(0 0 12px rgba(0,0,0,.4));
}
.home-news__title h2{
  font-size:1.5rem;
  letter-spacing:.01em;
  margin:0;
}
.home-news__grid{
  display:grid;
  gap:1.6rem;
  grid-template-columns:repeat(auto-fill,minmax(min(26rem,100%),1fr));
}
.home-news__footer{
  margin-top:2.5rem;
  text-align:center;
}
.home-news__see-all{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.5rem;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-md);
  color:var(--color-text);
  font-weight:600;
  text-decoration:none;
  transition:var(--card-transition);
}
.home-news__see-all:hover{
  background:var(--card-bg-hover);
  border-color:var(--card-border-hover);
}
.home-news__see-all svg{
  width:1.25rem;
  height:1.25rem;
  stroke:currentColor;
}

/* News Cards */
.news-card{
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius-md);
  padding:1.5rem 1.65rem;
  transition:background var(--transition-base), border-color var(--transition-base);
  display:flex;
  flex-direction:column;
  height:100%;
}
.news-card--pinned{
  border-color:rgba(91,126,255,.35);
  background:rgba(91,126,255,.08);
}
.news-card--pinned .news-card__icon{
  background:rgba(91,126,255,.16);
  border-color:rgba(91,126,255,.35);
  color:#5B7EFF;
}
.news-card:hover{
  background:var(--card-bg-hover);
  border-color:var(--card-border-hover);
}
.news-card--pinned:hover{
  background:rgba(var(--accent-primary-rgb),.12);
  border-color:rgba(var(--accent-primary-rgb),.45);
}
.news-card__link-wrapper{
  display:flex;
  flex-direction:column;
  gap:.95rem;
  text-decoration:none;
  color:inherit;
  height:100%;
}
.news-card__header{
  display:flex;
  align-items:center;
  gap:.85rem;
}
.news-card__icon{
  width:2.25rem;
  height:2.25rem;
  border-radius:var(--radius-md);
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:var(--color-text);
}
.news-card__icon svg{
  width:1.05rem;
  height:1.05rem;
  fill:currentColor;
}
.news-card__badge{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:.35rem;
  font-size:.68rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;
  padding:.35rem .85rem;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.15);
  color:var(--color-text);
}
.news-card__labels{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}
.news-card__title{
  font-size:1.2rem;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.01em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.news-card__subtitle{
  font-size:.95rem;
  color:rgba(200,200,208,.82);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.news-card__excerpt{
  color:rgba(175,175,184,.82);
  line-height:1.6;
  font-size:.93rem;
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.news-card--headline-1-line .news-card__excerpt{
  -webkit-line-clamp:6 !important;
}
.news-card--headline-2-lines .news-card__excerpt{
  -webkit-line-clamp:5 !important;
}
.news-card__footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  color:rgba(190,190,196,.85);
  font-size:.85rem;
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:.85rem;
}
.news-card__cta{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  color:var(--color-text);
  font-weight:600;
}
.news-card__cta svg{
  width:.95rem;
  height:.95rem;
  fill:currentColor;
}
.home-grid{
  display:grid;
  gap:1.6rem;
  grid-template-columns:repeat(auto-fill,minmax(min(26rem,100%),1fr));
}

/* Project Cards - Moved to components/project-card.css */

.chip{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.28rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:var(--color-text);
  font-size:.78rem;
  font-weight:600;
}
.chip--accent{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
  color:var(--color-text);
}
.chip--news{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
  color:var(--color-text);
  font-size:.72rem;
  padding:.22rem .55rem;
}

.home-empty{
  margin-top:2.5rem;
  text-align:center;
  color:var(--color-text-dim);
}

/* LG: 1024px+ - Desktop layout adjustments */
@media (min-width:64rem){
  .home-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;}
  .home-filter__row{flex-direction:row;align-items:center;justify-content:space-between;gap:1rem;}
  .home-filter__scopes{justify-content:flex-end;flex-wrap:nowrap;width:auto;max-width:32rem;}
}

/* XL: 1280px+ - Constrain max width for large desktops */
@media (min-width:80rem){
  .home-grid{
    max-width:1400px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* LG: 1024px+ - Additional filter adjustments */
@media (min-width:64rem){
  .home-filter__row{justify-content:flex-start;gap:1.25rem;}
}

/* Below SM (640px): Mobile optimizations */
@media (max-width:39.99rem){
  /* Full-width grids - break out of container */
  .home-grid,
  .home-news__grid{gap:0;margin-left:calc(var(--padding) * -1);margin-right:calc(var(--padding) * -1);}
  /* Full-width hero sections - break out of container */
  .home-hero,
  .home-video-hero,
  .home-hero--exhibition{margin-left:calc(var(--padding) * -1);margin-right:calc(var(--padding) * -1);}
  /* Edge-to-edge cards */
  .news-card{border-radius:0;border-left:0;border-right:0;border-bottom:0;}
  .news-card:first-child{border-top:0;}
  /* Increase internal padding */
  .news-card{padding:1.5rem 2rem;}
  .news-card__title{font-size:1.1rem;}
  .news-card__subtitle{font-size:.88rem;}
  .news-card__excerpt{font-size:.87rem;}
  .news-card__footer{font-size:.8rem;}
  .home-controls{padding:1.1rem 1.2rem;}
  /* Projects description responsive */
  .home-projects__description{font-size:1rem;}
  .home-projects__title{font-size:1.5rem;}
  /* Heroes grid spacing */
  .home-heroes-grid{margin-bottom:0;}
}

/* ======== EXHIBITION HERO ======== */
/* Exhibition uses project-card--hero component for layout */
.home-hero--exhibition{
  margin-bottom:4rem;
}
@media (min-width:64rem){
  .home-hero--exhibition{
    margin-bottom:6rem;
  }
}

/* Exhibition text styling */
.home-hero__exhibition-info{
  display:flex;
  gap:2rem;
  margin-top:1rem;
}
.home-hero__exhibition-date,
.home-hero__exhibition-venue{
  flex:1;
  margin:0;
  font-size:1rem;
  line-height:1.6;
  color:var(--color-text-muted);
}
.home-hero__exhibition-date strong,
.home-hero__exhibition-venue strong{
  color:var(--color-text);
  font-weight:700;
}

/* ======== VIDEO HERO ======== */
.home-video-hero{
  margin-bottom:4rem;
}
@media (min-width:64rem){
  .home-video-hero{
    margin-bottom:6rem;
  }
}

/* ======== LIGHT THEME ADJUSTMENTS ======== */
/* Home hero light theme - Handled by .project-card--hero in components/project-card.css */

html[data-theme="light"] .home-search-card,
html[data-theme="light"] .home-filter-card{
  background:linear-gradient(180deg,#f9f9fb 0%,#f2f2f6 100%);
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 16px 32px rgba(31,33,43,.12);
}
html[data-theme="light"] .home-search{
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 12px 28px rgba(31,33,43,.12);
}
html[data-theme="light"] .home-search svg{fill:rgba(70,72,86,.65)}
html[data-theme="light"] .home-filter__scopes{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.08)}
html[data-theme="light"] .scope-toggle{color:rgba(68,72,96,.75)}
html[data-theme="light"] .scope-toggle.is-active{color:rgba(25,32,60,.92)}
html[data-theme="light"] .scope-toggle.is-active::after{background:rgba(var(--accent-primary-rgb),.25)}
html[data-theme="light"] .filter-button{
  background:#fcfcfd;
  border:1px solid rgba(0,0,0,.08);
  color:rgba(50,50,64,.92);
}
html[data-theme="light"] .filter-button:hover{border-color:rgba(0,0,0,.12);box-shadow:0 0 0 1px rgba(0,0,0,.12)}
html[data-theme="light"] .filter-button.is-active{background:rgba(0,0,0,.08);border-color:rgba(0,0,0,.14);color:var(--color-accent);box-shadow:0 12px 24px rgba(31,33,43,.12)}
html[data-theme="light"] .home-filter__buttons::-webkit-scrollbar-thumb{background:rgba(var(--accent-primary-rgb),.22)}
html[data-theme="light"] .home-filter__buttons{scrollbar-color:rgba(var(--accent-primary-rgb),.22) transparent}

html[data-theme="light"] .news-card{
  background:var(--card-bg);
  border:1px solid var(--card-border);
}
html[data-theme="light"] .news-card--pinned{
  background:rgba(68,105,255,.08);
  border-color:rgba(68,105,255,.35);
}
html[data-theme="light"] .news-card:hover{
  background:var(--card-bg-hover);
  border-color:var(--card-border-hover);
}
html[data-theme="light"] .news-card--pinned:hover{
  background:rgba(68,105,255,.12);
  border-color:rgba(68,105,255,.45);
}
html[data-theme="light"] .news-card__icon{
  background:rgba(0,0,0,.04);
  border-color:rgba(0,0,0,.08);
  color:var(--color-accent);
}
html[data-theme="light"] .news-card--pinned .news-card__icon{
  background:rgba(var(--accent-primary-rgb),.16);
  border-color:rgba(var(--accent-primary-rgb),.4);
  color:var(--color-accent);
}
html[data-theme="light"] .news-card__title,
html[data-theme="light"] .news-card__subtitle,
html[data-theme="light"] .news-card__excerpt{
  color:rgba(50,52,68,.92);
}
html[data-theme="light"] .news-card__subtitle{color:rgba(50,52,68,.78)}
html[data-theme="light"] .news-card__excerpt{color:rgba(50,52,68,.72)}
html[data-theme="light"] .news-card__date,
html[data-theme="light"] .news-card__cta{
  color:rgba(50,52,68,.8);
}

html[data-theme="light"] .chip{background:rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.08);color:var(--color-accent)}
html[data-theme="light"] .chip--accent{background:rgba(31,33,43,.9);border-color:rgba(31,33,43,.7);color:#fff}
html[data-theme="light"] .chip--news{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.1);color:var(--color-accent)}

.scope-toggle:hover{color:var(--color-text);}


/* ======== HOME FUNDING ======== */
.home-funding {
  margin-bottom: 8rem;
  text-align: center;
  padding: 0 2rem;
}

.home-funding__content {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.home-funding__text {
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 400;
  color: var(--color-text);
  max-width: 60rem;
  margin: 0;
}

.home-funding__highlight {
  font-weight: 700;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

/* Button matching "alle projekte ansehen" style */
.home-funding__button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: var(--card-transition);
}

.home-funding__button:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
}

.home-funding__button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

/* Dark mode */
html[data-theme="dark"] .home-funding__text {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .home-funding__highlight {
  color: var(--color-accent);
}

/* Light mode */
html[data-theme="light"] .home-funding__text {
  color: rgba(50, 52, 68, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .home-funding {
    margin-bottom: 4rem;
    padding: 0 1rem;
  }

  .home-funding__text {
    font-size: 1rem;
  }
}

/* Funding links */
.home-funding__link {
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
  color: inherit;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.home-funding__link:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.home-funding__link:hover .home-funding__highlight {
  color: var(--accent-primary);
}
