/* BPR Berger Führungskommunikation GmbH — Stylesheet
   Gestaltung: einfach, responsive, ohne Animationen. */

/* ---------- Fonts (Source Sans 3, variabel, lokal gehostet) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-italic.woff2') format('woff2');
  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: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-ext-italic.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --blue: #0067b1;
  --blue-light: #0a8fe0;
  --blue-pale: #d6e5f2;
  --blue-tint: #e8f1f9;
  --ink: #0b2a44;
  --text: #2b4a63;
  --muted: #5a7488;
  --bg: #f4f6f8;
  --white: #fff;

  --header-h: 64px;
  --gutter: 16px;
  --pad: clamp(24px, 5vw, 64px);
  --corner: clamp(40px, 8vw, 120px);
  --card-r: 32px 4px 4px 4px;
}

@media (min-width: 640px) {
  :root { --gutter: clamp(16px, 3vw, 32px); }
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

.external-link::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-left: 0.25em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h6v6M10 2 2 10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2h6v6M10 2 2 10'/%3E%3C/svg%3E") center / contain no-repeat;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}

p { margin: 0; text-wrap: pretty; }

h1, h2, h3 {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.2; }

@media (max-width: 639.98px) {
  p, dd { hyphens: auto; -webkit-hyphens: auto; }
  h1, h2, h3 { overflow-wrap: break-word; }
  .eyebrow { font-size: 13px; letter-spacing: 0.1em; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.dots { display: inline-flex; gap: 4px; flex: none; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.dots span.is-pale { background: var(--blue-pale); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}
.site-header .shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--blue);
}
.brand:hover { color: var(--blue); }
.brand .dots span { width: 14px; height: 14px; }
.brand-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-name span { display: block; }

@media (max-width: 479.98px) {
  .brand { gap: 8px; }
  .brand .dots { gap: 3px; }
  .brand .dots span { width: 12px; height: 12px; }
  .brand-name { font-size: 15px; letter-spacing: 0.04em; }
  .brand-name span + span {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
  }
  .header-tools { gap: 4px; }
  .lang-switch a { min-width: 32px; padding: 6px 4px; font-size: 14px; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* Logo wächst stufenlos mit; die Zeilen brechen nur zwischen den beiden
   Teilen um, also einzeilig sobald Platz ist, sonst zweizeilig */
@media (min-width: 640px) {
  .brand .dots span {
    width: clamp(28px, 3.2vw, 40px);
    height: clamp(28px, 3.2vw, 40px);
  }
  .brand-name { font-size: clamp(17px, 2.2vw, 22px); letter-spacing: 0.08em; }
  .brand-name span { display: inline; white-space: nowrap; }
}

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.lang-switch a {
  display: inline-block;
  min-width: 40px;
  padding: 8px 6px;
  text-align: center;
  color: var(--muted);
  border-radius: 999px;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a[aria-current] { color: var(--white); background: var(--blue); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--blue-pale);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }
.js .menu-toggle { display: inline-flex; }

/* ---------- Layout ---------- */
.layout { padding-bottom: 8px; }

/* ---------- Sidebar: Navigation + Portrait ---------- */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--muted);
}
.site-nav a::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-pale);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current] { color: var(--blue); }
.site-nav a[aria-current]::before { background: var(--blue-light); }

.profile {
  margin: 0;
  background: var(--white);
  border-radius: var(--card-r);
  overflow: hidden;
}
.profile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--blue-pale);
}
.profile figcaption {
  padding: 16px 20px 20px;
  line-height: 1.35;
}
.profile-name {
  display: block;
  font-weight: 700;
  font-size: 20px;
  color: var(--blue);
}
.profile-role {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--text);
}
.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid var(--blue);
  font-size: 15px;
  font-weight: 600;
}

/* Mobile / Tablet: Navigation als Panel, Portrait ausgeblendet */
@media (max-width: 1023.98px) {
  .sidebar { margin-bottom: 2px; }

  /* Ohne JS bleibt die Navigation als Liste sichtbar */
  .site-nav {
    background: var(--white);
    padding: 8px var(--pad) 16px;
    margin-bottom: 2px;
    border-radius: var(--card-r);
  }
  .js .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 25;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    border-radius: 0;
    border-top: 1.5px solid var(--blue-pale);
    border-bottom: 1.5px solid var(--blue-pale);
    box-shadow: 0 16px 32px rgba(11, 42, 68, 0.12);
  }
  .js.nav-open .site-nav { display: block; }
  .site-nav a { padding: 12px 0; font-size: 18px; }
  .js .site-nav li + li { border-top: 1px solid var(--blue-tint); }

  .profile { display: none; }
}

/* Desktop: feste Spalte links */
@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
  .sidebar {
    padding: 8px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .js .menu-toggle { display: none; }
}

/* Fest nur, wenn die ganze Seitenspalte (ca. 910px inkl. Header) ins Fenster passt;
   bei geringerer Fensterhöhe scrollt sie mit der Seite mit */
@media (min-width: 1024px) and (min-height: 940px) {
  .sidebar {
    position: sticky;
    top: var(--header-h);
  }
}

/* ---------- Sections ---------- */
.section {
  background: var(--white);
  padding: var(--pad);
  scroll-margin-top: var(--header-h);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section:not(:last-child) {
  border-bottom: 1.5px solid var(--blue);
}
:where(.section > p, .section-body > p) { max-width: 68ch; color: var(--text); }
.section-body { display: flex; flex-direction: column; gap: 20px; }

.hero {
  border-radius: var(--corner) 0 0 0;
  gap: 28px;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(40px, 7vw, 96px);
}
.hero .lead {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.55;
  max-width: 40ch;
  color: var(--text);
}
.hero .lead strong { color: var(--blue); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  font-weight: 600;
  line-height: 1.3;
}
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--white); }
.button-secondary:hover { border-color: var(--blue-light); }

/* Führungskommunikation: Fragen */
.questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 62ch;
}
.questions li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--blue);
}
.questions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-light);
}

.callout {
  margin: 0;
  padding: 20px 0 20px 24px;
  border-left: 4px solid var(--blue-light);
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callout p {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.45;
  font-style: italic;
  color: var(--blue);
}

.emphasis {
  font-size: clamp(19px, 1.8vw, 21px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--blue);
}

.accent-text {
  color: var(--blue);
}

/* Dienstleistungen */
.service-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 8px;
}
.service-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px clamp(24px, 4vw, 48px);
  padding: clamp(24px, 3vw, 32px);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--card-r);
}
.service-head { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 720px) {
  .service-group { grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr); }
}
.service-group dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.service-group dt { font-weight: 700; color: var(--blue); line-height: 1.3; }
.service-group dd { margin: 4px 0 0; font-size: 17px; color: var(--text); }

/* Portrait */
.portrait-head {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}
.portrait-photo {
  display: flex;
  align-items: end;
  column-gap: 20px;
}
.credentials {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  color: var(--text);
}
.credentials li { padding: 2px 0; }

.timeline { margin: 0; border-top: 1.5px solid var(--blue-pale); }
.timeline > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 24px;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--blue-pale);
}
@media (min-width: 640px) {
  .timeline > div { grid-template-columns: minmax(130px, 200px) 1fr; }
}
.timeline dt { font-weight: 700; color: var(--blue); }
.timeline dd { margin: 0; color: var(--text); }
.timeline ul { margin: 6px 0 0; padding-left: 20px; }

.timeline-history > div { padding: 20px 0; }
@media (min-width: 640px) {
  .timeline-history > div { grid-template-columns: 120px 1fr; }
}
.timeline-history dt { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }

/* Kontakt */
.contact {
  background: var(--blue);
  color: var(--white);
  border-radius: 0 0 var(--corner) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(40px, 7vw, 96px);
}
.contact h2 { color: var(--white); }
.contact a { color: var(--white); font-weight: 600; }
.contact a:hover { color: var(--blue-pale); }
.contact a:focus-visible { outline-color: var(--white); }
.contact address {
  font-style: normal;
  font-size: 19px;
  line-height: 1.6;
}
.contact-intro { display: flex; flex-direction: column; gap: 20px; }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list dt {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.contact-list dd { margin: 2px 0 0; font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .site-footer .shell { padding-left: calc(var(--gutter) + 280px + clamp(24px, 3vw, 40px)); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .sidebar .site-nav, .menu-toggle, .skip-link { display: none !important; }
  .layout { display: block; }
  .sidebar { position: static; max-height: none; }
  .section, .contact { padding: 16px 0; border-radius: 0; background: none; color: #000; }
  .contact h2, .contact a { color: #000; }
}
