/* ============================================
   CHGR — Custom Styles
   Design Language: Dark Edition v2.0
   Swiss Minimalism, dunkel fundiert
   ============================================ */

/* --- 0. Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #000000;
  color: #FFFFFF;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  min-height: 100vh;
}

main, section, article, aside, nav, header, footer, address {
  display: block;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- 1. Color System --- */
:root {
  --bg-base: #000000;
  --bg-surface-1: #0A0A0A;
  --bg-surface-2: #141414;
  --border-dark: #2E2E2E;
  --border-active: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: #A3A3A3;
  --text-disabled: #525252;
  --accent: #0044FF;
  --accent-hover: #0033CC;
}

/* --- 2. Typography --- */
h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  margin: 0 0 16px;
}

h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px;
}

h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 16px;
}

p {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 16px;
}

small, .small, .caption {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #A3A3A3;
}

a {
  color: #0044FF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 100ms;
}

a:hover {
  color: #A3A3A3;
}

.muted {
  color: #A3A3A3;
}

/* --- 3. Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-space {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.section-header {
  margin-bottom: 32px;
}

.section-header:last-child {
  margin-bottom: 0;
}

/* --- 4. Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #000000;
  border-bottom: 1px solid #2E2E2E;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  background: none;
  border: 1px solid #2E2E2E;
  color: #A3A3A3;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 2px;
  transition: color 100ms, border-color 100ms;
  line-height: 18px;
}

.lang-btn:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 32px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: #A3A3A3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  padding: 4px 0;
  position: relative;
  transition: color 100ms;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #FFFFFF;
  transform: scaleX(0);
  transition: transform 100ms;
}

.desktop-nav a:hover {
  color: #FFFFFF;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: opacity 100ms;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #000000;
  border-bottom: 1px solid #2E2E2E;
  padding: 0 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #2E2E2E;
  transition: color 100ms;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: #A3A3A3;
}

.mobile-lang-wrap {
  padding: 16px 0;
}

.lang-btn--mobile {
  width: auto;
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* --- 5. Hero --- */
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.overline {
  margin: 0 0 16px;
  color: #A3A3A3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.hero-content h1 {
  max-width: 24ch;
}

.hero-content .lead {
  color: #FFFFFF;
  max-width: 48ch;
  margin-bottom: 8px;
}

.hero-content .muted {
  margin-bottom: 32px;
}

.hero-media {
  background: none;
  border: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #2E2E2E;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* --- 6. Cards --- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background-color: #0A0A0A;
  border: 1px solid #2E2E2E;
  border-radius: 2px;
  padding: 24px;
  transition: border-color 100ms;
}

.card:hover {
  border-color: #FFFFFF;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  color: #A3A3A3;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

/* --- 7. Split Grid --- */
.split-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 992px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* --- 8. Simple List --- */
.simple-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 24px;
}

.simple-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background-color: #A3A3A3;
}

/* --- 9. Trust Note --- */
.trust-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trust-note p {
  color: #FFFFFF;
  font-size: 18px;
  line-height: 28px;
  margin: 0 0 8px;
}

.trust-note p:last-child {
  margin-bottom: 0;
}

/* --- 10. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 100ms, border-color 100ms, color 100ms;
  white-space: nowrap;
}

.btn-primary {
  background-color: #0044FF;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #0033CC;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid #2E2E2E;
}

.btn-secondary:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background-color: transparent;
  text-decoration: none;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #1EBE57;
  color: #FFFFFF;
  text-decoration: none;
}

/* --- 11. Kontakt --- */
.kontakt-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.kontakt-grid .section-header {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .kontakt-grid {
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
  }
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid #2E2E2E;
  border-radius: 2px;
  background-color: #0A0A0A;
  min-width: 280px;
}

.contact-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
}

.contact-link:hover {
  color: #A3A3A3;
}

/* --- 12. Footer --- */
.site-footer {
  background-color: #000000;
  border-top: 1px solid #2E2E2E;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.footer-link {
  background: none;
  border: none;
  color: #A3A3A3;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 100ms;
}

.footer-link:hover {
  color: #FFFFFF;
}

/* --- 13. Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms, visibility 150ms;
}

.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #0A0A0A;
  border: 1px solid #2E2E2E;
  border-radius: 2px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #2E2E2E;
}

.modal-header h2 {
  font-size: 18px;
  line-height: 28px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 100ms;
}

.modal-close:hover {
  color: #A3A3A3;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-body h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
}

.modal-body a {
  color: #0044FF;
}

/* --- 14. Responsive --- */
@media (max-width: 767.98px) {
  h1 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.25;
  }

  .section-space {
    padding-block: clamp(48px, 10vw, 64px);
  }

  .container {
    padding: 0 24px;
  }

  .hero-content h1 {
    max-width: none;
  }
}
