@import url("/styles.css");

/* Lokal gespeicherte Schrift */

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Seitenaufbau */

.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

#app {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header nav {
  min-width: 0;
}

h1,
h2,
h3,
.head h1,
.pollhead h1,
.info-intro h1 {
  font-family: "Archivo Black", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.eyebrow {
  display: none;
}

/* Headerlogo */

.header-identity {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
  min-width: 0;
}

.site-header .brand-logo {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.site-header .brand-logo img {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Hostinghinweis */

.hosting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a5adb7;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.4;
}

.finland-flag {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

.header-hosting {
  padding-inline-start: 18px;
  border-inline-start: 1px solid #2a2f35;
  white-space: nowrap;
}

/* Startseite */

.home-shell {
  padding-top: clamp(44px, 7vw, 100px);
}

.home-shell[hidden] {
  display: none;
}

.homepage-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.homepage-copy {
  min-width: 0;
  text-align: start;
}

.homepage-title {
  margin: 0 0 26px;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.homepage-title > span {
  display: block;
  color: #f4f4f1;
}

.homepage-title > .homepage-title-secondary {
  margin-top: 5px;
  color: #9097a0;
}

.homepage-description {
  max-width: 510px;
  margin: 0;
  color: #a3aab3;
  font-size: 17px;
  line-height: 1.8;
}

.homepage-trust {
  margin-top: 25px;
}

.homepage-trust .hosting-badge {
  color: #a3aab3;
  font-size: 12px;
}

/* Echter Gesamtzähler */

.creation-counter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #929aa4;
  font-size: 12px;
}

.homepage-counter {
  justify-content: flex-start;
  margin: 14px 0 0;
}

.creation-counter strong {
  color: #f0f3ef;
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.counter-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-inline-end: 2px;
  border-radius: 50%;
  background: #a3d6b7;
}

/* Termin erstellen und Code eingeben */

.homepage-action-card {
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid #2b3037;
  border-radius: 18px;
  background: #111418;
}

.homepage-create {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  padding: 18px 21px;
  border: 1px solid #f4f4ef;
  border-radius: 11px;
  background: #f4f4ef;
  color: #111418;
  font-size: 17px;
  font-weight: 650;
  text-align: start;
}

.homepage-create:hover {
  background: #deded7;
  border-color: #deded7;
}

.homepage-create svg {
  flex: 0 0 auto;
  margin-inline-start: 16px;
}

.homepage-account-note {
  margin: 12px 0 0;
  color: #9098a3;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.homepage-action-divider {
  height: 1px;
  margin: 26px 0;
  background: #2a3037;
}

.homepage-join {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: start;
}

.homepage-join label {
  display: block;
  margin: 0 0 12px;
  color: #eceeea;
  font-size: 17px;
  font-weight: 600;
}

.homepage-join #invite-code {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border: 1px solid #353d47;
  border-radius: 10px;
  background: #0b0e11;
  color: #f4f4ef;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.homepage-join #invite-code::placeholder {
  color: #69727e;
}

.homepage-join-submit.btn.secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 14px 17px;
  border: 1px solid #43544b;
  border-radius: 10px;
  background: #18271f;
  color: #d5e9dc;
  font-size: 15px;
  font-weight: 600;
  text-align: start;
}

.homepage-join-submit.btn.secondary:hover {
  background: #22382b;
  border-color: #65826e;
}

.homepage-privacy {
  max-width: 650px;
  margin: 38px auto 0;
  color: #7f8894;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

/* Pinguinschutz */

.protection-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
  row-gap: 20px;
  margin-top: clamp(60px, 9vw, 110px);
  padding: 32px;
  border: 1px solid #2b3430;
  border-radius: 16px;
  background: #101713;
  scroll-margin-top: 110px;
}

.protection-copy {
  min-width: 0;
}

.protection-copy h2 {
  max-width: 570px;
  margin: 0 0 14px;
  color: #edf2ec;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.protection-copy > p {
  max-width: 580px;
  margin: 0;
  color: #a2afa5;
  font-size: 14px;
  line-height: 1.8;
}

.protection-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 205px;
}

.protection-donate.btn {
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid #3c4a40;
  border-radius: 9px;
  background: #202d24;
  color: #c0ccc2;
  font-size: 13px;
}

.protection-donate.btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

.protection-donate svg {
  flex-shrink: 0;
}

.protection-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 4px;
  color: #c7d5ca;
  font-size: 13px;
  font-weight: 500;
}

.protection-partner:hover {
  color: #fff;
}

.protection-note {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #29352c;
  color: #8b9a8f;
  font-size: 11px;
  line-height: 1.8;
}

/* Pinguine am unteren Ende */

.homepage-penguins {
  width: min(100%, 760px);
  margin: 58px auto 0;
  overflow: hidden;
  line-height: 0;
}

.homepage-penguins img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

#home:not([hidden]) + #app:empty {
  flex: 0;
}

/* Footer */

.site-footer {
  display: block;
  margin-top: auto;
  padding: 30px 0 22px;
  border-top: 1px solid #292c31;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  display: block;
  width: 108px;
  height: auto;
  object-fit: contain;
}

.footer-identity p {
  margin: 0;
  color: #929aa5;
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 620px;
  padding-top: 12px;
  font-size: 12px;
}

.footer-links a {
  color: #a1a8b2;
}

.footer-links a:hover {
  color: #f7f7f5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #22272d;
  color: #858e99;
  font-size: 11px;
}

/* Tastaturfokus */

.brand-logo:focus-visible,
.footer-logo:focus-visible,
.footer-links a:focus-visible,
.protection-partner:focus-visible {
  outline: 2px solid #a3d6b7;
  outline-offset: 5px;
  border-radius: 4px;
}

/* Tablet */

@media (max-width: 1250px) {
  .header-hosting {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header .nav-desktop {
    display: none;
  }

  .protection-section {
    column-gap: 24px;
    padding: 26px;
  }

  .footer-main {
    gap: 24px;
  }

  .footer-links {
    gap: 12px 16px;
  }
}

/* Handy */

@media (max-width: 760px) {
  .home-shell {
    padding-top: 46px;
  }

  .homepage-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .homepage-copy {
    text-align: center;
  }

  .homepage-title {
    max-width: 580px;
    margin: 0 auto 20px;
    font-size: clamp(36px, 8.5vw, 56px);
    line-height: 1.12;
  }

  .homepage-description {
    max-width: 480px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
  }

  .homepage-trust {
    margin-top: 21px;
  }

  .homepage-counter {
    justify-content: center;
  }

  .homepage-action-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 15px;
  }

  .homepage-create {
    min-height: 58px;
    font-size: 16px;
  }

  .homepage-privacy {
    max-width: 460px;
    margin-top: 28px;
    font-size: 10px;
  }

  .protection-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 54px;
    padding: 24px;
  }

  .protection-copy h2 {
    font-size: 27px;
  }

  .protection-copy > p {
    font-size: 13px;
  }

  .protection-actions {
    min-width: 0;
  }

  .protection-note {
    grid-column: 1;
  }

  .homepage-penguins {
    width: min(100%, 540px);
    margin-top: 42px;
  }
}

@media (max-width: 650px) {
  .site-header {
    gap: 12px;
  }

  .site-header .brand-logo img {
    width: 130px;
    height: auto;
  }

  .header-identity {
    gap: 0;
  }

  .site-header nav {
    gap: 8px;
  }

  .site-header .language {
    width: 92px;
    min-width: 0;
    padding-inline: 8px;
    font-size: 12px;
  }

  .site-header .office-nav,
  .site-header .nav-create {
    display: none;
  }

  .site-header .nav-menu {
    display: block;
  }

  .footer-main {
    flex-direction: column;
    gap: 22px;
  }

  .footer-logo img {
    width: 92px;
  }

  .footer-links {
    justify-content: flex-start;
    padding-top: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-create,
  .homepage-join-submit,
  .protection-donate {
    transition: none;
    transform: none;
  }
}