/* Persönlicher Einstieg und kompakte Startseitenübersicht für den Community-Hub. */
:root {
  --brand-gold: #c79b4b;
}

.home {
  overflow-wrap: anywhere;
}

.home .site-head {
  container: home-header / inline-size;
}

.home main.shell {
  container: home-content / inline-size;
}

.home .main-nav {
  flex-wrap: wrap;
}

.home .shortcut > span:nth-child(2),
.home .ledger-heading > div,
.home #mitmachen > div {
  min-width: 0;
}

.home .social-list a,
.home .cooperation-line a {
  max-width: 100%;
}

.home .social-list a {
  flex-wrap: wrap;
  row-gap: 0;
}

.start-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
  margin-block: .25rem .5rem;
}

.start-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .2rem .25rem;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.start-socials a:hover,
.start-socials a:focus-visible {
  text-decoration: underline;
}

/* Lokale Plattformzeichen aus Simple Icons 12.4.0, in der Reihenfolge der Links. */
.start-socials a::before {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: url('/img/social-icons.png') var(--icon-position) center / 400% 100% no-repeat;
}
.social-youtube { --icon-position: 0%; }
.social-instagram { --icon-position: 33.3333%; }
.social-tiktok { --icon-position: 66.6667%; }
.social-discord { --icon-position: 100%; }

@media (max-width: 36rem) {
  .start-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.3rem), 1fr));
    gap: .2rem;
  }

  .start-socials a {
    flex-direction: column;
    gap: .2rem;
    padding: .25rem 0;
    font-size: .875rem;
    line-height: 1.25;
  }
}

.advent-promo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 31%);
  grid-template-areas: "heading photo" "intro photo" "rules photo";
  align-items: start;
  gap: .5rem clamp(1.25rem, 4vw, 4rem);
  margin-bottom: 1rem;
  padding: clamp(1.15rem, 2.2vw, 1.8rem) clamp(1.2rem, 3.5vw, 2.65rem);
  color: #fff2d6;
  background: linear-gradient(110deg, #18372f, #152c25 62%, #263c31);
  border: 1px solid #3d5041;
  border-radius: 15px;
}
.advent-promo-heading { grid-area: heading; align-self: end; }
.advent-promo-date {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #f7c77e;
  font: 800 .76rem/1.4 Nunito, system-ui, sans-serif;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.advent-promo-date::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
}
.advent-promo h2 {
  margin-top: .28rem;
  color: #fff2d6;
  font-size: clamp(1.85rem, 3.65vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.advent-promo-copy, .advent-promo-rules p {
  color: #ecedde;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 58ch;
}
.advent-promo-copy { grid-area: intro; }
.advent-promo-photo {
  position: relative;
  grid-area: photo;
  align-self: center;
  margin-block: .45rem;
  padding: .3rem;
  background: #e9dfc4;
  transform: rotate(2deg);
  box-shadow: 2px 4px 0 #0a1f19, 0 9px 15px #08181255;
}
.advent-promo-photo img { width: 100%; height: auto; }
.advent-promo-photo::before {
  content: "";
  position: absolute;
  width: 22%;
  height: .95rem;
  top: -.35rem;
  right: 18%;
  background: #d7ba80d9;
  transform: rotate(-8deg);
  clip-path: polygon(0 12%, 99% 0, 97% 32%, 100% 93%, 1% 100%, 3% 54%);
}
.advent-promo-rules { grid-area: rules; }
.advent-promo-rules summary {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .45rem .95rem;
  cursor: pointer;
  border-radius: .45rem;
  color: #241e15;
  background: #f7cb84;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
}
.advent-promo-rules summary::-webkit-details-marker { display: none; }
.advent-promo-rules summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: translateY(-.1rem) rotate(45deg);
}
.advent-promo-rules summary:hover { background: #ffe1a6; }
.advent-promo-rules[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.advent-promo-rules p { margin-top: .7rem; }
@media (max-width: 620px) {
  .advent-promo {
    grid-template-columns: minmax(0, 1fr) clamp(4rem, 20vw, 7rem);
    grid-template-areas: "heading photo" "intro intro" "rules rules";
    gap: .65rem .7rem;
    padding: 1rem;
  }
  .advent-promo h2 { font-size: clamp(1.4rem, 6.3vw, 2.05rem); }
  .advent-promo-date { font-size: .7rem; letter-spacing: .05em; }
  .advent-promo-date::before { width: .7rem; }
  .advent-promo-photo { padding: .16rem; }
  .advent-promo-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
  .advent-promo-photo::before { height: .5rem; top: -.2rem; }
}
@media (max-width: 300px) {
  .advent-promo { grid-template-columns: 1fr; grid-template-areas: "heading" "intro" "rules"; }
  .advent-promo-photo { display: none; }
}

.home .home-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 4.35rem);
  padding: clamp(1.3rem, 4.3vw, 3.6rem);
}

.home .hello h1 {
  font-size: clamp(3rem, 6.7vw, 6rem);
  text-wrap: initial;
  overflow-wrap: anywhere;
  hyphens: none;
}

.home .hello h1 em {
  display: block;
}

.host-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  max-width: 28rem;
  margin-top: 1.3rem;
  padding: .65rem .8rem;
  border: 1px solid #c6b48e;
  border-radius: 15px;
  background: #fcf8ee;
}

.host-portrait {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.host-portrait img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 40%;
}

.host-portrait figcaption {
  line-height: 1.22;
}

.host-portrait figcaption span {
  display: block;
  color: var(--muted);
  font-size: .83rem;
  margin-top: .18rem;
}

.host-wave img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.home .ticket-photo-caption time {
  display: block;
  text-transform: uppercase;
  color: #f0d79c;
}

.home .ticket-foot {
  text-decoration: underline;
}

.home .ticket-top > span:nth-child(2) {
  color: #f0d79c;
}

.home .shortcut strong {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3.1vw, 2.7rem);
}

.home-dashboard .agenda-item {
  grid-template-columns: 3.7rem 4.35rem minmax(0, 1fr) auto;
  gap: .7rem;
  padding-inline: .65rem;
}

.home-dashboard .agenda-main h3 {
  font-size: 1.3rem;
}

.home-dashboard .agenda-main p {
  font-size: .9rem;
}

.agenda-more {
  margin-top: .4rem;
}

.hoppla-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #c6b48e;
  border-radius: var(--rad);
  background: #fbf1dd;
}

.hoppla-visual {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: .55rem 1rem;
  background: #ecdbb6;
}

.hoppla-visual img {
  width: min(100%, 235px);
  max-height: 170px;
  object-fit: contain;
}

.hoppla-copy {
  padding: 1rem 1.2rem .85rem;
}

.hoppla-copy h2 {
  margin-block: .12rem .4rem;
}

.hoppla-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 38ch;
}

.home #mitmachen > img {
  width: clamp(64px, 14vw, 122px);
}

@media (max-width: 1020px) {
  .home-dashboard {
    grid-template-columns: 1fr;
  }

  .hoppla-feature {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: stretch;
  }
}

@media (max-width: 850px) {
  .home .home-hero {
    padding: 1.4rem;
    gap: 1.2rem;
  }
}

@media (max-width: 635px) {
  .home .home-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }

  .home .hello h1 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
    margin-bottom: .6rem;
  }

  .home .hello .actions {
    gap: .25rem .75rem;
  }

  .home .hello .actions .button {
    padding-inline: .7rem;
  }

  .host-note {
    margin-top: .7rem;
    padding: .45rem .55rem;
  }

  .host-portrait img {
    width: 40px;
    height: 40px;
  }

  .host-wave img {
    width: 45px;
    height: 45px;
  }

  .home-dashboard .agenda-item {
    grid-template-columns: 3.1rem minmax(0, 1fr) auto;
    gap: .48rem;
    padding-inline: .42rem;
  }

  .home-dashboard .agenda-item > img {
    display: none;
  }

  .home-dashboard .agenda-state {
    white-space: normal;
    text-align: end;
  }

  .hoppla-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .hoppla-visual img {
    width: 190px;
    max-height: 139px;
  }
}

@media (max-width: 355px) {
  .home .hello .actions {
    gap: .25rem .5rem;
    font-size: .94rem;
  }

  .host-note {
    gap: .35rem;
  }

  .host-portrait {
    gap: .4rem;
  }
}

.host-portrait-link {
  display: inline-flex;
  border-radius: 8px;
  min-height: 44px;
  text-decoration: none;
}

.host-portrait-link strong {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.host-portrait-link:hover {
  color: var(--ink);
}

/* Bei großer Schrift bekommen die Inhalte mehr Platz in ihrer Lesereihenfolge. */
@container home-header (max-width: 17rem) {
  .home .head-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block-end: .55rem;
  }

  .home .main-nav {
    grid-column: 1;
    grid-row: 2;
    justify-content: start;
    gap: 0 .4rem;
  }

  .home .head-twitch {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
}

@container home-content (max-width: 17rem) {
  .home .home-hero {
    padding: .7rem;
  }

  .home .hello h1 {
    font-size: min(2.8rem, 23cqi);
    hyphens: manual;
  }

  .home .shortcut-nav,
  .home #mitmachen {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container home-header (max-width: 11rem) {
  .home .brand {
    gap: .45rem;
  }

  .home .brand img {
    width: 32px;
    height: auto;
  }
}

@container home-content (max-width: 9rem) {
  .home .home-hero {
    padding: .55rem;
  }
}
