* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #172033;
  background: #f4f7fb;
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 32px;
  color: #ffffff;
  background: rgba(20, 30, 48, 0.78);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 44px;
  text-align: center;
  color: #ffffff;

  background-image: url("img/aalen_code_challenge.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  width: min(900px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #4f5f73;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9ecff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
}

.hero-date,
.hero-place {
  margin-bottom: 12px;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}

.hero-place {
  max-width: 820px;
  margin: 42px auto 34px;
}

.hero-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: #de0f59;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.hero-button:hover,
button:hover {
  background: #bd0c4b;
}

.section {
  min-height: 75vh;
  padding-bottom: 72px;
}

.section-light {
  background: #ffffff;
}

.section-soft {
  background: #edf6fb;
}

.section-form {
  background: #ffffff;
}

.section-tab {
  display: flex;
  justify-content: center;
  padding: 34px 20px;
}

.section-tab h2 {
  width: min(980px, 100%);
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  text-align: center;
}

.tab-blue {
  background:
    linear-gradient(rgba(15, 28, 46, 0.6), rgba(15, 28, 46, 0.78)),
    linear-gradient(135deg, #38a4e0, #de0f59);
}

.tab-pink {
  background: linear-gradient(120deg, #ffffff 0%, #de0f59 100%);
}

.tab-dark {
  background: linear-gradient(120deg, #ffffff 0%, #233149 100%);
}

.content-grid,
.signup-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.visual-panel {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 22% 20%, rgba(56, 164, 224, 0.25), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(222, 15, 89, 0.18), transparent 34%),
    #f2f7fb;
}

.code-card {
  width: min(380px, calc(100% - 40px));
  padding: 22px;
  color: #dff8ff;
  background: #172033;
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(23, 32, 51, 0.18);
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
}

.blue {
  background: #38a4e0;
}

.pink {
  background: #de0f59;
}

.green {
  background: #66d19e;
}

pre {
  margin: 28px 0 0;
  font: 800 28px/1.45 Arial, Helvetica, sans-serif;
  white-space: pre-wrap;
}

.text-panel h3,
.signup-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.text-panel p,
.signup-copy p,
.program-item p,
.imprint-content p {
  color: #4f5f73;
  font-size: 18px;
  line-height: 1.6;
}

.text-panel .eyebrow,
.signup-copy .eyebrow {
  margin: 0 0 14px;
  color: #4f5f73;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 18px;
  background: #f4f7fb;
  border-left: 5px solid #38a4e0;
  border-radius: 6px;
  font-weight: 700;
}

.program-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.program-item,
.signup-form {
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

.program-item {
  padding: 24px;
}

.program-item span {
  display: block;
  margin-bottom: 18px;
  color: #de0f59;
  font-weight: 800;
  text-transform: uppercase;
}

.program-item h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.signup-form {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #263349;
  font-size: 15px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #b7c7d5;
  border-radius: 6px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(56, 164, 224, 0.24);
  border-color: #168ab7;
}

input::placeholder {
  color: #8b99aa;
}

.imprint {
  min-height: 70vh;
  background: #f4f7fb;
}

.imprint-content {
  width: min(760px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
}

.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, #38a4e0, #de0f59);
}

.result-card {
  width: min(620px, 100%);
  padding: 42px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.16);
}

.result-symbol {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.result-card.success .result-symbol {
  background: #168a55;
}

.result-card.error .result-symbol {
  background: #de0f59;
}

.result-card h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 58px);
}

.result-card p {
  color: #4f5f73;
  font-size: 18px;
  line-height: 1.6;
}

.result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 22px;
  color: #ffffff;
  background: #168ab7;
  border-radius: 6px;
  font-weight: 800;
}

.result-button:hover {
  background: #0f7299;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 16px;
  }

  nav {
    gap: 14px;
  }

  .content-grid,
  .signup-layout,
  .program-grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .visual-panel {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-date,
  .hero-place {
    font-size: 22px;
  }

  .section {
    padding-bottom: 48px;
  }

  .section-tab {
    padding: 26px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .signup-form,
  .imprint-content,
  .result-card {
    padding: 22px;
  }
}
.visual-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 280px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  font-size: 28px;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  color: #0f1c2e;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.popup-box.success {
  border-top: 8px solid #22c55e;
}

.popup-box.error {
  border-top: 8px solid #ef4444;
}

.popup-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.popup-box p {
  margin-bottom: 0;
  line-height: 1.6;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #0f1c2e;
}

.popup-close:hover {
  opacity: 0.6;
}


.collage-panel {
  display: grid;
}

.sponsor-content {
  align-items: start;
}

.partner-visual-panel {
  min-height: 430px;
}

.partner-collage {
  width: calc(100% - 36px);
  max-width: 500px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  overflow: hidden;

}

.partner-logo-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-logo-grid img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  padding: 8px;
}

.contact-email {
  margin-top: 24px;
  font-weight: 800;
}

.contact-email a {
  color: #168ab7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sponsor-box {
  width: min(900px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 48px;
  border: 2px solid #b8dded;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 28, 46, 0.08);
  text-align: center;
}

.sponsor-box h3 {
  margin: 10px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #0f1c2e;
}

.sponsor-box p {
  max-width: 700px;
  margin: 0 auto 18px;
  line-height: 1.7;
  color: #475569;
}

.sponsor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 6px;
  background: #168ab7;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.sponsor-button:hover {
  background: #0f7299;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 138, 183, 0.25);
}
