/* ---------------------------------------------------------
   Joachim Hoffleit — Bewerbungs-Onepager
   Editorial / Schweizer Typografie
   Keine Frameworks, keine externen Schriftdateien.
   --------------------------------------------------------- */

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --paper-deep: #eae9e2;
  --ink: #202522;
  --muted: #666c66;
  --line: #d2d3cb;
  --blue: #294f9b;
  --blue-dark: #1d376b;
  --white: #fffefa;
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: white; background: var(--blue); }
.skip-link {
  position: absolute; top: -5rem; left: 1rem; z-index: 100;
  padding: .7rem 1rem; background: var(--ink); color: white;
}
.skip-link:focus { top: 1rem; }
.section-wrap { width: min(100% - 2 * var(--gutter), var(--max-width)); margin-inline: auto; }

.site-header {
  min-height: 82px; padding: 1rem var(--gutter); display: flex;
  align-items: center; justify-content: space-between; gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: baseline; text-decoration: none;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; white-space: nowrap;
}
.wordmark span { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.main-nav a, .header-note {
  font-size: .95rem; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: .08em;
}
.main-nav a { color: var(--muted); }
.main-nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--blue); }
.header-note { color: var(--muted); }

.hero { padding-top: clamp(2.2rem, 5vw, 4.5rem); }
.hero-meta, .hero-bottom, .contact-topline {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.eyebrow, .issue-number, .kicker, .section-label, .aside-topline,
.small-label, .project-type, .project-note, .experience-footnote,
.contact-topline, .contact-details, .mini-facts span {
  font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow { color: var(--blue); }
.issue-number { color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .65fr); gap: clamp(2rem, 7vw, 7rem); padding: clamp(3rem, 7vw, 6rem) 0 4rem; align-items: center; }
.kicker { color: var(--muted); margin: 0 0 1.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.065em; line-height: .99; }
h1 { font-size: clamp(3rem, 7.2vw, 5rem); max-width: 900px; margin-bottom: 2rem; }
h1 em, h2 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.hero-intro { max-width: 600px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #454b45; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.portfolio-note { display: flex; align-items: flex-start; gap: .8rem; max-width: 590px; margin: 1.6rem 0 0; padding: .9rem 1rem; border-left: 2px solid var(--blue); background: rgba(38, 62, 94, .055); color: #555b62; font-size: .88rem; line-height: 1.55; }
.portfolio-note strong { display: block; margin-bottom: .12rem; color: var(--ink); font-weight: 650; }
.portfolio-note-mark { color: var(--blue); font-size: 1.1rem; line-height: 1.4; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.7rem; min-height: 48px; padding: .85rem 1.1rem; text-decoration: none; font-size: .8rem; font-weight: 700; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--blue-dark); }
.text-link { font-size: .82rem; font-weight: 700; text-decoration: none; }
.hero-aside { background: var(--paper-deep); padding: 1.4rem; min-height: 410px; display: flex; flex-direction: column; }
.aside-topline { display: flex; justify-content: space-between; color: var(--muted); }
.aside-topline span:last-child { color: var(--blue); font-size: .8rem; }
.aside-monogram { flex: 1; display: flex; align-items: center; justify-content: center; font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 800; letter-spacing: -.12em; color: var(--blue); line-height: 1; }
.aside-monogram span { align-self: center; margin-left: .25rem; font-family: var(--serif); font-size: 3rem; font-weight: 400; }
.hero-aside > p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.22; margin-bottom: 1.2rem; }
.aside-rule { height: 1px; background: #c8c9c1; }
.mini-facts { list-style: none; padding: 0; margin: 1rem 0 0; }
.mini-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .73rem; border-bottom: 1px solid #d5d5cd; }
.mini-facts li:last-child { border-bottom: 0; }
.mini-facts span { color: var(--muted); font-size: .6rem; letter-spacing: .06em; }
.mini-facts strong { font-size: .72rem; text-align: right; }
.hero-bottom { border-top: 1px solid var(--line); padding: 1rem 0; color: var(--muted); font-size: 1rem; }

.content-section { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: baseline; gap: .8rem; color: var(--muted); }
.section-label span:first-child { color: var(--blue); }
.section-main { min-width: 0; }
.content-section h2, .experience-content h2, .contact-inner h2 { font-size: clamp(2.5rem, 5vw, 3.7rem); margin-bottom: 2.2rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.profile-layout h2 { margin-bottom: 0; }
.profile-text { max-width: 610px; color: #454b45; }
.profile-text p { margin-bottom: 1.1rem; }
.profile-text .lead { color: var(--ink); font-size: 1.25rem; line-height: 1.45; }
.profile-signoff { margin-top: 1.7rem; padding-left: 1rem; border-left: 3px solid var(--blue); color: var(--ink); font-weight: 700; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.4rem; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 290px; color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
.competency-list { border-top: 1px solid var(--line); }
.competency { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.competency-no { color: var(--blue); font-size: 2rem; font-weight: 700; padding-top: .35rem; }
.competency h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.04em; margin-bottom: .45rem; }
.competency p { color: var(--muted); max-width: 650px; margin: 0; font-size: .94rem; }
.competency-tag { color: var(--blue); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding-top: .5rem; }

.experience-band { background: var(--blue-dark); color: white; }
.experience-inner { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-label-light { color: #c1cce2; }
.section-label-light span:first-child { color: #a8c0ff; }
.experience-content { max-width: 980px; }
.experience-content .eyebrow { color: #b6c8f4; }
.experience-content h2 { margin-bottom: 1.4rem; }
.experience-content h2 em { color: #b6c8f4; }
.experience-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: .8rem 0; border-top: 1px solid #5a6d94; border-bottom: 1px solid #5a6d94; font-size: 1.5rem; color: #d3dcef; }
.experience-summary { max-width: 720px; margin: 2rem 0 2.5rem; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.5; }
.experience-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.experience-columns > div { border-top: 2px solid #9eb7f3; padding-top: .8rem; }
.small-label { color: #b6c8f4; font-size: .85rem; }
.experience-columns p { color: #e0e6f2; font-size: .85rem; margin: .6rem 0 0; }
.experience-footnote { color: #b6c8f4; font-size: .6rem; font-weight: 400; margin: 2rem 0 0; letter-spacing: .04em; text-transform: none; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.project-card-feature { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.7rem; align-items: center; }
.project-visual { min-height: 260px; position: relative; overflow: hidden; background: #e2e3dc; padding: 1rem; }
.project-visual > span { position: absolute; z-index: 2; top: 1rem; left: 1rem; font-size: .6rem; font-weight: 700; letter-spacing: .1em; }
.visual-web { background: #dfe4ed; display: grid; place-items: center; }
.visual-window { width: 72%; min-height: 175px; padding: 1.2rem; background: var(--white); box-shadow: 8px 8px 0 #b9c6dd; display: flex; flex-wrap: wrap; align-content: start; gap: .35rem; }
.visual-window i { width: 6px; height: 6px; border-radius: 50%; background: #b7bdc6; }
.visual-window b { display: block; width: 100%; margin-top: 1rem; font-size: clamp(1.3rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.06em; }
.visual-window small { margin-top: auto; padding-top: 1rem; font-size: .5rem; letter-spacing: .1em; color: var(--blue); }
.visual-editorial { background: #e8e6de; }
.editorial-type { position: absolute; top: 3.5rem; left: 1.5rem; font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.1em; line-height: .84; }
.editorial-type em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.editorial-lines { position: absolute; width: 35%; height: 55%; right: 1rem; bottom: 1rem; border-top: 1px solid #b5b6ad; background: repeating-linear-gradient(to bottom, transparent 0, transparent 12px, #b5b6ad 13px, transparent 14px); }
.visual-project { background: #dfe5dc; }
.visual-project > b { position: absolute; left: 1.3rem; bottom: 1.4rem; font-size: 1.25rem; line-height: 1.1; letter-spacing: -.05em; z-index: 2; }
.project-shape { position: absolute; border: 1px solid #71916f; }
.shape-one { width: 140px; height: 140px; border-radius: 50%; top: 3rem; right: 2rem; }
.shape-two { width: 110px; height: 110px; transform: rotate(45deg); top: 4rem; right: 3rem; background: #c6d4c0; }
.shape-three { width: 80px; height: 80px; border-radius: 50%; top: 5rem; right: 4rem; background: var(--blue-dark); border-color: var(--blue-dark); }
.project-info { padding-top: 1rem; }
.project-type { color: var(--blue); font-size: .85rem; }
.project-info h3 { margin: .55rem 0 .5rem; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.04em; }
.project-info p { color: var(--muted); font-size: .88rem; }
.project-note { display: inline-block; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }

.tools-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); }
.tools-layout h2 { margin-bottom: 0; }
.tool-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tool-row:first-child { border-top: 1px solid var(--line); }
.tool-row > span { font-size: .95rem; font-weight: 700; color: var(--blue); }
.tool-row p { margin: 0; font-size: .9rem; }
.tools-note { margin-top: 1.5rem; color: var(--muted); font-size: .75rem; }

.contact-section { background: var(--ink); color: white; }
.contact-inner { padding-block: clamp(4rem, 8vw, 7rem); }
.contact-topline { padding-bottom: 1rem; border-bottom: 1px solid #4b504b; color: #c1c8bf; }
.contact-topline span:first-child { color: #a8c0ff; }
.contact-inner h2 { margin: 3.5rem 0 1.4rem; font-size: clamp(2.8rem, 6.5vw, 6rem); }
.contact-inner h2 em { color: #a8c0ff; }
.contact-inner > p { max-width: 590px; color: #d2d6d0; font-size: 1.05rem; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #d9e2f7; }
.contact-link { color: white; font-size: .82rem; font-weight: 700; text-decoration: none; }
.contact-details { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 4rem; padding-top: 1rem; border-top: 1px solid #4b504b; color: #c1c8bf; font-size: .75rem; letter-spacing: .07em; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem var(--gutter); background: #171b18; color: #c1c8bf; font-size: .68rem; }
.site-footer .wordmark { color: white; }
.site-footer a { text-decoration: none; }
.site-footer > span:nth-child(2) { margin-right: auto; margin-left: 1rem; }

@media (max-width: 900px) {
  .header-note { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr); gap: 2rem; }
  .hero-aside { min-height: 360px; padding: 1rem; }
  .content-section, .experience-inner { grid-template-columns: 90px minmax(0, 1fr); gap: 1.5rem; }
  .profile-layout, .tools-layout { gap: 2rem; }
  .competency { grid-template-columns: 32px minmax(0, 1fr); }
  .competency-tag { grid-column: 2; padding-top: 0; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 1rem; }
  .site-header { min-height: auto; align-items: flex-start; flex-direction: column; gap: .8rem; padding-block: 1rem; }
  .main-nav { width: 100%; gap: .5rem 1rem; flex-wrap: wrap; }
  .main-nav a { font-size: .85rem; }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 2.5rem; }
  h1 { font-size: clamp(2.9rem, 13vw, 3.5rem); }
  .hero-aside { min-height: 310px; }
  .aside-monogram { font-size: 5rem; min-height: 100px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .content-section, .experience-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 3.5rem; }
  .section-label { margin-bottom: .25rem; }
  .profile-layout, .tools-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-layout h2, .tools-layout h2 { margin-bottom: .5rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1.2rem; }
  .competency { padding: 1.3rem 0; gap: .7rem; }
  .experience-columns { grid-template-columns: 1fr; gap: 1.4rem; }
  .experience-columns > div { max-width: 500px; }
  .experience-meta { flex-direction: column; gap: .25rem; }
  .project-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-card-feature { grid-column: auto; display: block; }
  .project-card-feature .project-info { padding-top: 1rem; }
  .project-visual { min-height: 235px; }
  .tool-row { grid-template-columns: 1fr; gap: .2rem; }
  .contact-inner h2 { margin-top: 2.5rem; }
  .contact-details { flex-direction: column; gap: .5rem; margin-top: 3rem; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer > span:nth-child(2) { width: calc(100% - 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  :root { --paper: white; }
  .site-header, .hero-actions, .contact-actions, .site-footer { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 2rem; }
  .hero-aside { display: none; }
  .content-section, .experience-inner { break-inside: avoid; padding-block: 2rem; }
  .experience-band, .contact-section { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}


/* Finalisierte Arbeitsproben und rechtliche Seiten */
.project-image { display:block; min-width:0; height:auto; min-height:0; overflow:hidden; background:#fff; text-decoration:none; }
.project-image img { display:block; width:100%; height:auto; min-height:0; max-height:none; object-fit:contain; transition:transform .35s ease; }
.project-image:hover img { transform:scale(1.015); }
.logo-image { background:#fff; display:grid; place-items:center; }
.logo-image img { object-fit:contain; padding:1.25rem; }
.psp-image img { object-fit:contain; background:#fff; }
.project-info { min-width:0; align-self:center; }
.legal-page { min-height:100vh; display:flex; flex-direction:column; }
.legal-content { width:min(100% - 2*var(--gutter), 850px); margin-inline:auto; padding-block:clamp(3rem,8vw,7rem); flex:1; }
.legal-content h1 { font-size:clamp(2.5rem,6vw,3.5rem); margin:.6rem 0 2.5rem; line-height:1; letter-spacing:-.07em; }
.legal-content h1 em { color:var(--blue); font-family:var(--serif); font-weight:400; }
.legal-content h2 { font-size:1.3rem; margin:2rem 0 .6rem; }
.legal-content p { max-width:720px; }
.legal-note { margin-top:2rem; padding:1rem 1.2rem; border-left:3px solid var(--blue); background:#eceff5; font-size:.9rem; }
.legal-back { margin-top:2.5rem; }
.email-obfuscated { overflow-wrap:anywhere; }
@media (max-width:800px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .project-card-feature { grid-column:auto; display:grid; grid-template-columns:minmax(0, 1fr); gap:0; align-items:start; }
  .project-card-feature .project-info { padding-top:1rem; }
  .project-image, .project-image img { height:auto; min-height:0; max-height:none; }
  .project-info { padding-top:1rem; }
}
@media (prefers-reduced-motion:reduce) { .project-image img { transition:none; } }
