/* KaranCode — Bold Brand. Derived from the KC monogram: indigo + near-black, geometric grotesque.
   Shared by every page; page-specific blocks are at the end. */
:root {
  --indigo: #5B52EE;
  --indigo-deep: #4136D6;
  --indigo-soft: #ECEBFE;
  --ink: #121216;
  --ink-soft: #4A4A55;
  --ink-muted: #75757F;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --line: #E4E3EC;
  --display: "Outfit", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; word-spacing: 0.04em; line-height: 0.98; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .contact :focus-visible { outline-color: #fff; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1200px, 100% - 64px); } }

.ind { color: var(--indigo); }
.ind-light { color: #A9A4FF; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }

/* Visitors resolving to EN get the body hidden until i18n.js has swapped the
   copy (see the inline head script); it removes the attribute when done. */
html[data-i18n-pending] body { visibility: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--display); letter-spacing: -0.01em;
  padding: 18px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--brand { background: var(--indigo); color: #fff; }
.btn--brand:hover { background: var(--indigo-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--indigo); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 12px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.eyebrow {
  font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 18px;
}
.eyebrow--light { color: #A9A4FF; }
.h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 52px; height: auto; mix-blend-mode: multiply; }
.brand__word { font: 800 1.35rem/1 var(--display); letter-spacing: -0.03em; }
.brand__word--sm { font-size: 1.1rem; }
.nav__links { display: none; gap: 32px; }
.nav__links a { font: 600 .95rem/1 var(--display); text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--indigo); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__actions .lang-toggle, .nav__actions .btn { display: none; }
@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav__actions .lang-toggle, .nav__actions .btn { display: inline-flex; }
  .nav__actions .nav-toggle--open { display: none; }
}
@media (max-width: 420px) { .brand__word { display: none; } }

/* DE / EN switch */
.lang-toggle { display: inline-flex; padding: 3px; border: 2px solid var(--line); border-radius: 999px; }
.lang-btn {
  font: 700 .78rem/1 var(--display); letter-spacing: .04em; color: var(--ink-muted);
  background: none; border: 0; padding: 8px 11px; border-radius: 999px; cursor: pointer;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--ink); color: #fff; }

/* Hamburger + mobile overlay (driven by nav.js) */
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; border-radius: 12px; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; padding: 14px 16px 28px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.nav-mobile__top .nav-toggle { margin-left: auto; }
.nav-mobile__links { margin-top: 40px; display: grid; }
.nav-mobile__links a {
  font: 800 2rem/1.1 var(--display); letter-spacing: -0.03em; text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.nav-mobile__links a:hover { color: var(--indigo); }
.nav-mobile__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 820px) { .nav-mobile { display: none !important; } }

/* Hero */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 48px; } .hero { padding-top: 72px; } }
.hero__copy { padding-bottom: 8px; }
@media (min-width: 960px) { .hero__copy { padding-bottom: 96px; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--indigo-soft); color: var(--indigo-deep);
  font: 600 .875rem/1 var(--display); padding: 10px 16px; border-radius: 999px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgb(34 197 94 / .2); }
.hero__title { font-size: clamp(2.75rem, 8.4vw, 6.1rem); font-weight: 900; letter-spacing: -0.03em; }
.hero__lead { margin-top: 28px; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 480px) { .hero__ctas .btn { width: 100%; } }

.hero__visual { position: relative; margin: 0; min-height: 420px; display: flex; justify-content: center; align-items: flex-end; }
@media (min-width: 960px) { .hero__visual { min-height: 640px; } }
.slab {
  position: absolute; inset: 12% 0 0 0;
  background: var(--indigo);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
/* Riesige Monogramm-Buchstaben als Hintergrund-Textur auf der Indigo-Fläche. */
.slab__k, .slab__c {
  position: absolute; font: 900 clamp(14rem, 34vw, 26rem)/.8 var(--display); letter-spacing: -0.08em;
  user-select: none;
}
.slab__k { left: -4%; bottom: -6%; color: rgb(255 255 255 / .12); }
.slab__c { right: -8%; top: 4%; color: rgb(18 18 22 / .28); }
.hero__portrait {
  position: relative; z-index: 1;
  width: min(100%, 470px); height: auto;
  filter: drop-shadow(0 30px 40px rgb(18 18 22 / .25));
}
.tag {
  position: absolute; z-index: 2; left: 0; bottom: 28px;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 18px;
  display: grid; gap: 2px; box-shadow: 0 12px 30px rgb(0 0 0 / .2);
}
.tag strong { font: 700 1rem/1.2 var(--display); }
.tag span { font-size: .8rem; color: #C9C7FF; }
@media (min-width: 960px) { .tag { left: -32px; bottom: 64px; } }

/* Stats */
.stats { background: var(--ink); color: #fff; }
.stats__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 32px 0; display: grid; gap: 6px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.stat:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .stat { padding: 44px 28px; border-bottom: 0; border-left: 1px solid rgb(255 255 255 / .12); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
.stat__num { font: 900 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; }
.stat .ind { color: #A9A4FF; }
.stat__label { color: #B5B5C0; font-size: .95rem; }

/* Logos */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); }
.logos__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.logos .eyebrow { margin: 0; color: var(--ink-muted); }
.logos__list { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.logos__list img { height: 34px; width: auto; display: block; }
.logos__list img.logo--wide { height: 22px; }
.logos__list a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo__name { font: 800 1.1rem/1 var(--display); letter-spacing: -0.02em; }

/* Sections */
.section { padding: 96px 0; }
@media (min-width: 960px) { .section { padding: 136px 0; } }
.section--dark { background: var(--ink); color: #fff; }
.section--tint { background: var(--indigo-soft); }

/* Steps */
.steps { display: grid; gap: 16px; margin-top: 56px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 32px 28px 36px; display: grid; gap: 14px; align-content: start;
}
.step--accent { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.step__when {
  justify-self: start; font: 700 .8rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 999px;
}
.step--accent .step__when { background: #fff; color: var(--indigo-deep); }
.step__title { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.step__no { font-size: .5em; color: var(--indigo); font-weight: 700; }
.step--accent .step__no { color: #D4D1FF; }
.step p { color: var(--ink-soft); }
.step--accent p { color: #E6E4FF; }

/* Projects */
.projects { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 900px) { .projects { grid-template-columns: 1.4fr 1fr; } }
.project { background: #1D1D24; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project__media { aspect-ratio: 16 / 10; background: var(--indigo); display: grid; place-items: center; overflow: hidden; }
.project__media--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__media--photo img { transform: scale(1.04); }
/* GridMaster tile uses the GridMaster brand (navy + green glow, as on gridmaster.app). */
.project__media--gm { background: radial-gradient(120% 90% at 50% -10%, #1f7a5a55, transparent 70%), linear-gradient(180deg, #161a33 0%, #10132a 100%); }
.project__media--gm img { width: min(72%, 360px); height: auto; object-fit: contain; }
.project__media--icon { background: linear-gradient(140deg, var(--indigo) 0%, var(--indigo-deep) 100%); }
.project__media--icon img { width: 38%; max-width: 180px; height: auto; border-radius: 22%; box-shadow: 0 20px 40px rgb(0 0 0 / .3); }
.project__body { padding: 28px 28px 32px; display: grid; gap: 14px; flex: 1; align-content: start; }
.project__title { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; }
.project__body p:not(.badge) { color: #B5B5C0; }
.badge {
  justify-self: start; font: 700 .8rem/1 var(--display); padding: 9px 14px; border-radius: 999px;
  background: var(--indigo); color: #fff;
}
.badge--muted { background: rgb(255 255 255 / .1); color: #D4D1FF; }
.link { justify-self: start; font: 700 1rem/1 var(--display); color: #fff; text-decoration: none; border-bottom: 2px solid var(--indigo); padding-bottom: 6px; margin-top: 6px; }
.link:hover { color: #A9A4FF; }

/* Quotes */
.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; border-radius: var(--radius); padding: 40px 32px; background: #fff; border: 2px solid var(--ink); display: grid; gap: 28px; align-content: space-between; }
.quote--brand { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.quote blockquote { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--display); letter-spacing: -0.025em; }
.quote figcaption { display: grid; gap: 2px; }
.quote figcaption strong { font: 700 1rem/1.3 var(--display); }
.quote figcaption span { font-size: .9rem; color: var(--ink-muted); }
.quote--brand figcaption span { color: #D4D1FF; }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; border: 2px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--indigo); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 64px 24px 24px; position: relative;
  font: 700 clamp(1.1rem, 1.8vw, 1.35rem)/1.25 var(--display); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 600 1.2rem/1 var(--display); transition: rotate .2s, background-color .2s;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--indigo); }
.faq details p { padding: 0 24px 24px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--indigo); color: #fff; padding: 96px 0; overflow: hidden; }
@media (min-width: 960px) { .contact { padding: 136px 0; } }
.contact__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact__copy { display: grid; gap: 24px; justify-items: start; position: relative; }
.contact__title { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 900; letter-spacing: -0.03em; }
.contact__copy p { font-size: 1.15rem; color: #E6E4FF; max-width: 30rem; }
.contact__face { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; }

.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px 24px; display: grid; gap: 16px; }
@media (min-width: 600px) { .form { padding: 40px; } }
.form__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; font: 600 .9rem/1.2 var(--display); min-width: 0; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink); width: 100%;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--indigo); }
.form textarea { resize: vertical; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.form__status { border-radius: 14px; padding: 14px 16px; font: 600 .95rem/1.4 var(--body); }
.form__status[hidden] { display: none; }
.form__status--ok { background: #E7F8EE; color: #136C3A; }
.form__status--error { background: #FDECEC; color: #A42020; }

/* Footer */
.footer { background: var(--ink); color: #B5B5C0; padding: 36px 0; font-size: .9rem; }
.footer .brand__word { color: #fff; }
.footer .ind { color: #A9A4FF; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; }

/* ── Subpages ───────────────────────────────────────────────────────────── */
/* Short pages (404, meeting) keep the footer at the bottom of the viewport. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
.page { padding: 64px 0 96px; }
@media (min-width: 960px) { .page { padding: 96px 0 136px; } }
.page__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; letter-spacing: -0.03em; }

/* Meeting */
.meeting { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .meeting { grid-template-columns: 1fr 1.9fr; gap: 56px; } }
.meeting__intro { display: grid; gap: 24px; justify-items: start; }
.meeting__intro .page__title { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.meeting__lead { color: var(--ink-soft); font-size: 1.15rem; }
.meeting__facts { display: grid; gap: 12px; width: 100%; }
.meeting__facts li { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 16px 18px; display: grid; gap: 2px; }
.meeting__facts strong { font: 800 1.15rem/1.2 var(--display); letter-spacing: -0.02em; }
.meeting__facts span { color: var(--ink-soft); font-size: .95rem; }
.meeting__mail { display: grid; gap: 4px; color: var(--ink-soft); font-size: .95rem; }
.meeting__mail a { font: 700 1.05rem/1.2 var(--display); color: var(--indigo); text-decoration: none; border-bottom: 2px solid var(--indigo); justify-self: start; padding-bottom: 3px; }
.meeting__cal { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px; min-width: 0; }
.meeting__cal > div { min-height: 680px; border-radius: 20px; overflow: hidden; }
#my-cal-inline-beratungsgesprach { width: 100%; height: 100%; overflow: auto; }

/* 404 */
.notfound { text-align: center; display: grid; justify-items: center; gap: 20px; }
.notfound__code { font: 900 clamp(7rem, 26vw, 15rem)/.85 var(--display); letter-spacing: -0.06em; color: var(--indigo); }
.notfound p:not(.eyebrow):not(.notfound__code) { color: var(--ink-soft); font-size: 1.15rem; max-width: 34rem; }
.notfound .hero__ctas { justify-content: center; margin-top: 16px; }

/* Legal text (Impressum, Datenschutz) */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; margin: 56px 0 18px; }
.legal h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 32px 0 10px; }
.legal p, .legal ul { color: var(--ink-soft); margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 6px; }
.legal a { color: var(--indigo); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__rule { height: 4px; width: 72px; background: var(--indigo); border-radius: 4px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
