/* Johannes Bauer — independent, buildless personal website. */
:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --ink: #191b20;
  --muted: #5b606a;
  --line: #dcded7;
  --accent: #3049ba;
  --tint: #eaedf9;
  --panel: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection { color: var(--ink); background: #cdd6ff; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.jb-wrap { width: min(100%, 1120px); margin-inline: auto; padding-inline: 60px; }
.jb-nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 100px; border-bottom: 1px solid var(--line); }
.jb-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.jb-logo { display: block; flex: none; }
.jb-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 1.4rem; font-size: .875rem; }
.jb-links > a { padding-block: .75rem; }
.jb-links > a:hover { color: var(--accent); }
.jb-language { display: inline-flex; border: 1px solid #c6c9c1; border-radius: 2rem; }
.jb-language > a { display: inline-grid; place-items: center; min-width: 44px; min-height: 42px; color: var(--ink); font-size: .8125rem; font-weight: 650; }
.jb-language > :first-child { border-radius: 2rem 0 0 2rem; }
.jb-language > :last-child { border-radius: 0 2rem 2rem 0; }
.jb-language > [aria-current="page"] { color: white; background: var(--ink); }
.jb-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "heading portrait" "copy copy" "links links";
  --hero-gutter: clamp(24px, 4.6vw, 52px);
  column-gap: var(--hero-gutter);
  align-items: center;
  padding-block: 22px 27px;
  border-bottom: 1px solid var(--line);
}
.jb-hero-heading { grid-area: heading; }
.jb-hero-heading h1 { max-width: 10ch; font-size: clamp(2.125rem, 5.5vw, 4.25rem); }
.jb-hero-copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--hero-gutter);
  row-gap: 1rem;
  margin-top: clamp(24px, 4vw, 42px);
  padding-top: clamp(20px, 3vw, 32px);
}
.jb-hero > .jb-actions { grid-area: links; }
.jb-portrait { grid-area: portrait; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 1rem; background: var(--tint); }
.jb-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 53%; }
.jb-captcha { margin-top: 1.5rem; max-width: 100%; }
.jb-captcha altcha-widget { display: block; max-width: 100%; --altcha-max-width: 100%; }
#jbh-form-status:not(:empty) { margin-top: .75rem; }
.jb-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.jb-badge { border-radius: 2rem; padding: .25rem .75rem; background: var(--tint); color: #2e429d; font-size: .75rem; font-weight: 500; }
h1 { font-size: clamp(2rem, 4.1vw, 2.875rem); letter-spacing: -.045em; line-height: 1.16; font-weight: 650; text-wrap: balance; }
.jb-role { margin-top: 1rem; font-size: 1.125rem; color: #3f424b; }
.jb-intro { color: #4d505a; line-height: 1.8; max-width: 680px; }
.jb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.6rem; }
.jb-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.1rem; border: 1px solid #c7cac1; border-radius: 2rem; background: transparent; color: var(--ink); font-size: .875rem; font-weight: 550; line-height: 1.4; text-align: center; transition: background-color .16s, border-color .16s; }
.jb-button:hover { background: #eeeee8; border-color: var(--ink); }
.jb-button-outline { border-color: var(--ink); }
.jb-button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.jb-button-primary:hover { color: white; background: #223793; border-color: #223793; }
.jb-social-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding-inline: .35rem; color: var(--accent); font-size: .875rem; font-weight: 550; }
.jb-social-link:first-child { padding-inline-start: 0; }
.jb-social-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.jb-kicker { color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.jb-section { padding-block: 32px; border-bottom: 1px solid var(--line); }
section[id], article[id], main { scroll-margin-top: 28px; }
h2 { font-size: 1.875rem; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; }
.jb-section-intro { margin-top: .7rem; color: var(--muted); }
.jb-projects-header, .jb-project-intro, .jb-project-controls, .jb-project-name {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.jb-projects-header, .jb-project-intro { justify-content: space-between; flex-wrap: wrap; column-gap: 1rem; }
.jb-projects-header { margin-bottom: 16px; }
.jb-project-intro p { margin-top: .3rem; max-width: 63ch; color: var(--muted); }
.jb-project-intro h3 { font-size: clamp(1.16rem, 2.45vw, 1.5rem); line-height: 1.25; }
.jb-project-name img { display: block; flex: none; }
.jb-project-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .875rem; }
.jb-project-link:focus-visible { outline-offset: -2px; }
.jb-project-count { min-width: 5ch; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; text-align: center; }
.jb-project-controls button { width: 44px; padding: 0; font-size: 1.2rem; }
.jb-project-controls button[aria-disabled="true"] { opacity: .46; cursor: default; }
.jb-project-controls button[aria-disabled="true"]:hover { background: transparent; border-color: #c7cac1; }
.jb-project-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jb-project { display: grid; gap: 13px; min-width: 0; }
.jb-project + .jb-project { margin-top: 24px; }
.jb-project-stage { position: relative; overflow: hidden; border-radius: 1rem; }
.jb-project-stage-cockpit {
  align-content: center;
  padding: clamp(14px, 4vw, 38px) clamp(13px, 5vw, 48px);
  border: 1px solid #608b7c55;
  background:
    radial-gradient(at 85% 12%, #cbd9eb, transparent 50%),
    radial-gradient(at 0% 95%, #6aa696, transparent 63%),
    #c3ded3;
}
.jb-project-stage-ferstl {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 172px;
  aspect-ratio: 2.25;
  padding: clamp(12px, 3.2vw, 32px);
  border: 1px solid #d5c7b6;
  background: radial-gradient(ellipse at 75% 4%, #f0e9df, #dfcfbd 71%, #d2bda5);
}
.jb-ferstl-preview {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(100%, 700px);
  height: 100%;
  max-height: 330px;
  overflow: hidden;
  border: 1px solid #a7988980;
  border-radius: 10px;
  background: #fdfdfc;
  color: #333331;
  box-shadow: 0 16px 27px -14px #4e38278c;
}
.jb-ferstl-preview-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 9px;
  border-bottom: 1px solid #dedbd7;
  background: #f0eeea;
}
.jb-ferstl-preview-bar span { width: 5px; height: 5px; border-radius: 50%; background: #a9a19a; }
.jb-ferstl-preview-header, .jb-ferstl-preview-hero { padding-inline: clamp(10px, 3.3vw, 36px); }
.jb-ferstl-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid #dedbd7;
}
.jb-ferstl-preview-logo { display: block; width: clamp(58px, 11vw, 92px); height: auto; }
.jb-ferstl-preview-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(7px, 1.65vw, 18px); font-size: .6875rem; }
.jb-ferstl-preview-enquiry { padding: .22em .55em; background: #333331; color: #fff; }
.jb-ferstl-preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 10px 24px;
  padding-block: clamp(10px, 2.2vw, 24px);
}
.jb-ferstl-preview-location { font-size: .6875rem; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.jb-ferstl-preview-title {
  margin-top: 4px;
  font-size: clamp(1.25rem, 4.7vw, 3.125rem);
  font-weight: 750;
  letter-spacing: -.058em;
  line-height: 1.06;
}
.jb-ferstl-preview-title em { color: #50504d; font-style: normal; }
.jb-ferstl-preview-copy { font-size: .6875rem; line-height: 1.6; }
.jb-ferstl-preview-copy span { display: inline-block; margin-top: 3px; border-bottom: 1px solid #777; font-weight: 650; }
.jb-ferstl-preview-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 54%; }
@media (max-width: 600px) {
  .jb-ferstl-preview-bar { height: 16px; }
  .jb-ferstl-preview-header { padding-block: 4px; }
  .jb-ferstl-preview-menu, .jb-ferstl-preview-copy { display: none; }
  .jb-ferstl-preview-hero { grid-template-columns: 1fr; padding-block: 7px; }
  .jb-ferstl-preview-location { font-size: .625rem; line-height: 1.3; }
  .jb-ferstl-preview-title { margin-top: 2px; }
}
.jb-project-devices {
  display: grid;
  grid-template-columns: minmax(0, 3.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 30px);
  max-width: 680px;
  margin-inline: auto;
}
.jb-project-devices img { display: block; width: 100%; height: auto; background: var(--panel); box-shadow: 0 10px 24px #102c2638; }
.jb-project-mac { border-radius: clamp(6px, 1.2vw, 11px); }
.jb-project-iphone { border-radius: 10% / 4.6%; }
@media screen {
  .jb-projects.is-carousel .jb-project-window { overflow: clip; }
  .jb-projects.is-carousel .jb-project-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-rows: auto auto;
    row-gap: 13px;
    transform: translateX(calc(var(--active-project, 0) * -100%));
    transition: transform 280ms ease;
  }
  .jb-projects.is-carousel .jb-project { grid-row: 1 / span 2; grid-template-rows: subgrid; margin: 0; }
  .jb-projects.is-carousel .jb-project-stage { touch-action: pan-y pinch-zoom; }
  .jb-projects.is-carousel .jb-project-stage-ferstl { aspect-ratio: auto; contain: size; }
}
.jb-talk-list { display: grid; gap: 24px; list-style: none; margin: 24px 0 0; padding: 0; }
.jb-talk { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.jb-talk > time { padding-top: .15rem; font-size: .875rem; color: var(--muted); }
.jb-talk h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; overflow-wrap: anywhere; }
.jb-talk-meta { margin-top: .25rem; color: var(--muted); font-size: .9375rem; }
.jb-talk-description { margin-top: .7rem; color: #535762; line-height: 1.75; }
.jb-talk-links { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.5rem; margin-top: .5rem; }
.jb-talk-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.jb-talk-links a:hover { color: #223793; text-decoration-thickness: 2px; }
.jb-talk-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.jb-talk-logos li { display: grid; justify-items: center; align-content: start; gap: .6rem; text-align: center; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.jb-talk-logo-mark { display: grid; place-items: center; width: min(100%, 9rem); height: 54px; }
.jb-talk-logo-mark img { display: block; max-width: 100%; height: auto; }
.jb-talk-logo-mark--dark { width: min(100%, 6rem); border-radius: .55rem; background: #252733; }
.jb-contact { margin-top: 12px; padding-top: 12px; }
.jb-booking { padding: 32px; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.jb-booking h3 { font-size: 1.35rem; }
.jb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
label { display: block; font-size: .875rem; line-height: 1.45; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: .45rem; padding: .7rem .8rem; border: 1px solid #c9ccc3; border-radius: .5rem; background: var(--paper); color: var(--ink); font-size: 1rem; }
select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, #62656f 50%), linear-gradient(135deg, #62656f 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.jb-form-full { grid-column: 1 / -1; }
.jb-form-footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.jb-status { margin-top: .8rem; min-height: 1.5em; }
.jb-timeline { display: grid; gap: 20px; margin-top: 20px; }
.jb-station { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.jb-period { color: var(--muted); font-size: .875rem; padding-top: .2rem; }
.jb-station h3, .jb-station h4 { font-size: 1rem; font-weight: 600; line-height: 1.6; }
.jb-career-timeline { --career-period-width: 150px; --career-column-gap: 24px; --career-indent: .75rem; }
.jb-career-timeline .jb-station, .jb-station-roles > li {
  display: grid;
  grid-template-columns: var(--career-period-width) minmax(0, 1fr);
  gap: .35rem var(--career-column-gap);
  align-items: baseline;
}
.jb-career-timeline .jb-period { padding-top: 0; font-variant-numeric: tabular-nums; }
.jb-station-roles { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; }
.jb-station-roles > li + li { margin-top: .35rem; }
.jb-station-roles .jb-period { padding-inline-start: var(--career-indent); }
.jb-position { padding-inline-start: var(--career-indent); overflow-wrap: anywhere; }
.jb-education { margin-top: 26px; }
.jb-education > h3 { font-size: 1.35rem; }
.jb-education .jb-timeline { margin-top: 16px; }
.jb-personal { color: #50545c; line-height: 1.85; margin-top: 24px; max-width: 850px; }
.jb-hobbies {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr) minmax(0, .82fr);
  grid-template-rows: repeat(2, clamp(110px, 15vw, 165px));
  gap: 12px;
  margin-top: 24px;
}
.jb-hobby-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--tint);
}
.jb-hobby-photo-mountains, .jb-hobby-photo-canyon { grid-row: span 2; }
.jb-hobby-photo-mountains { object-position: center 68%; }
.jb-hobby-photo-canyon { object-position: center bottom; }
.jb-hobby-photo-skiing { object-position: center 20%; }
.jb-hobby-photo-powder { object-position: center 27%; }
.jb-newsletter { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 36px; margin-top: 42px; border-radius: 1rem; background: var(--tint); }
.jb-newsletter h2 { font-size: 1.7rem; }
.jb-newsletter p { margin-top: .8rem; color: #515978; }
.jb-newsletter-controls { align-self: center; }
.jb-newsletter-controls .jb-button { margin-top: 1rem; }
.jb-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-top: 24px; padding-block: 18px 28px; border-top: 1px solid var(--line); }
.jb-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.jb-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; }
.jb-foot-meta { color: var(--muted); font-size: .8125rem; }
.jb-text-link, .jb-legal main a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.jb-text-link:hover, .jb-legal main a:hover { text-decoration-thickness: 2px; }
.jb-legal { display: flex; flex-direction: column; min-height: 100vh; }
.jb-legal .jb-footer { margin-top: auto; }
.jb-legal main { max-width: 46rem; padding-block: clamp(36px, 6vw, 72px); overflow-wrap: anywhere; }
.jb-legal section { margin-top: 1.75rem; }
.jb-legal-group + .jb-legal-group { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.jb-legal h2 { font-size: 1.5rem; }
.jb-legal p, .jb-legal address, .jb-legal ul { margin-block: .65rem 0; }
.jb-legal address { font-style: normal; }
.jb-legal ul { padding-inline-start: 1.35rem; }
.jb-legal li + li { margin-top: .3rem; }
@media (max-width: 1050px) {
  .jb-wrap { padding-inline: 36px; }
  .jb-nav { gap: 1rem; }
  .jb-links { gap: 1rem; }
}
@media (max-width: 820px) {
  .jb-hobbies { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .jb-hobby-photo { grid-row: auto; height: auto; aspect-ratio: 4 / 5; }
  .jb-nav { flex-wrap: wrap; justify-content: flex-start; gap: .2rem; padding-block: 22px 14px; }
  .jb-brand { flex-basis: 100%; }
  .jb-links { width: 100%; justify-content: flex-start; gap: .25rem 1.25rem; }
  .jb-language { margin-left: auto; }
  .jb-hero { padding-block-end: 24px; }
  .jb-newsletter { grid-template-columns: 1fr; gap: 12px; }
  .jb-section { padding-block: 26px; }
}
@media (max-width: 680px) {
  .jb-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "portrait" "copy" "links"; }
  .jb-hero-heading h1 { max-width: none; }
  .jb-portrait { margin-top: 24px; }
  .jb-hero-copy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .jb-wrap { padding-inline: 22px; }
  .jb-nav { position: relative; padding-block: 24px 12px; }
  .jb-brand { padding-right: 96px; min-height: 44px; display: flex; align-items: center; }
  .jb-language { position: absolute; top: 24px; right: 0; margin: 0; }
  .jb-links { gap: 0 1rem; font-size: .875rem; }
  .jb-links > a { min-height: 44px; }
  .jb-hero { padding-block-end: 20px; }
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.65rem; }
  .jb-role { font-size: 1.0625rem; }
  .jb-badge { padding-inline: .6rem; }
  .jb-section { padding-block: 22px; }
  .jb-booking { padding: 24px; }
  .jb-form-grid { grid-template-columns: 1fr; }
  .jb-form-footer { justify-content: flex-start; }
  .jb-station { grid-template-columns: 1fr; gap: .25rem; }
  .jb-career-timeline { --career-column-gap: 12px; --career-indent: .5rem; }
  .jb-talk { grid-template-columns: 1fr; gap: .6rem; }
  .jb-newsletter { padding: 26px; margin-top: 28px; }
}
@media (max-width: 420px) {
  .jb-career-timeline { --career-period-width: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { background: white; color: black; font-size: 11pt; }
  .jb-wrap { width: 100%; padding: 0; }
  .jb-links, .jb-contact, .jb-newsletter, .jb-actions, .jb-project-controls, .skip-link { display: none !important; }
  .jb-section { padding-block: 24px; }
  .jb-hero { padding-block: 28px; }
  .jb-station, .jb-talk { break-inside: avoid; }
}
