/* Friedrich PharmaConsult – shared styles (optimised for Google Chrome)
   Fonts are self-hosted: no external requests, no cookies. */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Poppins-Bold.woff") format("woff"); }

:root {
  --navy: #032C58;
  --blue: #7D9EC6;
  --blue-tint: #EAF0F7;
  --gray-50: #F4F6F9;
  --gray-200: #D8DEE6;
  --gray-600: #55637A;
  --ink: #1E2B3D;
  --white: #FFFFFF;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --page-pad: clamp(1.25rem, 5vw, 4rem);
  --wrap: 80rem;
  /* one reading size for About me / Services, scales with viewport width and height */
  --fs: clamp(0.92rem, min(0.7rem + 0.65vw, 2.4vh), 1.4rem);
  --fs-legal: clamp(0.95rem, min(0.7rem + 0.35vw, 2.2vh), 1.125rem);
  --bar-h: clamp(4.5rem, 12vh, 6.5rem);
  --badge: calc(var(--bar-h) - 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 4px; z-index: 10;
}
.skip-link:focus { top: 1rem; }
.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;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--page-pad); }

/* ================= HOME ================= */
.home {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  --art-h: clamp(6rem, 26vh, 15rem);
  --home-fs: clamp(0.9rem, min(0.55rem + 0.5vw, 2.2vh), 1.2rem);
}
.home__art {
  position: absolute; inset: auto 0 0 0; height: var(--art-h);
  background: url("../img/banner.jpg") center 66% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 72%, transparent 100%);
  z-index: -1;
}
.home__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding-top: clamp(0.9rem, 2.5vh, 2rem);
}
.logo { display: inline-block; line-height: 0; }
.logo img { width: 100%; height: auto; }
.logo--large { width: clamp(10.5rem, min(29vh, 24vw), 18rem); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.main-nav a {
  display: inline-block; padding: 0.4rem 0;
  font-size: var(--home-fs); font-weight: 500; color: var(--navy);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--blue); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

.home__main {
  flex: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; justify-content: start;
  column-gap: clamp(1.75rem, 4vw, 4rem);
  padding-bottom: calc(var(--art-h) * 0.95);
  padding-left: calc(var(--page-pad) + clamp(1.5rem, 7vw, 7rem));
}
.portrait { position: relative; width: clamp(8.5rem, min(27vh, 22vw), 15rem); aspect-ratio: 1; }
.portrait::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--blue); transform: translate(0.55rem, 0.55rem);
}
.portrait img {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--white); background: var(--gray-50);
}
.home__text { text-align: left; font-size: var(--home-fs); }
.home__name { font-size: clamp(1.6rem, min(2.9vw, 5vh), 2.6rem); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.home__role { margin: 0.35em 0 0; font-size: 1.3em; font-weight: 300; color: var(--navy); }
.home__focus {
  margin: 1em 0 0; padding-left: 1rem; border-left: 4px solid var(--blue);
  font-weight: 500; color: var(--navy);
}
.home__focus span { display: block; }
.home__contact {
  margin: 1.2em 0 0; font-style: normal;
  display: flex; flex-wrap: wrap; gap: 0.9em 3em;
}
.home__contact p { margin: 0; }
.home__contact strong { color: var(--navy); font-weight: 500; }
.home__contact address { font-style: normal; }
.home__contact .gap-top { margin-top: 0.5em; }

/* ================= SUB PAGES ================= */
.page-header {
  background:
    linear-gradient(90deg, rgba(3,44,88,0.96) 0%, rgba(3,44,88,0.9) 55%, rgba(3,44,88,0.78) 100%),
    url("../img/banner.jpg") center / cover no-repeat;
  color: var(--white);
}
.page-header__inner {
  height: var(--bar-h); display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem);
}
.logo-badge {
  flex: none; width: var(--badge); height: var(--badge); border-radius: 50%;
  background: var(--white); display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(125,158,198,0.6);
  transition: box-shadow 0.15s ease;
}
.logo-badge:hover { box-shadow: 0 0 0 4px var(--blue); }
.logo-badge:focus-visible { outline-color: var(--white); outline-offset: 4px; border-radius: 50%; }
.logo-badge img { width: 64%; height: auto; }
.page-header h1 { color: var(--white); font-size: clamp(1.6rem, min(2.8vw, 4.8vh), 2.6rem); font-weight: 700; }

.content { flex: 1; padding-block: clamp(0.9rem, 3.8vh, 3rem); }
.content__inner { font-size: var(--fs); line-height: 1.55; }
.content p { margin: 0 0 0.85em; }

/* Navigation in the blue bar (top right) */
.header-nav { margin-left: auto; }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 1.75rem; }
.header-nav a {
  display: inline-block; padding: 0.3rem 0;
  font-size: clamp(0.9rem, min(0.55rem + 0.5vw, 2.2vh), 1.2rem); font-weight: 500; color: var(--white);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.header-nav a:hover { border-bottom-color: var(--blue); }
.header-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.header-nav :focus-visible { outline-color: var(--white); }

/* About me */
.about { max-width: 72rem; font-size: clamp(0.95rem, min(0.75rem + 0.7vw, 2.62vh), 1.45rem); }
.linkedin {
  display: inline-flex; align-items: center; gap: 0.8em;
  margin-top: 0.6em; padding: 0.5em 1.1em 0.5em 0.6em;
  border: 2px solid var(--blue); border-radius: 999px;
  text-decoration: none; font-weight: 500; color: var(--navy);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.linkedin img { width: 2.2em; height: 2.2em; border-radius: 6px; }
.linkedin:hover { background: var(--blue-tint); border-color: var(--navy); }

/* Services */
.topics, .topics ul { margin: 0; padding: 0; }
.topics { list-style: none; padding-left: 0; max-width: 72rem; }
.topics > li { color: var(--navy); font-weight: 700; font-size: 1.18em; line-height: 1.45; }
.topics > li > ul { font-size: calc(1em / 1.18); line-height: 1.55; }
.topics ul { list-style: disc; margin-top: 0.9em; padding-left: 1.2em; color: var(--ink); font-weight: 400; }
.topics ul li { margin: 0 0 0.7em; padding-left: 0.2em; }
.topics ul li::marker { color: var(--blue); }
.topics strong { font-weight: 700; color: var(--navy); }

/* Legal pages */
.legal { font-size: var(--fs-legal); line-height: 1.65; max-width: 60rem; }
.legal h2 { font-size: 1.1em; font-weight: 700; margin: 1.5em 0 0.4em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul, .legal address { margin: 0 0 0.9em; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.4em; }
.legal li { margin: 0.2em 0; }
.legal a { overflow-wrap: anywhere; }
.legal .updated { color: var(--gray-600); font-size: 0.95em; }
.address-block { padding: 0.1em 0 0.1em 1.1em; border-left: 4px solid var(--blue); margin: 0 0 1em; }
.address-block p, .address-block address { margin: 0; }
.address-block p + p, .address-block address + p { margin-top: 0.6em; }
.legal--imprint { max-width: 66rem; }
.legal__cols { display: grid; grid-template-columns: 1fr; gap: 0 clamp(2rem, 5vw, 4.5rem); }
.address-block--lead { margin-top: 1.1em; }
.address-block--lead p { white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #D3E0F0; padding: 0.7rem 0; font-size: 0.85rem; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; align-items: center;
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 1.5rem; }
.site-footer a { color: var(--white); text-decoration: none; padding: 0.2rem 0; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--blue); }
.site-footer a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Responsive ---------- */
@media (min-width: 56rem) {
  .legal__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 52rem) {
  .address-block--lead p { white-space: normal; }
  .home { --art-h: 9rem; }
  .home__main { grid-template-columns: 1fr; row-gap: 1.5rem; align-items: start; padding-top: 1.5rem; padding-bottom: calc(var(--art-h) + 1rem); }
  .portrait { width: 9rem; }
  .home__name { white-space: normal; }
  .home__header { flex-direction: column; }
  .page-header__inner { height: auto; min-height: var(--bar-h); flex-wrap: wrap; padding-block: 0.6rem; }
  .header-nav { margin-left: 0; width: 100%; }
  .header-nav ul { justify-content: flex-start; gap: 0.1rem 1.25rem; }
  .content__inner { font-size: 1.05rem; }
  .legal { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .home__art { display: none; }
  .page-header { background: none; color: var(--ink); }
  .page-header h1 { color: var(--navy); }
  .site-footer, .header-nav { display: none; }
}
