/* ═══════════════════════════════════════════════════════
   EK CERTIFICATION & CONSULTING – style.css
   No external resources. Fonts served locally from /fonts/
═══════════════════════════════════════════════════════ */

/* ─── LOCAL FONTS ────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue-dark:  #005B9A;
  --blue-mid:   #0077B6;
  --green:      #00A86B;
  --white:      #ffffff;
  --gray-light: #F5F7F9;
  --gray-mid:   #E8ECF0;
  --gray-text:  #64748B;
  --gray-dark:  #334155;
  --text-main:  #1A2B3C;
  --radius:     4px;
  --max:        1120px;
  --tr:         0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
.serif {
  font-family: 'Source Serif 4', Georgia, serif;
}

/* ─── HEADER ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-mid);
}
.hdr {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo-link img { height: 42px; width: auto; }
.logo-label { line-height: 1.2; }
.logo-label strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-label span {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--blue-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.desk {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.desk a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  transition: color var(--tr);
  white-space: nowrap;
}
nav.desk a:hover { color: var(--blue-mid); }

.hdr-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-sw {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang-sw a {
  padding: 4px 9px;
  border-radius: 2px;
  color: var(--gray-text);
  transition: all var(--tr);
}
.lang-sw a.active { background: var(--gray-light); color: var(--blue-dark); }
.lang-sw a:hover:not(.active) { color: var(--blue-dark); }
.lang-sw .pipe { color: var(--gray-mid); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.burger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 1px;
  transition: all 0.3s;
}

.mob-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  padding: 12px 28px 20px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  padding: 11px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-light);
  letter-spacing: 0.04em;
}

/* ─── HERO BANNER mit Text-Overlay ──────────────── */
.hero-banner {
  width: 100%;
  position: relative;
  background: #EBF4FB;
  overflow: hidden;
  line-height: 0;
}
.hero-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: right center;
  display: block;
  /* Fade nach rechts weg, links bleibt klar für Text */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}
/* Text-Overlay über dem Bild, links ausgerichtet */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-overlay-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  pointer-events: auto;
}
.hero-overlay-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.hero-overlay h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-main);
  max-width: 540px;
  line-height: 1.28;
  margin-bottom: 16px;
  /* Subtle text shadow for legibility over the image */
  text-shadow: 0 1px 12px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.8);
}
.hero-overlay-sub {
  font-size: 1rem;
  color: var(--gray-dark);
  max-width: 520px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(255,255,255,0.95);
  word-break: normal;
  overflow-wrap: normal;
}
.hero-overlay-rule {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--green));
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-banner img { height: 300px; }
  .hero-overlay-inner { padding: 0 24px; }
  .hero-overlay h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .hero-overlay-sub { display: none; }
}
@media (max-width: 480px) {
  .hero-banner img { height: 220px; }
  .hero-overlay h1 { font-size: 1.2rem; max-width: 240px; }
}

/* ─── HERO (Text unter dem Banner) ──────────────── */
.hero {
  padding: 52px 28px 68px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}
.hero-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--green));
  margin: 0 auto 28px;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 600;
  color: var(--text-main);
  max-width: 700px;
  margin: 0 auto 18px;
  line-height: 1.32;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 580px;
  margin: 0 auto 16px;
  line-height: 1.75;
}
.hero-intro {
  font-size: 0.9rem;
  color: var(--gray-text);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.8;
}
.btn-li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius);
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--tr);
}
.btn-li:hover { background: var(--blue-mid); color: var(--white); }
.btn-li svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── SECTIONS ───────────────────────────────────── */
section.sec { padding: 80px 28px; }
section.sec.bg { background: var(--gray-light); }
.wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.sec-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}
.sec-rule {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--green));
  margin-bottom: 44px;
}

/* ─── CARDS (Leistungen) ─────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow var(--tr), border-color var(--tr), transform var(--tr);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,91,154,0.1);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
}
.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--blue-mid);
}
.card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.4;
}
.card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.card ul li {
  font-size: 0.83rem;
  color: var(--gray-text);
  padding-left: 15px;
  position: relative;
  line-height: 1.4;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1.5px;
  background: var(--green);
}

/* ─── EXPERTISE GRID ─────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.exp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-mid);
  transition: border-color var(--tr), box-shadow var(--tr);
  overflow: hidden;
}
.exp-item:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 10px rgba(0,91,154,0.07);
}
.exp-icon-wrap {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--gray-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-icon-wrap svg {
  width: 17px;
  height: 17px;
  color: var(--blue-mid);
}
.exp-item span {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--gray-dark);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* ─── ABOUT ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}
.portrait-wrap { position: relative; }
.portrait-wrap img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.portrait-wrap::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--blue-mid);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.35;
}
.about-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.4;
}
.about-body p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.82;
  margin-bottom: 14px;
}
.about-body p:last-of-type { margin-bottom: 0; }

/* Kiwa badge */
.kiwa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 10px 16px;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-dark);
  text-decoration: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.kiwa:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 10px rgba(0,91,154,0.1);
}
.kiwa-text { font-size: 0.75rem; color: var(--gray-text); line-height: 1.35; }
.kiwa-text strong { display: block; font-size: 0.72rem; color: var(--gray-dark); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1px; }
.kiwa img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Tags */
.tags-wrap { margin-top: 52px; }
.tags-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
  transition: all var(--tr);
  cursor: default;
}
.tag:hover { background: var(--blue-mid); color: var(--white); }

/* ─── WHY ────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-item svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; }
.why-item strong { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.why-item p { font-size: 0.83rem; color: var(--gray-text); line-height: 1.67; }

/* ─── CONTACT ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Left column: intro text + contact details stacked */
.contact-left { display: flex; flex-direction: column; gap: 0; }
.contact-intro-text {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-mid);
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci { display: flex; gap: 15px; align-items: flex-start; }
.ci svg { width: 19px; height: 19px; color: var(--blue-mid); flex-shrink: 0; margin-top: 3px; }
.ci-body { font-size: 0.88rem; color: var(--gray-text); line-height: 1.6; }
.ci-body strong {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ci-body a { color: var(--blue-mid); }
.ci-body a:hover { text-decoration: underline; }

/* Form (right column, aligned to top of left) */
.contact-form { display: flex; flex-direction: column; }
.fg { margin-bottom: 14px; }
.fg label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fg input, .fg textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--white);
  transition: border-color var(--tr);
  outline: none;
  appearance: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--blue-mid); }
.fg textarea { height: 110px; resize: vertical; }
.dsgvo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.dsgvo-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue-mid);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.dsgvo-row label { font-size: 0.78rem; color: var(--gray-text); line-height: 1.55; cursor: pointer; }
.btn-submit {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--tr);
}
.btn-submit:hover { background: var(--blue-mid); }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--text-main);
  padding: 40px 28px 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2D3F52;
}
.footer-brand strong { display: block; font-size: 0.85rem; font-weight: 600; color: #E2E8F0; margin-bottom: 4px; }
.footer-brand p { font-size: 0.78rem; color: #64748B; line-height: 1.65; }
.footer-brand a { color: #64748B; }
.footer-brand a:hover { color: #94A3B8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a { font-size: 0.78rem; color: #64748B; transition: color var(--tr); }
.footer-links a:hover { color: #94A3B8; }
.footer-links .li-icon { display: flex; align-items: center; gap: 6px; }
.footer-links .li-icon svg { width: 16px; height: 16px; }
.footer-copy { max-width: var(--max); margin: 20px auto 0; text-align: center; font-size: 0.72rem; color: #4A5568; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 920px) {
  nav.desk { display: none; }
  .burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait-wrap { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  section.sec { padding: 56px 20px; }
  .hero { padding: 52px 20px 48px; }
  .hero-logo img { height: 78px; }
  .hdr { padding: 0 20px; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { align-items: flex-start; }
}
@media (max-width: 380px) {
  .exp-grid { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
