/* ============================================
   Haustechnik Zintis – Enterprise Stylesheet
   ============================================ */

:root {
  --navy-900: #0b1929;
  --navy-800: #14253b;
  --navy-700: #1d3556;
  --navy-50: #f3f6fa;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --accent: #b8732b;
  --accent-soft: #d49355;
  --white: #ffffff;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);
  --radius: 6px;
  --radius-lg: 8px;
  --max-width: 1140px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "ss01";
}

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

/* ============================================
   Header
   ============================================ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--navy-900);
  border-radius: 4px;
  background-image: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  position: relative;
  flex-shrink: 0;
}

.logo a { color: inherit; text-decoration: none; display: inherit; align-items: center; gap: inherit; }

nav {
  display: flex;
  gap: 2.25rem;
}

nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color var(--transition);
}

nav a:hover { color: var(--navy-900); }

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--navy-900);
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(11, 25, 41, 0.4) 100%),
    radial-gradient(ellipse 800px 600px at 50% -20%, var(--navy-700), transparent),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 7rem 1.75rem 6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-700);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(212, 147, 85, 0.3);
  border-radius: 100px;
  background: rgba(184, 115, 43, 0.08);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  color: var(--white);
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.005em;
  border: 1px solid var(--white);
}

.btn:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1929' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============================================
   Sections
   ============================================ */
section { padding: 6rem 0; }

.ueber-uns { background: var(--white); }
.gewerke   { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.vorteile  { background: var(--white); }
.kontakt   { background: var(--gray-50); border-top: 1px solid var(--gray-200); }

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.85rem;
}

h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* About */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-content p:last-child { margin-bottom: 0; }

/* ============================================
   Cards (Gewerke)
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================
   Vorteile
   ============================================ */
.vorteil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.vorteil {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.vorteil-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-900);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.vorteil-icon svg {
  width: 20px;
  height: 20px;
}

.vorteil strong {
  display: block;
  font-size: 1.02rem;
  color: var(--navy-900);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}

.vorteil p {
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   Kontakt
   ============================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.kontakt-grid > div {
  padding: 2.25rem 2rem;
}

.kontakt-grid > div:first-child {
  border-right: 1px solid var(--gray-200);
}

.kontakt-grid p {
  margin-bottom: 0.55rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.kontakt-grid strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.kontakt a {
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}

.kontakt a:hover { border-bottom-color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 1.75rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color var(--transition);
}

footer a:hover { color: var(--accent-soft); }

/* ============================================
   Legal Pages
   ============================================ */
.legal {
  padding: 5rem 0;
  background: var(--white);
  min-height: 70vh;
}

.legal .container { max-width: 780px; }

.legal h1 {
  font-size: 2rem;
  color: var(--navy-900);
  margin-bottom: 2rem;
  text-align: left;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.legal h2 {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  text-align: left;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal ul,
.legal ol {
  margin: 0.75rem 0 0.75rem 1.5rem;
}

.legal li { margin-bottom: 0.4rem; }

.legal a {
  color: var(--navy-900);
  text-decoration: underline;
  text-decoration-color: var(--gray-400);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.legal a:hover { text-decoration-color: var(--accent); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  nav { gap: 1.25rem; }
  nav a { font-size: 0.825rem; }
  .hero { padding: 4.5rem 1.5rem 4rem; }
  section { padding: 4rem 0; }
  .section-intro { margin-bottom: 2.5rem; }
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .kontakt-grid > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .logo { font-size: 0.95rem; }
  .logo::before { width: 24px; height: 24px; }
  nav { gap: 0.85rem; }
  nav a { font-size: 0.775rem; }
  .card { padding: 1.5rem 1.25rem; }
}
