/* Toptal-inspired stylesheet for Heatec GmbH */

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

:root {
  /* Toptal-inspired color palette */
  --primary-blue: #204ecf;
  --accent-green: #5cb85c;
  --text-dark: #2b2b2b;
  --text-medium: #666666;
  --text-light: #999999;
  --background-light: #f8f9fa;
  --background-accent: #e8e9f3;
  --white: #ffffff;
  --border-light: #e5e5e5;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  font-size: 16px;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - Clean and minimal like Toptal */
header {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.header-brand {
  display: flex;
  align-items: center;
}

header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: -0.8px;
  margin: 0;
}

.header-kontakt-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.header-kontakt-link:hover {
  text-decoration: underline;
}

.header-cta {
  background: var(--accent-green);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: #4a9f4a;
  transform: translateY(-1px);
}

/* Hero section - Large, impactful like Toptal */
.hero {
  background: var(--background-accent);
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-medium);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-cta {
  background: var(--accent-green);
  color: var(--white);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}

.hero-cta:hover {
  background: #4a9f4a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Hero image section */
.hero-image {
  margin: 40px 0;
  text-align: center;
}

.hero-image img {
  max-width: 800px;
  width: calc(100% - 48px);
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  margin: 0 auto;
  display: block;
}

/* Notice section */
.notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 16px 24px;
  margin: 32px auto;
  max-width: 600px;
  text-align: center;
}

.notice p {
  color: #856404;
  margin: 0;
  font-size: 15px;
}

/* Contact link section */
.contact-link-section {
  text-align: center;
  margin: 32px 0;
}

.contact-link {
  color: #7096D1;
  text-decoration: underline;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-blue);
}

/* Main content */
main {
  padding: 80px 0;
}

/* Contact form - Card-based design like Toptal */
.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  margin: 40px auto;
  max-width: 600px;
}

.contact-form.hidden {
  display: none;
}

.contact-form h3 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.5px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(32, 78, 207, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  background: var(--accent-green);
  color: var(--white);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
}

.contact-form button[type="submit"]:hover {
  background: #4a9f4a;
  transform: translateY(-1px);
}

/* Form notice - subtle styling */
.form-notice {
  margin-bottom: 24px;
  text-align: center;
}

.form-notice p {
  color: var(--text-light);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}

/* Color info */
.color-info {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.color-info small {
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.4;
}

/* Impressum modal */
.impressum {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.impressum.hidden {
  display: none;
}

.impressum-content {
  background: var(--white);
  padding: 48px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
}

.impressum h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.5px;
}

.impressum p {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 15px;
  color: var(--text-medium);
}

.impressum a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.impressum a:hover {
  text-decoration: underline;
}

.close-btn {
  background: var(--text-medium);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 24px;
  float: right;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: var(--text-dark);
}

/* Footer - Modern lightweight design */
footer {
  background: var(--background-light);
  color: var(--text-light);
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  border-top: 1px solid #f0f0f0;
  margin-top: 40px;
}

footer a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive design */
@media (max-width: 480px) {
  .header-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .header-brand {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  header h1 {
    font-size: 28px;
  }

  .header-kontakt-link {
    font-size: 14px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
  }

  main {
    padding: 60px 0;
  }

  .contact-form {
    padding: 32px 24px;
    margin: 32px auto;
  }

  .contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .impressum {
    align-items: flex-end;
  }

  .impressum-content {
    padding: 32px 24px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-width: none;
  }

  .impressum h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

  .header-kontakt-link {
    font-size: 13px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .impressum-content {
    padding: 24px 16px;
  }
}
