/* === VARIABLES === */
:root {
  --primary:      #000000;
  --primary-dark: #111111;
  --primary-deep: #111111;
  --white:        #ffffff;
  --text:         #222222;
  --muted:        #555555;
  --border:       #e0e0e0;
  --bg-light:     #f5f5f5;
  --font:         'Inter', sans-serif;
  --header-h:     80px;
  --max-w:        1100px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--header-h); overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.75; overflow-x: hidden; width: 100%; max-width: 100vw; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* === HEADER === */
#main-header {
  position: fixed; top: 0; width: 100%; height: var(--header-h);
  background: var(--white); z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 100%;
}
#main-nav ul { display: flex; gap: 36px; list-style: none; }
#main-nav a {
  font-weight: 600; font-size: 13px;
  letter-spacing: .04em;
  color: var(--primary-deep);
  transition: opacity .2s;
}
#main-nav a:hover { opacity: .55; }
.mobile-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary-deep); }

/* === HERO === */
#hero {
  margin-top: var(--header-h);
  height: 35vh; min-height: 220px;
  position: relative; overflow: hidden;
  background: var(--primary-deep);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

/* === INTRO === */
#intro { padding: 56px 0 8px; }
#intro h1 {
  font-size: 38px; font-weight: 300; letter-spacing: -.01em;
  margin-bottom: 20px; color: var(--primary-deep);
}
#intro .lead {
  font-size: 15px; font-weight: 400; line-height: 1.75;
  margin-bottom: 20px; color: var(--muted);
  text-align: justify; hyphens: auto;
}
#intro p {
  margin-bottom: 16px; color: var(--muted);
  font-size: 15px; line-height: 1.75;
  text-align: justify; hyphens: auto;
}

.proof-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.proof-item {
  border: 1.5px solid #bbb;
  border-radius: 14px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.proof-big {
  font-size: 38px;
  font-weight: 300;
  color: var(--primary-deep);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.proof-unit { display: none; }
.proof-label {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* === SERVICES === */
#services { padding: 48px 0 56px; background: transparent; }

.services-heading {
  font-size: 38px; font-weight: 300; letter-spacing: -.01em;
  color: var(--primary-deep); margin-bottom: 24px;
}

.services-list { display: flex; flex-direction: column; gap: 0; }

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 28px;
  align-items: center;
  padding: 20px 16px;
}
.service-row:nth-child(odd)  { background: #e8e8e8; }
.service-row:nth-child(even) { background: #f5f5f5; }

.service-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin-left: 22px;
}

.service-num {
  font-size: 13px; font-weight: 400;
  color: #bbb; letter-spacing: .04em;
  padding-top: 2px;
}

.service-title {
  font-size: 15px; font-weight: 600;
  color: var(--primary-deep);
  line-height: 1.6;
}

.service-body { display: flex; flex-direction: column; gap: 6px; }

.service-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

/* === ABOUT === */
#about { padding: 28px 0 48px; background: transparent; margin-bottom: 16px; }
.about-inner { display: flex; gap: 56px; align-items: stretch; background: var(--bg-light); padding: 40px 16px; }
.about-left {
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding-bottom: 0px;
  flex-shrink: 0; width: 210px;
}
.about-left .about-btn {
  margin-top: auto;
}
.about-btn { width: 210px; text-align: center; white-space: nowrap; }
.about-photo {
  width: 210px; height: 260px;
  object-fit: cover; object-position: top;
  filter: grayscale(100%);
  display: block;
  margin-top: 8px;
}

.about-text h2 {
  font-size: 38px; font-weight: 300; letter-spacing: -.01em;
  color: var(--primary-deep); margin-bottom: 4px;
}
.about-text .lead {
  font-size: 15px; color: var(--muted);
  margin-bottom: 20px; font-weight: 400;
}
.about-text p { margin-bottom: 14px; color: var(--muted); font-size: 15px; line-height: 1.75; text-align: justify; hyphens: auto; }
.about-text p:last-of-type { margin-bottom: 0; }
.btn-outline {
  display: inline-block; margin-top: 6px;
  border: 1.5px solid var(--primary-deep); color: var(--primary-deep);
  padding: 10px 26px; font-weight: 600; font-size: 13px;
  letter-spacing: .04em;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary-deep); color: var(--white); }

/* === CONTACT CTA (dark bar) === */
#contact-cta {
  background: var(--primary-deep);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0 0;
}
#contact-cta p {
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.01em;
}
.btn-white {
  display: inline-block;
  border: 1.5px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 12px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-white:hover {
  background: var(--white);
  color: var(--primary-deep);
}

/* === CONTACT FORM === */
#contact { padding: 16px 0 96px; }
#contact h2 {
  font-size: 38px; font-weight: 300; letter-spacing: -.01em;
  color: var(--primary-deep); margin-bottom: 16px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 580px; }
.contact-form input,
.contact-form textarea {
  padding: 13px 16px;
  border: 1px solid #ccc;
  font-family: var(--font); font-size: 15px; width: 100%;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-deep);
}
.contact-form button {
  background: var(--primary-deep); color: var(--white);
  padding: 14px 36px; border: none; font-size: 13px;
  font-weight: 600; letter-spacing: .04em;
  cursor: pointer; align-self: flex-start;
  transition: opacity .2s;
}
.contact-form button:hover { opacity: .75; }
.success {
  color: #222222; font-weight: 600;
  margin-bottom: 20px; font-size: 15px;
}
.form-error {
  color: #c0392b; font-weight: 600;
  margin-bottom: 20px; font-size: 15px;
}
.form-error a { color: #c0392b; text-decoration: underline; }

/* === FOOTER === */
#main-footer {
  background: var(--primary-deep);
  padding: 14px 0;
  margin-top: 16px;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  flex-wrap: nowrap;
}
.footer-bar span { color: rgba(255,255,255,0.75); }
.footer-bar a { color: rgba(255,255,255,0.75); transition: color .2s; }
.footer-bar a:hover { color: var(--white); }
.footer-divider { color: rgba(255,255,255,0.25); }


/* === COOKIE BAR === */
#cookie-bar { background: var(--primary-deep) !important; }

/* === SUBPAGES (imprint, privacy) === */
.subpage-content {
  margin-top: var(--header-h);
  padding: 64px 0 96px;
}
.subpage-content h1 {
  font-size: 36px; font-weight: 300; letter-spacing: -.01em;
  color: var(--primary-deep); margin-bottom: 40px;
  padding-bottom: 0px;
}
.subpage-content h2 {
  font-size: 15px; font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary-deep); margin: 36px 0 10px;
}
.subpage-content p { margin-bottom: 14px; max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.subpage-content ul {
  margin: 0 0 14px 0; padding-left: 20px; max-width: 720px;
}
.subpage-content ul li {
  color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 4px;
}
.subpage-content a { color: var(--primary-deep); text-decoration: underline; }
.subpage-content a:hover { opacity: .6; }
.subpage-meta {
  margin-top: 48px; padding-top: 20px;
  font-size: 13px; color: var(--muted);
  line-height: 1.75;
}
.ai-table-wrap { max-width: 720px; overflow-x: auto; margin-bottom: 16px; }
.ai-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; color: var(--muted);
}
.ai-table th {
  text-align: left; font-weight: 600; font-size: 12px;
  letter-spacing: .04em;
  color: var(--primary-deep);
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border);
}
.ai-table td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.back-link {
  display: inline-block; margin-bottom: 40px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .2s;
}
.back-link:hover { color: var(--primary-deep); }

/* === MOBILE === */
@media (max-width: 768px) {
  .container { padding: 0 20px; width: 100%; }
  #main-header { width: 100vw; left: 0; }

  #main-nav { display: none; }
  #main-nav.open {
    display: block; position: absolute; top: var(--header-h);
    left: 0; width: 100%; background: var(--white);
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  #main-nav.open ul { flex-direction: column; gap: 18px; }
  .mobile-toggle { display: block; }
  .logo img { height: 52px; }

  #hero { height: 28vh; }

  #intro h1 { font-size: 28px; }
  #intro h2 { font-size: 28px; }
  .about-text h2 { font-size: 28px; }
  #contact h2 { font-size: 28px; }
  #intro .lead { font-size: 17px; }

  .proof-points { grid-template-columns: 1fr; gap: 16px; }
  .proof-big { font-size: 28px; }
  .services-heading { font-size: 28px; }
  .service-row { grid-template-columns: 32px 1fr; gap: 0 16px; }
  .service-logo { margin-left: 0; }
  .service-body { grid-column: 2; }
  .service-desc { margin-top: 6px; }

  .about-inner { flex-direction: column; gap: 28px; }
  .about-left { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .about-photo { width: 100%; height: 260px; }
  .about-btn { width: 100%; }

  #contact-cta {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 28px 24px;
  }
  #contact-cta p { font-size: 18px; }

  .footer-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .footer-divider { display: none; }

  .subpage-content h1 { font-size: 26px; }
  .contact-form { max-width: 100%; }
  .contact-form button { width: 100%; align-self: stretch; }
}

/* === COOKIE BAR === */
#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
#cookie-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#cookie-bar.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cookie-inner p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0;
}
.cookie-inner a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}
.cookie-inner a:hover {
  color: var(--white);
}
#cookie-ok {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 7px 20px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#cookie-ok:hover {
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
}
@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #cookie-ok { align-self: flex-end; }
}
