/* prl Consulting – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google) */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Layout idea: sharp-edged, full-bleed bands alternating beige and forest green;
   the portrait melts into a beige opener. Few colours: beige, forest, soft sage. */
:root {
  --paper: #f4f4f1;
  --mist: #e4e6df;
  --ink: #161a18;
  --forest: #1f3329;
  --sage: #b7c29a;
  --night: #13211a;
  --stone: #5f6761;
  --line: #d9ddd3;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --wrap: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 760px) { :root { --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h3 { letter-spacing: -0.02em; line-height: 1.15; }

/* Accent words: same upright face, set apart by colour only */
h1 em, h2 em, .statement em {
  font-family: var(--display);
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(31, 51, 41, 0.92);
  color: var(--paper);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header .wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}
.header-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
.wordmark { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.wordmark span { font-weight: 400; color: #a9b3ab; }
.logo { height: calc(var(--header-h) - 14px); width: auto; aspect-ratio: 2 / 3; display: block; transition: transform .4s var(--ease); }
.header-logo:hover .logo { transform: rotate(-4deg) scale(1.04); }

.nav { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; font-size: 0.98rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 3px; transition: background .25s, color .25s; }
.nav a:hover { background: rgba(244, 244, 241, .1); }
.nav .nav-contact { background: var(--paper); color: var(--forest); font-weight: 600; }
.nav .nav-contact:hover { background: #fff; }
.nav .lang { color: #a9b3ab; border: 1px solid rgba(244, 244, 241, .25); margin-left: 0.4rem; }
@media (max-width: 1080px) {
  .nav a:not(.nav-contact):not(.lang) { display: none; }
}
@media (max-width: 520px) { .header-logo { display: none; } }

.site-header { border-bottom-color: rgba(244, 244, 241, 0.08); }
.site-header :focus-visible { outline-color: var(--sage); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  color: var(--ink);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 0 2rem;
}
.hero-text { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.9rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.94;
}
.hero h1 em { color: var(--forest); }
.hero-lead strong { display: block; margin-bottom: 0.6rem; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.3; font-weight: 650; letter-spacing: -0.02em; color: var(--forest); }
.hero-lead { margin-top: 2.25rem; max-width: 34rem; font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; color: #2c322e; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }

.button {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--forest);
  color: var(--paper);
  padding: 1rem 1.5rem 1rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background .25s, transform .35s var(--ease);
}
.button::after { content: "→"; transition: transform .35s var(--ease); }
.button:hover { background: var(--ink); transform: translateY(-2px); }
.button:hover::after { transform: translateX(4px); }

/* Cut-out portrait stands directly on the lower edge of the opener */
.hero-photo { align-self: end; justify-self: end; width: 118%; max-width: 38rem; margin-top: 2.5rem; margin-right: -6%; }
.hero-photo img { width: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding: 3rem 0 0; }
  .hero-photo { justify-self: center; width: 100%; max-width: 22rem; margin: 2rem 0 0; }
}

/* ---------- Keyword ticker ---------- */
.ticker {
  display: flex; overflow: hidden;
  background: var(--paper);
  padding: clamp(1.4rem, 2.6vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-shrink: 0; gap: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--forest);
}
.ticker-track li { display: flex; align-items: center; }
.ticker-track li::after {
  content: ""; width: .22em; height: .22em; margin: 0 .9em;
  border-radius: 50%; background: var(--forest);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 40s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.panel { margin: 0; }
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head h2, .about-text h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.section-head p { max-width: 36rem; color: var(--stone); margin: 0; font-size: 1.15rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }


/* ---------- Leistungen ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  padding: clamp(1.75rem, 3vw, 2.6rem) 1.25rem;
  margin: 0 -1.25rem;
  border-radius: var(--radius);
  transition: background .4s var(--ease);
}
.service::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; height: 1px; background: var(--line); transition: opacity .3s; }
.service:hover { background: #fff; }
.service:hover::after { opacity: 0; }
.service .idx { font-family: var(--display); font-size: 1rem; font-weight: 500; color: var(--stone); font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; transition: transform .4s var(--ease), color .3s; }
.service:hover h3 { transform: translateX(.4rem); color: var(--forest); }
.service p {
  max-width: 38rem; margin: 0; color: #343b36;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s;
}
.service { cursor: pointer; outline-offset: -2px; }
.service h3::after {
  content: "+"; display: inline-block; margin-left: 0.4em;
  font-weight: 400; color: var(--stone);
  transition: transform .4s var(--ease);
}
.service:hover p, .service:focus-within p, .service:focus p { max-height: 14rem; opacity: 1; }
.service:hover h3::after, .service:focus h3::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .service p, .service h3::after { transition: none; } }
@media print { .service p { max-height: none; opacity: 1; } .service h3::after { content: none; } }
@media (max-width: 860px) {
  .service { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem 1rem; }
  .service p { grid-column: 2; }
}

/* ---------- Was ich mitbringe ---------- */
.strengths { background: var(--forest); color: var(--paper); margin: 0; }
.statement {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.2vw, 6.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 13em;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  color: var(--paper);
  text-wrap: balance;
}
.statement em, .contact h2 em { color: var(--sage); }
.strength-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.strength-list li {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(244, 244, 241, .14);
  border-radius: calc(var(--radius) * .7);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.strength-list li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.strength-list h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-bottom: 0.75rem; }
.strength-list p { margin: 0; max-width: 34rem; color: #d9ded6; }
.strength-intro p {
  max-width: 44rem; margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; letter-spacing: -0.015em;
  color: #e6ebe4;
}
@media (max-width: 860px) {
  .strength-list { grid-template-columns: 1fr; }
}

/* ---------- Arbeitsweise ---------- */
.approach {
  background: var(--mist);
  color: var(--ink);
  margin: 0;
  border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
}
.approach .section-head p { color: var(--stone); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border-radius: calc(var(--radius) * .7);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.steps li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(31, 51, 41, .45); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--forest);
  margin-bottom: 2rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 0.75rem; }
.steps p { margin: 0; color: #343b36; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Projekte ---------- */
#projekte, #projects { background: var(--forest); color: var(--paper); margin: 0; }
#projekte .section-head p, #projects .section-head p { color: #c4ccc2; }
.project { color: var(--ink); }
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.project {
  display: flex; flex-direction: column; gap: 1.5rem;
  background: #fff;
  border-radius: calc(var(--radius) * .7);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(31, 51, 41, .45); }
.project-client { flex: 1; font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.3; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
div.project-client p { margin: 0; }
.project-logo { display: block; margin-bottom: 1.25rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; transition: transform .45s var(--ease); }
.project:hover .project-logo { transform: scale(1.05); transform-origin: left center; }
.project-logo.is-crest { height: 52px; }
.project-logo.is-wide { height: 22px; margin-top: 1rem; margin-bottom: 1.75rem; }
.project-logo.is-word { height: 24px; margin-top: 1rem; margin-bottom: 1.6rem; }
.project-client small { display: block; font-size: 0.92rem; font-weight: 400; color: var(--stone); margin-top: 0.2rem; }
.project h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); margin: 0; }
.project p { margin: 0; color: #343b36; }
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
#ueber-mich, #about { background: var(--mist); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.about-photo { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.about-photo picture {
  display: block;
  background: none;
}
.about-photo figcaption { font-family: var(--display); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; color: var(--stone); text-align: center; margin-top: 1rem; }
.about-text h2 { margin-bottom: 2rem; }
.about-text > p { max-width: 40rem; color: #2c322e; }
.about-text > p:first-of-type { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; }

.cv { margin: 3.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.cv li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.02rem; line-height: 1.5;
}
.cv time { font-family: var(--display); color: var(--stone); font-variant-numeric: tabular-nums; font-weight: 500; }
.cv strong { font-weight: 650; }
.cv span { display: block; color: var(--stone); }
.languages { margin-top: 2rem; font-size: 1.02rem; color: var(--stone); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 24rem; }
}
@media (max-width: 480px) { .cv li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--forest); color: var(--paper);
  margin: 0;
  position: relative; overflow: hidden; isolation: isolate;
  padding-bottom: clamp(5rem, 9vw, 8rem);
}
.contact h2 { font-size: clamp(3rem, 9vw, 8.5rem); letter-spacing: -0.055em; line-height: .95; max-width: 12em; }
.contact-lead { margin-top: 2rem; margin-bottom: 0; max-width: 34rem; color: #c4ccc2; font-size: 1.2rem; }
.contact-mail {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(var(--sage), var(--sage)) 0 100% / 100% 2px no-repeat;
  padding-bottom: .15em;
  transition: background-size .45s var(--ease), color .3s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--sage); background-size: 0 2px; background-position: 100% 100%; }
.contact :focus-visible { outline-color: var(--sage); }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--forest); color: #a9b3ab;
  margin: 0;
  border-top: 1px solid rgba(244, 244, 241, .14);
  padding: 1.75rem 0; font-size: 0.95rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--sage); }
/* Legal pages: footer stands alone, so it is fully rounded */
.legal + .site-footer, main.legal ~ .site-footer { border-top: 0; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 6rem; }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* ---------- Eingangsbewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: rise 1.2s var(--ease) both; }
  .hero h1 { animation: settle 1s var(--ease) .1s both; }
  .hero-lead, .hero-actions { animation: fade-up .9s var(--ease) .35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(3rem) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(1.5rem); letter-spacing: -0.02em; } to { opacity: 1; transform: none; letter-spacing: -0.05em; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
