/* V41.6.6 — fixed bilingual chrome, cleaner Klassisch heading, and app-ready about panel. */

/* Keep product chrome in fixed physical positions while only page content mirrors. */
body.v40-builder .app-header,
.app-header {
  direction: ltr !important;
  grid-template-areas: "actions copy brand" !important;
  grid-template-columns: max-content minmax(0, 1fr) max-content !important;
}

body.v40-builder .app-header .brand-mark,
.app-header .brand-mark {
  grid-area: brand !important;
  direction: ltr !important;
  justify-self: end !important;
  width: max-content !important;
  text-align: left !important;
}

body.v40-builder .app-header .brand-mark > div,
.app-header .brand-mark > div {
  direction: ltr !important;
  text-align: left !important;
}

body.v40-builder .app-header .header-copy,
.app-header .header-copy {
  grid-area: copy !important;
  justify-self: center !important;
}

body.v40-builder .app-header .header-actions,
.app-header .header-actions {
  grid-area: actions !important;
  direction: ltr !important;
  justify-self: start !important;
}

.app-header .ui-language-toggle {
  direction: ltr !important;
  flex-direction: row !important;
  isolation: isolate;
}

.app-header .ui-language-toggle button {
  min-height: 42px !important;
  min-width: 70px;
}

/* The applicant name is already the document title; remove the redundant Resume/Lebenslauf line. */
#cv-document .simple-german-header > h1 {
  display: none !important;
}

/* Make the second language control self-explanatory without changing its behavior. */
.template-language-toggle[data-v4162-label] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch !important;
  min-width: 190px;
}

.template-language-toggle[data-v4162-label]::before {
  content: attr(data-v4162-label);
  grid-column: 1 / -1;
  color: #d8e6ec;
  padding: 3px 7px 4px;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: start;
}

.template-language-toggle[data-v4162-label] button {
  min-width: 0;
  min-height: 40px !important;
}

/* Static, non-blocking replacement for the old creator/footer row. */
.creator-credit.v4162-source-credit {
  display: none !important;
}

.v4162-about-card {
  direction: rtl;
  color: #284553;
  background: linear-gradient(145deg, #ffffff, #f5f8f9);
  border: 1px solid #d5e0e5;
  border-radius: 15px;
  margin: 6px 26px 28px;
  overflow: hidden;
  box-shadow: 0 10px 28px #17394912;
}

.ui-en .v4162-about-card {
  direction: ltr;
}

.v4162-about-card > summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.v4162-about-card > summary::-webkit-details-marker {
  display: none;
}

.v4162-about-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #f2d9a8;
  background: linear-gradient(145deg, #143c53, #23627f);
  border-radius: 11px;
  font-size: 17px;
  font-weight: 900;
}

.v4162-about-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v4162-about-copy b {
  color: #244452;
  font-size: 11px;
}

.v4162-about-copy small {
  color: #71828b;
  font-size: 8px;
  line-height: 1.45;
}

.v4162-about-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #456675;
  background: #eef3f5;
  border-radius: 9px;
  font-size: 14px;
  font-style: normal;
  transition: transform .18s ease;
}

.v4162-about-card[open] .v4162-about-chevron {
  transform: rotate(180deg);
}

.v4162-about-body {
  border-top: 1px solid #dce5e8;
  padding: 13px;
}

.v4162-about-developer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: #eef4f6;
  border: 1px solid #dbe5e9;
  border-radius: 11px;
  padding: 10px 11px;
}

.v4162-about-developer span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.v4162-about-developer small,
.v4162-about-footnote {
  color: #71828b;
  font-size: 7.5px;
  line-height: 1.55;
}

.v4162-about-developer b {
  color: #294957;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.v4162-version {
  color: #72562e;
  background: #fff6e6;
  border: 1px solid #dec89f;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.v4162-about-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.v4162-about-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #355766;
  background: #fff;
  border: 1px solid #d6e0e4;
  border-radius: 10px;
  padding: 8px;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.v4162-about-links a:hover,
.v4162-about-links a:focus-visible {
  color: #fff;
  background: #1d536d;
  border-color: #1d536d;
  outline: none;
}

.v4162-about-footnote {
  display: block;
  margin-top: 10px;
  text-align: center;
}

html.v30-dark body.v40-builder .v4162-about-card {
  color: #dbe8ed;
  background: linear-gradient(145deg, #14242c, #101d23);
  border-color: #405761;
  box-shadow: 0 12px 34px #00000036;
}

html.v30-dark body.v40-builder .v4162-about-card > summary,
html.v30-dark body.v40-builder .v4162-about-body {
  border-color: #405761;
}

html.v30-dark body.v40-builder .v4162-about-copy b,
html.v30-dark body.v40-builder .v4162-about-developer b {
  color: #f3f8fa;
}

html.v30-dark body.v40-builder .v4162-about-copy small,
html.v30-dark body.v40-builder .v4162-about-developer small,
html.v30-dark body.v40-builder .v4162-about-footnote {
  color: #bfd0d7;
}

html.v30-dark body.v40-builder .v4162-about-developer,
html.v30-dark body.v40-builder .v4162-about-links a {
  color: #dce8ed;
  background: #192b34;
  border-color: #405761;
}

html.v30-dark body.v40-builder .v4162-about-chevron {
  color: #dce8ed;
  background: #243942;
}

@media (max-width: 760px) {
  body.v40-builder .app-header,
  .app-header {
    grid-template-areas: "actions brand" !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .app-header .brand-mark {
    max-width: 100%;
    justify-self: end !important;
  }

  .app-header .header-actions {
    width: max-content;
    max-width: 100%;
    justify-self: start !important;
  }

  .app-header .ui-language-toggle button {
    min-width: 64px;
    min-height: 44px !important;
  }

  .template-language-toggle[data-v4162-label] {
    width: 100%;
    min-width: 0;
  }

  .v4162-about-card {
    margin: 4px 10px calc(98px + env(safe-area-inset-bottom));
    border-radius: 13px;
  }

  .v4162-about-card > summary {
    min-height: 64px;
  }

  .v4162-about-links {
    grid-template-columns: 1fr;
  }

  .v4162-about-links a {
    min-height: 46px;
    font-size: 9px;
  }
}

@media print {
  .v4162-about-card,
  .v4162-cv-language-label {
    display: none !important;
  }
}
