/* =========================================================================
   Eklavya Minds — site stylesheet
   Tokens, base, layout primitives, components.
   ========================================================================= */

/* --- Design tokens --- */
:root {
  --coral: #fb2056;
  --coral-rgb: 251, 32, 86;
  --coral-dark: #da1c4b;
  --ink: #191919;
  --gray-1: #404040;
  --gray-2: #f5f5f5;
  --gray-3: #ececec;
  --white: #ffffff;

  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-brand: 'Bell MT', Georgia, serif;

  --container-max: 1200px;
  --container-pad: 24px;
  --section-pad-y: 80px;
  --section-pad-y-sm: 48px;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }

/* --- Utilities --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--ink); color: var(--white);
  padding: 8px 16px; z-index: 1000;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  margin: 0 0 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none !important;
  border: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--coral-dark); color: var(--white); transform: translateY(-1px); }
.btn--coral-inverse { background: var(--white); color: var(--coral); }
.btn--coral-inverse:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 24px; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* Focus-visible: keyboard users get a clear ring on all interactive elements. */
.btn:focus-visible,
.primary-nav a:focus-visible,
.lang-toggle a:focus-visible,
.nav-toggle:focus-visible,
.logo:focus-visible,
.site-footer a:focus-visible,
.redirect-banner a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Site header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-3);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--container-pad);
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none !important;
}
.logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav > ul { display: flex; gap: 28px; align-items: center; }
.primary-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a:hover { color: var(--coral); }
.primary-nav a.is-active { color: var(--coral); font-weight: 700; }

.lang-toggle {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  font-size: 12px; letter-spacing: 0.06em;
  padding-left: 16px; border-left: 1px solid var(--gray-3);
}
.lang-toggle a { color: var(--gray-1); text-decoration: none; }
.lang-toggle a:hover { color: var(--coral); }
.lang-toggle__active { color: var(--coral); }

/* --- Dropdown menu (nav) --- */
.primary-nav .has-dropdown { position: relative; }
.dropdown-caret {
  font-size: 9px; color: var(--gray-1); margin-left: 4px;
  display: inline-block; transform: translateY(-1px);
}
.primary-nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--gray-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 260px;
  padding: 8px 0;
  z-index: 10;
}
.primary-nav .has-dropdown:hover .dropdown,
.primary-nav .has-dropdown:focus-within .dropdown {
  display: block;
}
.primary-nav .dropdown li { border-bottom: none; }
.primary-nav .dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.primary-nav .dropdown a:hover { background: var(--gray-2); color: var(--coral); }

.nav-toggle {
  display: none;
  background: transparent; border: none; padding: 8px;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Redirect banner (home only) --- */
.redirect-banner {
  background: var(--coral);
  color: var(--white);
}
.redirect-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.redirect-banner p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
}
.redirect-banner strong { font-weight: 800; }

/* --- Hero (page heading strip) --- */
.hero {
  padding: 80px var(--container-pad) 64px;
  text-align: center;
  background: var(--white);
}
.hero h1 { margin: 0 auto 20px; max-width: 720px; font-size: 48px; }
.hero__sub {
  font-size: 18px; line-height: 1.6;
  color: var(--gray-1);
  margin: 0 auto 28px; max-width: 560px;
}
.hero__lernmatrix {
  display: block;
  width: fit-content;
  max-width: 640px;
  margin: 0 auto 28px;
  background: rgba(var(--coral-rgb), 0.08);
  border: 1px solid rgba(var(--coral-rgb), 0.20);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.hero__lernmatrix strong { color: var(--coral); font-weight: 700; }
/* --- Generic section --- */
.section { padding: var(--section-pad-y) 0; }
.section--alt { background: var(--gray-2); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 { margin-bottom: 12px; }
.section__head p { color: var(--gray-1); max-width: 560px; margin: 0 auto; }

/* --- Values strip (home) --- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value {
  background: var(--white);
  border: 1px solid var(--gray-3);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.value__icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--coral);
}
.value h3 { margin: 0 0 8px; }
.value p { color: var(--gray-1); margin: 0; font-size: 15px; line-height: 1.6; }

/* --- Cards (general) --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

/* --- Product showcase (home Lernmatrix preview) --- */
.product-card-large {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-card-large__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.product-card-large__desc { color: var(--gray-1); font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.product-card-large__meta {
  font-family: var(--font-head); font-weight: 600;
  font-size: 12px; color: var(--gray-1);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.product-card-large__art {
  background: linear-gradient(135deg, var(--gray-2), var(--gray-3));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.product-card-large__art img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Product grid (products page) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-grid__item--filled {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex; flex-direction: column;
}
.product-grid__item--filled h3 { font-size: 24px; margin: 8px 0; }
.product-grid__item--filled p { color: var(--gray-1); flex-grow: 1; }
.product-grid__item--empty {
  background: transparent;
  border: 2px dashed var(--gray-3);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-1);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 240px;
}

/* --- Pull quote (about page vision/mission) --- */
.pullquote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* --- Principle grid (about page) --- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.principle {
  background: var(--white);
  border: 1px solid var(--gray-3);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.principle h3 { margin-bottom: 12px; }
.principle p { color: var(--gray-1); margin: 0; font-size: 15px; line-height: 1.7; }

/* --- Contact page columns --- */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-col h3 { margin-bottom: 16px; font-size: 22px; }
.contact-col .lines { font-size: 17px; line-height: 1.8; }
.contact-col .lines a { color: var(--ink); }
.contact-col .lines a:hover { color: var(--coral); text-decoration: underline; }

.contact-redirect {
  margin-top: 64px;
  background: rgba(var(--coral-rgb), 0.06);
  border: 1px solid rgba(var(--coral-rgb), 0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: 960px;
  margin-left: auto; margin-right: auto;
}
.contact-redirect p { margin: 0; color: var(--ink); font-size: 16px; }

/* --- Contact band (home) --- */
.contact-band {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.contact-band h2 { color: var(--white); margin: 0 0 16px; font-size: 40px; }
.contact-band p { color: rgba(255, 255, 255, 0.75); margin: 0 0 24px; }
.contact-band a.email-large {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700;
  font-size: 24px; color: var(--white);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 4px;
}
.contact-band a.email-large:hover { color: var(--coral); }

/* --- Legal pages (Impressum, Datenschutz) --- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0;
}
.legal h1 { font-size: 36px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--gray-1); }
.legal ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1em; }
.legal .placeholder {
  background: rgba(var(--coral-rgb), 0.08);
  border: 1px dashed var(--coral);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--coral-dark);
}

/* --- Site footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.site-footer__tagline { color: rgba(255, 255, 255, 0.65); font-size: 14px; line-height: 1.6; margin: 16px 0 0; max-width: 320px; }
.site-footer__heading {
  font-family: var(--font-head); font-weight: 700;
  color: var(--white);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.site-footer__list { display: flex; flex-direction: column; gap: 8px; }
.site-footer__list li { font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  gap: 16px; flex-wrap: wrap;
}
.site-footer__bottom nav { display: flex; gap: 12px; align-items: center; }

/* --- Hero (homepage variant C) --- */
.hero--home {
  padding: 96px var(--container-pad) 80px;
  text-align: center;
  background: var(--white);
}
.hero--home h1 { font-size: 56px; max-width: 800px; margin: 0 auto 20px; }
.hero--home .hero__sub { font-size: 19px; max-width: 600px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 36px; }
  .hero--home h1 { font-size: 40px; }
  .hero h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .section { padding: var(--section-pad-y-sm) 0; }
  .hero, .hero--home { padding-top: 56px; padding-bottom: 40px; }
  .values, .principles, .product-grid { grid-template-columns: 1fr; }
  .product-card-large { grid-template-columns: 1fr; padding: 32px; }
  .product-card-large__art { aspect-ratio: 16/9; }
  .contact-cols { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .redirect-banner__inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .contact-band h2 { font-size: 28px; }
  .contact-band a.email-large { font-size: 18px; }
  .contact-redirect { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    padding: 16px var(--container-pad) 24px;
    border-bottom: 1px solid var(--gray-3);
    box-shadow: var(--shadow-card);
    gap: 0;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul li { border-bottom: 1px solid var(--gray-3); }
  .primary-nav > ul a { display: block; padding: 14px 0; font-size: 16px; }

  /* Mobile dropdown — show inline below parent, indented */
  .primary-nav .dropdown {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .primary-nav .dropdown a {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-1);
  }
  .primary-nav .dropdown a:hover { background: transparent; color: var(--coral); }
  .dropdown-caret { display: none; }

  .lang-toggle { padding: 16px 0 0; border-left: none; border-top: 1px solid var(--gray-3); margin-top: 8px; }
  .site-header__inner { position: relative; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero--home h1 { font-size: 32px; }
  .hero h1 { font-size: 30px; }
  .contact-band h2 { font-size: 24px; }
  .pullquote blockquote { font-size: 19px; }
  .product-card-large__name { font-size: 30px; }
  .logo img { height: 36px; }
}

