/* ==========================================================================
   textkonzept.ch – Stylesheet
   Übersetzung des AI-Studio-Designs (Tailwind) in reines CSS, ohne Build-Step.
   Farben/Abstände entsprechen den Tokens aus src/index.css des Designs.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #F7F7F7;
  --fg: #1A1A1A;
  --white: #FFFFFF;
  --muted: #EDF0F3;
  --muted-fg: #4A5568;
  --border: #E2E8F0;
  --primary: #005696;
  --secondary: #FF6B35;        /* Brand-Orange: Linien, Punkte, Flächen */
  --secondary-text: #BD4410;   /* dunkleres Orange für Text/Buttons (WCAG AA ≥ 4.5:1) */
  --accent: #E3005F;

  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .1);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
/* Boxed Layout: Seite auf 1440px begrenzt und zentriert, aussen ruhiger Hintergrund */
html { background: #E4E8EC; }
body {
  margin: 0 auto;
  max-width: 1440px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1441px) {
  body { box-shadow: 0 0 0 1px var(--border), 0 0 80px rgb(0 0 0 / .08); }
}
::selection { background: var(--fg); color: var(--bg); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--primary); color: var(--white);
  padding: .75rem 1rem; font-weight: 700; font-size: 14px;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Kleine wiederkehrende Bausteine */
.eyebrow {            /* 10px bold uppercase tracking-[2px] */
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}
.bar {                /* orange Linie */
  display: block; height: 2px; width: 40px; background: var(--secondary);
}
.container { max-width: 1400px; margin-inline: auto; }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1440px; z-index: 50;
  padding-inline: 24px; display: flex; justify-content: center; pointer-events: none;
}
.nav {
  pointer-events: auto;
  height: 56px; padding-inline: 32px;
  display: flex; align-items: center; gap: 40px;
  background: rgb(255 255 255 / .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgb(226 232 240 / .6);
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .03), 0 4px 6px -4px rgb(0 0 0 / .03);
  transition: all .2s var(--ease);
}
.nav__brand {
  font-size: 14px; font-weight: 900; letter-spacing: -.05em; text-transform: uppercase;
  color: var(--primary);
  border-right: 1px solid rgb(226 232 240 / .6);
  padding-right: 32px; margin-right: -16px;
  white-space: nowrap;
}
.nav__links { display: none; }
.nav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9999px; background: rgb(26 26 26 / .05);
}
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile-Overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg); color: var(--fg);
  display: none; flex-direction: column; justify-content: center; align-items: center;
  padding: 40px; pointer-events: auto;
}
.nav-overlay.is-open { display: flex; animation: overlay-in .2s var(--ease); }
@keyframes overlay-in {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.nav-overlay__close { position: absolute; top: 40px; right: 40px; padding: 16px; }
.nav-overlay__close svg { width: 32px; height: 32px; }
.nav-overlay__links { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.nav-overlay__links a {
  font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.05em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.nav-overlay__links a:hover { color: var(--secondary-text); }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav__links {
    display: flex; gap: 20px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: rgb(26 26 26 / .7);
  }
  .nav__links a { position: relative; padding-block: 8px; white-space: nowrap; transition: color .2s var(--ease); }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
    background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--secondary-text); }
  .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__toggle, .nav-overlay { display: none !important; }
}
@media (min-width: 1200px) { .nav__links { gap: 28px; } }
@media (min-width: 768px) { .nav-overlay__links a { font-size: 36px; } }
/* Ohne JavaScript: Links auch mobil zeigen, Menü-Button ausblenden */
html.no-js .nav__toggle { display: none; }
html.no-js .nav__links { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
html.no-js .nav { height: auto; padding-block: 12px; border-radius: 28px; flex-wrap: wrap; row-gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr;
  padding-top: 128px;
}
.hero > * { min-width: 0; }
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px; background: var(--bg); position: relative; overflow: hidden;
  border-right: 1px solid var(--border);
}
.hero__title {
  font-size: clamp(34px, 11.5vw, 48px); font-weight: 700; line-height: .95; letter-spacing: -.05em;
  margin-bottom: 32px; color: var(--fg); overflow-wrap: anywhere;
}
.dot { color: var(--secondary); }
.hero__lead {
  font-size: 18px; line-height: 1.5; max-width: 480px;
  color: rgb(26 26 26 / .75); margin-bottom: 40px;
}
.btn {
  display: inline-block; width: fit-content;
  padding: 20px 40px;
  background: var(--secondary-text); color: var(--white);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  box-shadow: 0 10px 15px -3px rgb(189 68 16 / .25), 0 4px 6px -4px rgb(189 68 16 / .25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(189 68 16 / .45), 0 4px 6px -4px rgb(189 68 16 / .45);
}
.btn:active { transform: scale(.95); }

.hero__visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--muted); border-left: 1px solid var(--border); padding: 40px;
}
.portrait {
  position: relative; width: 100%; aspect-ratio: 3 / 4; max-width: 400px;
  overflow: hidden; box-shadow: var(--shadow-2xl);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transition: filter .7s var(--ease);
}
.portrait:hover img { filter: grayscale(0); }
.portrait__tint {
  position: absolute; inset: 0; background: rgb(0 86 150 / .1); mix-blend-mode: multiply;
  transition: opacity .2s var(--ease); pointer-events: none;
}
.portrait:hover .portrait__tint { opacity: .3; }
.portrait__gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .7), transparent 50%);
  opacity: .6; transition: opacity .2s var(--ease);
}
.portrait:hover .portrait__gradient { opacity: .4; }
.portrait__label {
  position: absolute; top: 40px; right: 40px; z-index: 10;
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 5px;
  color: rgb(255 255 255 / .6);
  writing-mode: vertical-rl; text-orientation: mixed; rotate: 180deg; height: 128px;
}
.portrait__caption {
  position: absolute; bottom: 0; left: 0; z-index: 10; padding: 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.portrait__name {
  font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--white);
  margin-bottom: 4px; display: block;
}
.portrait__caption .bar { width: 48px; }
.portrait__role {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: rgb(255 255 255 / .9); max-width: 180px; line-height: 1.625;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero__text, .hero__visual { padding: 48px 40px; }
  .hero__title { font-size: clamp(44px, 5.6vw, 84px); letter-spacing: -.048em; }
  .hero__lead { font-size: 20px; }
}
@media (min-width: 1024px) {
  .hero__text, .hero__visual { padding: 80px; }
  .portrait__caption { padding: 56px; }
}

/* Einblend-Animation (wie motion/react im Design) */
.fade-up { animation: fade-up .6s var(--ease) both; }
.fade-up--slow { animation-duration: 1s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Positionierung & Arbeitsweise ---------- */
.intro {
  padding: 80px 24px; border-top: 1px solid var(--border); background: var(--bg);
}
.intro .container { display: flex; flex-direction: column; gap: 32px; }
.panel {
  padding: 32px; background: var(--white);
  border: 1px solid var(--border); border-left: 2px solid var(--secondary);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-md); }
.panel__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.panel__grid > *, .about__grid > *, .services__grid > * { min-width: 0; }
.panel__head { display: flex; flex-direction: column; justify-content: center; }
.panel__head .bar { margin-bottom: 16px; }
.panel__title {
  font-size: 24px; font-weight: 300; line-height: 1.375;
  color: var(--primary); transition: color .2s var(--ease); text-wrap: balance;
}
.panel:hover .panel__title { color: var(--secondary-text); }
.panel__body p { font-size: 16px; line-height: 1.625; color: rgb(26 26 26 / .8); }

@media (min-width: 768px) {
  .intro { padding: 112px 64px; }
  .panel { padding: 48px; }
  .panel__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; }
  .panel__head { grid-column: span 5; }
  .panel__body { grid-column: span 7; border-left: 1px solid rgb(226 232 240 / .7); padding-left: 40px; }
  .panel__title { font-size: 30px; }
  .panel__head .bar { margin-bottom: 20px; }
  .panel__body p { font-size: 18px; }
}

/* ---------- Angebote ---------- */
.services {
  scroll-margin-top: 40px;
  padding: 96px 24px; border-top: 1px solid var(--border); background: var(--muted);
}
.services__label, .section-label { color: var(--secondary-text); font-size: 12px; letter-spacing: 4px; display: block; margin-bottom: 48px; }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.service {
  scroll-margin-top: 140px;
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding: 40px 36px 44px; background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.service:hover { box-shadow: var(--shadow-xl); }
/* Anker-Ziel (per Menü angesprungen): nur eine feine orange Linie */
.service:target, .service.is-target {
  border-color: var(--secondary);
  box-shadow: inset 0 0 0 1px var(--secondary), var(--shadow-md);   /* 1px Rahmen + 1px innen = 2px Linie */
}
.service__num {
  font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.03em;
  color: var(--secondary-text); margin-bottom: 4px;
}
.service__num::after { content: ""; display: block; width: 40px; height: 2px; background: var(--secondary); margin-top: 16px; }
.service__title {
  font-size: 30px; font-weight: 300; line-height: 1.25;
  color: var(--primary); transition: color .2s var(--ease);
  text-wrap: balance;
}
.service:hover .service__title { color: var(--secondary-text); }
.service__lead { font-size: 18px; font-weight: 600; line-height: 1.4; color: rgb(26 26 26 / .9); text-wrap: pretty; }
.service__text { font-size: 16px; line-height: 1.65; color: var(--muted-fg); hyphens: auto; hyphenate-limit-chars: 10 5 4; text-wrap: pretty; }
.service__items {
  margin-top: auto; padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
}
.service__items li { display: flex; flex-direction: column; gap: 6px; }
.service__items h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary);
}
.service__items p { font-size: 15px; line-height: 1.6; color: var(--muted-fg); hyphens: auto; hyphenate-limit-chars: 10 5 4; text-wrap: pretty; }

@media (min-width: 768px) {
  .services { padding: 112px 64px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}
/* Vier Spalten erst ab 1280px – darunter passen die Titel nicht in die Karten */
@media (min-width: 1280px) {
  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .service { padding: 44px 32px 48px; }
  /* Titel skaliert mit der Kartenbreite; ab 1440px ist die Box fix, daher Obergrenze */
  .service__title { font-size: clamp(22px, 1.95vw, 28px); }
  .service__lead { font-size: 17px; }
  .service__text { font-size: 15px; }
}

/* ---------- Über mich ---------- */
.about {
  scroll-margin-top: 96px;
  padding: 96px 32px; border-top: 1px solid var(--border); background: var(--bg);
}
.section-header { display: flex; flex-direction: column; margin-bottom: 48px; }
.section-header__row { display: flex; align-items: baseline; gap: 16px; }
.section-header__num { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--secondary-text); }
.section-header__title {
  font-size: 36px; font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; color: var(--primary);
  line-height: 1.1;
}
.about__grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
.about .about__grid { margin-left: 0; }
.about__content { display: flex; flex-direction: column; gap: 32px; }
.about__lead { font-size: 24px; font-weight: 300; line-height: 1.375; color: var(--primary); }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text p { font-size: 16px; line-height: 1.625; color: rgb(26 26 26 / .8); }
.about__boxes { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
.box { padding: 28px; background: var(--white); border-left: 2px solid var(--secondary); box-shadow: var(--shadow-sm); }
.box__title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--secondary-text); margin-bottom: 20px;
}
.box ul { display: flex; flex-direction: column; gap: 16px; }
.box li { display: flex; flex-direction: column; gap: 2px; }
.box li strong {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary);
}
.box li span { font-size: 14px; line-height: 1.6; color: var(--muted-fg); }
.about__visual { display: flex; align-items: flex-start; justify-content: center; }
.about__photo {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 5;
  background: var(--muted); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s var(--ease); }
.about__photo:hover img { filter: grayscale(0); }
.about__photo::after {
  content: ""; position: absolute; inset: 0; background: rgb(255 107 53 / .2);
  mix-blend-mode: multiply; opacity: 0; transition: opacity .2s var(--ease); pointer-events: none;
}
.about__photo:hover::after { opacity: 1; }

@media (min-width: 640px) {
  .about__boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .about { padding: 96px 80px; }
  .about__grid { margin-left: 32px; }
  .about__lead { font-size: 30px; }
  .about__text p { font-size: 18px; }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about__content { grid-column: span 7; }
  .about__visual { grid-column: span 5; }
}

/* ---------- Referenzen ---------- */
.references { padding: 96px 32px; border-top: 1px solid var(--border); background: var(--white); }
.references__head {
  display: flex; align-items: center; gap: 24px; margin-bottom: 64px; max-width: 1280px; margin-inline: auto;
}
.references__head::before, .references__head::after { content: ""; height: 1px; flex-grow: 1; background: var(--border); }
.references__title {
  font-size: 20px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgb(0 86 150 / .8); white-space: nowrap;
}
.references__list {
  max-width: 1280px; margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 56px;
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 3px;
  color: rgb(0 86 150 / .8);
}
.references__list li { transition: color .2s var(--ease); cursor: default; }
.references__list li:hover { color: var(--secondary-text); }
@media (min-width: 768px) { .references { padding: 96px 80px; } }

/* ---------- Kontakt / Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--white); }
.contact {
  scroll-margin-top: 96px;
  padding: 40px 32px;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 32px;
}
.contact__label { display: block; color: rgb(26 26 26 / .62); letter-spacing: 1px; }
.contact__value { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; text-transform: uppercase; }
.contact__mail {
  display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 500;
  transition: color .2s var(--ease); overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--secondary-text); }
.contact__social { display: flex; gap: 24px; margin-top: 8px; }
.contact__social a { transition: color .2s var(--ease); }
.contact__social a:hover { color: var(--secondary-text); }
.contact__social svg { width: 22px; height: 22px; }
.contact__social .linkedin { color: #0A66C2; }          /* offizielles LinkedIn-Blau */
.contact__social .linkedin:hover { color: #004182; }
.legal {
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 11px; color: rgb(26 26 26 / .62);
}
.legal nav { display: flex; gap: 20px; }
.legal a { transition: color .2s var(--ease); }
.legal a:hover { color: var(--secondary-text); }
@media (min-width: 768px) {
  .contact { min-height: 130px; padding: 0 80px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__col--end { display: flex; flex-direction: column; align-items: flex-end; }
  .legal { padding: 16px 80px; }
}

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page { padding: 176px 24px 96px; flex-grow: 1; }
.page__inner { max-width: 760px; margin-inline: auto; }
.page h1 {
  font-size: 36px; font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; color: var(--primary);
  line-height: 1.1; margin-bottom: 40px;
}
.page h2 {
  font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; color: var(--primary);
  margin: 40px 0 12px;
}
.page h3 { font-size: 15px; font-weight: 700; color: var(--fg); margin: 24px 0 8px; }
.page p, .page li { font-size: 16px; line-height: 1.625; color: rgb(26 26 26 / .8); }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.page address { font-style: normal; }
.page a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.page a:hover { color: var(--secondary-text); }
.page .btn { margin-top: 32px; text-decoration: none; color: var(--white); }
.page .eyebrow { color: var(--secondary-text); letter-spacing: 3px; display: block; margin-bottom: 16px; }
.page .meta { font-size: 13px; color: var(--muted-fg); margin-top: 48px; }
@media (min-width: 768px) { .page { padding: 200px 64px 128px; } .page h1 { font-size: 48px; } }

/* ---------- Bewegung reduzieren / Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .portrait img, .about__photo img { filter: grayscale(1); }
}
@media print {
  .site-header, .nav-overlay, .btn, .skip-link { display: none !important; }
  body { background: #fff; }
  .hero { min-height: 0; padding-top: 0; }
  .services, .about, .references, .intro { padding: 24px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
