/* Confideon Medical GmbH - Style */

:root {
  --brand-50:  #f4f8fd;
  --brand-100: #eaf3fc;
  --brand-200: #c8def5;
  --brand-300: #97c3ec;
  --brand-400: #6ba6df;
  --brand-500: #4a90d9;   /* Logo-Blau */
  --brand-600: #3678c3;
  --brand-700: #2a609d;
  --brand-800: #234d7c;
  --brand-900: #1c3d62;

  --ink-900: #0e141a;
  --ink-700: #1f2933;
  --ink-500: #4b5565;
  --ink-400: #656e80;   /* WCAG AA: >=4.5:1 auf Off-White */
  --ink-300: #cbd2d9;
  --ink-200: #e4e7eb;
  --ink-100: #f5f7fa;
  --ink-50:  #fbfcfe;

  --bg: #ffffff;
  --accent: var(--brand-500);

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 48px -16px rgba(35, 77, 124, .25), 0 8px 20px -8px rgba(35, 77, 124, .15);

  --maxw: 72rem;
  --maxw-prose: 44rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI Variable Display', 'Segoe UI', system-ui,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

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

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--brand-500); }
a:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink-900);
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}

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

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
header.site a.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -.005em;
  font-size: 1.02rem;
}
header.site a.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04);
  object-fit: cover;
}
header.site a.brand .name { line-height: 1.2; }
header.site a.brand small {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  color: var(--ink-500);
  letter-spacing: 0;
}

header.site nav {
  display: flex;
  gap: 1.75rem;
}
header.site nav a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-500);
  padding: .35rem 0;
  position: relative;
}
header.site nav a:hover { color: var(--ink-900); }
header.site nav a[aria-current="page"] {
  color: var(--brand-700);
}
header.site nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 11vw, 9rem);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E") repeat,
    radial-gradient(60% 60% at 80% 0%, var(--brand-100) 0%, transparent 70%),
    radial-gradient(50% 50% at 5% 90%, var(--brand-50) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--brand-50) 100%);
  background-size: 160px 160px, auto, auto, auto;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(74,144,217,.15), transparent 60%);
  z-index: -1;
  border-radius: 50%;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero .copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
}
.hero .copy .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(74, 144, 217, .2);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-500);
  margin: 0 0 2rem;
  max-width: 36ch;
  line-height: 1.55;
}

.contact-card {
  display: grid;
  gap: .85rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 22rem;
}
.contact-card .label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: .25rem;
}
.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink-900);
  font-weight: 500;
  padding: .4rem 0;
}
.contact-card a:hover { color: var(--brand-700); }
.contact-card a svg {
  width: 18px;
  height: 18px;
  color: var(--brand-500);
  flex-shrink: 0;
}

.hero .visual {
  position: relative;
  justify-self: center;
}
.hero .visual .logo-frame {
  position: relative;
  width: clamp(220px, 30vw, 360px);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(35, 77, 124, .18),
    0 28px 56px -18px rgba(35, 77, 124, .38),
    0 10px 24px -10px rgba(35, 77, 124, .22);
  background: var(--brand-500);
}
.hero .visual .logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Glasiger Sheen + feine Innenkante für Tiefe */
.hero .visual .logo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  pointer-events: none;
}
.hero .visual .badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  padding: .55rem 1.2rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-900);
  letter-spacing: .02em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* Orchestrierte Einblendung beim Laden */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .copy > * { animation: rise .7s var(--ease) both; }
.hero .copy .eyebrow      { animation-delay: .04s; }
.hero .copy h1            { animation-delay: .12s; }
.hero .copy p.lead        { animation-delay: .22s; }
.hero .copy .contact-card { animation-delay: .32s; }
.hero .visual {
  animation: rise .85s var(--ease) both;
  animation-delay: .2s;
}

/* Micro-Interactions */
.contact-card a {
  border-radius: 8px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.contact-card a:hover { transform: translateX(3px); }
.contact-card a svg { transition: transform .2s var(--ease); }
.contact-card a:hover svg { transform: scale(1.08); }

/* ---------- Trust strip ---------- */

.trust {
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-50);
  padding: 1.75rem 0;
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.trust .item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.trust .item .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.trust .item:hover .ic {
  transform: translateY(-3px);
  background: var(--brand-500);
  color: #fff;
}
.trust .item .ic svg { width: 18px; height: 18px; }
.trust .item .t-label {
  font-size: .78rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  margin: 0 0 .15rem;
}
.trust .item .t-value {
  font-size: .98rem;
  color: var(--ink-900);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* ---------- Legal pages ---------- */

article.legal {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
article.legal .wrap {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 3rem;
  align-items: start;
}
article.legal aside {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--ink-200);
  padding-left: 1.25rem;
}
article.legal aside .toc-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-400);
  font-weight: 600;
  margin: 0 0 .85rem;
}
article.legal aside ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
  counter-reset: t;
}
article.legal aside ol li {
  counter-increment: t;
}
article.legal aside ol a {
  display: flex;
  gap: .7rem;
  color: var(--ink-500);
  font-size: .9rem;
  line-height: 1.4;
}
article.legal aside ol a::before {
  content: counter(t, decimal-leading-zero);
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 1px;
}
article.legal aside ol a:hover { color: var(--ink-900); }

article.legal .content {
  max-width: var(--maxw-prose);
}
article.legal h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  color: var(--ink-900);
  font-weight: 600;
  text-wrap: balance;
}
article.legal .subtitle {
  color: var(--ink-500);
  font-size: 1.05rem;
  margin: 0 0 3rem;
}
article.legal h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 1rem;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -.005em;
  scroll-margin-top: 96px;
}
article.legal h2:first-of-type { margin-top: 0; }
article.legal p,
article.legal ul,
article.legal dl { margin: 0 0 1.1rem; }

article.legal dl {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .35rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--ink-50);
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
}
article.legal dt {
  color: var(--ink-500);
  font-weight: 500;
  font-size: .94rem;
}
article.legal dd {
  margin: 0;
  color: var(--ink-900);
  font-weight: 500;
  font-size: .94rem;
}

article.legal ul { padding-left: 1.25rem; }
article.legal li { margin-bottom: .3rem; }
article.legal .small { font-size: .9rem; color: var(--ink-500); }

/* Inline-Links im Fließtext nicht nur über Farbe kennzeichnen (WCAG 1.4.1) */
article.legal .content :is(p, li, dd) a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: .06em;
  text-decoration-color: var(--brand-300);
}
article.legal .content :is(p, li, dd) a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--ink-200);
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: .92rem;
  color: var(--ink-500);
  background: var(--ink-50);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
footer.site .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink-700);
  font-weight: 500;
}
footer.site .brand-mini img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
footer.site nav { display: flex; gap: 1.5rem; }
footer.site nav a {
  color: var(--ink-500);
  font-weight: 500;
}
footer.site nav a:hover { color: var(--ink-900); }
footer.site .copy { color: var(--ink-400); font-size: .85rem; }

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero .visual { margin-top: 1.5rem; }
  article.legal .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  article.legal aside {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--ink-200);
    border-bottom: 1px solid var(--ink-200);
    padding: 1rem 0;
  }
  article.legal aside ol {
    grid-template-columns: 1fr 1fr;
    gap: .6rem 1.25rem;
  }
  .trust .wrap { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 36rem) {
  header.site nav { gap: 1.25rem; }
  header.site a.brand .name-full { display: none; }
  article.legal dl { grid-template-columns: 1fr; gap: 0; padding: 1rem; }
  article.legal dt { margin-top: .6rem; color: var(--ink-400); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
