/* ==========================================
   ASPHATEC – main.css
   Global: Reset, Variables, Nav, Footer,
   Buttons, Sections, Forms, CTA, Breakpoints
   ========================================== */

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

:root {
  --primary: #007CB0;
  --primary-hover: #005a84;
  --primary-deep: #004f75;
  --ink: #161616;
  --ink-muted: #525252;
  --ink-subtle: #8c8c8c;
  --canvas: #ffffff;
  --surface-1: #f4f4f4;
  --surface-2: #e0e0e0;
  --inverse-canvas: #161616;
  --inverse-surface-1: #262626;
  --inverse-ink: #ffffff;
  --inverse-ink-muted: #c6c6c6;
  --hairline: #e0e0e0;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.16px;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY BAR ── */
.utility-bar {
  background: var(--surface-1);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  gap: 24px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.32px;
}
.utility-bar a { color: var(--ink-muted); text-decoration: none; }
.utility-bar a:hover { color: var(--ink); }

/* ── TOP NAV ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--hairline);
}
.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 55px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 10px 14px;
  transition: color 0.15s;
  letter-spacing: 0.16px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-link--active { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.16px;
}
.nav-cta:hover { background: var(--primary-hover) !important; }
.nav-hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-hamburger span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* Mobile nav open state */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 8px 20px;
  gap: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 99;
}
.nav-links.is-open li { width: 100%; }
.nav-links.is-open a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.nav-links.is-open li:last-child a { border-bottom: none; }
.nav-links.is-open .nav-cta {
  background: none;
  color: var(--primary) !important;
  padding: 14px 0;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.16px;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--inverse-ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  letter-spacing: 0.16px;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.16px;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-arrow { font-size: 16px; }

/* ── SECTIONS ── */
.section { padding: 96px 32px; }
.section-alt { background: var(--surface-1); }
.section-dark { background: var(--inverse-canvas); }
.section-inner { max-width: 1312px; margin: 0 auto; }
.section-eyebrow {
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.16px;
  margin-bottom: 12px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 16px;
  max-width: 640px;
}
.section-headline-inv { color: var(--inverse-ink); }
.section-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 600px;
  margin-bottom: 48px;
  letter-spacing: 0;
}
.section-sub-inv { color: var(--inverse-ink-muted); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--primary);
  padding: 64px 32px;
}
.cta-banner-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 600px;
}
.btn-primary-inv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.16px;
  flex-shrink: 0;
}
.btn-primary-inv:hover { background: var(--surface-1); }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.32px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-1);
  border: none;
  border-bottom: 1px solid var(--surface-2);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  letter-spacing: 0.16px;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 11px;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23525252' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.16px;
  transition: background 0.15s;
  width: 100%;
}
.form-submit:hover { background: var(--primary-hover); }
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: 0.16px;
  display: none;
}
.form-feedback.is-success {
  display: block;
  background: #d4edda;
  color: #155724;
  border-left: 3px solid #28a745;
}
.form-feedback.is-error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border-left: 3px solid #dc3545;
}
/* Honeypot: für Nutzer unsichtbar, nur Bots füllen es aus */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── FOOTER ── */
footer {
  background: var(--inverse-canvas);
  padding: 64px 32px 32px;
  color: var(--inverse-ink-muted);
}
.footer-inner { max-width: 1312px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--inverse-surface-1);
}
.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--inverse-ink);
  margin-bottom: 12px;
}
.footer-brand span { color: var(--primary); }
.footer-tagline {
  font-size: 14px;
  color: var(--inverse-ink-muted);
  line-height: 1.57;
  letter-spacing: 0.16px;
  margin-bottom: 20px;
}
.footer-address {
  font-size: 13px;
  color: var(--ink-subtle);
  letter-spacing: 0.16px;
  line-height: 1.7;
  font-style: normal;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--inverse-ink);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--inverse-ink-muted);
  text-decoration: none;
  letter-spacing: 0.16px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--inverse-ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-subtle);
  letter-spacing: 0.32px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--ink-subtle); text-decoration: none; }
.footer-bottom a:hover { color: var(--inverse-ink-muted); }
.footer-legal { display: flex; gap: 20px; }

/* ── RESPONSIVE – GLOBAL ── */
@media (max-width: 1056px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 672px) {
  .utility-bar { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .top-nav { padding: 0 20px; }
  .section { padding: 64px 20px; }
  .cta-banner { padding: 48px 20px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── NAV BRAND & BADGE ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-badge {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-subtle);
  letter-spacing: 0.5px;
  border-left: 1px solid var(--hairline);
  padding-left: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ── NAV END (instagram + hamburger wrapper) ── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ── NAV INSTAGRAM ── */
.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  color: var(--ink-muted);
}
.nav-instagram svg {
  width: 22px;
  height: 22px;
  transition: color 0.15s;
  display: block;
}
.nav-instagram:hover { color: var(--ink) !important; }

/* ── FOOTER ADDRESS LINK ── */
.footer-address a {
  color: inherit;
  text-decoration: none;
}
.footer-address a:hover { color: var(--inverse-ink-muted); }

@media (max-width: 1056px) {
  .nav-logo-badge { display: none; }
}
