/* ============ Base ============ */
:root {
  --black: #000;
  --white: #fff;
  --max-width: 1080px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--black);
  transition: transform 0.4s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.logo img {
  height: 36px;
  width: auto;
}

/* ============ Sections ============ */
.section {
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid #00000022;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  text-align: center;
}

/* ============ Om ============ */
#om .container {
  border: 2px solid var(--black);
  box-shadow: 16px 16px 0 0 var(--black);
  padding: 48px 24px;
}

.om-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

.om-illustration {
  flex: 0 0 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.om-illustration svg {
  width: 100%;
  height: 100%;
}

.om-illustration img {
  width: 100%;
  height: 100%;
}

.om-text {
  flex: 1;
  min-width: 0;
}

.om-text p + p {
  margin-top: 1.25em;
}

/* ============ Carousel ============ */
.carousel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide-cell {
  flex: 0 0 100%;
  min-width: 0;
}

.slide {
  margin: 0 16px 14px 16px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px;
  border: 1px solid var(--black);
  box-shadow: 6px 6px 0 0 var(--black);
}

.slide-illustration {
  flex: 0 0 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-illustration svg,
.slide-illustration img {
  width: 100%;
  height: 100%;
}

.slide-text {
  flex: 1;
  min-width: 0;
}

.slide-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.1s ease;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  box-shadow: 6px 6px 0 0 var(--black);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--black);
}

/* ============ Kontakt ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-generic {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact-generic a {
  display: inline-block;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-generic a:hover,
.contact-generic a:focus-visible {
  border-bottom-color: var(--black);
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--black);
  box-shadow: 6px 6px 0 0 var(--black);
}

.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--black);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait svg,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-role {
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-top: 4px;
}

.contact-info a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  border-bottom-color: var(--black);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.footer-info {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============ Large screens ============ */
@media (min-width: 1024px) {
  .portrait {
    width: 240px;
    height: 240px;
  }
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .logo img {
    height: 28px;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }

  /* Carousel: arrows below, slide stacks */
  .carousel {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    position: relative;
    padding-bottom: 60px;
  }

  .carousel-arrow {
    position: absolute;
    bottom: 0;
  }

  .carousel-arrow--prev {
    left: 0;
  }

  .carousel-arrow--next {
    right: 0;
  }

  .carousel-viewport {
    order: 1;
  }

  .slide {
    flex-direction: column;
    gap: 24px;
    padding: 20px;
  }

  .slide-illustration {
    flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
    height: 200px;
  }

  .om-content {
    flex-direction: column;
    gap: 24px;
  }

  #om .container {
    margin: 0 16px;
    box-shadow: 8px 8px 0 0 var(--black);
  }

  .om-illustration {
    flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
    height: 200px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 32px;
  }

  .footer-logo {
    width: 120px;
  }
}
