/* ============================================================
   BKC BASE — Reset, Fonts, Global Styles
   ============================================================ */

/* --- @font-face (DSGVO-konform, lokal gehostet) --- */

/* Jost — Headlines (passend zum Logo) */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cormorant Garamond — Akzent-Labels (kursiv, elegant) */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v19-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* --- Reset --- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--bkc-font-body);
  font-size: var(--bkc-fs-body);
  font-weight: var(--bkc-fw-regular);
  line-height: 1.7;
  color: var(--bkc-text);
  background-color: var(--bkc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Unified warm filter for all content images */
img:not([src*="logo"]):not([src*="brush"]):not(.bkc-hero__logo) {
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

img:not([src*="logo"]):not([src*="brush"]):not(.bkc-hero__logo):hover {
  filter: saturate(1) contrast(1) brightness(1);
  transition: filter 0.4s ease;
}

a {
  color: var(--bkc-accent);
  text-decoration: none;
  transition: color var(--bkc-transition);
}

a:hover {
  color: var(--bkc-accent-hover);
}

ul, ol {
  list-style: none;
}


/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bkc-font-heading);
  font-weight: var(--bkc-fw-semibold);
  line-height: 1.2;
  color: var(--bkc-headline);
  text-wrap: balance;
}

/* --- Focus visible (global) --- */

:focus-visible {
  outline: 2px solid var(--bkc-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Touch optimization --- */

a, button, input, select, textarea {
  touch-action: manipulation;
}

h1 { font-size: var(--bkc-fs-h1); }
h2 { font-size: var(--bkc-fs-h2); }
h3 { font-size: var(--bkc-fs-h3); }
h4 { font-size: var(--bkc-fs-h4); }

p {
  margin-bottom: var(--bkc-space-sm);
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  font-family: var(--bkc-font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.5;
  color: var(--bkc-text);
  border-left: 3px solid var(--bkc-accent);
  padding-left: var(--bkc-space-md);
}

strong {
  font-weight: var(--bkc-fw-semibold);
}

/* Section sub-label (Lezzatos-inspired italic accent) */
.bkc-label {
  font-family: var(--bkc-font-accent);
  font-style: italic;
  font-weight: var(--bkc-fw-regular);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--bkc-accent);
  display: block;
  margin-bottom: var(--bkc-space-xs);
}

/* Section heading pattern */
.bkc-section-heading {
  margin-bottom: var(--bkc-space-xl);
}

.bkc-section-heading h2 {
  margin-bottom: var(--bkc-space-sm);
}

.bkc-section-heading p {
  color: var(--bkc-text-muted);
  max-width: 600px;
}

.bkc-section-heading--center {
  text-align: center;
}

.bkc-section-heading--center p {
  margin-left: auto;
  margin-right: auto;
}


/* --- Layout utilities --- */

.bkc-container {
  width: 100%;
  max-width: var(--bkc-container);
  margin: 0 auto;
  padding: 0 var(--bkc-gutter);
}

.bkc-container--wide {
  max-width: var(--bkc-container-wide);
}

.bkc-container--narrow {
  max-width: var(--bkc-container-narrow);
}

.bkc-section {
  padding: var(--bkc-space-section) 0;
}

.bkc-section--dark {
  background-color: var(--bkc-bg-tertiary);
}

.bkc-section--medium {
  background-color: var(--bkc-bg-secondary);
}

.bkc-grid {
  display: grid;
  gap: var(--bkc-gutter);
}

.bkc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bkc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bkc-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
  .bkc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bkc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .bkc-grid--2,
  .bkc-grid--3,
  .bkc-grid--4 { grid-template-columns: 1fr; }
}


/* --- Utility classes --- */

.bkc-text-center { text-align: center; }
.bkc-text-muted  { color: var(--bkc-text-muted); }
.bkc-text-accent { color: var(--bkc-accent); }

.bkc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Divider line */
.bkc-divider {
  width: 60px;
  height: 3px;
  background: var(--bkc-accent);
  border: none;
  margin: var(--bkc-space-sm) 0 0;
}

.bkc-divider--center {
  margin-left: auto;
  margin-right: auto;
}
