/* Holzer Hoffmann — v2.0 */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0efec;
  --text: #1c1917;
  --muted: #6b6560;
  --border: rgba(28, 25, 23, 0.08);
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --sidebar: 300px;
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.topbar.is-scrolled { box-shadow: var(--shadow-sm); }
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__flag { border-radius: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.nav__cv {
  background: var(--text) !important;
  color: #fff !important;
  margin-left: 4px;
  white-space: nowrap;
  font-size: 12px !important;
}
.nav__cv:hover { background: #000 !important; color: #fff !important; }

/* ── Layout ── */
.page { padding: 28px 20px 96px; }
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar { position: sticky; top: 76px; }
.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.profile-card__photo {
  width: 120px;
  height: 120px;
  margin: 18px auto 14px;
  object-fit: contain;
  display: block;
}
.profile-card__meta { padding: 0 18px 18px; text-align: center; }
.profile-card__meta h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}
.profile-card__tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.4;
}
.profile-card__location {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.sidebar-block h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-link { font-size: 14px; word-break: break-all; }
.list-plain li {
  font-size: 14px;
  color: var(--text);
  padding: 3px 0;
}
.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 4px 0;
}
.lang-name { font-weight: 500; }
.stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }

/* ── Main column ── */
.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.intro-card p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}
.intro-card p:last-child { margin-bottom: 0; }

.section { margin-bottom: 44px; scroll-margin-top: 72px; }
.section__head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section__head h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.region-block { margin-bottom: 28px; }
.region-block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.region-block__badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 999px;
}
.flag { font-size: 1.1em; }

/* ── Jobs ── */
.job-grid {
  display: grid;
  gap: 14px;
}
.job-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.job-card__logo {
  width: 88px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.job-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2), #e7e5e0);
}
.job-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.job-card__title {
  font-size: 1rem;
  font-weight: 700;
}
.job-card__dates {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.job-card__desc {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.skill-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s;
}
.skill-card:hover { border-color: rgba(29, 78, 216, 0.25); }
.skill-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.skill-card__icon img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.skill-card__emoji {
  font-size: 32px;
  line-height: 1;
}
.skill-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.skill-card__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.skill-card__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.project-card__media {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #1a0f2e 0%, #0f172a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.project-card__body { padding: 18px; }
.project-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-card__body p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── Education ── */
.edu-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.edu-card__logo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.edu-card__logo img { width: 100%; object-fit: contain; }
.edu-card__body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.edu-card__body time {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.edu-card__body p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── Reviews (Google Maps style) ── */
.section--reviews {
  --g-text: #202124;
  --g-muted: #70757a;
  --g-star: #fbbc04;
  --g-border: #dadce0;
  --g-font: Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-inline: -12px;
  padding: 8px 12px 12px;
  border-radius: calc(var(--radius) + 6px);
}

.section__head--reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.reviews-source {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.reviews-places {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.reviews-place {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 13px;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.reviews-place:hover {
  text-decoration: none;
  border-color: #bdc1c6;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.reviews-place__name { font-weight: 500; }

.reviews-place__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--g-muted);
}

.reviews-place__score {
  font-weight: 500;
  color: var(--g-text);
}

.reviews-place__stars {
  color: var(--g-star);
  font-size: 14px;
}

.reviews-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.reviews-google-badge:hover {
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.2);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  overflow: hidden;
}

.g-review {
  font-family: var(--g-font);
  padding: 16px 20px 14px;
  border-bottom: 1px solid #e8eaed;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.g-review:nth-child(odd) {
  border-right: 1px solid #e8eaed;
}

.g-review:nth-last-child(-n+2) {
  border-bottom: none;
}

.g-review__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.g-review__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.g-review__avatar--photo {
  display: block;
  background: #e8eaed;
}

.g-review__meta { min-width: 0; }

.g-review__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--g-text);
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.g-review__badge {
  font-size: 11px;
  font-weight: 400;
  color: var(--g-muted);
}

.g-review__sub {
  font-size: 12px;
  color: var(--g-muted);
  line-height: 1.3;
}

.g-review__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.g-review__stars {
  color: var(--g-star);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.g-review__dot {
  color: var(--g-muted);
  font-size: 12px;
}

.g-review__date {
  font-size: 12px;
  color: var(--g-muted);
}

.g-review__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.43;
  color: var(--g-text);
  font-weight: 400;
}

.g-review__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 4px;
}

.g-review__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
}

.g-review__link:hover {
  text-decoration: underline;
}

.g-review__g {
  flex-shrink: 0;
}

/* ── FAB CV ── */
.fab-cv {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s, transform 0.15s;
}
.fab-cv:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* ── Landing ── */
body.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(29, 78, 216, 0.08), transparent),
    var(--bg);
}
.landing__wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}
.landing__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.landing__photo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.landing__name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.landing__tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.45;
}
.landing__location {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}
.landing__langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.lang-btn span:first-child { font-size: 24px; line-height: 1; }
.lang-btn strong { font-size: 14px; font-weight: 700; }
.lang-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  text-decoration: none;
}
.landing__cv {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing__cv a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.landing__cv a:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ── Gate (PIN) ── */
.gate-page .landing__card.gate {
  text-align: center;
  padding: 36px 28px 32px;
}
.gate__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}
.gate__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.gate__lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
}
.gate__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.gate__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.gate__input {
  width: 100%;
  font: 600 1.5rem/1 var(--font);
  letter-spacing: 0.35em;
  text-align: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gate__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gate__input--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.gate__error {
  margin: 0;
  font-size: 13px;
  color: #dc2626;
}
.gate__submit {
  margin-top: 4px;
  width: 100%;
  font: 600 15px/1 var(--font);
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gate__submit:hover:not(:disabled) { opacity: 0.92; }
.gate__submit:disabled { opacity: 0.6; cursor: wait; }
.gate__hint {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .profile-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .g-review:nth-child(odd) { border-right: none; }
  .g-review:not(:last-child) { border-bottom: 1px solid #e8eaed; }
  .section__head--reviews { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 12px; }
  .topbar__inner { position: relative; }
  .sidebar { grid-template-columns: 1fr; }
  .profile-card__photo { width: 96px; height: 96px; margin: 14px auto 12px; }
  .profile-card__meta { padding: 0 14px 14px; text-align: center; }
  .job-card { grid-template-columns: 64px 1fr; }
  .job-card__logo { width: 64px; height: 56px; }
  .edu-card { grid-template-columns: 1fr; }
  .fab-cv { bottom: 14px; right: 14px; }
}